/* Veneza Water Park: design system base.
   Conceito: placa de parque à beira-mar. Areia de fundo, piscina e sol chapados, coral raro.
   Mobile primeiro (375 px). Páginas acrescentam o próprio CSS em assets/css/pages/. */

/* Bricolage: subconjunto com wght 600 a 800 e wdth 75% a 100%; o eixo opsz foi fixado em 48 no arquivo
   (68 KB em vez de 131 KB). O original fica em assets-src/fonts. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Primitivos */
  --areia-50: oklch(98.4% 0.012 85);
  --areia-100: oklch(95.8% 0.026 84);
  --areia-200: oklch(91.5% 0.037 82);
  --areia-300: oklch(85% 0.042 80);
  --mar-950: oklch(21% 0.05 245);
  --mar-900: oklch(25% 0.058 245);
  --mar-700: oklch(37% 0.065 242);
  --mar-500: oklch(49% 0.055 238);
  --piscina-100: oklch(94.5% 0.04 215);
  --piscina-200: oklch(89% 0.07 215);
  --piscina-500: oklch(73% 0.135 220);
  --piscina-700: oklch(47% 0.115 232);
  --piscina-900: oklch(31% 0.08 238);
  --sol-300: oklch(91% 0.13 95);
  --sol-400: oklch(86% 0.17 88);
  --sol-600: oklch(72% 0.16 72);
  --coral-100: oklch(94.5% 0.035 20);
  --coral-500: oklch(64% 0.2 18);
  --coral-600: oklch(54% 0.19 20);
  --folha-100: oklch(94.5% 0.05 155);
  --folha-600: oklch(50% 0.12 155);

  /* Semânticos */
  --fundo: var(--areia-50);
  --fundo-alt: var(--areia-100);
  --superficie: oklch(99.4% 0.006 85);
  --texto: var(--mar-900);
  --texto-suave: var(--mar-700);
  --texto-fraco: var(--mar-500);
  --linha: var(--areia-300);
  --link: var(--piscina-700);
  --acao: var(--sol-400);
  --acao-sombra: var(--sol-600);
  --marca: var(--piscina-500);
  --aberto: var(--folha-600);
  --fechado: var(--coral-600);
  --foco: var(--piscina-700);

  /* Tipografia */
  --fonte-titulo: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --fonte-texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: 0.875rem; /* 14 px: o menor texto legível no celular ao sol */
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  --t-2xl: clamp(2rem, 1.35rem + 3vw, 3rem);
  --t-3xl: clamp(2.6rem, 1.5rem + 5.2vw, 4.75rem);
  --t-h1: clamp(2rem, 1.1rem + 4vw, 3.75rem); /* h1 das páginas internas: 33 px no celular (como --t-2xl), 49 px no tablet, 60 px no desktop */

  /* Espaço */
  --e-1: 0.25rem;
  --e-2: 0.5rem;
  --e-3: 0.75rem;
  --e-4: 1rem;
  --e-5: 1.5rem;
  --e-6: 2rem;
  --e-7: 3rem;
  --e-8: 4.5rem;
  --secao: clamp(2.75rem, 2rem + 3.5vw, 5rem);
  --margem: 1rem;

  --r-p: 0.625rem;
  --r-m: 1rem;
  --r-g: 1.5rem;
  --r-pilula: 999px;

  --facil: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint */
  --altura-acao-fixa: 4.75rem;
}

/* Reset enxuto */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--e-4); }
body {
  min-height: 100dvh;
  background: var(--fundo);
  color: var(--texto);
  font: 400 var(--t-base)/1.55 var(--fonte-texto);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
ul[class], ol[class],
.topo__nav ul, .rodape ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-variation-settings: "opsz" 48;
}
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Utilitários de layout */
.container { width: min(100% - 2 * var(--margem), 72rem); margin-inline: auto; }
.secao { padding-block: var(--secao); }
.secao--alt { background: var(--fundo-alt); }
.pilha > * + * { margin-top: var(--e-4); }
.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.25em; height: 1.25em; flex: none; }
/* Telefone não quebra no meio: "(81)" numa linha e o número na outra confunde quem vai discar. */
main a[href^="tel:"],
main a[href^="https://wa.me/"] { white-space: nowrap; }

/* Cabeça das páginas internas (a home tem a própria abertura): rótulo, h1 e lead,
   começando sempre à mesma distância do topo. */
