/* =================================================================
   Búzios Sagrado, por Mística Roweana
   Direção: o mar de Iemanjá ao meio-dia. Pérola, azul-claro e ouro,
   com o azul profundo do logo nos títulos. Nada de preto, vermelho,
   roxo ou marrom, e nada redondo (pedidos dela): cantos retos e
   molduras com cantos dourados, como as do logo.
   O gesto forte é a mesa de 16 búzios caindo no fim da abertura.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  --perola: #f8f9fb;
  --branco: #ffffff;
  --ceu: #e3f0fa;
  --ceu-2: #c8e1f4;
  --mar: #5d9fd3;
  --azul: #163a7a;          /* o azul do nome no logo */
  --azul-2: #2a4d8c;
  --texto: #1d3566;
  --texto-2: #4a5f88;
  --ouro: #c99a2e;
  --ouro-claro: #ecd690;
  --ouro-texto: #86620f;    /* dourado legível sobre claro */
  --folha: linear-gradient(135deg, #f4e2a6 0%, #d4a83f 40%, #b8892a 62%, #efd894 100%);
  --linha: rgba(22, 58, 122, 0.12);
  --linha-ouro: rgba(201, 154, 46, 0.5);

  --f-display: "Prata", "Didot", "Times New Roman", serif;
  --f-corpo: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-hero: clamp(2.6rem, 1.7rem + 4vw, 4.6rem);
  --t-h2: clamp(1.9rem, 1.45rem + 2vw, 3rem);
  --t-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --t-lead: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);

  --largura: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --secao: clamp(4.5rem, 3rem + 6vw, 7.5rem);
  --raio: 2px;               /* cantos retos de propósito */
  --sombra: 0 30px 60px -38px rgba(22, 58, 122, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--perola); color: var(--texto);
  font-family: var(--f-corpo); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; color: var(--azul); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[id] { scroll-margin-top: 84px; }
.wrap { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }

.pular { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--azul); color: var(--branco); padding: 0.7rem 1rem; font-weight: 600; text-decoration: none; }
.pular:focus { top: 1rem; }

.secao-titulo { font-size: var(--t-h2); }
.secao-texto { margin-top: 1rem; max-width: 38rem; font-size: var(--t-lead); color: var(--texto-2); }

