/* Dra. Gilmara Duarte — GD Reabilitação Orofacial */
:root {
  --marble: #f7f2ea;
  --stone: #ece3d6;
  --cognac: #9b5b34;
  --cognac-d: #7a4424;
  --clay: #e9cfc2;
  --espresso: #2a1d16;
  --espresso-2: #3a2a20;
  --gold: #c9a24e;
  --gold-l: #e6c983;
  --ink: #2a1d16;
  --mute: #75655a;
  --line: rgba(42, 29, 22, .14);
  --head: "Ibarra Real Nova", "Didot", Georgia, serif;
  --body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --script: "Ephesis", "Brush Script MT", cursive;
  --pad: clamp(18px, 4.5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 1.02rem; font-weight: 400; line-height: 1.65; color: var(--ink); background: var(--marble); overflow-x: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { fill: currentColor; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; margin: 0; }
h1 em, h2 em { color: var(--cognac); }
p { margin: 0 0 1em; }
figure { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.motion [data-split] { visibility: hidden; }
.ln { padding: .16em 0 .06em; margin-top: -.16em; }

/* logo (font-based recreation) */
.logo { display: block; color: var(--gold); overflow: visible; }
.logo__script { font-family: var(--script); font-size: 62px; fill: currentColor; }
.logo__caps { font-family: var(--head); font-size: 11px; letter-spacing: 3.4px; fill: currentColor; }

.kicker { margin: 0 0 1.3rem; font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--cognac); }
.kicker--light { color: var(--gold-l); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 1em 1.7em; border: 0; border-radius: 4px; font-weight: 500; font-size: .95rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--cognac { background: var(--cognac); color: #fff; }
.btn--cognac:hover { background: var(--cognac-d); }
.btn--gold { background: var(--gold); color: var(--espresso); }
.btn--gold:hover { background: var(--gold-l); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.link:hover svg { transform: translateX(5px); }
.link--light { color: var(--gold-l); }

/* header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 30px; height: 84px; padding: 0 var(--pad); transition: transform .45s var(--ease), background .3s, box-shadow .3s; }
.header.is-scrolled { background: rgba(247, 242, 234, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.brand .logo { width: 142px; color: #b08a3c; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: .88rem; font-weight: 500; text-decoration: none; opacity: .8; transition: opacity .2s, color .2s; }
.nav a:hover { opacity: 1; color: var(--cognac); }
.hbtn { padding: .7em 1.3em; border-radius: 4px; background: var(--espresso); color: var(--marble); font-size: .86rem; font-weight: 500; text-decoration: none; transition: background .25s; }
.hbtn:hover { background: var(--cognac); }
.menu-btn { display: none; }

/* hero */
.hero { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(28px, 4vw, 70px); min-height: 100svh; padding: 120px var(--pad) 70px; background: linear-gradient(115deg, var(--marble) 0%, var(--marble) 55%, var(--stone) 100%); }
.hero h1 { font-size: clamp(3rem, 5.4vw, 5.6rem); max-width: 12ch; }
.hero h1 em { display: block; }
.hero__lead { max-width: 32rem; margin: 1.8rem 0 2.1rem; font-size: 1.08rem; color: var(--mute); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 40px; list-style: none; margin: 2.6rem 0 0; padding: 1.3rem 0 0; border-top: 1px solid var(--line); }
.hero__facts li { display: flex; flex-direction: column; line-height: 1.3; }
.hero__facts b { display: inline-flex; align-items: center; gap: 5px; font-family: var(--head); font-weight: 600; font-size: 1.5rem; }
.hero__facts b svg { width: 16px; height: 16px; color: var(--gold); }
.hero__facts span { font-size: .86rem; color: var(--mute); }
.hero__img { position: relative; overflow: hidden; border-radius: 2px; box-shadow: 0 40px 70px -40px rgba(42, 29, 22, .55); }
.hero__img img { width: 100%; aspect-ratio: 1400 / 932; object-fit: cover; }
.blinds { position: absolute; inset: 0; display: flex; pointer-events: none; }
.blinds i { flex: 1; background: var(--stone); transform-origin: top; transform: scaleY(0); }
.motion .blinds i { transform: scaleY(1); }

/* implant */
.implant { background: var(--espresso); color: var(--marble); }
.implant__pin { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 90px); min-height: 100svh; padding: 110px var(--pad) 80px; }
.implant h2 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); max-width: 14ch; margin-bottom: 2.2rem; }
.isteps { list-style: none; margin: 0; padding: 0; }
.isteps li { display: grid; grid-template-columns: 54px 1fr; padding: 18px 0; border-top: 1px solid rgba(247, 242, 234, .12); opacity: .35; transition: opacity .5s; }
.isteps li.is-on, .no-motion .isteps li { opacity: 1; }
.isteps span { font-family: var(--head); font-size: 1.4rem; color: var(--gold-l); }
.isteps b { display: block; font-family: var(--head); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin-bottom: 4px; }
.isteps p { margin: 0; color: #cdbfb2; font-size: .96rem; }
.implant__art { justify-self: center; width: min(100%, 440px); }
.tooth { width: 100%; height: auto; overflow: visible; }

/* results + lightbox */
.results { padding: 140px var(--pad) 120px; }
.results__head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: end; margin-bottom: 50px; }
.results h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.results__note { margin: 0; color: var(--mute); font-size: .95rem; max-width: 34rem; }
.lb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lb-item { position: relative; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; }
.lb-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.lb-item:hover img { transform: scale(1.05); }
.lb-item span { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; background: rgba(247, 242, 234, .92); font-size: .78rem; font-weight: 500; color: var(--espresso); }
.lb-item--big { grid-column: span 2; grid-row: span 2; }
.results__legal { margin: 24px 0 0; font-size: .8rem; color: var(--mute); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; padding: 30px; background: rgba(28, 19, 14, .94); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox figure { justify-self: center; max-width: min(86vh, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 14px; color: var(--clay); text-align: center; font-size: .95rem; }
.lightbox button { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(230, 201, 131, .5); border-radius: 50%; background: none; color: var(--gold-l); cursor: pointer; }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; }
.lightbox__next { justify-self: end; }

/* credentials */
.cred { display: grid; grid-template-columns: .9fr 1.1fr; grid-template-rows: auto auto; gap: 40px clamp(28px, 5vw, 90px); padding: 130px var(--pad); background: var(--espresso-2); color: var(--marble); }
.cred h2 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); margin-bottom: 1.4rem; }
.cred__txt > p:not(.kicker) { color: #cdbfb2; }
.cred__reg { font-family: var(--head); font-size: 1.3rem; color: var(--gold-l) !important; }
.cred__list { grid-row: span 2; list-style: none; margin: 0; padding: 0; counter-reset: c; }
.cred__list li { counter-increment: c; display: grid; grid-template-columns: 48px 1fr; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(247, 242, 234, .12); }
.cred__list li::before { content: counter(c, decimal-leading-zero); font-size: .78rem; letter-spacing: .1em; color: var(--gold); }
.cred__list b { font-family: var(--head); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.cred__mentor { align-self: end; padding: 28px; border: 1px solid rgba(230, 201, 131, .35); }
.cred__mentor p { margin: 0 0 6px; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cred__mentor h3 { font-size: 2rem; margin-bottom: 14px; }

/* space */
.space { padding: 140px var(--pad); }
.space__head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; align-items: end; margin-bottom: 50px; }
.space__head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.space h2 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); }
.space__head p:last-child { margin: 0; color: var(--mute); max-width: 34rem; }
.space__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 250px 250px 250px; gap: 14px; }
.sp { position: relative; overflow: hidden; background: var(--stone); }
.sp img, .sp video { width: 100%; height: 100%; object-fit: cover; }
.sp figcaption { position: absolute; left: 14px; bottom: 14px; padding: 4px 12px; background: rgba(247, 242, 234, .92); font-size: .78rem; font-weight: 500; }
.sp--view { grid-column: 1; grid-row: 1 / span 3; padding: 18px; background: var(--espresso); }
.sp--rec { grid-column: 2; grid-row: 1; }
.sp--vid { grid-column: 2; grid-row: 2 / span 2; }
.sp__window { position: relative; height: 100%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sp__window img { position: absolute; inset: -8% 0; height: 116%; object-position: 50% 72%; }
.sp__window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.6%, var(--espresso) 49.6%, var(--espresso) 50.4%, transparent 50.4%); pointer-events: none; }
.sp--view figcaption { left: 32px; bottom: 32px; }
.sp--chair { grid-column: 3; grid-row: 1 / span 2; }
.sp--consult { grid-column: 3; grid-row: 3; }

