/* ==========================================================================
   Fabi Quintanilha Pilates — landing page
   Mobile first. Cores provisórias: troque só os tokens abaixo.
   ========================================================================== */

/* Fonte hospedada aqui (sem pedir nada ao Google: melhor para a LGPD e mais rápido) */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --petrol: #17453f;
  --petrol-900: #0f302c;
  --mist: #eef4f1;
  --amber: #e7b65a;
  --amber-600: #d9a23e;
  --ink: #1b2b28;
  --muted: #40554f;
  --line: #d3e1da;
  --white: #fff;
  --wa: #1fa855;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(23, 69, 63, 0.05), 0 18px 40px -18px rgba(23, 69, 63, 0.3);
  --header-h: 76px;
  --container: 1160px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Reset enxuto ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* evita barra lateral durante as animações de entrada */
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { color: var(--petrol); line-height: 1.15; letter-spacing: -0.01em; }
h1, h2 { font-weight: 400; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.85rem, 5vw, 2.8rem); }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }

/* Frase em destaque dentro dos títulos */
.hl {
  font-weight: 700; color: var(--petrol); padding-inline: 0.06em;
  background: linear-gradient(transparent 64%, rgba(231, 182, 90, 0.55) 64% 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Textos que ainda precisam ser preenchidos */
.todo {
  padding: 0 0.25em; border-radius: 4px; font-style: normal;
  background: rgba(231, 182, 90, 0.3); border-bottom: 2px dotted var(--amber-600);
}

/* Anel de foco escuro (3:1 ou mais sobre o fundo claro); branco nas áreas escuras */
:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 6px;
}
.strip :focus-visible, .contact :focus-visible, .site-footer :focus-visible, .mission :focus-visible { outline-color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--petrol); color: var(--white);
  border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.3em; height: 1.3em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Layout ------------------------------------------------------------------ */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 820px); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--mist { background: var(--mist); }

.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.section-head__lead { margin-top: 0.75rem; color: var(--muted); }

.subhead { text-align: center; font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem; }

.section-cta, .section-link { text-align: center; margin-top: clamp(2rem, 5vw, 2.75rem); }
.section-link a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px;
  font-weight: 700; color: var(--petrol);
  text-decoration: underline; text-decoration-color: var(--amber);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.section-link a:hover { text-decoration-color: var(--petrol); }

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.75rem 1.5rem;
  font-size: 1.0625rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: var(--petrol-900); box-shadow: 0 8px 20px -10px rgba(185, 130, 20, 0.7); }
.btn--primary:hover { background: var(--amber-600); }
.btn--outline { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn--outline:hover { background: var(--petrol); color: var(--white); }
.btn--lg { min-height: 60px; padding-inline: 1.9rem; font-size: 1.15rem; }
.btn--sm { min-height: 48px; padding: 0.5rem 1.1rem; font-size: 1rem; }

/* 1. Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 48, 44, 0.45); }

/* Barra de progresso de leitura (valor --p vem do main.js) */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px;
  background: var(--amber); transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  pointer-events: none;
}

.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 58px; width: auto; }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.cta-long { display: none; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: var(--mist); border: 0; border-radius: 12px; cursor: pointer; color: var(--petrol);
}
.menu-toggle .icon { width: 28px; height: 28px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* Menu mobile: painel abaixo do header (só some quando há JS) */
.js .nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; padding: 0.5rem 1rem 1.25rem;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -20px rgba(15, 48, 44, 0.5);
}
.js .nav.is-open { display: block; }
.nav ul { display: flex; flex-direction: column; }
.nav a {
  display: flex; align-items: center; min-height: 56px; padding: 0 0.5rem;
  font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav li:last-child a { border-bottom: 0; }
.nav a:hover { color: var(--petrol); background: var(--mist); }
.nav a[aria-current="true"] { color: var(--petrol); font-weight: 800; background: var(--mist); box-shadow: inset 4px 0 0 var(--amber); }

/* 2. Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; padding-block: 2rem 3.5rem;
  /* ocupa a tela inteira abaixo do menu; o conteúdo fica centralizado na vertical */
  display: flex; align-items: center; min-height: calc(100svh - var(--header-h));
  background: linear-gradient(180deg, var(--mist) 0%, #f7faf8 100%);
}
/* Marca d'água: o símbolo do logo, bem suave, atrás do conteúdo */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -22%; top: 3%; width: min(95vw, 520px); aspect-ratio: 640 / 790;
  background: url("../assets/marca-petroleo.png") center / contain no-repeat; opacity: 0.05;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; }
