/* ============================================================
   Rocha e Chalita Capilar. Site novo (protótipo homolog)
   Direção: Dark Luxury Clínico. Design system escopado.
   Marca: BeMagic · 2026-07
   ============================================================ */

:root {
  /* Cores */
  --ink: #0B1F33;
  --primary: #132E4A;
  --primary-mid: #224762;
  --accent: #FFBC7D;
  --accent-deep: #E39B55;
  --bg: #F4EEE7;
  --bg-alt: #E7D9CB;
  --card: #FFFFFF;
  --card-dark: #16324E;
  --text: #132E4A;
  --text-on-dark: #EAF0F6;
  --text-soft: #5E6E7E;
  --text-soft-dark: #9DB2C6;
  --line: #D8C9BA;
  --line-dark: #2A4B68;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(11, 31, 51, .08), 0 1px 2px rgba(11, 31, 51, .05);
  --shadow-md: 0 8px 24px rgba(11, 31, 51, .12), 0 2px 6px rgba(11, 31, 51, .06);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, .22), 0 8px 18px rgba(11, 31, 51, .10);

  /* Shape */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Escala fluida */
  --text-hero: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem);
  --text-h2: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  --text-h3: clamp(1.25rem, 1rem + 0.9vw, 1.6rem);
  --text-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);

  /* Ritmo */
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --maxw: 1200px;

  /* Motion */
  --dur: 320ms;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent-deep); display: inline-block; }
.on-dark .eyebrow, .sec-dark .eyebrow { color: var(--accent); }
.on-dark .eyebrow::before, .sec-dark .eyebrow::before { background: var(--accent); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .95rem 1.7rem; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { transition: transform var(--dur) var(--ease); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 8px 22px rgba(255, 188, 125, .35); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(227, 155, 85, .45); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text-on-dark); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.on-light .btn-ghost { color: var(--primary); border-color: var(--line); }
.on-light .btn-ghost:hover { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center;
  padding: .9rem 0;
  background: rgba(11, 31, 51, .0);
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 31, 51, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  padding: .6rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .96; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: .95rem; font-weight: 500; color: var(--text-on-dark); opacity: .85;
  position: relative; padding: .3rem 0; transition: opacity var(--dur) var(--ease);
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--accent); transition: width var(--dur) var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { opacity: 1; }
/* CTA dentro do nav é só para o menu mobile aberto; no desktop usa o do header-cta */
.nav > .btn { display: none; }
.header-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: var(--dur); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--text-on-dark); overflow: hidden; background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 31, 51, .96) 0%, rgba(11, 31, 51, .82) 38%, rgba(11, 31, 51, .3) 72%, rgba(11, 31, 51, .55) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 7rem; padding-bottom: 4rem; }
.hero-content { max-width: 760px; }
.hero h1 { font-size: var(--text-hero); margin: 1.4rem 0 1.4rem; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-lead { font-size: var(--text-lead); color: var(--text-soft-dark); max-width: 560px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero-seal { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; padding-top: 1.8rem; border-top: 1px solid var(--line-dark); }
.hero-seal .seal-item { display: flex; flex-direction: column; }
.hero-seal .seal-num { font-family: var(--font-display); font-size: 1.9rem; color: var(--accent); line-height: 1; }
.hero-seal .seal-lbl { font-size: .82rem; color: var(--text-soft-dark); letter-spacing: .02em; }

/* ---------- Faixa de mídia ---------- */
.media-strip { background: var(--bg); padding: clamp(2.2rem, 4vw, 3.4rem) 0; border-bottom: 1px solid var(--line); }
.media-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.8rem; }
.media-strip .media-label { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; max-width: 190px; }
.media-logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); flex: 1; justify-content: flex-end; }
.media-logos img { height: 30px; width: auto; object-fit: contain; opacity: .62; filter: grayscale(1); transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease); }
.media-logos img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Section base ---------- */
.sec { padding-block: var(--space-section); }
.sec-dark { background: var(--ink); color: var(--text-on-dark); }
.sec-dark.textured { background: var(--ink); position: relative; }
.sec-dark.textured .bg-texture { position: absolute; inset: 0; z-index: 0; opacity: .5; object-fit: cover; width: 100%; height: 100%; }
.sec-dark.textured .wrap { position: relative; z-index: 2; }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 640px; margin-bottom: clamp(2.5rem, 4vw, 3.6rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: var(--text-h2); margin: 1rem 0 1rem; }
.sec-head p { color: var(--text-soft); font-size: var(--text-lead); }
.sec-dark .sec-head p { color: var(--text-soft-dark); }

/* ---------- Cards de resultado ---------- */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.result-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.result-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.result-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--primary); }
.result-media img { width: 100%; height: 100%; object-fit: cover; }
.result-media .tag {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: rgba(11, 31, 51, .82); color: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .05em; padding: .35rem .7rem; border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.result-body { padding: 1.2rem 1.3rem 1.4rem; }
.result-body h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.result-body p { color: var(--text-soft); font-size: .92rem; }

/* ---------- Método (passos) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.step { position: relative; padding-top: 2.2rem; border-top: 1px solid var(--line-dark); }
.step .num { position: absolute; top: -0.2rem; left: 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); }
.step h3 { font-size: var(--text-h3); margin-bottom: .6rem; color: var(--text-on-dark); }
.step p { color: var(--text-soft-dark); font-size: .95rem; }

/* ---------- Cirurgiões ---------- */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); }
.doc-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-md); background: var(--primary);
}
.doc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-card .doc-info {
  position: relative; z-index: 2; width: 100%; padding: 2rem 1.8rem 1.7rem;
  color: #fff; background: linear-gradient(180deg, rgba(11, 31, 51, 0) 0%, rgba(11, 31, 51, .85) 62%, rgba(11, 31, 51, .95) 100%);
}
.doc-card .doc-crm { font-size: .82rem; letter-spacing: .06em; color: var(--accent); font-weight: 600; }
.doc-card h3 { font-size: 1.7rem; margin: .3rem 0 .5rem; }
.doc-card p { color: rgba(234, 240, 246, .85); font-size: .95rem; }