/* ---------- Botões: retos, ouro em folha ou fio azul ---------- */
.btn, .btn-linha {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.6rem; border-radius: var(--raio);
  font: 600 1rem/1.2 var(--f-corpo); text-decoration: none; cursor: pointer;
  transition: filter 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn { background: var(--folha); color: var(--azul); border: 1px solid #b8892a; box-shadow: 0 12px 24px -16px rgba(184, 137, 42, 0.9); }
.btn:hover { filter: brightness(1.06); }
.btn-linha { background: var(--branco); color: var(--azul); border: 1px solid var(--azul); }
.btn-linha:hover { background: var(--azul); color: var(--branco); }

/* =================================================================
   CABEÇALHO
   ================================================================= */
.topo { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.3s var(--ease); }
.topo.com-fundo, .topo.menu-aberto { background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 var(--linha-ouro); backdrop-filter: blur(8px); }
.topo.escondido { transform: translateY(-100%); }
.topo-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.marca { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.marca-buzio { width: 40px; height: 28px; color: var(--ouro); transform: rotate(-90deg); }
.marca-texto { display: flex; flex-direction: column; line-height: 1.1; }
.marca-nome { font-family: var(--f-display); font-size: 1.3rem; color: var(--azul); }
.marca-por { font-size: 0.8rem; color: var(--ouro-texto); letter-spacing: 0.02em; }
.menu { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.5rem); }
.menu a { font-size: 0.94rem; text-decoration: none; color: var(--texto-2); padding: 0.4rem 0; transition: color 0.2s; }
.menu a:hover { color: var(--azul); }
.menu .menu-cta { color: var(--azul); background: var(--folha); padding: 0.6rem 1.1rem; border: 1px solid #b8892a; font-weight: 600; }
.menu .menu-cta:hover { filter: brightness(1.06); }
.menu-botao { display: none; }
@media (max-width: 1080px) {
  .menu-botao { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--branco); color: var(--azul); border: 1px solid var(--linha-ouro); cursor: pointer; }
  .menu {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.6rem var(--gutter) 1.6rem; background: var(--branco); border-bottom: 1px solid var(--linha-ouro);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .menu.aberto { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .menu a { padding: 0.85rem 0; font-size: 1.08rem; border-bottom: 1px solid var(--linha); }
  .menu .menu-cta { margin-top: 1rem; text-align: center; padding: 0.95rem; }
}

/* =================================================================
   ABERTURA
   ================================================================= */
.abertura {
  position: relative; overflow: hidden;
  padding: calc(72px + clamp(2rem, 5vw, 4rem)) 0 0;
  background:
    linear-gradient(180deg, var(--branco) 0%, var(--ceu) 78%, var(--ceu-2) 100%);
}
.abertura-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.abertura-marca { color: var(--ouro-texto); font-size: 1rem; letter-spacing: 0.02em; }
.abertura h1 { margin-top: 0.9rem; font-size: var(--t-hero); line-height: 1.04; max-width: 10ch; }
.abertura-lead { margin-top: 1.4rem; max-width: 33rem; font-size: var(--t-lead); color: var(--texto-2); }
.abertura-acoes { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.fatos { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 clamp(1.2rem, 3vw, 2.4rem); margin-top: 2.4rem; }
.fatos li { display: flex; flex-direction: column; padding-left: 0.9rem; border-left: 1px solid var(--linha-ouro); }
.fatos strong { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; color: var(--azul); line-height: 1.2; }
.fatos span { font-size: 0.9rem; color: var(--texto-2); max-width: 13rem; }

/* retrato com os quatro cantos dourados do logo */
.retrato { position: relative; margin: 0; width: min(100%, 430px); justify-self: center; padding: 14px; background: var(--branco); box-shadow: var(--sombra); }
.retrato img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.canto { position: absolute; width: 58px; height: 58px; color: var(--ouro); }
.canto-1 { top: -8px; left: -8px; }
.canto-2 { top: -8px; right: -8px; transform: scaleX(-1); }
.canto-3 { bottom: -8px; left: -8px; transform: scaleY(-1); }
.canto-4 { bottom: -8px; right: -8px; transform: scale(-1, -1); }

/* a mesa: faixa de areia clara onde os 16 búzios caem */
.mesa { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); height: clamp(110px, 14vw, 150px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.85)); border-top: 1px solid var(--linha-ouro); }
.mesa-onda { position: absolute; top: -34px; left: 50%; width: 240px; height: 24px; transform: translateX(-50%); color: var(--mar); opacity: 0.8; }
.mesa-buzios { position: relative; height: 100%; max-width: var(--largura); margin: 0 auto; }
.mesa-buzios svg { position: absolute; left: var(--x); top: var(--y); width: clamp(26px, 3.2vw, 40px); height: auto; aspect-ratio: 40 / 28; color: var(--ouro); transform: translate(-50%, -50%) rotate(var(--r)); filter: drop-shadow(0 4px 3px rgba(22, 58, 122, 0.18)); }
.motion .mesa-buzios svg { animation: cai 0.9s cubic-bezier(0.3, 1.4, 0.5, 1) var(--d) both; }
@keyframes cai {
  from { opacity: 0; transform: translate(-50%, -160%) rotate(calc(var(--r) - 140deg)) scale(1.3); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)); }
}

@media (max-width: 860px) {
  .abertura-inner { grid-template-columns: 1fr; }
  .retrato { width: min(84%, 360px); }
  .fatos { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
}
@media (max-width: 420px) {
  .abertura-acoes .btn, .abertura-acoes .btn-linha { width: 100%; }
  .mesa-buzios svg:nth-child(even) { display: none; }   /* no celular, 8 búzios bastam */
}

/* =================================================================
   JOGOS
   ================================================================= */
.jogos { background: var(--branco); padding: var(--secao) 0; }
.jogo-principal {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 2.6rem; padding: clamp(1.6rem, 3vw, 2.4rem);
  background: linear-gradient(120deg, var(--ceu), var(--perola)); border: 1px solid var(--linha-ouro);
  outline: 1px solid var(--linha-ouro); outline-offset: 6px;
}
.jogo-principal-buzios { grid-row: span 2; display: flex; gap: 2px; }
.jogo-principal-buzios svg { width: 26px; height: 38px; color: var(--ouro); transform: rotate(90deg); }
.jogo-principal h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.jogo-principal p { grid-column: 2; color: var(--texto-2); max-width: 34rem; }
.jogo-principal .btn { grid-column: 3; grid-row: 1 / span 2; }

.lista-jogos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.4rem, 3vw, 2.6rem); margin-top: 1.6rem; }
.lista-jogos li { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--linha); }
.lista-jogos h3 { font-size: var(--t-h3); }
.lista-jogos p { color: var(--texto-2); flex: 1; }
.pedir {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; margin-top: 0.4rem;
  padding: 0 1rem; border: 1px solid var(--azul); color: var(--azul); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.pedir:hover { background: var(--azul); color: var(--branco); }
.pedir .ico { width: 18px; height: 18px; }
.jogos-notas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.4rem; margin-top: 2.4rem; }
.jogos-notas li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--texto-2); font-size: 0.97rem; }
.jogos-notas .ico { margin-top: 0.15rem; color: var(--ouro-texto); }