.topo-pagina { padding-top: var(--e-6); }
.titulo-pagina { margin-top: var(--e-2); font-size: var(--t-h1); max-width: 20ch; }
.lead { margin-top: var(--e-3); max-width: 52ch; color: var(--texto-suave); }
.lead strong { color: var(--texto); }

/* Títulos de seção: rótulo coral curto + título. Alinhados à esquerda. */
.rotulo {
  font: 700 var(--t-sm)/1.2 var(--fonte-titulo);
  font-stretch: 85%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--coral-600);
}
.rotulo--neutro { color: var(--texto-suave); } /* título de índice ("Nesta página"), que não abre seção */
.titulo-secao { font-size: var(--t-2xl); margin-top: var(--e-2); }
.titulo-secao + p { margin-top: var(--e-3); color: var(--texto-suave); max-width: 52ch; }

/* Botões. Primário = sol (há um por tela). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2);
  min-height: 3rem; padding: 0.75rem 1.35rem;
  border: 0; border-radius: var(--r-pilula);
  font: 700 var(--t-base)/1.1 var(--fonte-texto);
  text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--facil), box-shadow 160ms var(--facil), background-color 160ms var(--facil);
}
.btn:active { transform: translateY(2px); }
.btn--sol { background: var(--acao); color: var(--mar-950); box-shadow: 0 3px 0 var(--acao-sombra); }
.btn--sol:active { box-shadow: 0 1px 0 var(--acao-sombra); }
.btn--sol:hover { background: var(--sol-300); }
.btn--mar { background: var(--mar-900); color: var(--areia-50); }
.btn--mar:hover { background: var(--mar-700); }
.btn--linha { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 2px currentColor; }
.btn--linha:hover { background: var(--areia-100); }
.btn--bloco { width: 100%; }

.link-seta {
  display: inline-flex; align-items: center; gap: var(--e-1);
  min-height: 2.75rem; font-weight: 700; text-decoration: none;
}
.link-seta .icon { transition: transform 200ms var(--facil); }
.link-seta:hover .icon { transform: translateX(3px); }

/* Canhoto de ingresso: o elemento-assinatura. Picote nas laterais na altura de --picote. */
.canhoto {
  --raio-picote: 0.75rem;
  --picote: 50%;
  position: relative;
  background: var(--superficie);
  border-radius: var(--r-m);
  -webkit-mask:
    radial-gradient(circle var(--raio-picote) at 0 var(--picote), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--raio-picote) at 100% var(--picote), #0000 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--raio-picote) at 0 var(--picote), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--raio-picote) at 100% var(--picote), #0000 98%, #000) right / 51% 100% no-repeat;
}
.canhoto__picote { border: 0; border-top: 2px dashed var(--linha); margin-inline: var(--e-4); }

/* Selos de estado */
.selo {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.3em 0.7em; border-radius: var(--r-pilula);
  font: 700 var(--t-xs)/1 var(--fonte-texto); letter-spacing: 0.02em; text-transform: uppercase;
}
.selo--aberto { background: var(--folha-100); color: var(--folha-600); }
.selo--fechado { background: var(--coral-100); color: var(--coral-600); }
.selo--promo { background: var(--sol-300); color: var(--mar-950); }
.selo::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; }
.selo--promo::before { display: none; }

/* Preço: "de" riscado pequeno, "por" grande */
.preco { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--e-2); font-variant-numeric: tabular-nums; }
.preco__de { color: var(--texto-fraco); font-size: var(--t-sm); text-decoration: line-through; }
.preco__por { font: 800 var(--t-2xl)/1 var(--fonte-titulo); letter-spacing: -0.02em; }
.preco__por small { font-size: 0.5em; font-weight: 700; margin-right: 0.15em; vertical-align: 0.6em; }

/* Chips (filtros) */
.chips { display: flex; gap: var(--e-2); overflow-x: auto; padding-block: var(--e-1); scrollbar-width: none; }
.chip {
  flex: none; min-height: 2.75rem; padding: 0.5rem 1rem;
  border: 2px solid var(--linha); border-radius: var(--r-pilula);
  background: var(--superficie); font-weight: 700; color: var(--texto-suave);
}
.chip[aria-pressed="true"] { background: var(--mar-900); border-color: var(--mar-900); color: var(--areia-50); }