.hero__text h1 { margin-bottom: 1.25rem; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }

.hero__actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.75rem; }
.hero__actions .btn { width: 100%; }

.badges { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.75rem; }
.badges li { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--petrol); }
.badges .icon {
  width: 28px; height: 28px; padding: 5px; border-radius: 50%;
  background: var(--amber); color: var(--petrol-900); stroke-width: 3;
}

.hero__media { position: relative; }
.hero__photo { aspect-ratio: 1 / 1; }
.hero__photo, .about__photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
/* Detalhe: pontinhos crescentes, inspirados na coluna do logo */
.hero__media::before {
  content: ""; position: absolute; z-index: 2; right: -14px; top: 36px; width: 32px; height: 132px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 132'%3E%3Cg fill='%23E7B65A'%3E%3Ccircle cx='16' cy='7' r='3'/%3E%3Ccircle cx='16' cy='25' r='4.5'/%3E%3Ccircle cx='16' cy='48' r='6'/%3E%3Ccircle cx='16' cy='76' r='7.5'/%3E%3Ccircle cx='16' cy='108' r='9'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* 3. Faixa de diferenciais ------------------------------------------------ */
.strip { background: var(--petrol); color: var(--white); padding-block: 2.75rem; }
.strip__grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.strip__grid li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
.strip__icon {
  grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; border: 2px solid var(--amber); color: var(--amber);
}
.strip__icon .icon { width: 28px; height: 28px; }
.strip__title { color: var(--white); font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
.strip__grid p { font-size: 1rem; color: rgba(255, 255, 255, 0.88); }

/* Cards (Para quem / Resultados) ------------------------------------------ */
.cards { display: grid; gap: 1rem; }
.card {
  padding: 1.5rem; background: var(--mist);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.cards--white .card { background: var(--white); }
.card h3 { margin: 1rem 0 0.5rem; }
.card p { color: var(--muted); }
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--petrol); }
.card__icon .icon { width: 44px; height: 44px; stroke-width: 1.5; }
.card__icon--amber { width: 64px; height: 64px; border-radius: 50%; background: rgba(231, 182, 90, 0.3); }
.card__icon--amber .icon { width: 32px; height: 32px; stroke-width: 1.7; }
/* "Para quem é": ícone e textos centralizados dentro de cada bloco */
.cards:not(.cards--white) .card { text-align: center; }
.cards:not(.cards--white) .card__icon { margin-inline: auto; }
.card--row { display: flex; gap: 1rem; align-items: flex-start; }
.card--row h3 { margin-top: 0; }
.card--row .card__icon { flex: none; }

/* "Resultados": os 4 benefícios ficam só escritos, sem caixa, centralizados e com ícone em cima */
.cards--white { gap: 2.25rem 1.5rem; }
.cards--white .card { padding: 0 0.5rem; background: none; border: 0; border-radius: 0; }
.cards--white .card--row { flex-direction: column; align-items: center; gap: 0.9rem; text-align: center; }
.cards--white .card--row h3 { margin: 0 0 0.5rem; }
@media (min-width: 960px) {
  .cards--white { gap: 0; }
  .cards--white .card { padding: 0.25rem 1.5rem; }
  .cards--white .card + .card { border-left: 1px solid var(--line); } /* fio fino entre um item e outro */
}

/* 5. Como funciona -------------------------------------------------------- */
.steps { display: grid; gap: 2rem; max-width: 36rem; margin-inline: auto; }
.step { position: relative; min-height: 56px; padding: 0.25rem 0 0 5rem; }
.step__num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--white); border: 2px solid var(--petrol); color: var(--petrol);
  font-size: 1.5rem; font-weight: 500; line-height: 1;
}
/* Linha que liga um passo ao próximo */
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 27px; top: 64px; bottom: -24px; width: 2px;
  background: rgba(23, 69, 63, 0.25);
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--muted); }

