/* ============================================================
   FESSEA — Página "Site em construção"
   Direção: Oceano ao pôr do sol
   ============================================================ */

:root {
  /* Paleta — do céu ao mar ao pôr do sol */
  --profundo: #062032;   /* azul-marinho, topo do céu / fundo */
  --oceano:   #0a3344;   /* azul-marinho intermediário */
  --mare:     #0f766e;   /* verde-água, linha d'água */
  --espuma:   #5eead4;   /* ciano brilhante, acento principal */
  --sol:      #fb923c;   /* laranja do entardecer */
  --sol-claro:#ffd9a8;   /* halo quente do sol */
  --coral:    #ff7a6b;   /* brasa do pôr do sol */
  --lua:      #ecfbf7;   /* texto claro (títulos) */
  --corpo:    rgba(236, 251, 247, 0.72);
  --corpo-fraco: rgba(236, 251, 247, 0.45);
  --filete:   rgba(94, 234, 212, 0.16);

  /* Tipografia */
  --display: "Big Shoulders Display", system-ui, sans-serif;
  --texto:   "Manrope", system-ui, sans-serif;

  /* Ritmo */
  --max: 720px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--texto);
  color: var(--corpo);
  background:
    radial-gradient(130% 75% at 50% 100%, rgba(251, 146, 60, 0.20), rgba(255, 122, 107, 0.06) 38%, transparent 62%),
    linear-gradient(180deg,
      #04141f 0%,
      var(--profundo) 28%,
      var(--oceano) 55%,
      #0e4d5c 80%,
      var(--mare) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Cenário (sol + ondas) ---------- */
.cenario {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Sol baixo no horizonte */
.sol {
  position: absolute;
  left: 50%;
  bottom: 17vh;
  transform: translateX(-50%);
  width: min(48vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    var(--sol-claro) 0%,
    var(--sol) 24%,
    var(--coral) 46%,
    rgba(255, 122, 107, 0) 72%);
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: pulso 9s ease-in-out infinite;
}

@keyframes pulso {
  0%, 100% { opacity: 0.78; transform: translateX(-50%) scale(0.98); }
  50%      { opacity: 0.98; transform: translateX(-50%) scale(1.04); }
}

/* Camadas de onda: cada uma é um SVG que se repete em repeat-x
   e desliza exatamente um tile (1440px) -> laço perfeito. */
.onda {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: 1440px 100%;
}
.onda--1 {
  height: 16vh;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path fill='%23115e59' d='M0 58 C240 88 480 30 720 58 C960 86 1200 32 1440 58 L1440 120 L0 120 Z'/></svg>");
  animation: mar 32s linear infinite;
}
.onda--2 {
  height: 20vh;
  opacity: 0.8;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path fill='%230e4d5c' d='M0 60 C240 102 480 16 720 60 C960 104 1200 20 1440 60 L1440 120 L0 120 Z'/></svg>");
  animation: mar 22s linear infinite reverse;
}
.onda--3 {
  height: 28vh;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path fill='%23062032' d='M0 55 C240 112 480 4 720 55 C960 106 1200 8 1440 55 L1440 120 L0 120 Z'/><path fill='none' stroke='%235eead4' stroke-width='2' stroke-opacity='0.5' d='M0 55 C240 112 480 4 720 55 C960 106 1200 8 1440 55'/></svg>");
  animation: mar 16s linear infinite;
}

@keyframes mar {
  from { background-position-x: 0; }
  to   { background-position-x: -1440px; }
}

/* ---------- Layout da página ---------- */
.pagina {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 8rem) 1.5rem 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.45rem;
}

/* ---------- Cabeçalho / marca ---------- */
.topo { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }

.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--espuma);
}

.marca {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 19vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--lua);
  text-shadow: 0 2px 40px rgba(94, 234, 212, 0.18);
}

.linha-onda {
  display: block;
  width: clamp(80px, 16vw, 130px);
  color: var(--espuma);
  opacity: 0.85;
}
.linha-onda svg { display: block; width: 100%; height: 12px; }

/* ---------- Intro ---------- */
.intro { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }

.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.05;
  color: var(--lua);
}

.sub {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---------- Formulário ---------- */
.avisa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
}
.avisa-texto { margin: 0; font-size: 0.95rem; color: var(--corpo); }
.avisa .botao { align-self: center; }

