/* ============================================================
   DRA. JULIA HARUMI IWAKURA — PÁGINAS DE PROCEDIMENTO
   Plástica Ocular, Vias Lacrimais e Órbita · São Paulo
   Identidade: Playfair Display + Inter · paleta rosé
   ============================================================ */

:root {
  /* ---- PALETA ---------------------------------------------- */
  --white:      #FFFFFF;
  --off-white:  #FAF8F5;
  --paper:      #FFFFFF;
  --charcoal:   #3A3835;
  --border:     rgba(58,56,53,0.10);

  --julia-main:  #B5718A;
  --julia-light: #FDF0F4;
  --julia-mid:   #E8B4C4;
  --julia-dark:  #8E4D65;

  /* dark (plum) section — texto claro */
  --plum:        #532B3D;
  --plum-soft:   #6B3A4F;
  --plum-line:   rgba(232,180,196,0.30);

  /* texto */
  --t-on-light:       #3A3835;
  --t-on-light-soft:  #5B5550;
  --t-on-light-mute:  #94897F;
  --t-on-dark:        #FBF1F4;
  --t-on-dark-soft:   rgba(251,241,244,0.82);
  --t-on-dark-mute:   rgba(251,241,244,0.58);

  /* ---- TIPO ------------------------------------------------- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  --fs-h1:    clamp(2.8rem, 5.4vw, 5rem);
  --fs-h2:    clamp(2rem, 3.2vw, 2.9rem);
  --fs-lead:  1.2rem;
  --fs-body:  1.0625rem;
  --fs-small: 0.94rem;
  --fs-label: 0.72rem;
  --lh-body:  1.78;

  /* ---- ESPAÇO ----------------------------------------------- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --section-pad-y: clamp(5rem, 10vw, 9rem);
  --gutter:        clamp(1.5rem, 5vw, 5rem);
  --maxw:          1180px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --shadow-sm:   0 2px 12px rgba(58,56,53,0.06);
  --shadow-md:   0 14px 48px rgba(142,77,101,0.14);
  --shadow-rose: 0 24px 60px rgba(181,113,138,0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:focus-visible { outline: 2px solid var(--julia-main); outline-offset: 3px; border-radius: 4px; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--t-on-light);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
em { font-style: italic; }

/* ---- EYEBROW ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--julia-main);
  display: inline-flex; align-items: center; gap: var(--sp-4);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--julia-mid); }
.eyebrow.on-dark { color: var(--julia-mid); }
.eyebrow.on-dark::before { background: var(--julia-mid); }

/* ---- BUTTONS ---------------------------------------------- */
.btn {
  font-family: var(--font-sans);
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  padding: 1rem 1.9rem; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1.15rem 2.3rem; font-size: var(--fs-body); }

.btn-primary { background: var(--julia-main); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--julia-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--t-on-light); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--julia-main); color: var(--julia-main); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.32); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* on dark hero/CTA, primary becomes white */
.on-plum .btn-primary { background: #fff; color: var(--julia-dark); }
.on-plum .btn-primary:hover { background: var(--julia-light); }

/* ---- NAV --------------------------------------------------- */
nav.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
  padding: 1.1rem var(--gutter);
  background: rgba(250,248,245,0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
nav.nav.scrolled { padding: 0.8rem var(--gutter); box-shadow: 0 6px 28px rgba(58,56,53,0.06); background: rgba(250,248,245,0.95); }
.nav-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; letter-spacing: 0.04em; color: var(--charcoal); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; }
.nav-logo::before { content: "JH"; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--julia-main); color: #fff; font-style: italic; font-size: .92rem; letter-spacing: 0; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.nav-logo span { color: var(--julia-main); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 400; letter-spacing: 0.05em;
  color: var(--t-on-light-soft); text-decoration: none; position: relative; padding: 0.2rem 0;
  transition: color var(--dur) var(--ease);
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--julia-main); transition: width var(--dur) var(--ease); }
.nav-links a:hover { color: var(--julia-main); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--julia-main); color: #fff !important; padding: 0.65rem 1.5rem; border-radius: var(--r-pill); font-weight: 500; font-size: 0.82rem; transition: all var(--dur) var(--ease); }
.nav-cta:hover { background: var(--julia-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: linear-gradient(90deg, var(--julia-main), var(--julia-dark)); z-index: 300; transition: width .1s linear; }

/* ---- PROCEDURE HERO (light) -------------------------------- */
.proc-hero {
  background:
    radial-gradient(110% 80% at 82% 6%, var(--julia-light) 0%, transparent 52%),
    radial-gradient(90% 70% at 4% 96%, #FBF3EF 0%, transparent 46%),
    var(--off-white);
  border-bottom: 1px solid var(--border);
}
.proc-hero .wrap { max-width: var(--maxw); margin-inline: auto; padding: clamp(9rem, 16vh, 12rem) var(--gutter) clamp(4rem, 8vh, 6.5rem); }
.crumbs { font-size: var(--fs-small); color: var(--t-on-light-mute); display: flex; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-6); }
.crumbs a { color: var(--t-on-light-soft); text-decoration: none; transition: color var(--dur) var(--ease); }
.crumbs a:hover { color: var(--julia-main); }
.crumbs .div { color: rgba(58,56,53,0.25); }
.proc-hero h1 { font-size: var(--fs-h1); line-height: 1.04; margin: var(--sp-5) 0 0; max-width: 17ch; text-wrap: balance; }
.proc-hero h1 em { color: var(--julia-main); }
.proc-hero .desc { font-size: var(--fs-lead); line-height: 1.6; color: var(--t-on-light-soft); max-width: 56ch; margin-top: var(--sp-6); }
.proc-hero .hero-actions { margin-top: var(--sp-7); display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ---- CONTENT SECTIONS -------------------------------------- */
.content-section { padding: var(--section-pad-y) var(--gutter); }
.content-section.light { background: var(--off-white); }
.content-section.paper { background: var(--white); }
.content-section.plum {
  background:
    radial-gradient(100% 80% at 85% 0%, rgba(232,180,196,0.16) 0%, transparent 55%),
    linear-gradient(150deg, #45233380 0%, var(--plum) 45%, var(--plum-soft) 100%);
  color: var(--t-on-dark);
}
.content-wrap { max-width: var(--maxw); margin-inline: auto; }

/* two-col: sticky label left, prose right */
.block { display: grid; grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.block .side { position: sticky; top: 7rem; }
.block .step { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--julia-dark); letter-spacing: 0.02em; }
.block .step::after { content: ""; display: block; width: 42px; height: 1px; background: var(--julia-mid); margin-top: var(--sp-4); }
.block h2 { color: var(--t-on-light); font-size: var(--fs-h2); margin-top: var(--sp-4); text-wrap: balance; }

.content-section.plum .step { color: var(--julia-mid); }
.content-section.plum .step::after { background: var(--plum-line); }
.content-section.plum h2 { color: var(--t-on-dark); }

.prose > * + * { margin-top: var(--sp-5); }
.prose p { color: var(--t-on-light-soft); font-size: var(--fs-body); line-height: var(--lh-body); max-width: 60ch; }
.prose p strong { color: var(--t-on-light); font-weight: 600; }
.content-section.plum .prose p { color: var(--t-on-dark-soft); }
.content-section.plum .prose p strong { color: var(--t-on-dark); }

/* indication list */
.ind-list { list-style: none; display: grid; gap: var(--sp-4); }
.ind-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; color: var(--t-on-light-soft); font-size: var(--fs-body); line-height: 1.55; max-width: 60ch; }
.ind-list li::before { content: ""; width: 9px; height: 9px; margin-top: 11px; border: 1.5px solid var(--julia-main); border-radius: 50%; }
.ind-list li b { color: var(--t-on-light); font-weight: 600; }
.content-section.plum .ind-list li { color: var(--t-on-dark-soft); }
.content-section.plum .ind-list li b { color: var(--t-on-dark); }
.content-section.plum .ind-list li::before { border-color: var(--julia-mid); }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: var(--sp-6); list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5); align-items: start; max-width: 60ch; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--julia-main); line-height: 1; min-width: 2ch; }
.steps li h3 { font-size: 1.25rem; color: var(--t-on-light); margin-bottom: 5px; }
.steps li p { color: var(--t-on-light-soft); font-size: var(--fs-small); line-height: 1.6; }
.content-section.plum .steps li::before { color: var(--julia-mid); }
.content-section.plum .steps li h3 { color: var(--t-on-dark); }
.content-section.plum .steps li p { color: var(--t-on-dark-soft); }