/* reviews */
.reviews { padding: 130px var(--pad); background: var(--stone); }
.reviews__score { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 50px; color: var(--mute); font-size: .9rem; }
.reviews__score b { font-family: var(--head); font-weight: 400; font-size: 4.4rem; line-height: 1; color: var(--espresso); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 17px; height: 17px; }
.rv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 26px; }
.rv blockquote { margin: 0; padding-top: 18px; border-top: 1px solid var(--espresso); }
.rv p { margin: 0 0 12px; }
.rv cite { font-style: normal; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cognac); }
.rv--big { grid-column: 1 / -1; border-top: 0 !important; padding-top: 0 !important; }
.rv--big p { font-family: var(--head); font-size: clamp(1.7rem, 3.2vw, 2.9rem); line-height: 1.2; max-width: 30ch; }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 90px); padding: 130px var(--pad); }
.faq h2 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); margin-bottom: 1.2rem; }
.faq__head p:not(.kicker) { color: var(--mute); }
.faq__list { border-top: 1px solid var(--espresso); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 24px 50px 24px 0; font-family: var(--head); font-size: 1.55rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(var(--cognac), var(--cognac)) center / 100% 1.5px no-repeat, linear-gradient(var(--cognac), var(--cognac)) center / 1.5px 100% no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 40rem; color: var(--mute); }