@media (max-width: 960px) {
  .lista-jogos { grid-template-columns: 1fr 1fr; }
  .jogo-principal { grid-template-columns: auto 1fr; }
  .jogo-principal .btn { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}
@media (max-width: 600px) {
  .lista-jogos, .jogos-notas { grid-template-columns: 1fr; }
  .jogo-principal { grid-template-columns: 1fr; }
  .jogo-principal-buzios { grid-row: auto; }
  .jogo-principal p { grid-column: auto; }
  .jogo-principal .btn { width: 100%; }
}

/* =================================================================
   TRABALHOS
   ================================================================= */
.trabalhos { background: var(--ceu); padding: var(--secao) 0; }
.trabalhos-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); margin-top: 2.6rem; }
.trabalhos-grade li { display: flex; flex-direction: column; gap: 0.6rem; padding: 2rem 1.6rem 1.8rem; background: var(--branco); border-top: 3px solid var(--ouro); }
.trabalho-simbolo { width: 36px; height: 58px; color: var(--ouro-texto); margin-bottom: 0.4rem; }
.trabalhos-grade p { color: var(--texto-2); flex: 1; }
@media (max-width: 860px) { .trabalhos-grade { grid-template-columns: 1fr; } }

/* =================================================================
   COMO FUNCIONA
   ================================================================= */
.como { background: var(--perola); padding: var(--secao) 0; }
.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); margin-top: 2.6rem; counter-reset: passo; }
.passos li { position: relative; padding-top: 3.6rem; counter-increment: passo; }
.passos li::before {
  content: counter(passo); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.3rem; color: var(--azul); border: 1px solid var(--ouro); background: var(--branco);
}
.passos li::after { content: ""; position: absolute; top: 22px; left: 56px; right: -0.6rem; height: 1px; background: var(--linha-ouro); }
.passos li:last-child::after { display: none; }
.passos h3 { font-size: var(--t-h3); }
.passos p { margin-top: 0.5rem; color: var(--texto-2); }
@media (max-width: 900px) { .passos { grid-template-columns: 1fr 1fr; row-gap: 2.2rem; } .passos li:nth-child(2)::after { display: none; } }
@media (max-width: 560px) {
  .passos { grid-template-columns: 1fr; }
  .passos li { padding: 0 0 0 3.8rem; min-height: 44px; }
  .passos li::after { display: none; }
}

/* =================================================================
   QUEM É
   ================================================================= */
.sobre { background: var(--branco); padding: var(--secao) 0; }
.sobre-grade { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.sobre-logo { margin: 0; box-shadow: var(--sombra); }
.sobre-logo img { width: 100%; }
.sobre-texto > p { margin-top: 1.1rem; color: var(--texto-2); max-width: 38rem; }
.sobre-texto h2 + p { margin-top: 1.4rem; }
.credenciais { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; margin-top: 2rem; }
.credenciais li { display: flex; align-items: center; gap: 0.8rem; color: var(--texto); font-weight: 500; }
.credenciais svg { width: 30px; height: 30px; flex: none; color: var(--ouro-texto); }
.btn-insta { margin-top: 2rem; }
@media (max-width: 860px) {
  .sobre-grade { grid-template-columns: 1fr; }
  .sobre-logo { max-width: 380px; }
}
@media (max-width: 480px) { .credenciais { grid-template-columns: 1fr; } }

/* =================================================================
   CURSO
   ================================================================= */
.curso { background: var(--azul); color: var(--branco); padding: clamp(2.4rem, 5vw, 3.4rem) 0; }
.curso-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.4rem clamp(1.2rem, 3vw, 2.4rem); }
.curso-simbolo { width: 34px; height: 54px; color: var(--ouro-claro); }
.curso h2 { color: var(--branco); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.curso p { margin-top: 0.3rem; color: rgba(255, 255, 255, 0.82); }
.curso .btn-linha { background: transparent; color: var(--branco); border-color: var(--ouro-claro); }
.curso .btn-linha:hover { background: var(--ouro-claro); color: var(--azul); }
@media (max-width: 700px) { .curso-inner { grid-template-columns: auto 1fr; } .curso .btn-linha { grid-column: 1 / -1; } }

/* =================================================================
   DEPOIMENTOS: os prints como chegaram, em moldura pérola com fio de ouro
   ================================================================= */
.depoimentos { background: var(--ceu); padding: var(--secao) 0; }
.relatos { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); margin-top: 2.6rem; grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "a c"; align-items: start; }
.print-a { grid-area: a; } .print-b { grid-area: b; } .print-c { grid-area: c; }
.print { margin: 0; padding: 10px; background: var(--branco); border: 1px solid var(--linha-ouro); box-shadow: var(--sombra); }
.print img { width: 100%; }
.print figcaption { display: flex; align-items: center; gap: 0.55rem; padding: 0.75rem 0.3rem 0.2rem; font-family: var(--f-display); font-size: 1.1rem; color: var(--azul); }
.print figcaption::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--ouro); transform: rotate(45deg); }
@media (max-width: 760px) { .relatos { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c"; max-width: 520px; } }

/* =================================================================
   DÚVIDAS
   ================================================================= */
.duvidas { background: var(--branco); padding: var(--secao) 0; }
.duvidas-grade { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: clamp(1.6rem, 5vw, 5rem); align-items: start; }
.faq details { border-bottom: 1px solid var(--linha-ouro); }
.faq details:first-child { border-top: 1px solid var(--linha-ouro); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: 1rem 0; cursor: pointer; list-style: none; font-family: var(--f-display); font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.28rem); color: var(--azul); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--ouro-texto); transition: transform 0.25s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--texto-2); max-width: 44rem; }
@media (max-width: 760px) { .duvidas-grade { grid-template-columns: 1fr; } }

