/* Meu Sorriso Clinic — Cohama (v2) */
:root {
  --blush: #f6e9e6;
  --blush-2: #eed7d2;
  --rose: #c9867f;
  --navy: #1d2b4a;
  --navy-2: #2c3d63;
  --navy-d: #131d33;
  --gold: #b48a4a;
  --gold-l: #d9b779;
  --paper: #fffaf8;
  --ink: #1f2433;
  --mute: #6b6670;
  --line: #e6d2cc;
  --serif: "Gilda Display", Georgia, serif;
  --sans: "Mulish", "Segoe UI", system-ui, sans-serif;
  --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(--sans); font-size: 1.04rem; line-height: 1.65; color: var(--ink); background: var(--paper); 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(--serif); font-weight: 400; line-height: 1.08; margin: 0; color: var(--navy); }
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; }

.tag { display: inline-block; margin: 0 0 1.2rem; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.tag--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: 999px; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(29, 43, 74, .6); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--gold { background: var(--gold-l); color: var(--navy-d); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--navy); border-bottom: 1.5px solid var(--rose); padding-bottom: 3px; }
.link svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.link:hover svg { transform: translateX(5px); }

/* header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 30px; height: 82px; padding: 0 var(--pad); transition: transform .45s var(--ease), background .3s, box-shadow .3s; }
.header.is-scrolled { background: rgba(255, 250, 248, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.brand img { width: 190px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--navy); opacity: .85; }
.nav a:hover { opacity: 1; color: var(--rose); }
.hbtn { padding: .66em 1.3em; border-radius: 999px; background: var(--navy); color: #fff; font-size: .86rem; font-weight: 700; text-decoration: none; }
.menu-btn { display: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 80px); min-height: 100svh; padding: 120px var(--pad) 70px; background: radial-gradient(70% 80% at 80% 40%, #f9dfda 0%, var(--blush) 50%, var(--paper) 100%); overflow: hidden; }
.hero h1 { font-size: clamp(2.9rem, 5.6vw, 5.8rem); }
.hero h1 span { font-style: italic; color: var(--rose); }
.hero__lead { max-width: 33rem; margin: 1.6rem 0 2.1rem; font-size: 1.08rem; color: var(--mute); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.hero__rating { display: flex; align-items: center; gap: 10px; margin: 2.2rem 0 0; color: var(--mute); font-size: .9rem; }
.hero__rating b { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; color: var(--navy); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
.hero__visual { position: relative; justify-self: center; width: min(520px, 100%); }
.arch { aspect-ratio: 540 / 600; border-radius: 280px 280px 30px 30px; overflow: hidden; box-shadow: 0 50px 80px -40px rgba(29, 43, 74, .45); }
.arch video { width: 100%; height: 100%; object-fit: cover; }
.dra { position: absolute; left: -12%; bottom: -6%; width: 46%; padding: 8px 8px 12px; border-radius: 18px; background: #fff; box-shadow: 0 30px 40px -24px rgba(29, 43, 74, .5); }
.dra img { width: 100%; aspect-ratio: 900 / 712; object-fit: cover; border-radius: 12px; }
.dra figcaption { margin-top: 8px; padding: 0 6px; font-family: var(--serif); font-size: 1.05rem; color: var(--navy); line-height: 1.2; }
.dra small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; color: var(--gold); }
.sparkle { position: absolute; width: 22px; height: 22px; background: var(--gold-l); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.s1 { right: 4%; top: 6%; }
.s2 { right: -4%; top: 34%; width: 14px; height: 14px; }
.s3 { left: 6%; top: 12%; width: 12px; height: 12px; background: var(--rose); }

/* layers / tooth */
.layers { background: var(--paper); }
.layers__pin { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 90px); min-height: 100svh; padding: 110px var(--pad) 60px; }
.layers h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); max-width: 15ch; margin-bottom: 2rem; }
.lsteps { list-style: none; margin: 0; padding: 0; counter-reset: l; max-width: 32rem; }
.lsteps li { counter-increment: l; display: grid; grid-template-columns: 50px 1fr; padding: 16px 0; border-top: 1px solid var(--line); opacity: .35; transition: opacity .5s; }
.lsteps li::before { content: "0" counter(l); grid-row: span 2; font-family: var(--serif); font-size: 1.3rem; color: var(--rose); }
.lsteps li.is-on, .no-motion .lsteps li { opacity: 1; }
.lsteps b { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; color: var(--navy); }
.lsteps span { color: var(--mute); font-size: .96rem; }
.tooth { justify-self: center; width: min(100%, 520px); padding: 30px; border-radius: 40px; background: radial-gradient(circle at 40% 40%, #fff, var(--blush) 75%); }
.tooth svg { width: 100%; height: auto; overflow: visible; }
.lb { font-weight: 700; }
.layers__notes { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 30px; align-items: end; padding: 0 var(--pad) 130px; }
.layers__notes h3 { font-size: 1.6rem; margin-bottom: 8px; }
.layers__notes p { margin: 0; color: var(--mute); }
.layers__vid { border-radius: 24px; overflow: hidden; }
.layers__vid video { width: 100%; aspect-ratio: 540 / 480; object-fit: cover; }

/* cases viewer */
.cases { padding: 130px var(--pad); background: var(--navy); color: #fff; }
.cases__head { text-align: center; margin-bottom: 40px; }
.cases h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); color: #fff; }
.cases__head p:last-child { color: #b9c3d8; margin: 1rem 0 0; }
.viewer { max-width: 980px; margin: 0 auto; }
.ba { --pos: 50%; --ratio: 900 / 481; position: relative; aspect-ratio: var(--ratio); border-radius: 24px; overflow: hidden; background: var(--navy-d); user-select: none; transition: aspect-ratio .5s var(--ease); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__handle i { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5); }
.ba__handle i::before, .ba__handle i::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--navy); border-left: 2px solid var(--navy); }
.ba__handle i::before { left: 12px; transform: rotate(-45deg); }
.ba__handle i::after { right: 12px; transform: rotate(135deg); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__label { position: absolute; top: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(19, 29, 51, .7); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.ba__label--l { left: 16px; }
.ba__label--r { right: 16px; background: var(--gold-l); color: var(--navy-d); }
.viewer__cap { margin: 16px 0 24px; text-align: center; font-family: var(--serif); font-size: 1.3rem; color: #e6ebf5; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thumbs button { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: none; cursor: pointer; opacity: .55; transition: opacity .3s, transform .3s var(--ease); }
.thumbs button[aria-selected="true"], .thumbs button:hover { opacity: 1; }
.thumbs button[aria-selected="true"] { box-shadow: 0 0 0 2px var(--gold-l); }
.thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumbs span { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(19, 29, 51, .75); font-size: .72rem; font-weight: 700; color: #fff; }
.cases__note { max-width: 980px; margin: 24px auto 0; text-align: center; font-size: .8rem; color: #8e9ab4; }

/* services */
.services { padding: 130px var(--pad); }
.services__head { max-width: 760px; margin-bottom: 40px; }
.services h2 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); }
.svc { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 60px); padding: 40px; border-radius: 32px; background: var(--blush); }
.svc__tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.svc__tabs button { padding: .55em 1.1em; border: 0; border-radius: 999px; background: none; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--navy); opacity: .45; cursor: pointer; transition: opacity .3s, background .3s; }
.svc__tabs button[aria-selected="true"] { opacity: 1; background: #fff; box-shadow: 0 10px 20px -16px rgba(29, 43, 74, .5); }
.svc__tabs button:hover { opacity: 1; }
.svc__panel { display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.svc__list[hidden] { display: none; }
.svc__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.svc__list li { padding: .7em 1.2em; border-radius: 999px; background: #fff; font-weight: 600; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.svc .link { align-self: flex-start; }

/* fear */
.fear { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: center; padding: 120px var(--pad); background: var(--blush-2); }
.fear__img { border-radius: 300px 300px 24px 24px; overflow: hidden; }
.fear__img img { width: 100%; aspect-ratio: 900 / 900; object-fit: cover; }
.fear h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); margin-bottom: 1.4rem; }
.fear p { color: var(--mute); }
.fear blockquote { margin: 1.6rem 0 0; padding: 22px 26px; border-radius: 22px; background: #fff; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.fear cite { display: block; margin-top: 8px; font-family: var(--sans); font-style: normal; font-size: .8rem; font-weight: 700; color: var(--gold); }

/* clinic */
.clinic { padding: 140px var(--pad); overflow: hidden; }
.clinic__head { max-width: 820px; margin-bottom: 50px; }
.clinic h2 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); font-style: italic; }
.clinic__head p:last-child { color: var(--mute); margin: 1.2rem 0 0; }
.clinic__row { display: grid; grid-template-columns: 1fr .9fr .8fr; gap: 18px; align-items: start; }
.clinic__row figure { border-radius: 24px; overflow: hidden; }
.clinic__row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.clinic__row figure:nth-child(2) { margin-top: 80px; }
.clinic__row figure:nth-child(3) { margin-top: 30px; }

/* reviews deck */
.reviews { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 90px); align-items: center; padding: 130px var(--pad); background: var(--navy); color: #fff; overflow: hidden; }
.reviews h2 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); color: #fff; margin-bottom: 30px; }
.deck__next { display: inline-flex; align-items: center; gap: 10px; padding: .9em 1.4em; border: 1px solid var(--gold-l); border-radius: 999px; background: none; color: var(--gold-l); font-weight: 700; cursor: pointer; transition: background .3s, color .3s; }
.deck__next:hover { background: var(--gold-l); color: var(--navy-d); }
.deck__next svg { width: 18px; height: 18px; }
.deck { position: relative; height: 340px; }
.deck blockquote { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 40px 44px; border-radius: 28px; background: var(--paper); color: var(--navy); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); transform-origin: 50% 100%; }
.deck p { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.35; }
.deck cite { font-style: normal; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(28px, 5vw, 90px); padding: 130px var(--pad); background: var(--navy-d); color: #fff; }
.contact__logo { width: 220px; margin-bottom: 30px; }
.contact h2 { font-size: clamp(2.3rem, 4.2vw, 4rem); color: #fff; margin-bottom: 2rem; }
.contact dl { margin: 0; align-self: end; }
.contact dl div { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact dt { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-l); }
.contact dd { margin: 4px 0 0; color: #c6cee0; }
.contact__map { grid-column: 1 / -1; position: relative; height: 360px; border-radius: 24px; overflow: hidden; }
.contact__map iframe { width: 100%; height: 100%; border: 0; }
.contact__map a { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: .7em 1.2em; border-radius: 999px; background: var(--gold-l); color: var(--navy-d); font-weight: 700; font-size: .86rem; text-decoration: none; }
.contact__map svg { width: 18px; height: 18px; }

.footer { padding: 30px var(--pad) 40px; background: var(--navy-d); color: #8e9ab4; text-align: center; font-size: .82rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer p { margin: 0; }
.fab { display: none; }

/* responsive */
@media (max-width: 980px) {
  .header { height: 70px; gap: 14px; background: rgba(255, 250, 248, .94); }
  .brand img { width: 150px; }
  .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: 50%; background: var(--navy); cursor: pointer; }
  .menu-btn span { display: block; height: 2px; background: #fff; 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(-4px) rotate(-45deg); }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; padding: 10px var(--pad) 26px; background: var(--paper); 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(--serif); font-size: 1.5rem; font-weight: 400; border-bottom: 1px solid var(--line); opacity: 1; }

  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: 0; }
  .hero__visual { width: min(400px, 88%); margin-top: 30px; }
  .dra { left: -8%; }
  .layers__pin { grid-template-columns: 1fr; padding: 100px var(--pad) 40px; min-height: 0; }
  .lsteps li { opacity: 1; }
  .tooth { order: -1; width: min(100%, 420px); }
  .layers__notes { grid-template-columns: 1fr; padding-bottom: 100px; }
  .cases, .services, .fear, .clinic, .reviews, .contact { padding: 100px var(--pad); }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; padding: 26px; }
  .svc__tabs { flex-direction: row; flex-wrap: wrap; }
  .svc__tabs button { font-size: 1.2rem; }
  .fear { grid-template-columns: 1fr; }
  .fear__img { max-width: 420px; }
  .clinic__row { grid-template-columns: 1fr 1fr; }
  .clinic__row figure:nth-child(3) { display: none; }
  .reviews { grid-template-columns: 1fr; }
  .deck { height: 380px; }
  .contact { grid-template-columns: 1fr; }
  .fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); 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.5rem, 11.5vw, 3.3rem); }
  .dra { width: 52%; }
  .ba__handle i { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .deck blockquote { padding: 28px; }
  .deck { height: 420px; }
}
@media (prefers-reduced-motion: reduce) { .sparkle { display: none; } }