.campo {
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* ---------- Modal "Avise-me quando lançar" ---------- */
.modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(92vw, 440px);
  width: 100%;
  color: var(--corpo);
}
.modal::backdrop {
  background: rgba(4, 15, 25, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  background: linear-gradient(180deg, #0c3a4c 0%, #072430 100%);
  border: 1px solid var(--filete);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(94, 234, 212, 0.12);
  animation: modal-sobe 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes modal-sobe {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.modal-titulo {
  margin: 0 0 0.4rem;
  padding-right: 2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.05;
  color: var(--lua);
}
.modal-sub {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--corpo);
}
.modal-fechar {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--filete);
  background: rgba(94, 234, 212, 0.08);
  color: var(--corpo);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.modal-fechar:hover { background: rgba(94, 234, 212, 0.2); color: var(--espuma); transform: rotate(90deg); }

.modal-form { display: flex; flex-direction: column; gap: 0.9rem; }
.modal-form .campo { flex: none; }
.modal-form .retorno { flex-basis: auto; }
.modal-form .botao { align-self: stretch; margin-top: 0.3rem; }

.modal-sucesso { text-align: center; }
.modal-sucesso .modal-sub { margin-bottom: 1.5rem; }
.sucesso-icone {
  width: 56px;
  height: 56px;
  margin: 0.2rem auto 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--espuma);
  color: var(--profundo);
  font-size: 1.7rem;
  font-weight: 700;
  box-shadow: 0 0 30px -4px rgba(94, 234, 212, 0.6);
}

.campo-legenda {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espuma);
  margin-bottom: 0.4rem;
}

.campo input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--texto);
  font-size: 1rem;
  color: var(--lua);
  background: rgba(6, 32, 50, 0.45);
  border: 1px solid var(--filete);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.campo input::placeholder { color: rgba(236, 251, 247, 0.38); }
.campo input:focus {
  outline: none;
  border-color: var(--espuma);
  background: rgba(6, 32, 50, 0.7);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.22);
}

.botao {
  flex: 0 0 auto;
  align-self: flex-end;
  padding: 0.85rem 1.4rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--profundo);
  background: var(--espuma);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(94, 234, 212, 0.6); background: #74f0dc; }
.botao:active { transform: translateY(0); }
.botao:disabled { opacity: 0.85; cursor: default; transform: none; box-shadow: none; }

.retorno {
  flex-basis: 100%;
  margin: 0.2rem 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  text-align: left;
}
.retorno[data-estado="ok"]   { color: var(--espuma); }
.retorno[data-estado="erro"] { color: var(--coral); }

/* ---------- Boletim (surf report) ---------- */
.boletim {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0.5rem 0 0;
  border-top: 1px solid var(--filete);
  border-bottom: 1px solid var(--filete);
}

.celula {
  padding: 1rem 1.1rem;
  text-align: left;
  border-right: 1px solid var(--filete);
}
.celula:last-child { border-right: none; }

.celula dt {
  margin: 0 0 0.4rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espuma);
}
.celula dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--lua);
}
.celula dd a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 234, 212, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.celula dd a:hover,
.celula dd a:focus-visible {
  color: var(--espuma);
  border-bottom-color: var(--espuma);
}

/* ---------- Redes ---------- */
.redes { display: flex; gap: 1.3rem; }
.redes .oculto { display: none; } /*links escondidos temporariamente (YouTube, TikTok)*/

.redes a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--corpo);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}
.redes a:hover,
.redes a:focus-visible { color: var(--espuma); transform: translateY(-1px); }
.redes a svg { width: 18px; height: 18px; }

/* ---------- Rodapé ---------- */
.rodape { font-size: 0.78rem; color: var(--corpo-fraco); }
.rodape p { margin: 0; }

/* ---------- Foco visível ---------- */
a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--espuma);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Animação de entrada (escalonada) ---------- */
.entra {
  opacity: 0;
  transform: translateY(16px);
  animation: sobe 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes sobe {
  to { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
  .boletim { grid-template-columns: repeat(2, 1fr); }
  .celula:nth-child(2) { border-right: none; }
  .celula:nth-child(1),
  .celula:nth-child(2) { border-bottom: 1px solid var(--filete); }
}

@media (max-width: 460px) {
  .boletim { grid-template-columns: 1fr; }
  .celula { border-right: none; border-bottom: 1px solid var(--filete); }
  .celula:last-child { border-bottom: none; }
  .avisa { flex-direction: column; }
  .botao { align-self: stretch; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .entra { opacity: 1; transform: none; animation: none; }
  .onda, .sol, .modal-card, .modal, .modal::backdrop { animation: none; }
  .botao:hover, .modal-fechar:hover { transform: none; }
  * { scroll-behavior: auto; }
}