/* Acordeão nativo */
.faq { border-top: 2px solid var(--linha); }
.faq details { border-bottom: 2px solid var(--linha); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--e-4);
  min-height: 3.5rem; padding-block: var(--e-3);
  font: 700 var(--t-lg)/1.25 var(--fonte-titulo); font-stretch: 92%;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 240ms var(--facil);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__corpo { padding-bottom: var(--e-5); color: var(--texto-suave); max-width: 62ch; }
.faq__corpo > * + * { margin-top: var(--e-3); }
.faq__corpo ul { padding-left: 1.2em; }
.faq__corpo li + li { margin-top: var(--e-2); }

/* Tabela de preços simples */
.tabela-precos { width: 100%; border-collapse: collapse; }
.tabela-precos th, .tabela-precos td { text-align: left; vertical-align: top; padding: var(--e-3) 0; border-bottom: 1px solid var(--linha); }
.tabela-precos td:last-child { text-align: right; font: 800 var(--t-lg)/1.2 var(--fonte-titulo); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: var(--e-4); }
.tabela-precos th { font-weight: 700; }
.tabela-precos th small { display: block; font-weight: 400; color: var(--texto-suave); font-size: var(--t-sm); margin-top: var(--e-1); }

/* Pular para o conteúdo */
.pular { position: absolute; left: var(--e-2); top: -4rem; z-index: 100; padding: var(--e-3) var(--e-4); background: var(--mar-900); color: var(--areia-50); border-radius: var(--r-p); }
.pular:focus { top: var(--e-2); }

/* Faixa de aviso */
.aviso { background: var(--mar-900); color: var(--areia-50); font-size: var(--t-sm); font-weight: 600; text-align: center; }
.aviso a { display: flex; align-items: center; justify-content: center; gap: var(--e-2); min-height: 2.75rem; padding: var(--e-2) var(--margem); color: inherit; text-decoration: none; }
.aviso .icon { color: var(--sol-400); }

/* Topo */
.topo { background: var(--fundo); }
.topo__barra { display: flex; align-items: center; justify-content: space-between; gap: var(--e-4); min-height: 4.25rem; }
.topo__logo img { width: auto; height: 2.75rem; }
.topo__nav, .topo__comprar { display: none; }
.topo__menu {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 2px solid var(--linha); border-radius: var(--r-pilula); background: var(--superficie); color: var(--texto);
}
.topo__menu .icon { width: 1.5rem; height: 1.5rem; }

/* Menu (popover) */
.menu {
  inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0;
  border: 0; padding: var(--e-3) var(--margem) calc(var(--e-6) + env(safe-area-inset-bottom));
  background: var(--piscina-900); color: var(--areia-50);
  overflow-y: auto;
}
.menu:popover-open { display: flex; flex-direction: column; animation: menu-entra 280ms var(--facil); }
@keyframes menu-entra { from { opacity: 0; transform: translateY(-0.75rem); } }
.menu__topo { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; }
.menu__logo { height: 2.75rem; width: auto; filter: brightness(0) invert(96%) sepia(8%) saturate(300%); }
.menu__fechar { display: grid; place-items: center; width: 3rem; height: 3rem; border: 2px solid oklch(100% 0 0 / 0.25); border-radius: var(--r-pilula); background: transparent; color: inherit; }
.menu__fechar .icon { width: 1.5rem; height: 1.5rem; }
.menu__lista { margin-top: var(--e-5); }
.menu__lista a {
  display: block; padding: var(--e-3) 0;
  font: 800 var(--t-2xl)/1.1 var(--fonte-titulo); color: inherit; text-decoration: none;
}
.menu__lista a[aria-current="page"] { color: var(--sol-400); }
.menu__contato { margin-top: auto; padding-top: var(--e-6); display: grid; gap: var(--e-2); }
.menu__contato a { display: flex; align-items: center; gap: var(--e-3); min-height: 3rem; color: inherit; font-weight: 600; text-decoration: none; }