/* visit */
.visit { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 90px); align-items: center; padding: 130px var(--pad); background: var(--espresso); color: var(--marble); }
.logo--big { width: 220px; margin-bottom: 26px; }
.visit h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.visit dl { margin: 2rem 0; }
.visit dl div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(247, 242, 234, .13); }
.visit dt { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.visit dd { margin: 0; color: #d6c8bb; }
.visit dd a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.visit__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.visit__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.footer { padding: 32px var(--pad) 46px; background: var(--espresso); color: #9c8b7e; text-align: center; font-size: .84rem; border-top: 1px solid rgba(247, 242, 234, .1); }
.footer p { margin: 0; }
.fab { display: none; }

/* responsive */
@media (max-width: 980px) {
  .header { height: 72px; gap: 14px; }
  .brand .logo { width: 104px; }
  .hbtn { display: none; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; margin-left: auto; padding: 0 12px; border: 0; border-radius: 4px; background: var(--espresso); cursor: pointer; }
  .menu-btn span { display: block; height: 1.5px; background: var(--marble); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; padding: 10px var(--pad) 26px; background: var(--marble); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 15px 0; font-family: var(--head); font-size: 1.6rem; border-bottom: 1px solid var(--line); opacity: 1; }
  .header.menu-open { background: var(--marble); }

  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: 0; }
  .implant__pin { grid-template-columns: 1fr; padding: 100px var(--pad); }
  .implant__art { width: min(100%, 340px); order: -1; }
  .results, .cred, .space, .reviews, .faq, .visit { padding: 100px var(--pad); }
  .results__head, .space__head { grid-template-columns: 1fr; }
  .lb-grid { grid-template-columns: 1fr 1fr; }
  .lb-item span { left: 8px; bottom: 8px; padding: 3px 8px; font-size: .68rem; white-space: nowrap; }
  .cred { grid-template-columns: 1fr; }
  .cred__list { grid-row: auto; }
  .space__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 420px 260px 260px; }
  .sp--view { grid-column: 1 / -1; grid-row: 1; }
  .sp--rec { grid-column: 1; grid-row: 2; }
  .sp--vid { grid-column: 1; grid-row: 3; }
  .sp--chair { grid-column: 2; grid-row: 2 / span 2; }
  .sp--consult { display: none; }
  .rv { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .visit__img { max-width: 420px; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 70px 16px 24px; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__prev { grid-row: 2; justify-self: start; }
  .lightbox__next { grid-row: 2; }
  .fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cognac); color: #fff; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5); }
  .fab svg { width: 26px; height: 26px; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero__cta { gap: 18px; }
  .space__grid { grid-template-columns: 1fr; grid-template-rows: 380px 340px 340px; }
  .sp--rec { display: none; }
  .sp--vid { grid-column: 1; grid-row: 2; }
  .sp--chair { grid-column: 1; grid-row: 3; }
  .rv { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.3rem; }
  .visit dl div { grid-template-columns: 1fr; gap: 2px; }
}
