html { scroll-behavior: smooth; background-color: #050911; }
body { margin: 0; }
a { text-decoration: none; }

/* Estrelas: tile SVG de 900x900 com posições geradas aleatoriamente (semente fixa),
   em vez de dezenas de radial-gradient — evita o padrão repetitivo perceptível
   que aparece quando o mesmo pequeno agrupamento de gradientes se repete em mosaico. */
.gata-starfield {
  background-color: black;
  background-image:
    url('assets/branding/starfield-tile.svg'),
    linear-gradient(to bottom, oklch(0.14 0.02 260) 0%, oklch(0.14 0.02 260) 30%, oklch(0.06 0.015 260) 100%);
  background-repeat: repeat, no-repeat;
  background-size: 4000px 4000px, 100% 100%;
}

#gata-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: oklch(0.78 0.13 78);
  color: oklch(0.14 0.02 260);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  padding: 0;
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1), background .2s ease, box-shadow .2s ease;
  z-index: 40;
  box-shadow: 0 4px 16px oklch(0.78 0.13 78 / 0.45);
}
#gata-back-to-top.gata-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#gata-back-to-top:hover { background: oklch(0.85 0.13 78); transform: translateY(-3px) scale(1); box-shadow: 0 6px 20px oklch(0.78 0.13 78 / 0.6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #gata-back-to-top { transition: none; }
}

.grecaptcha-badge { visibility: hidden; }

.gata-nav { display: flex; }
.gata-nav a { white-space: nowrap; }
.gata-nav a:hover { color: oklch(0.78 0.13 78); }
.gata-link:hover { color: oklch(0.78 0.13 78); }
.gata-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.gata-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 4px 0;
}
.gata-brand-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(19px, 2.35vw, 26px);
  line-height: .98;
  letter-spacing: .02em;
  text-shadow: 0 1px 10px oklch(0.02 0.01 260 / .5);
}
.gata-brand-tagline {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 1.12vw, 14px);
  line-height: 1.2;
  color: oklch(0.68 0.02 260);
  text-wrap: balance;
  text-shadow: 0 1px 8px oklch(0.02 0.01 260 / .42);
}
.gata-brand-logo {
  flex-shrink: 0;
  object-fit: contain;
}
.gata-brand-header { flex: 0 1 auto; }
.gata-brand-logo-header {
  width: 70px;
  height: 70px;
}
@media (min-width: 640px) {
  .gata-brand-logo-header {
    width: 90px;
    height: 90px;
  }
}
.gata-brand-header .gata-brand-wordmark {
  font-size: clamp(18px, 2vw, 23px);
}
.gata-brand-header .gata-brand-tagline {
  font-size: clamp(10.5px, 1vw, 13px);
  max-width: 24ch;
}
.gata-brand-footer {
  justify-content: center;
  gap: 0;
}
.gata-brand-logo-footer {
  width: 200px;
  height: 200px;
}
@media (min-width: 640px) {
  .gata-brand-logo-footer {
    width: clamp(200px, 24vw, 280px);
    height: clamp(200px, 24vw, 280px);
  }
}
.gata-footer-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(28px, 4vw, 48px);
  width: 100%;
}
.gata-footer-brand {
  justify-self: center;
}
.gata-footer-card {
  justify-self: center;
}
input.gata-input::placeholder, textarea.gata-input::placeholder { color: oklch(0.5 0.02 260); }
.gata-section-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: oklch(0.78 0.13 78);
  margin-bottom: 16px;
}
.gata-btn-primary,
.gata-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-family: 'Work Sans', sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.gata-btn-primary {
  border: 1px solid transparent;
  background: oklch(0.78 0.13 78);
  color: oklch(0.14 0.02 260);
  font-weight: 600;
}
.gata-btn-secondary {
  border: 1px solid oklch(0.36 0.02 260);
  color: oklch(0.9 0.01 90);
  font-weight: 500;
  background: oklch(0.14 0.02 260 / .44);
  backdrop-filter: blur(6px);
}
.gata-btn-primary:hover {
  background: oklch(0.82 0.13 78);
}
.gata-btn-secondary:hover {
  background: oklch(0.18 0.02 260 / .58);
  border-color: oklch(0.46 0.03 260);
}
.gata-eclipse-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, .9fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid oklch(0.3 0.03 70);
  border-radius: 8px;
  background:
    linear-gradient(90deg, oklch(0.18 0.028 260 / .72), oklch(0.16 0.02 260 / .64) 46%, oklch(0.15 0.02 260 / .6)),
    linear-gradient(135deg, oklch(0.18 0.028 260 / .42), oklch(0.15 0.02 260 / .28));
}
.gata-eclipse-art {
  position: absolute;
  width: clamp(840px, 267vw, 2000px);
  height: clamp(920px, 177vw, 1220px);
  top: clamp(-274px, -18vw, -186px);
  left: clamp(-74%, -44%, -106%);
  z-index: 0;
  pointer-events: none;
  opacity: .95;
  mix-blend-mode: screen;
  filter: brightness(.9) contrast(1.05) saturate(.92);
  -webkit-mask-image: radial-gradient(circle at center,
    transparent 0 29.8%,
    #000 30.4%,
    #000 52%,
    transparent 66%);
  mask-image: radial-gradient(circle at center,
    transparent 0 29.8%,
    #000 30.4%,
    #000 52%,
    transparent 66%);
}
.gata-eclipse-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gata-eclipse-feature > :not(.gata-eclipse-art) {
  position: relative;
  z-index: 1;
}
.gata-eclipse-title,
.gata-resource-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}
.gata-eclipse-title {
  font-size: clamp(28px, 4vw, 38px);
}
.gata-eclipse-copy,
.gata-resource-copy {
  margin: 0;
  color: oklch(0.77 0.02 260);
  line-height: 1.7;
  font-size: 15.5px;
}
.gata-eclipse-actions,
.gata-resource-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.gata-resource-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .85fr);
  gap: 26px;
  align-items: center;
  margin: 0 auto 36px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid oklch(0.27 0.02 260);
  border-radius: 8px;
  background: linear-gradient(180deg, oklch(0.19 0.028 260), oklch(0.16 0.02 260));
}
.gata-resource-title {
  font-size: 26px;
}
.gata-resource-note {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: oklch(0.6 0.02 260);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gata-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: oklch(0.78 0.13 78);
  color: oklch(0.14 0.02 260);
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 4px 0;
}
.gata-skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
.gata-input:focus-visible {
  outline: 2px solid oklch(0.78 0.13 78);
  outline-offset: 2px;
}

