/* Layout: coluna editorial de 12 trilhos, muito respiro, fotos em molduras de arco
   (eco das boiseries do consultório) e um único bloco escuro no encerramento. */
:root {
  --paper: #F4F1EC;
  --sand: #E9E2D7;
  --stone: #D6CCBE;
  --taupe: #8A7362;
  --mute: #6C655D;
  --ink: #26221E;
  --ink-soft: #3B352F;
  --line: rgba(38, 34, 30, .14);
  --line-light: rgba(244, 241, 236, .18);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: max(clamp(20px, 5vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section: clamp(72px, 12vw, 176px);
  --ease: cubic-bezier(.22, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 4px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }
::selection { background: var(--stone); }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }

/* ── Tipografia ─────────────────────────────── */
.label {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--taupe); font-weight: 500;
}
.h2 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -.015em;
  text-wrap: balance;
}
.h2 em, .hero-title em { font-style: italic; font-weight: 300; color: var(--taupe); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-soft); }
.text { color: var(--mute); max-width: 56ch; }

/* ── Botões e links ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
@media (hover: hover) { .btn:hover { background: var(--taupe); } }
@media (hover: hover) { .btn:hover svg { transform: translateX(4px); } }
.btn:active { transform: scale(.98); }
.link:active, .faq-q:active, .service-toggle:active, .channels a:active, .footer a:active { color: var(--taupe); }
.contact .channels a:active, .contact .footer a:active { color: var(--stone); }
.shot:active .frame img { transform: scale(1.03); }
.btn--light { background: var(--paper); color: var(--ink); }
@media (hover: hover) { .btn--light:hover { background: var(--stone); } }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
@media (hover: hover) { .link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--taupe); } }
.link svg { width: 14px; height: 14px; }
.link { position: relative; }
.link::before { content: ""; position: absolute; inset: -6px -4px; }

/* ── Header ─────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 88px; transition: height .5s var(--ease);
}
.header.is-scrolled { background: rgba(244, 241, 236, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled .header-in { height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; padding-block: 8px; }
.brand img { width: 34px; height: auto; }
.brand-name { font-family: var(--display); font-size: 17px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.1; }
.brand-role { display: block; font-family: var(--body); font-size: 9.5px; letter-spacing: .3em; color: var(--taupe); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a:not(.btn) { font-size: 14.5px; color: var(--ink-soft); position: relative; padding-block: 8px; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
@media (hover: hover) { .nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; } }
.burger { display: none; width: 48px; height: 48px; margin-right: -10px; position: relative; z-index: 120; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 20px; }
.burger span:last-child { top: 27px; }
.menu-open .burger span:first-child { top: 23.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 23.5px; transform: rotate(-45deg); }

.menu-scrim {
  position: fixed; inset: 0; z-index: 89; background: rgba(244, 241, 236, .62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.menu-open .menu-scrim { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; z-index: 90; width: min(100%, 440px); background: var(--paper);
  padding: calc(104px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -1px 0 0 var(--line), -40px 0 80px -60px rgba(38, 34, 30, .5);
  transform: translateX(104%); visibility: hidden;
  transition: transform .7s var(--ease), visibility 0s .7s;
}
.menu-open .mobile-menu { transform: none; visibility: visible; transition: transform .7s var(--ease), visibility 0s; }
.menu-open .header { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mobile-menu ul { display: grid; }
.mobile-menu nav li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 17px 0;
  font-family: var(--display); font-weight: 300; font-size: clamp(30px, 8.6vw, 38px); line-height: 1.1;
  transform: translateY(70%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease), color .3s;
}
.mobile-menu nav a span { font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--taupe); min-width: 22px; transform: translateY(-.5em); }
.mobile-menu nav a:active { color: var(--taupe); }
.menu-open .mobile-menu nav a { transform: none; opacity: 1; }
.menu-open .mobile-menu nav li:nth-child(1) a { transition-delay: .12s; }
.menu-open .mobile-menu nav li:nth-child(2) a { transition-delay: .17s; }
.menu-open .mobile-menu nav li:nth-child(3) a { transition-delay: .22s; }
.menu-open .mobile-menu nav li:nth-child(4) a { transition-delay: .27s; }
.menu-open .mobile-menu nav li:nth-child(5) a { transition-delay: .32s; }
.mobile-menu-foot { display: grid; gap: 6px; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.menu-open .mobile-menu-foot { opacity: 1; transform: none; transition-delay: .4s; }
.mobile-menu-foot .btn { width: 100%; }
.menu-meta { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--mute); }
.menu-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 calc(50% + 11px) / 100% 1px no-repeat; }

/* ── Hero ───────────────────────────────────── */
.hero { padding-top: calc(88px + clamp(28px, 5vw, 72px)); padding-bottom: clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.hero-copy { grid-column: 1 / span 7; padding-bottom: clamp(8px, 3vw, 48px); }
.hero-eyebrow { display: block; margin-bottom: clamp(24px, 3vw, 40px); font-family: var(--body); }
.hero-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(52px, 8.4vw, 128px); line-height: .98; letter-spacing: -.025em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .line > span { display: block; }
.hero-lead { max-width: 44ch; margin-top: clamp(28px, 3.4vw, 44px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(32px, 3.6vw, 48px); }
.hero-visual { grid-column: 9 / span 4; position: relative; }
.arch { border-radius: 999px 999px 14px 14px; overflow: hidden; aspect-ratio: 4 / 5.3; background: var(--sand); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-aside { position: absolute; left: -46%; bottom: 9%; width: 58%; display: block; }
.hero-aside-in {
  display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px -30px rgba(38, 34, 30, .45);
  border: 6px solid var(--paper); background: var(--paper);
}
.hero-aside img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .hero-aside:hover img { transform: scale(1.05); } }
.hero-aside-cap { display: none; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: clamp(48px, 6vw, 88px);
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--mute);
}
.hero-meta li { display: flex; align-items: center; gap: 16px; }
.hero-meta li:not(:last-child)::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--stone); }