/* =================================================================
   CHAMADA FINAL
   ================================================================= */
.final { padding: var(--secao) 0; text-align: center; background: linear-gradient(180deg, var(--ceu), var(--ceu-2)); }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-simbolos { display: flex; align-items: center; gap: 1.6rem; color: var(--ouro-texto); margin-bottom: 1.6rem; }
.f-sol, .f-lua { width: 40px; height: 40px; }
.f-tridente { width: 38px; height: 62px; }
.final-titulo { font-size: var(--t-h2); max-width: 16ch; }
.final-texto { margin-top: 1rem; max-width: 34rem; font-size: var(--t-lead); color: var(--texto-2); }
.final .btn { margin-top: 2.1rem; }

/* =================================================================
   RODAPÉ
   ================================================================= */
.rodape { background: var(--azul); color: rgba(255, 255, 255, 0.82); padding: 3.2rem 0 2.2rem; font-size: 0.95rem; }
.rodape-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.8rem 3rem; }
.rodape-nome { font-family: var(--f-display); font-size: 1.5rem; color: var(--branco); margin-bottom: 0.4rem; }
.rodape-contatos { display: grid; gap: 0.5rem; align-content: start; }
.rodape-contatos li { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.rodape-contatos a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; color: var(--branco); }
.rodape-contatos a:hover { color: var(--ouro-claro); }
.rodape-contatos .ico { color: var(--ouro-claro); }
.rodape-aviso, .rodape-pe { grid-column: 1 / -1; }
.rodape-aviso { padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.88rem; }
.rodape-pe { font-size: 0.88rem; }
.rodape-pe a { color: var(--ouro-claro); }
.rodape :focus-visible { outline-color: var(--ouro-claro); }
@media (max-width: 700px) { .rodape-inner { grid-template-columns: 1fr; } }

/* =================================================================
   WHATSAPP FLUTUANTE: quadrado, como tudo no site
   ================================================================= */
.whats-flutuante {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 4px;
  background: var(--folha); color: var(--azul); border: 1px solid #b8892a; box-shadow: 0 14px 30px -12px rgba(22, 58, 122, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.whats-flutuante .ico { width: 28px; height: 28px; }

/* botão da música, no canto oposto ao WhatsApp, também quadrado */
.som {
  position: fixed; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--azul); border: 1px solid var(--linha-ouro);
  box-shadow: 0 12px 26px -16px rgba(22, 58, 122, 0.6); backdrop-filter: blur(6px);
  transition: background-color 0.2s, border-color 0.2s;
}
.som:hover { border-color: var(--ouro); }
.com-som .som { background: var(--azul); color: var(--ouro-claro); border-color: var(--azul); }
/* no celular, os botões "Pedir informações" ficam à esquerda: a música sobe para cima do WhatsApp */
@media (max-width: 760px) {
  .som { left: auto; right: calc(max(1rem, env(safe-area-inset-right)) + 4px); bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 68px); }
}
.whats-flutuante.visivel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
