/* Projeto Verão · Clínica Jéssica Bilibio
   Cores: só as 5 do manual (tokens do guia). Sombras e profundidade usam
   o Marrom Café com transparência e a secundária aprovada #230c0c. */
:root {
  --offwhite: #ECE8E1;
  --bege-linho: #E2D3C2;
  --caramelo: #927235;
  --marrom-canela: #61401D;
  --marrom-cafe: #2D1A14;
  --cafe-profundo: #230c0c; /* secundária aprovada: só fundo de profundidade */

  --surface: var(--offwhite);
  --surface-alt: var(--bege-linho);
  --ink: var(--marrom-cafe);
  --ink-muted: var(--marrom-canela);
  --accent: var(--caramelo);
  --action: var(--marrom-canela);
  --on-action: var(--offwhite);
  --action-hover: var(--marrom-cafe);
  --focus-ring: var(--caramelo);

  --shadow-sm: 0 2px 6px rgba(45, 26, 20, .06), 0 1px 2px rgba(45, 26, 20, .08);
  --shadow-md: 0 14px 34px -12px rgba(45, 26, 20, .28), 0 4px 10px rgba(45, 26, 20, .06);
  --shadow-lg: 0 40px 80px -30px rgba(35, 12, 12, .55), 0 12px 24px -12px rgba(35, 12, 12, .25);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: Montserrat, "Segoe UI", Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-18: 72px;
  --radius-sm: 2px; --radius-full: 999px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 26px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--space-6); }

.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); margin: 0; display: inline-flex; align-items: center; gap: var(--space-3); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.h-section { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.6vw, 52px); line-height: 1.06; margin: var(--space-4) 0 0; text-wrap: balance; }
.h-section em, .h-display em { font-style: italic; color: var(--accent); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 52px; padding: var(--space-3) var(--space-8);
  font: 600 13px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  background: var(--action); color: var(--on-action); border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn::after { content: "→"; font-size: 16px; letter-spacing: 0; transition: transform .3s var(--ease); }
.btn:hover { background: var(--action-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:hover::after { transform: translateX(4px); }
.btn-light { background: var(--offwhite); color: var(--marrom-cafe); }
.btn-light:hover { background: var(--bege-linho); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

/* ===== Topo escuro ===== */
.hero { position: relative; background: var(--marrom-cafe); color: var(--offwhite); padding: var(--space-6) 0 170px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; right: -8%; top: -14%; width: 640px; height: 780px; z-index: -1; background: url("assets/monograma-caramelo.svg") center / contain no-repeat; opacity: .08; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 240px; z-index: -1; background: linear-gradient(180deg, rgba(35, 12, 12, 0), var(--cafe-profundo)); }
.top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding-bottom: var(--space-12); }
.top img { height: 40px; width: auto; }
.top .selo { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bege-linho); border: 1px solid rgba(146, 114, 53, .6); padding: 8px 14px; border-radius: var(--radius-full); white-space: nowrap; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-12); align-items: center; }
.hero .eyebrow { color: var(--bege-linho); }
.h-display { font-family: var(--font-display); font-weight: 500; font-size: clamp(64px, 9vw, 116px); line-height: .9; letter-spacing: -.01em; margin: var(--space-6) 0 0; }
.hero .lead { font-size: 19px; line-height: 30px; max-width: 30ch; margin: var(--space-6) 0 0; color: var(--bege-linho); }

.countdown { display: flex; gap: var(--space-3); margin-top: var(--space-8); }
.countdown div { min-width: 76px; padding: var(--space-3) var(--space-2); text-align: center; border: 1px solid rgba(146, 114, 53, .55); background: rgba(236, 232, 225, .04); }
.countdown b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--offwhite); }
.countdown span { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--bege-linho); }
.quando { margin: var(--space-4) 0 0; font-size: 14px; color: var(--bege-linho); }
.quando strong { color: var(--offwhite); font-weight: 600; }

.hero-foto { position: relative; justify-self: end; width: min(100%, 440px); margin: 0; }
.hero-foto::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--accent); z-index: 0; }
.hero-foto img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 606 / 710; object-fit: cover; object-position: center 18%; box-shadow: var(--shadow-lg); }
.hero-foto figcaption { position: absolute; z-index: 2; left: -28px; bottom: 34px; background: var(--offwhite); color: var(--marrom-cafe); padding: 14px 18px; box-shadow: var(--shadow-md); font-size: 12px; line-height: 16px; }
.hero-foto figcaption b { display: block; font-family: var(--font-display); font-size: 21px; line-height: 24px; font-weight: 600; }