/* Ação fixa no rodapé da tela (polegar) */
.acao-fixa {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: flex; gap: var(--e-3); align-items: center;
  padding: var(--e-3) var(--margem) calc(var(--e-3) + env(safe-area-inset-bottom));
  background: var(--fundo);
  border-top: 1px solid var(--linha);
}
/* app.js recolhe a barra enquanto um botão sol do conteúdo aparece inteiro na tela (um botão sol por tela) */
.acao-fixa { transition: transform 260ms var(--facil), visibility 260ms; }
.acao-fixa[data-recolhida] { transform: translateY(100%); visibility: hidden; }
.acao-fixa__comprar { flex: 1; }
.acao-fixa__whats {
  display: grid; place-items: center; flex: none; width: 3rem; height: 3rem;
  border-radius: var(--r-pilula); background: var(--folha-600); color: var(--areia-50);
}
.acao-fixa__whats .icon { width: 1.5rem; height: 1.5rem; }

/* Consentimento LGPD: barra baixa, acima da ação fixa */
.consentimento {
  position: fixed; inset: auto var(--e-2) calc(var(--altura-acao-fixa) + env(safe-area-inset-bottom) + var(--e-2)) var(--e-2); z-index: 41;
  padding: var(--e-4); border-radius: var(--r-m);
  background: var(--mar-900); color: var(--areia-50); font-size: var(--t-sm);
}
.consentimento a { color: var(--sol-300); }
.consentimento__botoes { display: flex; gap: var(--e-2); margin-top: var(--e-3); }
.consentimento__botoes .btn { flex: 1; min-height: 2.75rem; }
.consentimento .btn--linha { color: var(--areia-50); }
.consentimento .btn--linha:hover { background: var(--mar-700); }
.consentimento .btn--mar { background: var(--sol-400); color: var(--mar-950); }

/* Rodapé. O espaço da ação fixa fica dentro dele, para o fim da página ser azul e não areia. */
.rodape {
  background: var(--mar-900); color: var(--areia-100); font-size: var(--t-sm);
  padding-block: var(--e-7) calc(var(--e-5) + var(--altura-acao-fixa) + env(safe-area-inset-bottom));
}
.rodape a { color: inherit; text-decoration: none; }
.rodape a:hover { text-decoration: underline; }
.rodape__grade { display: grid; gap: var(--e-6); }
.rodape__logo { height: 3rem; width: auto; filter: brightness(0) invert(96%) sepia(8%) saturate(300%); }
.rodape__marca p { display: flex; gap: var(--e-2); margin-top: var(--e-4); max-width: 34ch; }
.rodape__titulo { font-size: var(--t-lg); color: var(--sol-400); margin-bottom: var(--e-3); }
.rodape nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--e-4); }
.rodape li a { display: inline-flex; align-items: center; gap: var(--e-2); min-height: 2.75rem; }
.rodape__redes { display: flex; gap: var(--e-2); margin-top: var(--e-2); }
.rodape__redes a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 2px solid var(--mar-700); border-radius: var(--r-pilula); }
.rodape__legal { margin-top: var(--e-6); padding-top: var(--e-4); border-top: 1px solid var(--mar-700); color: var(--areia-300); font-size: var(--t-xs); }

@media (min-width: 48rem) {
  .lead { font-size: var(--t-lg); line-height: 1.45; }
}

/* Desktop: navegação no topo, ação fixa some */
@media (min-width: 64rem) {
  :root { --margem: 2rem; --altura-acao-fixa: 0rem; }
  .acao-fixa, .topo__menu { display: none; }
  .topo__logo { flex: none; }
  .topo__nav { display: block; margin-left: auto; }
  .topo__nav ul { display: flex; gap: var(--e-1); }
  .topo__nav a { display: block; padding: var(--e-2) var(--e-3); border-radius: var(--r-pilula); font-weight: 600; color: var(--texto); text-decoration: none; }
  .topo__nav a:hover { background: var(--areia-100); }
  .topo__nav a[aria-current="page"] { background: var(--mar-900); color: var(--areia-50); }
  .topo__comprar { display: inline-flex; }
  .topo__logo img { height: 3.25rem; }
  .rodape__grade { grid-template-columns: 1.4fr 1fr 1fr; }
  .rodape nav ul { grid-template-columns: none; }
  .topo-pagina { padding-top: var(--e-7); }
}

/* Entre 1024 e 1279 px os seis links, o logo e o botão dividem a mesma linha: tudo um pouco mais justo. */
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .topo__barra { gap: var(--e-3); }
  .topo__logo img { height: 2.75rem; }
  .topo__nav ul { gap: 0; }
  .topo__nav a { padding-inline: var(--e-2); font-size: var(--t-sm); }
  .topo__comprar { padding-inline: var(--e-4); font-size: var(--t-sm); }
}