/* entrada */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round 999px 999px 14px 14px); } to { clip-path: inset(0 0 0 0 round 999px 999px 14px 14px); } }
@keyframes settle { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-title .line > span { animation: rise 1.25s var(--ease) both; }
.hero-title .line:nth-child(1) > span { animation-delay: .25s; }
.hero-title .line:nth-child(2) > span { animation-delay: .38s; }
.hero-eyebrow { animation: fade-up 1s var(--ease) .1s both; }
.hero-lead { animation: fade-up 1.1s var(--ease) .75s both; }
.hero-actions { animation: fade-up 1.1s var(--ease) .9s both; }
.hero-meta { animation: fade 1.4s var(--ease) 1.3s both; }
.arch { animation: unveil 1.7s cubic-bezier(.65, 0, .15, 1) .15s both; }
.arch img { animation: settle 2.4s var(--ease) .15s both; }
.hero-aside-in { animation: fade-up 1.2s var(--ease) 1.25s both; }
.header { animation: fade 1s var(--ease) .1s both; }

/* ── Seções ─────────────────────────────────── */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 96px); max-width: 880px; }

.frame { overflow: hidden; border-radius: 14px; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }

/* Sobre */
.about { background: var(--sand); border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0; }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; column-gap: 24px; row-gap: 28px; }
.about-figure { grid-column: 1 / span 5; grid-row: 1 / span 2; align-self: center; }
.about-head { grid-column: 7 / span 6; grid-row: 1; align-self: end; display: grid; gap: 28px; }
.about-figure .frame { aspect-ratio: 4 / 5; border-radius: 999px 999px 14px 14px; }
.about-figure .frame img { object-position: 72% 50%; }
.about-copy { grid-column: 7 / span 6; grid-row: 2; align-self: start; display: grid; gap: 28px; }
.about-copy .text + .text { margin-top: -8px; }
.signature { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 24px; color: var(--ink-soft); }
.signature small { display: block; font-family: var(--body); font-style: normal; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-top: 6px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.principles li { padding-top: 28px; }
.principles h3 { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.25; margin-bottom: 10px; }
.principles p { color: var(--mute); font-size: 16px; max-width: 34ch; }

/* Serviços */
.service { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.service + .service { margin-top: clamp(72px, 10vw, 152px); }
.service-figure { grid-column: 1 / span 7; }
.service-figure .frame { aspect-ratio: 3 / 2; }
.service-copy { grid-column: 9 / span 4; display: grid; gap: 22px; }
.service--flip .service-figure { grid-column: 7 / span 6; order: 2; }
.service--flip .service-figure .frame { aspect-ratio: 5 / 4; }
.service--flip .service-copy { grid-column: 1 / span 5; padding-right: clamp(0px, 4vw, 64px); }
.service h3 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.01em; }
.service-more { margin-top: 6px; }
.service-toggle { display: none; }
.service-list { border-top: 1px solid var(--line); }
.service-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-soft); transition: padding-left .45s var(--ease), color .3s; }
@media (hover: hover) { .service-list li:hover { padding-left: 10px; color: var(--taupe); } }
.service-copy .link { justify-self: start; margin-top: 6px; }