/* ---------- Bento diferenciais ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: clamp(1rem, 2vw, 1.4rem); }
.bento-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bento-cell:hover { transform: translateY(-4px); border-color: var(--accent); }
.bento-cell .b-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--primary); line-height: 1; }
.bento-cell .b-lbl { color: var(--text-soft); font-size: .95rem; margin-top: .5rem; }
.bento-cell h3 { font-size: var(--text-h3); margin-bottom: .5rem; }
.bento-cell p { color: var(--text-soft); font-size: .93rem; }
.bento-cell.span-2 { grid-column: span 2; }
.bento-cell.dark { background: var(--ink); color: var(--text-on-dark); border-color: var(--line-dark); }
.bento-cell.dark .b-num { color: var(--accent); }
.bento-cell.dark p, .bento-cell.dark .b-lbl { color: var(--text-soft-dark); }
.bento-cell.dark h3 { color: #fff; }

/* ---------- Unidades ---------- */
.units { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem); }
.unit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.9rem; }
.unit h3 { font-size: var(--text-h3); margin-bottom: .8rem; }
.unit .unit-row { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-soft); font-size: .96rem; margin-bottom: .5rem; }
.unit .unit-row b { color: var(--text); font-weight: 600; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final .wrap { position: relative; z-index: 2; }
.cta-final h2 { font-size: var(--text-h2); max-width: 720px; margin: 1rem auto 1.2rem; }
.cta-final h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.cta-final p { color: var(--text-soft-dark); max-width: 540px; margin: 0 auto 2.2rem; font-size: var(--text-lead); }
.cta-final .hero-actions { justify-content: center; }

/* ---------- Rodapé ---------- */
.site-footer { background: #081726; color: var(--text-soft-dark); padding-block: clamp(3.5rem, 5vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 36px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .95rem; max-width: 340px; }
.footer-col h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.footer-col a, .footer-col p { display: block; font-size: .95rem; margin-bottom: .6rem; color: var(--text-soft-dark); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .82rem; }
.footer-bottom .credit { display: flex; align-items: center; gap: .5rem; }
.footer-bottom .credit b { color: #fff; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.3rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }
.faq-q .ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: var(--dur); }
.faq-item.open .faq-q .ic { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); color: var(--text-soft); }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { padding-bottom: 1.3rem; }

/* ---------- Intro page banner ---------- */
.page-hero { background: var(--ink); color: var(--text-on-dark); padding-top: 9rem; padding-bottom: 4rem; position: relative; overflow: hidden; }
.page-hero .bg-texture { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .4; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: var(--text-h2); margin: 1rem 0 1rem; max-width: 720px; }
.page-hero p { color: var(--text-soft-dark); max-width: 560px; font-size: var(--text-lead); }

/* ---------- Prose / editorial ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-body h2 { font-size: var(--text-h2); margin: 1rem 0 1.2rem; }
.split-body p { color: var(--text-soft); margin-bottom: 1rem; }
.sec-dark .split-body p { color: var(--text-soft-dark); }
.check-list { list-style: none; margin-top: 1.4rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; color: var(--text); }
.sec-dark .check-list li { color: var(--text-on-dark); }
.check-list li::before { content: ""; flex-shrink: 0; margin-top: .35rem; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 4px var(--ink); }
.sec-dark .check-list li::before { box-shadow: inset 0 0 0 4px var(--ink); }

/* provisório badge */
.provisorio { position: fixed; z-index: 90; bottom: 14px; left: 14px; background: rgba(11,31,51,.9); color: var(--accent); font-size: .7rem; font-weight: 600; letter-spacing: .04em; padding: .4rem .75rem; border-radius: var(--radius-pill); border: 1px solid var(--line-dark); }

/* ---------- Reveal ----------
   Só esconde quando o JS confirma que vai animar (html.has-js).
   Sem JS, ou em render/screenshot, o conteúdo aparece por padrão. */
.has-js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.has-js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 940px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell.span-2 { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

@media (max-width: 720px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header { background: rgba(11, 31, 51, .92); backdrop-filter: blur(12px); }
  .nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--ink); padding: 1.4rem clamp(1.2rem, 4vw, 2.5rem) 1.8rem; gap: 1.2rem; align-items: flex-start;
    border-top: 1px solid var(--line-dark);
  }
  .nav.open > .btn { display: inline-flex; width: 100%; }
  .docs { grid-template-columns: 1fr; }
  .units { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .hero-seal { gap: 1.1rem 1.6rem; }
  .hero-seal .seal-item { min-width: 40%; }
  .media-strip .wrap { flex-direction: column; align-items: flex-start; }
  .media-logos { justify-content: flex-start; gap: 1.4rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .bento-cell.span-2 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