/* Fotos (o enquadramento de cada uma vem de --pos, no próprio <img>) */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.media.hero__photo, .media.about__photo { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.media__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 0.8rem;
  font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: var(--white);
  /* escurece o bastante para o texto branco manter 4.5:1 mesmo sobre foto muito clara */
  background: linear-gradient(rgba(15, 48, 44, 0), rgba(15, 48, 44, 0.6) 35%, rgba(15, 48, 44, 0.88));
}

/* 6. Studio --------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.gallery > :first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery > :not(:first-child) { aspect-ratio: 1 / 1; }
.gallery > :not(:first-child) figcaption { font-size: 0.95rem; }
/* Foto alta (aluna sendo orientada): ocupa duas linhas, para não ser cortada num quadrado */
.gallery > .gallery__tall { grid-row: span 2; aspect-ratio: auto; }

/* Instagram --------------------------------------------------------------- */
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.insta-grid a { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--mist); }
.insta-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.insta-grid a::after { content: ""; position: absolute; inset: 0; background: rgba(15, 48, 44, 0); transition: background 0.25s; }
.insta-grid__ig {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  color: var(--white); opacity: 0; transition: opacity 0.25s;
}
.insta-grid__ig .icon { width: 34px; height: 34px; }
.insta-grid a:hover img, .insta-grid a:focus-visible img { transform: scale(1.06); }
.insta-grid a:hover::after, .insta-grid a:focus-visible::after { background: rgba(15, 48, 44, 0.45); }
.insta-grid a:hover .insta-grid__ig, .insta-grid a:focus-visible .insta-grid__ig { opacity: 1; }

/* 7. Resultados ----------------------------------------------------------- */
/* Depoimentos: carrossel de cartões empilhados (js/testimonials.js).
   Sem JavaScript os cartões aparecem como uma lista simples. */
.tcar__stage { display: grid; gap: 1rem; }
.tcar__card {
  position: relative; margin: 0; padding: 1.75rem 1.6rem 1.5rem; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -22px rgba(15, 48, 44, 0.35);
}
/* aspas grandes e suaves, só decoração, no canto */
.tcar__mark { position: absolute; right: 1.1rem; top: -0.6rem; font-size: 7rem; line-height: 1; font-weight: 800; color: var(--amber); opacity: 0.28; pointer-events: none; }
.tcar__content { position: relative; display: flex; flex-direction: column; gap: 1.1rem; }
.tcar__content blockquote { margin: 0; font-size: 1.2rem; font-style: italic; line-height: 1.55; color: var(--ink); }
/* quem escreveu: aparece em cima do texto (no HTML vem depois, para leitores de tela lerem o comentário primeiro) */
.tcar__author { order: -1; display: flex; align-items: center; gap: 0.8rem; margin: 0; }
.tcar__avatar {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  color: var(--white); background: var(--petrol); font-size: 1.3rem; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--amber);
}
.tcar__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tcar__who strong { color: var(--petrol); font-size: 1.02rem; overflow-wrap: anywhere; }
.tcar__src { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.15rem; font-size: 0.9rem; color: var(--muted); }
.tcar__src .icon { width: 1.05em; height: 1.05em; }
.tcar__shade { position: absolute; inset: 0; border-radius: inherit; background: var(--mist); opacity: 0; pointer-events: none; }

