/* ==========================================================================
   Dra. Flávia Lira: Odontologia (v2)
   Mobile-first. Cores da marca: azul-marinho do logo + azul do "sorriso".
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy: #24344a;
  --navy-deep: #16212f;
  --blue: #4fa9d0;
  --blue-light: #9fd3ea;
  --blue-ink: #1d6a90;      /* azul para texto sobre fundo claro (contraste AA) */
  --sky: #eaf5fb;
  --sky-2: #d7ecf6;
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #24344a;
  --muted: #536276;
  --line: #dde6ee;
  --wa: #128c4a;            /* verde WhatsApp escurecido para contraste com texto branco */
  --wa-hover: #0e7a40;
  --pending-bg: #fff3b0;
  --pending-text: #6b4e00;

  --radius: 28px;
  --shadow: 0 18px 40px -18px rgba(22, 33, 47, .35);
  --shadow-sm: 0 6px 18px -8px rgba(22, 33, 47, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1200px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--bg); overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 9vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--blue); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Placeholder visível de conteúdo pendente: remover quando preenchido */
.pendente {
  display: inline; background: var(--pending-bg); color: var(--pending-text);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em;
  padding: 1px 6px; border-radius: 6px; border: 1px dashed #c9a400; overflow-wrap: anywhere;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(18, 140, 74, .7); }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-sm svg { width: 18px; height: 18px; }
.play-dot {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--navy); margin-left: -8px;
}
.play-dot svg { width: 12px; height: 12px; margin-left: 2px; }

/* ---------- Barra de progresso de leitura ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70;
  background: linear-gradient(90deg, var(--blue), #7cc7e6); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff;
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-solid, .no-js .site-header {
  background: rgba(255, 255, 255, .94); color: var(--navy);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); flex-wrap: wrap; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1; }
.brand:hover { color: inherit; }
.brand-name { font-family: var(--font-head); font-weight: 400; font-size: 1.35rem; letter-spacing: .14em; }
.brand-sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.brand-sub svg { width: 34px; height: 9px; }
.brand-sub span { font-family: var(--font-head); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid currentColor;
  background: transparent; color: inherit; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn-wa span { display: none; }

.site-nav { flex-basis: 100%; order: 3; }
.site-nav ul { display: flex; flex-direction: column; padding: 4px 0 18px; }
.site-nav a {
  display: block; padding: 13px 4px; text-decoration: none; color: var(--navy);
  font-family: var(--font-head); font-size: 1.15rem; border-bottom: 1px solid var(--line);
}
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.no-js .nav-toggle { display: none; }

/* ---------- Hero (foto estática) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: #fff;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--navy-deep);
}
.hero-bg { position: absolute; left: 0; top: 0; z-index: -2; width: 100%; height: 66vh; height: 66svh; object-fit: cover; object-position: center 12%; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 66vh; height: 66svh; z-index: -1;
  background: linear-gradient(180deg, rgba(22, 33, 47, .5) 0%, rgba(22, 33, 47, 0) 22%, rgba(22, 33, 47, .55) 70%, var(--navy-deep) 100%);
}
.hero-content { padding-top: calc(52vh); padding-top: calc(52svh); padding-bottom: 96px; }
.hero .eyebrow { color: var(--blue-light); }
.hero h1 { color: #fff; max-width: 14ch; }
.rotator { display: inline-grid; color: var(--blue-light); }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.45em); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-.45em); transition-duration: .3s; }
.no-js .rotator > span:first-child { opacity: 1; transform: none; }
.hero .lead { color: #dbe6f0; max-width: 560px; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 22px; }
.hero-cro { font-size: .9rem; color: #b9c9d9; margin: 0; }

/* ---------- Indicadores ---------- */
.stats { position: relative; z-index: 2; margin-top: -56px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  background: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats-grid li { background: #fff; padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stats-grid strong {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.stats-grid strong.pendente { font-size: .8rem; line-height: 1.3; }
.stats-grid .star { width: .7em; height: .7em; color: #f5b301; }
.stats-grid li > span { font-size: .92rem; color: var(--muted); }

/* ---------- Faixa em movimento ---------- */
.marquee { background: var(--blue); color: var(--navy-deep); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 500; font-size: 1.15rem;
}
.marquee li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-deep); opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Os dois focos (cards grandes com foto) ---------- */
.focus { display: grid; gap: 18px; }
.focus-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; border-radius: var(--radius); overflow: hidden; padding: 26px;
  color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow);
}
.focus-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.focus-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 33, 47, 0) 30%, rgba(22, 33, 47, .9) 100%); }
.focus-card:hover { color: #fff; }
.focus-card:hover img { transform: scale(1.06); }
.focus-card .tag {
  align-self: flex-start; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 4px 14px; font-size: .85rem; font-family: var(--font-head); margin-bottom: 12px;
}
.focus-card h3 { font-size: clamp(1.6rem, 5vw, 2.1rem); color: #fff; margin-bottom: 6px; }
.focus-card p { margin: 0 0 14px; color: #dbe6f0; }
.focus-card .more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500; }
.focus-card .more svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.focus-card:hover .more svg { transform: translateX(5px); }

/* ---------- Ortopedia Funcional dos Maxilares ---------- */
.functions { display: grid; gap: 14px; margin: 8px 0 40px; }
.function {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow-sm);
}
.function .num {
  flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue-ink);
}
.function .num svg { width: 30px; height: 30px; }
.function h3 { margin: 0 0 2px; color: var(--navy); }
.function p { margin: 0; color: var(--muted); font-size: .98rem; }