.forensic {
  margin-top: clamp(80px, 10vw, 152px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 20px; align-items: start;
}
.forensic .label { grid-column: 1 / span 3; color: var(--mute); padding-top: 8px; }
.forensic h3 { grid-column: 4 / span 4; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2vw, 27px); line-height: 1.25; }
.forensic div { grid-column: 8 / span 5; display: grid; gap: 16px; }
.forensic p { color: var(--mute); font-size: 16px; }
.forensic .link { justify-self: start; }

/* Clínica */
.clinic { background: var(--sand); }
.clinic .section-head { grid-template-columns: 1fr; }
.clinic-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 64px; margin-bottom: clamp(48px, 6vw, 96px); }
.clinic-head .text { max-width: 40ch; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 6vw, 88px) 24px; align-items: start; }
.shot { display: block; width: 100%; text-align: left; cursor: zoom-in; }
.shot .frame { position: relative; display: block; }
.shot .frame::after {
  content: "+"; position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink); font-size: 20px; font-weight: 300;
  opacity: 0; transform: scale(.8); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.shot:focus-visible .frame img { transform: scale(1.04); }
@media (hover: hover) { .shot:hover .frame img { transform: scale(1.04); } }
.shot:focus-visible .frame::after { opacity: 1; transform: none; }
@media (hover: hover) { .shot:hover .frame::after { opacity: 1; transform: none; } }
.shot figcaption, .shot .cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 13.5px; color: var(--mute); }
.shot .cap b { font-weight: 500; color: var(--ink); }
.g-a { grid-column: 1 / span 8; } .g-a .frame { aspect-ratio: 3 / 2; }
.g-b { grid-column: 9 / span 4; margin-top: clamp(40px, 9vw, 140px); } .g-b .frame { aspect-ratio: 2 / 3; }
.g-c { grid-column: 2 / span 4; } .g-c .frame { aspect-ratio: 3 / 4; border-radius: 999px 999px 14px 14px; }
.g-d { grid-column: 6 / span 7; margin-top: clamp(40px, 7vw, 110px); } .g-d .frame { aspect-ratio: 16 / 11; }
.g-e { grid-column: 1 / span 6; } .g-e .frame { aspect-ratio: 4 / 3; }
.g-f { grid-column: 8 / span 5; margin-top: clamp(40px, 6vw, 96px); } .g-f .frame { aspect-ratio: 5 / 4; }

.gallery-nav { display: none; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; }
.faq-intro { grid-column: 1 / span 4; display: grid; gap: 22px; align-content: start; position: sticky; top: 120px; align-self: start; }
.faq-intro .link { justify-self: start; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font: inherit; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left;
  padding: 26px 0; font-family: var(--display); font-weight: 400; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3;
  transition: color .3s;
}
@media (hover: hover) { .faq-q:hover { color: var(--taupe); } }
.faq-q i, .service-toggle i { flex: none; position: relative; width: 16px; height: 16px; }
.faq-q i::before, .faq-q i::after, .service-toggle i::before, .service-toggle i::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.faq-q i::after, .service-toggle i::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] i::after, .service-toggle[aria-expanded="true"] i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease), visibility 0s .55s; }
.faq-item.is-open .faq-a { visibility: visible; transition: grid-template-rows .55s var(--ease), visibility 0s; }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p { color: var(--mute); max-width: 60ch; padding-bottom: 28px; opacity: 0; transition: opacity .4s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transition-delay: .15s; }