/* ===== Formulário flutuante ===== */
.inscricao { position: relative; z-index: 3; margin-top: -115px; scroll-margin-top: 24px; }
.form-card { background: var(--offwhite); box-shadow: var(--shadow-lg); padding: var(--space-8); border-top: 3px solid var(--accent); display: grid; gap: var(--space-6); }
.form-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-2) var(--space-6); }
.form-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 36px; margin: var(--space-3) 0 0; }
.form-card .sub { margin: var(--space-2) 0 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.crm-form { min-height: 460px; }
.crm-form iframe { display: block; width: 100%; min-height: 460px; }
.form-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: var(--space-3); align-items: end; }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; }
.field input, .field select { width: 100%; min-height: 52px; font: 400 15px/20px var(--font-sans); padding: var(--space-3) 14px; color: var(--ink); background: var(--surface); border: 1px solid rgba(146, 114, 53, .6); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.field input:hover, .field select:hover { border-color: var(--accent); }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(146, 114, 53, .2); outline: none; }
.aviso { grid-column: 1 / -1; font-size: 12px; line-height: 18px; color: var(--ink-muted); margin: var(--space-1) 0 0; }

/* ===== Seções ===== */
.section { position: relative; padding-block: 112px; }
.section.alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin-bottom: var(--space-12); }
.section-head.center { margin-inline: auto; text-align: center; }

.ornamento { display: flex; align-items: center; justify-content: center; gap: var(--space-6); }
.ornamento::before, .ornamento::after { content: ""; height: 1px; width: min(28vw, 320px); background: linear-gradient(90deg, transparent, var(--accent)); }
.ornamento::after { transform: scaleX(-1); }
.ornamento img { width: 34px; height: auto; }
.sep { padding-block: var(--space-12); background: var(--surface); }
.sep.alt { background: var(--surface-alt); }

.dores { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.dor { position: relative; background: var(--offwhite); padding: var(--space-8); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.dor:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dor .num { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--accent); }
.dor p { margin: var(--space-4) 0 0; font-size: 17px; line-height: 27px; }
.dor::after { content: ""; position: absolute; left: var(--space-8); right: var(--space-8); bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.dor:hover::after { transform: scaleX(1); }
.virada { margin: var(--space-12) auto 0; max-width: 780px; text-align: center; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; }
.virada em { font-style: italic; color: var(--accent); }

.temas-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-18); align-items: start; }
.temas-intro { position: sticky; top: 40px; }
.temas-intro p { color: var(--ink-muted); max-width: 36ch; margin: var(--space-6) 0 var(--space-8); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; counter-reset: t; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 1px; background: rgba(146, 114, 53, .4); }
.timeline li { counter-increment: t; position: relative; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-6); padding-bottom: var(--space-6); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(t, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--offwhite); border: 1px solid var(--accent); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-size: 22px; color: var(--accent); position: relative; z-index: 1; }
.timeline .card { background: var(--offwhite); padding: 18px var(--space-6); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.timeline .card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.timeline h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 30px; }

.autora { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-18); align-items: center; }
.autora-foto { position: relative; max-width: 420px; }
.autora-foto::before { content: ""; position: absolute; inset: -22px 22px 22px -22px; background: var(--marrom-cafe); z-index: 0; }
.autora-foto img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.autora p { max-width: 46ch; font-size: 17px; line-height: 28px; }
.numeros { display: flex; gap: var(--space-12); margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid rgba(146, 114, 53, .4); }
.numeros strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 64px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.numeros span { display: block; margin-top: var(--space-2); font-size: 13px; color: var(--ink-muted); }

.passos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); position: relative; counter-reset: p; }
.passos::before { content: ""; position: absolute; top: 32px; left: 17%; right: 17%; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); }
.passos li { counter-increment: p; position: relative; text-align: center; padding: 0 var(--space-4); }
.passos li::before { content: counter(p); display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--space-6); border-radius: var(--radius-full); background: var(--marrom-cafe); color: var(--offwhite); box-shadow: var(--shadow-md); font-family: var(--font-display); font-size: 28px; position: relative; }
.passos h3 { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0 0 var(--space-2); }
.passos p { margin: 0 auto; color: var(--ink-muted); max-width: 28ch; }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: var(--space-3); }
.faq details { background: var(--offwhite); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary { cursor: pointer; list-style: none; padding: 22px var(--space-6); font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); transition: transform .3s var(--ease); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 0; padding: 0 var(--space-6) 22px; color: var(--ink-muted); max-width: 62ch; }