.split { display: grid; gap: 36px; align-items: center; }
.split-media { margin: 0; position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media .float-chip {
  position: absolute; right: 14px; bottom: -18px; background: #fff; border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow); font-family: var(--font-head); color: var(--navy); font-size: .95rem; line-height: 1.3;
  display: flex; gap: 10px; align-items: center; max-width: 250px;
}
.float-chip svg { width: 30px; height: 30px; color: var(--blue-ink); flex: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { color: var(--navy); }
.checklist { display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6a90' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--blue); padding-left: 14px; margin: 20px 0; }

/* ---------- Sono (faixa escura) ---------- */
.section-dark { background: var(--navy-deep); color: #dfe8f1; position: relative; overflow: hidden; isolation: isolate; }
.section-dark::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 760px; height: 760px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(79, 169, 208, .22) 0%, rgba(79, 169, 208, 0) 65%);
}
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 10%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 92%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: .65; } }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--blue-light); }
.section-dark .lead { color: #c4d3e2; }
.section-dark .note { color: #c4d3e2; }
.section-dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .13); box-shadow: none; color: #dfe8f1; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } }

/* ---------- Sobre ---------- */
.about { display: grid; gap: 36px; align-items: center; }
.about-media { margin: 0; position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius) var(--radius) 220px var(--radius); box-shadow: var(--shadow); }
.about-name { font-family: var(--font-head); font-size: 1.05rem; color: var(--muted); margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { background: var(--sky); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-family: var(--font-head); }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 44px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 12px; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.strip figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ---------- Consultório ---------- */
.office { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.office figure { margin: 0; position: relative; overflow: hidden; border-radius: 22px; }
.office img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .8s var(--ease); }
.office figure:hover img { transform: scale(1.05); }
.office .wide { grid-column: 1 / -1; }
.office .wide img { aspect-ratio: 4 / 3; }
.office figcaption {
  position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .92); color: var(--navy);
  border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-family: var(--font-head);
}