/* Localização */
.location { padding-top: 0; }
.location-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: stretch; }
.location-copy { grid-column: 1 / span 4; display: grid; gap: 22px; align-content: center; }
.location-copy address { font-style: normal; font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; }
.location-copy .btn { justify-self: start; margin-top: 10px; }
.map { grid-column: 6 / span 7; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--sand); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.75) sepia(.14) contrast(.94); }
.map-art { position: absolute; inset: 0; display: grid; place-items: center;
  background:
    linear-gradient(118deg, transparent 49.7%, var(--paper) 49.7% 50.6%, transparent 50.6%),
    linear-gradient(28deg, transparent 38.6%, var(--paper) 38.6% 39.8%, transparent 39.8%),
    linear-gradient(28deg, transparent 63.6%, var(--paper) 63.6% 64.2%, transparent 64.2%),
    linear-gradient(100deg, transparent 23.7%, var(--paper) 23.7% 24.2%, transparent 24.2%),
    linear-gradient(100deg, transparent 77.7%, var(--paper) 77.7% 78.6%, transparent 78.6%),
    var(--sand);
}
.pin { display: grid; justify-items: center; gap: 14px; }
.pin i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 10px rgba(138, 115, 98, .22); animation: pulse 2.8s ease-in-out infinite; }
.pin span { background: var(--paper); padding: 8px 16px; border-radius: 999px; font-size: 13px; letter-spacing: .04em; }
@keyframes pulse { 50% { box-shadow: 0 0 0 20px rgba(138, 115, 98, 0); } }

/* Contato */
.contact { background: var(--ink); color: var(--paper); border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0; padding-top: var(--section); }
.contact .label { color: var(--stone); }
.contact-main { display: grid; gap: 32px; justify-items: start; max-width: 900px; }
.contact-title { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.contact-title em { font-style: italic; color: var(--stone); }
.contact-main .lead { color: rgba(244, 241, 236, .72); max-width: 48ch; }
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(64px, 8vw, 120px); padding-block: 36px; border-block: 1px solid var(--line-light); }
.channels dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.channels dd { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(20px, 2vw, 26px); }
.channels a { position: relative; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 3px; }
@media (hover: hover) { .channels a:hover { background-size: 100% 1px; } }
.channels a::before { content: ""; position: absolute; inset: -10px 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: rgba(244, 241, 236, .55); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-block: -12px; }
.footer nav a { padding-block: 12px; }
.footer { align-items: center; }
@media (hover: hover) { .footer a:hover { color: var(--paper); } }

/* CTA persistente (telas de toque) */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 80;
  display: none; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(244, 241, 236, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--line);
  transform: translateY(100%); visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s .6s;
}
.dock.is-on { transform: none; visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.dock-text { display: grid; line-height: 1.3; min-width: 0; }
.dock-text b { font-family: var(--display); font-weight: 400; font-size: 15.5px; white-space: nowrap; }
.dock-text span { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-btn { flex: none; gap: 9px; padding: 0 20px 0 16px; }
.dock-btn svg { width: 18px; height: 18px; }

.consent {
  position: fixed; z-index: 85; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100% - 48px)); display: grid; gap: 16px; padding: 20px 22px;
  background: var(--paper); border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(38, 34, 30, .45), 0 0 0 1px var(--line);
  font-size: 14.5px; line-height: 1.55; color: var(--ink-soft);
  animation: fade-up .8s var(--ease) both;
}
.consent-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.consent-deny { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: background .3s; }
@media (hover: hover) { .consent-deny:hover { background: var(--sand); } }
.consent-deny:active { background: var(--stone); }
.consent-open .dock { transform: translateY(100%); visibility: hidden; }
.consent[hidden] { display: none; }
.consent.is-leaving { animation: consent-out .45s var(--ease) forwards; pointer-events: none; }
@keyframes consent-out { to { opacity: 0; transform: translateY(18px) scale(.98); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(30, 27, 24, .94); display: grid; place-items: center; padding: 72px 16px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { display: grid; gap: 16px; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); width: auto; border-radius: 8px; transform: scale(.97); transition: transform .6s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { color: rgba(244, 241, 236, .75); font-size: 14px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--paper); display: grid; place-items: center; transition: background .3s, color .3s; }
@media (hover: hover) { .lb-btn:hover { background: var(--paper); color: var(--ink); } }
.lb-btn svg { width: 18px; height: 18px; }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }

/* Reveals (só com JS ativo) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; transition: none; }
.js [data-reveal="img"] .frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s cubic-bezier(.65, 0, .15, 1); }
.js [data-reveal="img"].is-in .frame { clip-path: inset(0 0 0 0); }
.js [data-reveal="img"] .cap { opacity: 0; transition: opacity 1s var(--ease) .5s; }
.js [data-reveal="img"].is-in .cap { opacity: 1; }
.js [data-reveal="img"] .frame img { transform: scale(1.12); }
.js [data-reveal="img"].is-in .frame img { transform: scale(1); }
@media (hover: hover) { .js .shot[data-reveal="img"].is-in:hover .frame img { transform: scale(1.04); } }
[data-parallax] { will-change: transform; }

/* Serviço com foto vertical */
.service--portrait .service-figure { grid-column: 2 / span 5; }
.service--portrait .service-figure .frame { aspect-ratio: 4 / 5; }
.service--portrait .service-figure .frame img { object-position: 40% 35%; }
.service--portrait .service-copy { grid-column: 8 / span 5; }

/* Telas de toque: o que no desktop aparece no hover fica sempre visível */
@media (hover: none) {
  .shot .frame::after { opacity: .92; transform: none; width: 36px; height: 36px; right: 10px; bottom: 10px; font-size: 17px; }
}

/* ── Notebook ───────────────────────────────── */
@media (max-width: 1180px) {
  .hero-visual { grid-column: 8 / span 5; }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-aside { left: -30%; width: 50%; }
  .service-copy { grid-column: 9 / span 4; }
}