/* ===== Fechamento ===== */
.final { position: relative; background: var(--marrom-cafe); color: var(--offwhite); text-align: center; padding-block: 120px; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background: url("assets/monograma-caramelo.svg") 0 0 / 54px auto repeat; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.final .eyebrow { color: var(--bege-linho); }
.final .h-section { font-size: clamp(44px, 6vw, 76px); }
.final p { color: var(--bege-linho); margin: var(--space-4) auto 0; max-width: 40ch; }
.final .btn { margin-top: var(--space-8); }
.final .countdown { justify-content: center; }

.rodape { background: var(--cafe-profundo); color: var(--bege-linho); padding-block: var(--space-12); font-size: 14px; line-height: 22px; }
.rodape-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8); align-items: center; }
.rodape img { height: 36px; width: auto; }
.rodape address { font-style: normal; }
.rodape a { color: var(--offwhite); }

/* barra fixa no celular */
.barra { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 12px var(--space-4) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--marrom-cafe); box-shadow: 0 -10px 30px rgba(35, 12, 12, .3); display: none; align-items: center; justify-content: space-between; gap: var(--space-3); transform: translateY(110%); transition: transform .4s var(--ease); }
.barra.on { transform: none; }
.barra span { color: var(--bege-linho); font-size: 12px; line-height: 16px; }
.barra span b { display: block; color: var(--offwhite); font-size: 14px; }
.barra .btn { min-height: 44px; padding: 10px 18px; box-shadow: none; }

/* ===== Obrigado ===== */
.obrigado { min-height: 100vh; display: grid; place-items: center; padding: var(--space-18) var(--space-4); text-align: center; background: var(--marrom-cafe); position: relative; overflow: hidden; isolation: isolate; }
.obrigado::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; background: url("../assets/monograma-caramelo.svg") 0 0 / 54px auto repeat; -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%); }
.obrigado .card { background: var(--offwhite); color: var(--marrom-cafe); max-width: 560px; margin: 0 auto; padding: var(--space-12) var(--space-8); box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent); animation: surgir 1s var(--ease) both; }
.check { width: 64px; height: 64px; margin: 0 auto var(--space-6); border-radius: var(--radius-full); background: var(--marrom-cafe); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.check svg { width: 28px; height: 28px; stroke: var(--offwhite); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: traco .7s .5s var(--ease) forwards; }
@keyframes traco { to { stroke-dashoffset: 0; } }
.btn-wa { background: #25D366; color: var(--marrom-cafe); margin-top: var(--space-8); }
.btn-wa:hover { background: #25D366; box-shadow: inset 0 0 0 2px var(--marrom-cafe), var(--shadow-lg); }

/* ===== Movimento ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-in > * { animation: subir 1s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: .08s; } .hero-in > *:nth-child(3) { animation-delay: .16s; }
.hero-in > *:nth-child(4) { animation-delay: .24s; } .hero-in > *:nth-child(5) { animation-delay: .32s; } .hero-in > *:nth-child(6) { animation-delay: .4s; }
.hero-foto { animation: surgir 1.2s .2s var(--ease) both; }
@keyframes subir { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes surgir { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .temas-grid, .autora { gap: var(--space-12); }
}
@media (max-width: 768px) {
  .wrap { padding-inline: var(--space-4); }
  .hero { padding-bottom: 120px; }
  .top { padding-bottom: var(--space-8); }
  .top .selo { display: none; }
  .hero-grid, .temas-grid, .autora { grid-template-columns: 1fr; }
  .hero-foto { justify-self: start; width: calc(100% - 22px); margin-top: var(--space-6); }
  .hero-foto figcaption { left: auto; right: -12px; bottom: 20px; }
  .countdown div { min-width: 0; flex: 1; }
  .countdown b { font-size: 30px; }
  .inscricao { margin-top: -80px; }
  .form-card { padding: var(--space-6) var(--space-4); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .btn { width: 100%; }
  .section { padding-block: 80px; }
  .dores, .passos { grid-template-columns: 1fr; }
  .passos::before { display: none; }
  .temas-intro { position: static; }
  .autora-foto { margin: 22px 0 0 22px; }
  .numeros { gap: var(--space-8); }
  .numeros strong { font-size: 48px; }
  .barra { display: flex; }
  .rodape { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .check svg { stroke-dashoffset: 0; }
}