/* ---------- Contato ---------- */
.contact { display: grid; gap: 20px; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--sky); color: var(--blue-ink); display: grid; place-items: center; }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.contact-list address { font-style: normal; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.map {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  background: var(--sky) radial-gradient(circle at 30% 30%, #fff 0, var(--sky) 60%);
  display: grid; place-items: center; text-align: center; border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { padding: 28px; max-width: 360px; }
.map-placeholder svg { width: 48px; height: 48px; color: var(--blue-ink); margin: 0 auto 10px; }
.map-placeholder p { font-size: .9rem; color: var(--muted); }

/* ---------- CTA final ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--navy) 0%, #2c4a67 100%); color: #fff;
  border-radius: var(--radius); padding: 48px 24px; text-align: center; box-shadow: var(--shadow);
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; right: -200px; bottom: -300px;
  border: 70px solid rgba(79, 169, 208, .15);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3e1ee; max-width: 520px; margin: 0 auto 24px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-deep); color: #b9c7d6; padding: 52px 0 110px; font-size: .95rem; margin-top: 80px; }
.site-footer a { color: #d7e6f3; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid h2 { font-size: 1rem; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px; font-size: .86rem; }
.footer-legal p { margin-bottom: .5em; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; border-radius: 999px;
  padding: 14px 20px 14px 16px; box-shadow: 0 10px 24px -6px rgba(18, 140, 74, .55);
  font-family: var(--font-head); font-weight: 500;
  transition: transform .35s var(--ease), opacity .35s, background-color .2s;
}
.wa-float:hover { background: var(--wa-hover); color: #fff; }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }
.js .wa-float.is-hidden { transform: translateY(120px); opacity: 0; pointer-events: none; }

/* ---------- Janela do vídeo ---------- */
.video-dialog {
  width: min(960px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #000;
}
.video-dialog::backdrop { background: rgba(10, 16, 24, .85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.video-dialog video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-dialog .close {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .9); color: var(--navy); display: grid; place-items: center; cursor: pointer;
}
.video-dialog .close svg { width: 22px; height: 22px; }

/* ---------- Animações ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilitários v3 ---------- */
.center { text-align: center; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--blue); }
.section-soft { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }

/* ---------- Autoteste do sono (quiz) ---------- */
.quiz {
  position: relative; max-width: 860px; margin: 0 auto; padding: 26px 22px;
  border-radius: 32px; background: linear-gradient(160deg, rgba(79, 169, 208, .22), rgba(255, 255, 255, .05));
  border: 1px solid rgba(159, 211, 234, .35); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), 0 0 0 8px rgba(79, 169, 208, .06);
}
.quiz-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.quiz-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: var(--navy-deep);
  border-radius: 999px; padding: 6px 14px; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.quiz-badge svg { width: 18px; height: 18px; }
.quiz-step { font-family: var(--font-head); color: var(--blue-light); font-size: .95rem; }
.quiz-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-bottom: 26px; }
.quiz-questions { padding: 0; margin: 0; list-style: none; }
.quiz-bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--blue), #8fd3ee); transition: width .45s var(--ease); }
.q-text { font-family: var(--font-head); font-size: clamp(1.35rem, 4.6vw, 1.9rem); line-height: 1.25; color: #fff; margin-bottom: 22px; }
.q-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-answers button {
  min-height: 60px; border-radius: 18px; cursor: pointer; font-family: var(--font-head); font-size: 1.15rem; font-weight: 500;
  background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.q-answers button:hover { background: rgba(255, 255, 255, .16); border-color: #fff; transform: translateY(-2px); }
.q-answers button[data-a="1"]:hover { background: rgba(79, 169, 208, .35); }
.js .q { display: none; }
.js .q.is-current { display: block; animation: q-in .45s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.no-js .q-answers { display: none; }
.no-js .quiz-questions { list-style: disc; padding-left: 1.2em; }
.no-js .q-text { font-size: 1.1rem; margin-bottom: 8px; }
.js .quiz-nojs { display: none; }
.quiz-nojs { margin-top: 18px; }
.quiz-disclaimer { display: block; color: #a9bccf; margin-top: 18px; font-size: .85rem; }

.quiz-result { animation: q-in .5s var(--ease); }
.quiz-score { font-family: var(--font-head); color: var(--blue-light); margin-bottom: 4px; }
.quiz-score span { font-size: 2.6rem; font-weight: 600; color: #fff; margin-right: 4px; }
.quiz-result h3 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); outline: none; }
.quiz-result > p { color: #d3e0ec; }
.reco-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--blue-light) !important; margin: 24px 0 12px; }
.reco { display: grid; gap: 14px; }
.reco-video { position: relative; display: block; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: #000; min-height: 200px; }
.reco-video:hover { color: #fff; }
.reco-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .8s var(--ease), opacity .3s; }
.reco-video:hover img { transform: scale(1.05); opacity: 1; }
.reco-video .play {
  position: absolute; left: 50%; top: 42%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; color: var(--navy); display: grid; place-items: center; animation: pulse 2.2s infinite;
}
.reco-video .play svg { width: 22px; height: 22px; margin-left: 3px; }
.reco-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; font-family: var(--font-head); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8)); }
.reco-caption small { display: block; font-family: var(--font-body); opacity: .8; }
.reco-dra {
  display: grid; grid-template-columns: 64px 1fr; gap: 6px 14px; align-items: center;
  background: #fff; color: var(--navy); border-radius: 22px; padding: 18px;
}
.reco-dra img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.reco-dra strong { display: block; font-family: var(--font-head); font-size: 1.1rem; line-height: 1.2; }
.reco-dra span { font-size: .9rem; color: var(--muted); }
.reco-dra .btn { grid-column: 1 / -1; margin-top: 10px; }
.quiz-restart { margin-top: 18px; background: none; border: 0; color: var(--blue-light); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; }

.sleep-info { display: grid; gap: 16px; max-width: 860px; margin: 28px auto 0; }
.sleep-info .card p { margin: 0; }
.note.center { max-width: 860px; margin: 18px auto 0; border: 0; padding: 0; }

/* ---------- Tratamentos: cards altos com animação ---------- */
.tcards {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--sky-2) transparent;
}
.tcard {
  position: relative; scroll-snap-align: start; aspect-ratio: 3 / 5; border-radius: 28px; overflow: hidden; isolation: isolate;
  color: #fff; background: var(--navy); box-shadow: var(--shadow-sm);
}
.tcard > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 33, 47, 0) 35%, rgba(22, 33, 47, .92) 100%); transition: background-color .5s; }
.tcard-label {
  position: absolute; left: 22px; top: 22px; transform-origin: 0 0; transform: rotate(90deg) translateY(-100%); white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; opacity: .9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5); transition: opacity .4s, transform .6s var(--ease);
}
.tcard-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.tcard-body h3 { font-size: 1.45rem; color: #fff; margin: 0; }
.tcard-body p { margin: 8px 0 0; color: #dbe6f0; font-size: .97rem; transition: opacity .45s .05s, transform .5s var(--ease); }
.tcard-art { background: radial-gradient(circle at 30% 20%, #3c6d93 0%, var(--navy) 55%, var(--navy-deep) 100%); }
.tcard-art::before {
  content: ""; position: absolute; z-index: -1; width: 140%; aspect-ratio: 1; left: -20%; top: -30%; border-radius: 50%;
  border: 46px solid rgba(79, 169, 208, .14); transition: transform 1s var(--ease);
}
.tcard-art-icon { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--blue-light); transition: transform .6s var(--ease); }
.tcard-art-icon svg { width: 52px; height: 52px; }
.tcard-art .tcard-label { opacity: 0; }
.tcard-ph { position: absolute; left: 14px; top: 14px; font-size: .7rem; }
@media (hover: hover) and (min-width: 900px) {
  .tcard-body p { opacity: 0; transform: translateY(14px); }
  .tcard:hover > img { transform: scale(1.08); }
  .tcard:hover::after { background-color: rgba(22, 33, 47, .25); }
  .tcard:hover .tcard-label { opacity: 0; transform: rotate(90deg) translate(-20px, -100%); }
  .tcard:hover .tcard-body p { opacity: 1; transform: none; }
  .tcard:hover .tcard-art-icon { transform: translate(-50%, -50%) scale(1.12) rotate(-6deg); }
  .tcard-art:hover::before { transform: rotate(40deg) scale(1.1); }
}
.also { max-width: 720px; margin: 28px auto 24px; text-align: center; color: var(--muted); }
.also strong { color: var(--navy); font-weight: 600; }

/* ---------- Como funciona (etapas) ---------- */
.steps { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0 0 40px; position: relative; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px;
  padding: 24px 22px 24px 92px; box-shadow: var(--shadow-sm); min-height: 120px;
}
.step-icon {
  position: absolute; left: 20px; top: 22px; width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center; background: var(--sky); color: var(--blue-ink);
}
.step-icon svg { width: 28px; height: 28px; }
.step-num {
  position: absolute; right: -8px; top: -8px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff;
  font-family: var(--font-head); font-size: .85rem; font-weight: 600; border: 3px solid #fff;
}
.step h3 { margin: 0 0 6px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }
/* linha que liga as etapas (celular: vertical) */
.steps::before {
  content: ""; position: absolute; left: 47px; top: 40px; bottom: 40px; width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--sky-2)); z-index: 0;
}
.step { z-index: 1; }

/* ---------- Avaliações ---------- */
.stars-row { display: flex; justify-content: center; gap: 4px; color: #f5b301; margin-bottom: 10px; }
.stars-row svg { width: 26px; height: 26px; }
.reviews-carousel { --per: 1; position: relative; }
.reviews {
  display: grid; grid-auto-flow: column; gap: 16px;
  grid-auto-columns: calc((100% - (var(--per) - 1) * 16px) / var(--per));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 14px; scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; min-height: 10px; margin-top: 6px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--sky-2); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.carousel-dots button[aria-current="true"] { width: 26px; border-radius: 6px; background: var(--blue); }
.reviews-cta { margin-top: 36px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-sm); }
.review-head { display: grid; grid-template-columns: 44px 1fr 24px; gap: 12px; align-items: center; margin-bottom: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; }
.review-head strong { display: block; font-family: var(--font-head); color: var(--navy); }
.review-stars { display: flex; gap: 2px; color: #f5b301; margin-top: 2px; }
.review-stars svg { width: 15px; height: 15px; }
.g-logo { width: 24px; height: 24px; }
.review p { margin: 0; color: var(--muted); }

/* ---------- Instagram ---------- */
.insta {
  display: grid; gap: 14px; margin-top: 64px; padding: 22px; border-radius: 32px; color: #fff;
  background: linear-gradient(135deg, #2c4a67 0%, var(--navy) 45%, #6a3f74 120%);
}
.insta-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px; }
.insta-text h3 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.insta-text p { color: #d3e0ec; }
.insta-logo { width: 34px; height: 34px; fill: #fff; margin-bottom: 14px; }
.insta-photo { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 1; }
.insta-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.insta-photo:hover img { transform: scale(1.06); }

/* ---------- Página 404 ---------- */
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }

/* Grids de uma coluna no celular: impede que imagens/textos longos estourem a largura */
.focus, .split, .about, .contact, .footer-grid, .functions { grid-template-columns: minmax(0, 1fr); }
.split > *, .about > *, .contact > * { min-width: 0; }

/* ==========================================================================
   Telas maiores
   ========================================================================== */
@media (max-width: 399.98px) {
  .brand-name { font-size: 1.15rem; letter-spacing: .1em; }
  .brand-sub span { letter-spacing: .08em; font-size: .52rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 8px 14px; }
}

@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .hero-ctas, .contact-actions { flex-direction: row; flex-wrap: wrap; }
  .header-actions .btn-wa span { display: inline; }
  .tcards { grid-auto-columns: 42%; }
  .reviews-carousel { --per: 2; }
  .insta { grid-template-columns: 1fr 1fr; }
  .insta-text { grid-column: 1 / -1; }
  .reco { grid-template-columns: 1fr 1fr; }
  .strip { grid-auto-columns: 40%; }
  .functions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .function { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 900px) {
  :root { --header-h: 78px; }
  .section { padding: 112px 0; }
  .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: block; order: 2; flex-basis: auto; margin-left: auto; }
  .header-actions { order: 3; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav ul { flex-direction: row; gap: 2px; padding: 0; }
  .site-nav a { border: 0; font-size: 1rem; padding: 8px 13px; border-radius: 999px; color: inherit; transition: background-color .2s; }
  .site-header:not(.is-solid) .site-nav a:hover { background: rgba(255, 255, 255, .15); color: inherit; }
  .site-header.is-solid .site-nav a:hover, .no-js .site-nav a:hover { background: var(--sky); }
  .brand-name { font-size: 1.5rem; }

  .hero { align-items: center; }
  /* A foto se dissolve no fundo azul (sem borda reta) */
  .hero-bg {
    left: auto; right: 0; width: 64%; height: 100%; object-position: 70% 20%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 16%, rgba(0, 0, 0, .85) 34%, #000 48%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 16%, rgba(0, 0, 0, .85) 34%, #000 48%);
  }
  .hero-content { padding-top: calc(var(--header-h) + 40px); }
  .hero::after {
    height: 100%;
    background:
      linear-gradient(180deg, rgba(22, 33, 47, .55) 0%, rgba(22, 33, 47, 0) 18%),
      linear-gradient(90deg, rgba(22, 33, 47, .7) 0%, rgba(22, 33, 47, .35) 40%, rgba(22, 33, 47, 0) 62%);
  }
  .stats { margin-top: -64px; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-grid li { padding: 30px 20px; }
  .quiz { padding: 44px 48px; }
  .sleep-info { grid-template-columns: 1fr 1fr; }
  .tcards { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .insta { grid-template-columns: 1.2fr 1fr 1fr; padding: 40px; }
  .insta-text { grid-column: auto; }
  .reco { grid-template-columns: 1.1fr 1fr; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .steps::before { left: 12%; right: 12%; top: 50px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--blue), var(--sky-2)); }
  .step { padding: 28px 24px; text-align: center; }
  .step-icon { position: relative; left: auto; top: auto; margin: 0 auto 18px; width: 64px; height: 64px; box-shadow: 0 0 0 8px var(--bg); }
  .reviews-carousel { --per: 3; }
  .hero-content { padding-bottom: 80px; }
  .hero .lead { font-size: 1.25rem; }

  .focus { grid-template-columns: 1fr 1fr; gap: 24px; }
  .focus-card { min-height: 560px; padding: 36px; }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .about { grid-template-columns: .85fr 1.15fr; gap: 72px; }
  .strip { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-left: 0; margin-right: 0; padding: 0; }
  .office { grid-template-columns: 1.4fr 1fr 1fr; }
  .office .wide { grid-column: auto; }
  .office img, .office .wide img { aspect-ratio: auto; height: 460px; }
  .contact { grid-template-columns: 1fr 1.1fr; gap: 40px; }
  .cta-band { padding: 72px 48px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer { padding-bottom: 52px; }
}

@media (max-width: 899.98px) {
  /* Menu aberto no celular: cabeçalho sempre sólido para o menu ficar legível */
  .site-header.menu-open { background: #fff; color: var(--navy); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { width: auto; flex-wrap: wrap; }
  .marquee ul[aria-hidden] { display: none; }
  .js .q.is-current, .quiz-result { animation: none; }
}

@media print {
  .site-header, .wa-float, .map, .nav-toggle, .marquee { display: none !important; }
  .hero, .section-dark { background: #fff; color: #000; min-height: 0; }
}