/* Com JavaScript: os cartões ficam uns sobre os outros e o JS os espalha para os lados */
.tcar.is-ready { outline-offset: 4px; }
.tcar.is-ready .tcar__stage {
  justify-items: center; align-items: stretch; /* todos os cartões com a altura do maior */
  padding: 2.5rem 0 5rem; overflow: hidden; /* folga embaixo: os cartões laterais descem e giram */
  touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
}
.tcar.is-ready .tcar__stage.is-dragging { cursor: grabbing; }
.tcar.is-ready .tcar__card {
  grid-area: 1 / 1; width: 17.5rem; min-height: 15.5rem;
  display: flex; flex-direction: column; justify-content: center; will-change: transform, opacity;
}
.tcar__controls { position: relative; display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 0.25rem; }
/* O "1 de 4" não aparece na tela, mas continua sendo anunciado por leitores de tela quando o depoimento muda */
.tcar__count { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tcar__btn {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; cursor: pointer;
  color: var(--petrol); background: var(--white); border: 2px solid var(--petrol); border-radius: 50%;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.tcar__btn:hover { color: var(--white); background: var(--petrol); }
.tcar__btn:active { transform: scale(0.94); }
.tcar__btn .icon { width: 24px; height: 24px; }
.tcar__btn--prev .icon { transform: rotate(180deg); }
/* Celular e tablet: o carrossel ocupa a largura inteira da tela (sai das margens do conteúdo),
   para os cartões dos lados irem até a borda em vez de serem cortados antes */
@media (max-width: 1023px) {
  .tcar { margin-inline: -1rem; } /* 1rem = a margem lateral do .container, então fica exatamente na largura da tela */
}
@media (min-width: 640px) { .tcar.is-ready .tcar__card { width: 22rem; } }
@media (min-width: 1024px) { .tcar.is-ready .tcar__card { width: 25rem; min-height: 16.5rem; } }
@media (min-width: 960px) { html:not(.js) .tcar__stage { grid-template-columns: repeat(3, 1fr); } }

/* 8. Quem cuida ----------------------------------------------------------- */
.about { display: grid; gap: 2rem; align-items: center; }
.about__photo { aspect-ratio: 4 / 5; max-width: 440px; width: 100%; margin-inline: auto; }
.about__role { margin: 0.6rem 0 1.25rem; font-size: 1.2rem; font-weight: 600; color: var(--muted); }

/* Currículo: experiência em destaque, depois formação em Pilates, cursos e formação acadêmica */
.about__lead { margin-bottom: 1.25rem; font-size: 1.15rem; line-height: 1.6; color: var(--ink); }
.about__exp { margin-bottom: 0.5rem; font-size: 1.3rem; color: var(--petrol); }
.about__exp .hl { font-size: 1.5rem; }
.cv { margin-top: 1.4rem; }
.cv h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.cv p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  padding: 0.45rem 0.95rem; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--petrol);
  background: var(--mist); border: 1px solid var(--line); border-radius: 999px;
}
.cv__list { display: grid; gap: 0.75rem; }
.cv__list li { color: var(--muted); line-height: 1.5; }
.cv__list strong { color: var(--petrol); }
/* Missão: sem fundo; só o filete amarelo ao lado e o texto em verde-petróleo */
.mission {
  margin-top: 1.75rem; padding: 0.25rem 0 0.25rem 1.5rem;
  color: var(--petrol); border-left: 5px solid var(--amber);
}
.mission__label { font-size: 1.25rem; font-weight: 700; color: var(--petrol); }
.mission__text { margin-top: 0.4rem; font-size: 1.2rem; font-weight: 600; line-height: 1.5; }

/* 9. FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq details[open] { border-color: var(--petrol); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: 0.9rem 1.25rem; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.1rem; color: var(--petrol); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 3px solid var(--petrol); border-bottom: 3px solid var(--petrol);
  transform: rotate(45deg); transition: transform 0.2s; margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq__answer { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq__answer a { color: var(--petrol); font-weight: 700; }

/* 10. Contato ------------------------------------------------------------- */
.contact {
  position: relative; overflow: hidden; color: var(--white);
  padding-block: clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(120% 80% at 90% 0%, rgba(72, 188, 123, 0.18), transparent 60%),
    linear-gradient(140deg, #1c5249 0%, #123a35 100%);
}
.contact::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: -14%; bottom: -12%; width: min(90vw, 520px); aspect-ratio: 640 / 790;
  background: url("../assets/marca-branca.png") center / contain no-repeat; opacity: 0.05;
}
.contact__wrap { position: relative; z-index: 1; }
.contact__head { margin-bottom: clamp(2rem, 5vw, 3.25rem); text-align: center; }
.contact__grid { display: grid; gap: 2.5rem; }
.contact h2 { color: var(--white); }
.contact .hl { color: var(--amber); background: none; }
.contact__lead { margin: 0 0 1.75rem; max-width: 34rem; color: rgba(255, 255, 255, 0.92); font-size: 1.15rem; }
.contact .btn { width: 100%; }