.gata-burger { display: none; }
.gata-mobile-panel { display: none; }
.gata-gallery-grid { grid-template-columns: repeat(4, 1fr); }
.gata-gallery-grid-v { grid-template-columns: repeat(3, 1fr); }
.gata-photo-tile { overflow: hidden; border-radius: 8px; }
.gata-photo-tile img { transition: transform .5s ease; }
.gata-photo-tile:hover img { transform: scale(1.08); }
.gata-activities-grid { grid-template-columns: repeat(2, 1fr); }
.gata-weather-grid { grid-template-columns: repeat(3, 1fr); }
.gata-solar-images { grid-template-columns: repeat(2, 1fr); }
.gata-solar-layout { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 950px) {
  .gata-gallery-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .gata-gallery-grid-v { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .gata-weather-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .gata-solar-layout { grid-template-columns: 1fr; }
  .gata-eclipse-feature,
  .gata-resource-highlight { grid-template-columns: 1fr; }
  .gata-eclipse-art {
    width: clamp(760px, 152vw, 1100px);
    height: clamp(820px, 168vw, 1220px);
    top: clamp(-248px, -24vw, -176px);
    left: clamp(-58%, -32%, -10%);
  }
  .gata-footer-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, auto));
    justify-content: center;
    align-items: start;
  }
  .gata-footer-brand {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 980px) {
  .gata-nav { display: none; }
  .gata-burger { display: flex; }
  .gata-mobile-panel.open { display: flex; }
}

@media (max-width: 525px) {
  .gata-gallery-grid { grid-template-columns: 1fr; }
  .gata-gallery-grid-v { grid-template-columns: 1fr; }
  .gata-activities-grid { grid-template-columns: 1fr; }
  .gata-weather-grid { grid-template-columns: 1fr; }
  .gata-solar-images { grid-template-columns: 1fr; }
  .gata-brand { gap: 12px; }
  .gata-brand-header { min-width: 0; }
  .gata-footer-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gata-footer-brand,
  .gata-footer-card {
    grid-column: auto;
    justify-self: center;
  }
  .gata-brand-footer { text-align: center; }
  .gata-btn-primary,
  .gata-btn-secondary { width: auto; }
  .gata-eclipse-actions,
  .gata-resource-actions { align-items: stretch; }
  .gata-eclipse-art {
    width: clamp(620px, 196vw, 920px);
    height: clamp(700px, 214vw, 1080px);
    top: clamp(-164px, -20vw, -112px);
    left: clamp(-18%, 2%, 16%);
    opacity: .88;
  }
}

/* Contentor fixo (#gata-hero-layers): 2 slots que se revezam. Cada slot cobre
   sempre o contentor por inteiro — o scale mínimo em gata-hero-data.js nunca
   é 1, para que a foto nunca encolha nem mostre bordas. O pan/zoom em si é
   aplicado por foto via Web Animations API (gata-hero-init.js), não por CSS. */
.gata-hero-slot {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease;
  will-change: opacity, transform;
}
