/* Fontes hospedadas no próprio site (sem Google Fonts) */
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bitter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --petroleo: #1A5D78;
  --petroleo-escuro: #123F52;
  --petroleo-noite: #0E3344;
  --azul: #2E6DB4;
  --azul-claro: #9CC3DC;
  --gelo: #F3F6F9;
  --texto: #22343F;
  --texto-suave: #4F6573;
  --raio: 14px;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: var(--gelo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Cenário (ondas e confetes) ---------- */
.palco {
  position: relative;
  flex: 1;
  display: flex;
}

.cenario {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.onda {
  position: absolute;
  display: block;
}

.onda--topo {
  top: 0;
  left: 0;
  width: min(62vw, 720px);
  height: auto;
}

.onda--base {
  right: 0;
  bottom: 0;
  width: min(70vw, 820px);
  height: auto;
}

.confete {
  position: absolute;
  width: var(--t, 12px);
  height: var(--t, 12px);
  background: var(--c, var(--azul-claro));
  border-radius: 2px;
  opacity: var(--o, .55);
  transform: rotate(45deg);
  animation: flutuar var(--d, 9s) ease-in-out infinite;
  animation-delay: var(--atraso, 0s);
}

@keyframes flutuar {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-14px) rotate(60deg); }
}

/* ---------- Conteúdo ---------- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 44px;
}

.cartao {
  width: 100%;
  max-width: 660px;
  text-align: center;
  padding: 44px 44px 36px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(26, 93, 120, .10);
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(18, 63, 82, .35), 0 2px 6px rgba(18, 63, 82, .05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: surgir .9s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes surgir {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.logo {
  display: block;
  width: min(100%, 330px);
  height: auto;
  margin: 0 auto;
}

.slogan {
  margin: 14px 0 0;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--petroleo);
}

.divisor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 26px auto 26px;
  max-width: 260px;
  color: var(--azul);
}

.divisor::before,
.divisor::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--azul-claro));
}

.divisor::after { transform: scaleX(-1); }

.divisor svg { width: 16px; height: 16px; flex: none; }

.selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--petroleo);
  background: rgba(46, 109, 180, .09);
  border-radius: 999px;
}

.selo__ponto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--azul);
  box-shadow: 0 0 0 0 rgba(46, 109, 180, .5);
  animation: pulsar 2s infinite;
}

@keyframes pulsar {
  0% { box-shadow: 0 0 0 0 rgba(46, 109, 180, .45); }
  70% { box-shadow: 0 0 0 9px rgba(46, 109, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 109, 180, 0); }
}

h1 {
  margin: 18px 0 0;
  font-family: "Bitter", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--petroleo-escuro);
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--azul);
}

.texto {
  margin: 16px auto 0;
  max-width: 460px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--texto-suave);
  text-wrap: pretty;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.botao svg { width: 20px; height: 20px; flex: none; }

.botao--principal {
  color: #fff;
  background: var(--petroleo);
  box-shadow: 0 10px 24px -10px rgba(26, 93, 120, .7);
}

.botao--principal:hover {
  background: var(--petroleo-escuro);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(26, 93, 120, .8);
}

.botao--secundario {
  color: var(--petroleo);
  background: #fff;
  border: 1.5px solid rgba(26, 93, 120, .25);
}

.botao--secundario:hover {
  border-color: var(--petroleo);
  transform: translateY(-2px);
}

.botao:focus-visible,
.endereco:focus-visible,
.gd-credit:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}

.endereco {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 18px;
  max-width: 100%;
  text-align: left;
  text-decoration: none;
  font-size: .93rem;
  line-height: 1.5;
  color: var(--texto-suave);
  background: rgba(243, 246, 249, .9);
  border-radius: var(--raio);
  transition: background-color .2s ease, color .2s ease;
}

.endereco:hover { background: #E6EEF4; color: var(--texto); }

.endereco svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  color: var(--petroleo);
}

.endereco strong {
  display: block;
  color: var(--petroleo-escuro);
  font-weight: 700;
}

/* ---------- Rodapé ---------- */
footer {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .82);
  background: var(--petroleo-noite);
  font-size: .85rem;
  line-height: 1.5;
}

.rodape {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
}

.rodape p { margin: 0; }

.rodape__rt strong { color: #fff; font-weight: 700; }
.nq { white-space: nowrap; }

/* Crédito GarageDev (mesmo SVG/CSS do site da Michele) */
.gd-credit{display:inline-flex;align-items:center;gap:.45em;color:inherit;opacity:.75;text-decoration:none;font-size:.85em;transition:opacity .2s}
.gd-credit svg{height:1em;width:auto;display:block;transform:translateY(.06em)}
.gd-credit .gd-a{transition:fill .2s}
.gd-credit:hover,.gd-credit:focus-visible{opacity:1}
.gd-credit:hover .gd-a,.gd-credit:focus-visible .gd-a{fill:#E5117F}
footer .gd-credit{color:#fff}

/* Posições dos confetes */
.cf1 { top: 14%; left: 58%; --t: 11px; --d: 10s; }
.cf2 { top: 24%; right: 9%; --t: 14px; --c: #2E6DB4; --o: .35; --d: 8s; --atraso: -2s; }
.cf3 { top: 46%; left: 7%; --t: 10px; --d: 11s; --atraso: -4s; }
.cf4 { top: 68%; left: 16%; --t: 15px; --c: #1A5D78; --o: .25; --d: 9s; --atraso: -1s; }
.cf5 { top: 58%; right: 14%; --t: 9px; --d: 12s; --atraso: -6s; }
.cf6 { top: 84%; left: 42%; --t: 11px; --c: #2E6DB4; --o: .3; --d: 10s; --atraso: -3s; }
.cf7 { top: 9%; left: 30%; --t: 8px; --o: .45; --d: 9s; --atraso: -5s; }

/* Pular para o conteúdo */
.pular {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  color: #fff;
  background: var(--petroleo-escuro);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}
.pular:focus { top: 16px; }

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
  main { padding: 36px 16px 32px; }
  .cartao { padding: 36px 22px 28px; border-radius: 22px; }
  .logo { width: min(100%, 270px); }
  .acoes { flex-direction: column; }
  .botao { width: 100%; }
  .endereco { width: 100%; }
  .rt-sep { display: none; }
  .rt-epao { display: block; }
  .rodape { flex-direction: column; text-align: center; padding: 22px 20px 26px; }
  .onda--topo { width: 92vw; }
  .onda--base { width: 110vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