/* ── Tablet (até 1023px) ────────────────────── */
@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: block; }
  .dock { display: flex; }

  .hero-grid { align-items: center; }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-visual { grid-column: 8 / span 5; }
  .hero-title { font-size: clamp(48px, 9vw, 84px); }
  /* o nome já está no header; no <h1> ele segue disponível para leitores de tela e buscadores */
  .eyebrow-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* "Conhecer a clínica" deixa de ser link solto e vira cartão sobre a foto */
  .hero-actions .link { display: none; }
  .hero-aside { left: auto; right: -10px; bottom: -22px; width: auto; }
  .hero-aside-in {
    display: flex; align-items: center; gap: 12px; aspect-ratio: auto;
    border: 0; padding: 6px 16px 6px 6px; border-radius: 12px;
    box-shadow: 0 18px 40px -22px rgba(38, 34, 30, .55);
  }
  .hero-aside-in img { width: 76px; height: 58px; border-radius: 8px; }
  .hero-aside-cap { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
  .hero-aside-cap svg { width: 14px; height: 14px; }
  .hero-aside:active .hero-aside-cap { color: var(--taupe); }
  .hero-meta { margin-top: clamp(56px, 8vw, 80px); }

  .about-figure { grid-column: 1 / span 5; }
  .about-head, .about-copy { grid-column: 6 / span 7; padding-left: 16px; }

  .service-figure, .service--flip .service-figure { grid-column: 1 / -1; order: 0; }
  .service-figure .frame, .service--flip .service-figure .frame { aspect-ratio: 16 / 10; }
  .service-copy, .service--flip .service-copy { grid-column: 1 / -1; padding-right: 0; margin-top: 36px; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; }
  .service-copy .label, .service-copy h3, .service-copy .text { grid-column: 1; }
  .service-copy .service-more { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }

  /* foto vertical: lado a lado com o texto, lista abaixo */
  .service--portrait .service-figure { grid-column: 1 / span 5; }
  .service--portrait .service-figure .frame { aspect-ratio: 4 / 5; }
  .service--portrait { align-items: start; }
  .service--portrait .service-copy { grid-column: 7 / span 6; margin-top: 0; grid-template-columns: 1fr; }
  .service--portrait .service-copy .service-more { grid-column: 1; grid-row: auto; margin-top: 6px; }

  .forensic .label { grid-column: 1 / -1; padding: 0; }
  .forensic h3 { grid-column: 1 / span 5; }
  .forensic div { grid-column: 7 / span 6; }

  .faq-intro { grid-column: 1 / -1; position: static; }
  .faq-list { grid-column: 1 / -1; }

  .location-copy { grid-column: 1 / -1; margin-bottom: 40px; }
  .map { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* ── Celular (até 767px) ────────────────────── */
@media (max-width: 767px) {
  body { font-size: 16.5px; }
  [id] { scroll-margin-top: 72px; }
  .label { font-size: 11.5px; letter-spacing: .18em; }
  .h2 { font-size: clamp(31px, 8.6vw, 44px); }
  .lead { font-size: 17.5px; line-height: 1.55; }
  .section-head { gap: 16px; margin-bottom: 36px; }

  /* Header e menu */
  .header-in { height: 64px; }
  .header.is-scrolled .header-in { height: 58px; }
  .brand { gap: 12px; }
  .brand img { width: 27px; }
  .brand-name { font-size: 14.5px; }
  .brand-role { font-size: 8.5px; }
  .mobile-menu { width: 100%; box-shadow: none; padding-top: calc(92px + env(safe-area-inset-top, 0px)); transform: none; clip-path: inset(0 0 100% 0); transition: clip-path .75s cubic-bezier(.65, 0, .15, 1), visibility 0s .75s; }
  .menu-open .mobile-menu { clip-path: inset(0 0 0 0); transition: clip-path .75s cubic-bezier(.65, 0, .15, 1), visibility 0s; }
  .menu-scrim { display: none; }

  /* Hero: texto compacto para o rosto entrar na primeira tela */
  .hero { padding-top: calc(64px + 18px + env(safe-area-inset-top, 0px)); padding-bottom: 56px; }
  .hero-grid { display: block; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-title { font-size: clamp(43px, 14vw, 68px); }
  .hero-lead { margin-top: 20px; font-size: 16.5px; max-width: 34em; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 auto; max-width: 420px; }
  .hero-visual { margin-top: 32px; margin-left: auto; max-width: 460px; }
  .arch { aspect-ratio: 1 / 1.1; }
  .arch img { object-position: 50% 10%; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 56px; padding-top: 0; border-top: 0; font-size: 13px; line-height: 1.4; }
  .hero-meta li { padding: 13px 0; border-top: 1px solid var(--line); }
  .hero-meta li::after { content: none !important; }

  /* Sobre: título, foto, texto */
  .about-grid { display: flex; flex-direction: column; gap: 0; }
  .about-head { gap: 16px; padding-left: 0; }
  .about-figure { margin-top: 32px; width: 100%; max-width: 520px; }
  .about-figure .frame { aspect-ratio: 1 / 1.04; }
  .about-figure .frame img { object-position: 68% 50%; }
  .about-copy { margin-top: 36px; gap: 20px; padding-left: 0; }
  .about-copy .text + .text { margin-top: -4px; }
  .signature { margin-top: 4px; }
  .principles { grid-template-columns: 1fr; border-top: 0; margin-top: 48px; counter-reset: principio; }
  .principles li { display: grid; grid-template-columns: 38px 1fr; border-top: 1px solid var(--line); padding-block: 20px; }
  .principles li:last-child { padding-bottom: 0; }
  .principles li::before { counter-increment: principio; content: "0" counter(principio); font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--taupe); padding-top: 7px; }
  .principles h3 { font-size: 20px; margin-bottom: 6px; }
  .principles p { grid-column: 2; font-size: 15.5px; max-width: none; }

  /* Serviços: lista recolhida, abre no toque */
  .service, .forensic { display: block; }
  .service + .service { margin-top: 64px; }
  .service-figure .frame, .service--flip .service-figure .frame { aspect-ratio: 4 / 3; }
  .service--portrait .service-figure .frame { aspect-ratio: 1 / 1.06; }
  .service--portrait .service-figure .frame img { object-position: 38% 26%; }
  .service--portrait .service-copy { margin-top: 24px; }
  .service--flip .service-figure .frame img { object-position: 50% 60%; }
  .service-copy, .service--flip .service-copy { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .service h3 { font-size: 31px; }
  .service-copy .service-more { grid-column: 1; grid-row: auto; margin-top: 10px; border-block: 1px solid var(--line); }
  .service-toggle { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; text-align: left; font-size: 15.5px; font-weight: 500; transition: color .3s; }
  .service-toggle span { margin-left: auto; font-size: 12.5px; font-weight: 400; color: var(--mute); }
  .service-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease), visibility 0s .55s; }
  .service-panel > div { overflow: hidden; min-height: 0; }
  .service-toggle[aria-expanded="true"] + .service-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s var(--ease), visibility 0s; }
  .service-list li { padding: 12px 0; font-size: 15px; opacity: 0; transition: opacity .4s var(--ease); }
  .service-list li:last-child { border-bottom: 0; }
  .service-toggle[aria-expanded="true"] + .service-panel li { opacity: 1; transition-delay: .12s; }
  .service-copy .link { margin-top: 8px; }
  .forensic { margin-top: 64px; padding: 28px 22px 26px; border: 0; border-radius: 18px; background: var(--sand); }
  .forensic > * + * { margin-top: 14px; }
  .forensic div { gap: 12px; }

  /* Clínica: carrossel com fotos de larguras diferentes */
  .clinic-head { display: grid; gap: 16px; margin-bottom: 32px; }
  .gallery {
    --gh: clamp(250px, 74vw, 400px);
    display: flex; align-items: flex-start; gap: 14px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery > .shot { flex: none; width: auto; margin-top: 0; scroll-snap-align: start; }
  .gallery .frame { height: var(--gh); aspect-ratio: 11 / 10; }
  .gallery .g-b .frame, .gallery .g-c .frame { aspect-ratio: 3 / 4; }
  .g-c .frame { border-radius: 999px 999px 12px 12px; }
  .g-a img { object-position: 62% 50%; }
  .g-d img { object-position: 58% 50%; }
  .g-e img { object-position: 64% 50%; }
  .g-f img { object-position: 60% 50%; }
  .shot .frame::after { opacity: .92; transform: none; width: 36px; height: 36px; right: 10px; bottom: 10px; font-size: 17px; }
  .g-c .frame::after { right: 50%; margin-right: -18px; }
  .shot .cap { margin-top: 12px; }
  .shot .cap span { display: none; }
  .gallery-nav { display: flex; align-items: center; gap: 16px; margin-top: 24px; font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
  .gallery-count b { font-weight: 500; color: var(--ink); }
  .gallery-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
  .gallery-bar i { position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(.1667); transition: transform .35s var(--ease); }
  .gallery-hint { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; transition: opacity .6s var(--ease); }
  .gallery-nav.is-used .gallery-hint { opacity: 0; }

  /* FAQ: perguntas primeiro, link para dúvidas depois */
  .faq-grid { display: flex; flex-direction: column; gap: 0; }
  .faq-intro { display: contents; }
  .faq-intro .h2 { margin-top: 16px; }
  .faq-intro .text { margin-top: 16px; }
  .faq-list { order: 2; margin-top: 32px; }
  .faq-intro .link { order: 3; align-self: flex-start; margin-top: 28px; }
  .faq-q { min-height: 68px; padding: 20px 0; gap: 20px; font-size: 19px; }
  .faq-q i { width: 18px; height: 18px; }
  .faq-a p { padding-bottom: 26px; padding-right: 12px; }

  /* Localização: texto, mapa, ação */
  .location-grid { display: flex; flex-direction: column; gap: 0; }
  .location-copy { display: contents; }
  .location-copy address { margin-top: 16px; }
  .location-copy .text { margin-top: 14px; }
  .map { order: 2; margin-top: 28px; aspect-ratio: 4 / 3; }
  .location-copy .btn { order: 3; margin-top: 20px; }

  /* Contato */
  .contact-main { gap: 24px; }
  .contact-main .btn { width: 100%; max-width: 420px; }
  .channels { grid-template-columns: 1fr; gap: 0; margin-top: 56px; padding-block: 0; }
  .channels > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
  .channels > div + div { border-top: 1px solid var(--line-light); }
  .channels dt { margin: 0; }
  .channels dd { font-size: 19px; text-align: right; }
  .channels a { display: inline-block; padding-block: 12px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .footer nav { gap: 0 22px; }

  .consent { left: var(--gutter); right: var(--gutter); width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 18px; font-size: 14px; }
  .consent-actions .btn, .consent-deny { flex: 1; }

  .lb-prev, .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin: 0; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .lightbox img { max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); }
}

/* Celular com mais largura (paisagem, dobráveis): ações não precisam ocupar a linha toda */
@media (min-width: 560px) and (max-width: 767px) {
  .hero-actions .btn { flex: 0 0 auto; }
  .location-copy .btn, .contact-main .btn { align-self: flex-start; width: auto; }
  .principles { grid-template-columns: repeat(3, 1fr); gap: 0 24px; border-top: 1px solid var(--line); }
  .principles li { display: block; border-top: 0; }
  .principles li::before { display: block; padding: 0 0 10px; }
}

/* Celular pequeno */
@media (max-width: 374px) {
  .brand-name { letter-spacing: .16em; }
  .hero-eyebrow { letter-spacing: .14em; }
  .service-toggle span { display: none; }
  .dock-text span { display: none; }
  .channels dd { font-size: 17.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-reveal="img"] .frame, .js [data-reveal="img"] .cap { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="img"] .frame img { transform: none; }
}