.contact__list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 50%; background: var(--amber); color: var(--petrol-900);
}
.contact__label { font-size: 0.95rem; font-weight: 700; color: #f4d08a; line-height: 1.3; } /* âmbar mais claro: 5.9:1 sobre o verde do fundo */
.contact__list a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.5); word-break: break-word; }
.contact__list a:hover { text-decoration-color: var(--amber); }

.contact__map { display: flex; flex-direction: column; gap: 0.75rem; }
.contact__map iframe {
  width: 100%; min-height: 340px; flex: 1; border: 0;
  border-radius: var(--radius); background: var(--mist);
}
.contact__map-link { align-self: center; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; font-weight: 700; color: var(--white); }

/* 11. Rodapé -------------------------------------------------------------- */
.site-footer { background: var(--petrol-900); color: rgba(255, 255, 255, 0.9); padding: 2.25rem 0 5.5rem; font-size: 1rem; }
.footer__grid { display: grid; gap: 1.5rem; align-items: start; }
.footer__brand img { width: 150px; height: auto; margin-bottom: 0.75rem; }
.footer__title { margin-bottom: 0.5rem; font-weight: 800; color: var(--amber); }
.site-footer .todo { background: rgba(231, 182, 90, 0.25); border-bottom-color: var(--amber); }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer__nav { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 2.5rem; }
.site-footer li a:hover { text-decoration: underline; }

/* Redes: botões redondos só com o ícone */
.footer__social { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.site-footer .footer__social a {
  display: grid; place-items: center; width: 56px; height: 56px; min-height: 0;
  color: #48bc7b; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.site-footer .footer__social a:hover { color: var(--petrol-900); background: #48bc7b; border-color: #48bc7b; text-decoration: none; transform: translateY(-2px); }
.footer__social .icon { width: 28px; height: 28px; }
/* O logo do WhatsApp ocupa a caixa toda; o do Instagram tem margem. Esse ajuste iguala o peso visual. */
.footer__social .icon--wa { width: 26px; height: 26px; }
.footer__legal { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); text-align: center; }
.footer__legal p a { font-weight: 700; color: var(--white); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.footer__legal p a:hover { color: var(--amber); }

/* 12. WhatsApp flutuante -------------------------------------------------- */
.wa-float {
  position: fixed; z-index: 60;
  right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 60px; height: 60px;
  background: var(--wa); color: var(--white); border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(15, 48, 44, 0.6);
  transition: transform 0.2s, background-color 0.2s;
}
.wa-float:hover { transform: translateY(-3px); background: #18924a; }
.wa-float .icon { width: 34px; height: 34px; }

/* Pulso suave: o anel cresce só 16px, menos que a margem da tela, então nunca sai do viewport */
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: wa-pulse 2.6s ease-out infinite; }
  .wa-float:hover { animation: none; }
  @keyframes wa-pulse {
    0% { box-shadow: 0 10px 24px -8px rgba(15, 48, 44, 0.6), 0 0 0 0 rgba(31, 168, 85, 0.55); }
    70%, 100% { box-shadow: 0 10px 24px -8px rgba(15, 48, 44, 0.6), 0 0 0 16px rgba(31, 168, 85, 0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Animações ao rolar ------------------------------------------------------
   Só valem com JS ligado e sem "reduzir movimento" no sistema.
   data-reveal="up|left|right|zoom" anima o elemento;
   data-reveal-group anima os filhos diretos, um depois do outro. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="left"] { --rv-x: -36px; --rv-y: 0px; }
  [data-reveal="right"] { --rv-x: 36px; --rv-y: 0px; }
  [data-reveal="zoom"], [data-reveal-group="zoom"] > * { --rv-y: 14px; --rv-s: 0.95; }

  [data-reveal-group] > :nth-child(2) { --d: 0.1s; }
  [data-reveal-group] > :nth-child(3) { --d: 0.2s; }
  [data-reveal-group] > :nth-child(4) { --d: 0.3s; }
  [data-reveal-group] > :nth-child(5) { --d: 0.4s; }
  [data-reveal-group] > :nth-child(n + 6) { --d: 0.5s; }

  .js:not(.no-reveal) :is([data-reveal], [data-reveal-group] > *) {
    opacity: 0;
    transform: translate3d(var(--rv-x, 0), var(--rv-y, 28px), 0) scale(var(--rv-s, 1));
  }
  .js:not(.no-reveal) :is([data-reveal], [data-reveal-group] > *).in-view {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.7s ease-out var(--d, 0s),
      transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
  }

  /* Número do passo "salta" um instante depois do card aparecer */
  .js:not(.no-reveal) .step__num { transform: scale(0.5); }
  .js:not(.no-reveal) .step.in-view .step__num {
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.3, 1.7, 0.5, 1) calc(var(--d, 0s) + 0.25s);
  }
}
/* No celular os blocos lado a lado ficam empilhados: entram de baixo. */
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) {
  [data-reveal="left"], [data-reveal="right"] { --rv-x: 0px; --rv-y: 28px; }
}

/* ==========================================================================
   Telas maiores
   ========================================================================== */
@media (min-width: 520px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; }
  .contact .btn { width: auto; }
  .cta-long { display: inline; }
  .cta-short { display: none; }
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }

  .site-footer { padding-bottom: 1.75rem; }
}