/* recovery timeline cards */
.recovery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.rec-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); box-shadow: var(--shadow-sm); }
.content-section.paper .rec-card { background: var(--off-white); }
.rec-card .when { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--julia-main); }
.rec-card .big { font-family: var(--font-display); font-size: 2.2rem; color: var(--t-on-light); line-height: 1; }
.rec-card .big em { color: var(--julia-main); }
.rec-card p { font-size: var(--fs-small); color: var(--t-on-light-soft); line-height: 1.55; }

/* ---- FAQ (dark plum) --------------------------------------- */
.faq-section {
  background:
    radial-gradient(90% 90% at 12% 0%, rgba(232,180,196,0.12) 0%, transparent 55%),
    var(--plum);
  color: var(--t-on-dark); padding: var(--section-pad-y) var(--gutter);
}
.faq-head { max-width: var(--maxw); margin: 0 auto var(--sp-8); }
.faq-head .eyebrow { margin-bottom: var(--sp-4); }
.faq-head h2 { color: var(--t-on-dark); font-size: var(--fs-h2); }
.faq-list { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--plum-line); }
.faq-item { border-bottom: 1px solid var(--plum-line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-2);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500;
  color: var(--t-on-dark); text-align: left;
  transition: color var(--dur) var(--ease);
}
.faq-q:hover { color: var(--julia-mid); }
.faq-q .ic { flex: none; width: 24px; height: 24px; position: relative; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--julia-mid); border-radius: 2px; left: 50%; top: 50%; }
.faq-q .ic::before { width: 15px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-q .ic::after { width: 1.5px; height: 15px; transform: translate(-50%,-50%); transition: transform var(--dur) var(--ease); }
.faq-item[open] .faq-q .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { overflow: hidden; color: var(--t-on-dark-soft); font-size: var(--fs-body); line-height: 1.7; max-width: 64ch; display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.faq-item[open] .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; padding: 0 var(--sp-2); }
.faq-item[open] .faq-a > div { padding-bottom: var(--sp-6); }

/* ---- FINAL CTA (light) ------------------------------------- */
.cta-section {
  background:
    radial-gradient(90% 120% at 50% 0%, var(--julia-light) 0%, transparent 60%),
    var(--off-white);
  color: var(--t-on-light); text-align: center;
  padding: clamp(5rem, 11vw, 8.5rem) var(--gutter);
  border-top: 1px solid var(--border);
}
.cta-section .inner { max-width: 720px; margin-inline: auto; }
.cta-section .eyebrow { justify-content: center; margin-bottom: var(--sp-5); }
.cta-section h2 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.06; }
.cta-section h2 em { color: var(--julia-main); }
.cta-section p { color: var(--t-on-light-soft); font-size: var(--fs-lead); margin: var(--sp-5) auto 0; max-width: 50ch; }
.cta-section .actions { margin-top: var(--sp-7); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }

/* image placeholder */
.ph-img {
  background-image: repeating-linear-gradient(135deg, rgba(142,77,101,0.06) 0 11px, transparent 11px 22px);
  background-color: var(--julia-light);
  border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.ph-img .ph {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--julia-dark); opacity: 0.65; text-align: center; padding: 0.5rem 0.9rem;
}

/* ---- WHATSAPP FLOAT ---------------------------------------- */
.whatsapp-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.42); transition: transform var(--dur) var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---- PRÓXIMO PROCEDIMENTO ---- */
.proc-next { background: var(--white); border-top: 1px solid var(--border); padding: var(--sp-7) var(--gutter); }
.proc-next .inner { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; }
.proc-next .lbl { font-size: var(--fs-label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--t-on-light-mute); font-weight: 600; margin-bottom: var(--sp-2); }
.proc-next a.next-link { text-decoration: none; color: var(--t-on-light); display: inline-flex; align-items: baseline; gap: var(--sp-4); transition: gap var(--dur) var(--ease); }
.proc-next a.next-link:hover { gap: calc(var(--sp-4) + 6px); color: var(--julia-main); }
.proc-next a.next-link .ttl { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.proc-next a.next-link .ar { color: var(--julia-main); font-size: 1.4rem; }

/* ---- FOOTER ------------------------------------------------ */
footer { background: var(--charcoal); color: rgba(255,255,255,.65); padding: 4rem var(--gutter) 2.4rem; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: .6rem; }
.footer-brand span { color: var(--julia-mid); font-style: italic; }
.footer-col h4 { font-size: 0.68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--julia-mid); font-weight: 600; margin-bottom: 1rem; }
.footer-col p, .footer-col a { font-size: .9rem; line-height: 1.8; color: rgba(255,255,255,.65); text-decoration: none; display: block; }
.footer-col a:hover { color: #fff; }
.footer-copy { max-width: var(--maxw); margin: 0 auto; font-size: .76rem; letter-spacing: .05em; color: rgba(255,255,255,.45); text-align: center; padding-top: 2.2rem; }

/* ---- REVEAL ------------------------------------------------ */
/* ---- REVEAL — opacity is a hard switch (no transition to freeze); only transform animates ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none !important; transition: none !important; } }

/* ---- RESPONSIVE -------------------------------------------- */
@media (max-width: 1024px) { .nav-links { display: none; } }
@media (max-width: 860px) {
  .block { grid-template-columns: 1fr; gap: var(--sp-5); }
  .block .side { position: static; }
  .recovery { grid-template-columns: 1fr; }
  .faq-q { font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  nav.nav, nav.nav.scrolled { padding: 1rem 1.5rem; }
}