@media (min-width: 960px) {
  .hero { padding-block: 3rem; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
  /* a foto mantém a largura da coluna; em telas baixas só fica menos alta, para o hero caber na tela */
  .hero__photo { aspect-ratio: auto; height: clamp(460px, calc(100svh - var(--header-h) - 6.5rem), 650px); }
  .badges { flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.75rem; }

  .strip__grid { grid-template-columns: repeat(4, 1fr); }
  .strip__grid li { grid-template-columns: 1fr; row-gap: 0.75rem; }
  .strip__icon { grid-row: auto; }

  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .insta-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .steps { grid-template-columns: repeat(5, 1fr); max-width: none; }
  .step { padding: 0; text-align: center; }
  .step__num { position: static; margin: 0 auto 1.25rem; }
  .step:not(:last-child)::after { left: calc(50% + 40px); top: 27px; bottom: auto; width: calc(100% + 2rem - 80px); height: 2px; }

  .hero::before { right: auto; left: -3%; top: 50%; transform: translateY(-50%); width: 560px; }

  /* Computador: botão do WhatsApp mais afastado do canto */
  .wa-float { right: 2.5rem; bottom: 2.5rem; width: 64px; height: 64px; }
  .wa-float .icon { width: 36px; height: 36px; }

  /* 5 colunas: a foto grande (2x2), a foto alta (1x2) e as 4 pequenas (2x2) */
  .gallery { grid-template-columns: repeat(5, 1fr); grid-auto-rows: clamp(200px, 19vw, 250px); gap: 1rem; }
  .gallery > :first-child { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
  .gallery > .gallery__tall { grid-column: 3; grid-row: 1 / 3; }
  .gallery > :not(:first-child) { aspect-ratio: auto; }
  .gallery > :not(:first-child) figcaption { font-size: 1rem; }

  .about { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: stretch; }
  .contact__map iframe { min-height: 460px; }
}

/* Telas de notebook mais baixas: menos folga em cima e embaixo para o hero caber inteiro */
@media (min-width: 960px) and (max-height: 760px) {
  .hero { padding-block: 1.25rem; }
}

/* Menu desktop */
@media (min-width: 1080px) {
  :root { --header-h: 84px; }
  .brand img { height: 64px; }
  .menu-toggle { display: none; }

  .js .nav { position: static; display: block; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav ul { flex-direction: row; gap: 0.25rem; }
  .nav a { min-height: 48px; padding: 0 0.85rem; font-size: 1.05rem; border: 0; border-radius: 10px; }
  .nav a[aria-current="true"] { font-weight: 700; background: none; border-radius: 10px 10px 0 0; box-shadow: inset 0 -3px 0 var(--amber); }
}

/* ==========================================================================
   Cookies, mapa com consentimento, avisos de LGPD e páginas legais
   ========================================================================== */

/* Aviso de cookies */
.cookie-banner {
  position: fixed; z-index: 80; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-width: 760px;
  padding: 1.25rem; font-size: 1rem; line-height: 1.55; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(15, 48, 44, 0.55);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { margin-bottom: 0.35rem; font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
.cookie-banner p a { color: var(--petrol); font-weight: 700; }
.cookie-banner__actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.cookie-banner__actions .btn { width: 100%; }
.cookie-banner__link {
  min-height: 48px; padding: 0 0.5rem; font-size: 1.0625rem; font-weight: 700; color: var(--petrol);
  background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
@media (min-width: 640px) {
  /* centralizado na base da tela (720px não encosta no botão do WhatsApp, que fica à direita) */
  .cookie-banner { left: 0; right: 0; bottom: 1.5rem; width: min(720px, calc(100% - 3rem)); max-width: none; margin-inline: auto; }
  .cookie-banner__actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cookie-banner__actions .btn { width: auto; }
}
/* No celular o aviso ocupa a base da tela: o botão do WhatsApp espera ele ser respondido */
@media (max-width: 959px) { body.has-cookie-banner .wa-float { opacity: 0; pointer-events: none; } }

/* Preferências (janela) */
.cookie-prefs {
  width: min(640px, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0;
  color: var(--ink); background: var(--white); border: 0; border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}
.cookie-prefs::backdrop { background: rgba(15, 48, 44, 0.65); }
.cookie-prefs__form { display: flex; flex-direction: column; max-height: calc(100dvh - 1.5rem); }
.cookie-prefs__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cookie-prefs__head h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: 0; }
.cookie-prefs__close { width: 48px; height: 48px; font-size: 2rem; line-height: 1; color: var(--petrol); background: var(--mist); border: 0; border-radius: 50%; cursor: pointer; }
.cookie-prefs__body { padding: 1rem 1.25rem; overflow-y: auto; }
.cookie-prefs__body > p { color: var(--muted); }
.cookie-prefs__actions { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) {
  .cookie-prefs__actions { flex-direction: row; flex-wrap: wrap; }
  .cookie-prefs__actions .btn { flex: 1 1 auto; }
}
.ck-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ck-row:last-child { border-bottom: 0; }
.ck-row__title { display: block; font-size: 1.1rem; font-weight: 700; color: var(--petrol); }
.ck-row p { margin-top: 0.2rem; font-size: 1rem; color: var(--muted); }

.switch { position: relative; flex: none; width: 56px; height: 32px; margin-top: 0.15rem; }
.switch input { position: absolute; inset: -8px; z-index: 1; width: calc(100% + 16px); height: calc(100% + 16px); margin: 0; opacity: 0; cursor: pointer; }
.switch__ui { position: absolute; inset: 0; border-radius: 999px; background: #667a74; transition: background-color 0.2s; }
.switch__ui::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); transition: transform 0.2s; }
.switch input:checked + .switch__ui { background: var(--petrol); }
.switch input:checked + .switch__ui::after { transform: translateX(24px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch__ui { opacity: 0.6; }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--petrol); outline-offset: 3px; }

/* Mapa: só carrega depois do consentimento (ou do clique em "Carregar mapa") */
.map-box { position: relative; flex: 1; min-height: 340px; overflow: hidden; background: var(--mist); border-radius: var(--radius); }
.map-box iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: 0; }
.map__consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 340px; padding: 1.5rem; text-align: center; color: var(--ink); }
.map__consent p { max-width: 32ch; }
@media (min-width: 960px) { .map-box, .map-box iframe, .map__consent { min-height: 460px; } }

/* Aviso de LGPD no contato e links legais do rodapé */
.contact__lgpd { max-width: 34rem; margin-top: 1rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }
.contact__lgpd a { font-weight: 700; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; margin-bottom: 0.5rem; }
.footer__legal-links a, .footer__legal-links button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; font: inherit; color: var(--white);
  background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 4px;
}
.footer__legal-links a:hover, .footer__legal-links button:hover { color: var(--amber); text-decoration-color: var(--amber); }

/* Páginas legais (política e termos) */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); }
.legal__inner { width: min(100% - 2rem, 800px); margin-inline: auto; }
.legal h1 { margin-bottom: 0.5rem; font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; }
.legal__meta { margin-bottom: 2rem; color: var(--muted); }
.legal h2 { margin: 2.5rem 0 0.75rem; font-size: clamp(1.35rem, 3.5vw, 1.7rem); font-weight: 700; letter-spacing: -0.01em; }
.legal h3 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; }
.legal p { margin-bottom: 1rem; line-height: 1.75; }
.legal ul, .legal ol { margin: 0 0 1rem 1.25rem; list-style: revert; }
.legal li { margin-bottom: 0.4rem; line-height: 1.7; }
.legal a { font-weight: 600; color: var(--petrol); text-decoration: underline; text-underline-offset: 3px; }
.legal__toc { margin-bottom: 2rem; padding: 1.25rem 1.5rem; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
.legal__toc ol { margin: 0.5rem 0 0 1.25rem; }
.legal__note { margin: 1.5rem 0; padding: 1rem 1.25rem; background: #fff7e3; border-left: 5px solid var(--amber); border-radius: var(--radius-sm); }
.legal__table { margin: 1rem 0 1.5rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1rem; }
.legal th, .legal td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { color: var(--petrol); background: var(--mist); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.legal-footer { padding: 2rem 0; font-size: 1rem; color: rgba(255, 255, 255, 0.9); background: var(--petrol-900); }
.cookie-inline { padding: 0; font: inherit; font-weight: 700; color: var(--petrol); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.legal-footer .footer__legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* Celular e tablet: cabeçalho só com o logo, centralizado (sem o botão "Agendar" e sem o menu de 3 linhas).
   Fica só no alto da página (não acompanha a rolagem) e tem a mesma cor do fundo do hero, com o logo nas cores originais.
   No computador (a partir de 1080px) o menu completo e o botão continuam.
   Para voltar ao menu no celular, apague este bloco ou a classe "site-header--center" do <header> no index.html. */
@media (max-width: 1079px) {
  .site-header--center .header__actions, .site-header--center .nav, .site-header--center .scroll-progress { display: none !important; }
  .site-header--center .header__bar { justify-content: center; }
  .site-header--center {
    position: relative;            /* rola junto com a página, em vez de ficar preso no topo */
    background: var(--mist);       /* igual ao começo do fundo do hero: sem corte entre os dois */
    border-bottom: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* Celular e tablet: título e texto do início centralizados (no computador ficam à esquerda, ao lado da foto) */
@media (max-width: 959px) {
  .hero__text h1, .hero__lead { text-align: center; }
  .hero__lead { margin-inline: auto; }
}

/* Celular e tablet: "Quem cuida de você" centralizado (no computador fica à direita da foto, alinhado à esquerda).
   Na missão, o filete amarelo do lado vira um traço curto em cima, que combina com o texto centralizado. */
@media (max-width: 959px) {
  .about__text { text-align: center; }
  .chips { justify-content: center; }
  .mission { padding: 0; border-left: 0; }
  .mission::before { content: ""; display: block; width: 48px; height: 4px; margin: 0 auto 1rem; background: var(--amber); border-radius: 4px; }
}

/* Celular: rodapé todo centralizado (logo, "Responsável técnica", "Navegue", "Fale com a gente" e os botões)
   (a partir de 640px o rodapé vira 3 colunas, cada uma alinhada à esquerda) */
@media (max-width: 639px) {
  .footer__grid { text-align: center; }
  .footer__brand img { margin-inline: auto; }
  .footer__nav { justify-content: center; }
  .footer__social { justify-content: center; }
}
.nowrap { white-space: nowrap; } /* evita quebrar "CREFITO-3" em duas linhas */
