/* ==========================================================================
   Dra. Djanane Teixeira — Minimalist White & Black
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-var.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-medium.woff") format("woff");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --white-2: #fafafa;
  --black: #111111;
  --black-2: #242424;
  --gray: #707070;          /* #777 ajustado para contraste AA em textos pequenos */
  --line: #eaeaea;
  --beige: #d8c8b8;

  --font-title: "DM Sans", "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 11vw, 150px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 500; margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
dl, dd, figure, address { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--black); color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--black); color: var(--white); padding: 10px 16px; border-radius: 999px; font-size: .875rem;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typo helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-text); font-weight: 500;
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gray);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--beige); }
.eyebrow--light { color: rgba(255,255,255,.6); }
.eyebrow--light::before { background: var(--beige); }

h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--gray); max-width: 34em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-text); font-weight: 500; font-size: .8125rem;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--black-2); }
.btn-line { border-color: var(--black); color: var(--black); }
.btn-line:hover { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--white-2); }
.btn-sm { --h: 42px; padding: 0 20px; font-size: .75rem; }
.btn-lg { --h: 60px; padding: 0 36px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-ico .fill, .btn-ico.fill { fill: currentColor; stroke: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); --header-h: 66px; height: 66px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.brand-name { font-family: var(--font-title); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-sub { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); margin-top: 4px; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a { position: relative; font-size: .875rem; color: var(--black-2); padding: 6px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--black);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 46px; height: 46px; position: relative; border-radius: 50%; margin-right: -10px; }
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--black);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--white);
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a {
  display: block; padding: 18px 0;
  font-family: var(--font-title); font-size: 1.75rem; letter-spacing: -0.02em;
  transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.mobile-menu.is-open nav a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .04s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .08s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .12s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .16s; }
.mobile-menu-foot p { margin-top: 16px; text-align: center; font-size: .8125rem; color: var(--gray); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(48px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-text h1 { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.25rem); margin: 22px 0 26px; max-width: 13em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-facts { display: flex; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-facts dt { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); }
.hero-facts dd { font-family: var(--font-title); font-size: 1.125rem; font-weight: 500; margin-top: 4px; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius-l); background: var(--white-2);
  max-height: calc(100svh - var(--header-h) - 80px); min-height: 420px;
}
.hero-badge {
  position: absolute; left: 20px; bottom: 20px; right: auto;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 20px; border-radius: 14px;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(17,17,17,.08);
}
.hero-badge strong { font-family: var(--font-title); font-weight: 600; font-size: .95rem; }
.hero-badge span { font-size: .75rem; color: var(--gray); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); max-width: 720px; }
.section-head h2 { margin-top: 18px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-sub { margin-top: 18px; color: var(--gray); font-size: 1.0625rem; }

/* ---------- Sobre ---------- */
.about { background: var(--white-2); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius-l); }
.about-text h2 { margin: 18px 0 28px; }
.about-text p:not(.eyebrow) { color: var(--black-2); font-size: 1.0625rem; max-width: 34em; }
.about-text p + p { margin-top: 16px; }
.credentials { margin-top: 40px; border-top: 1px solid var(--line); }
.credentials li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-title); font-weight: 500; font-size: 1.0625rem;
}
.credentials span { font-family: var(--font-text); font-weight: 400; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }

/* ---------- Tratamentos ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-card {
  position: relative; padding: 40px 34px 38px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.t-card:hover { border-color: #d6d6d6; transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(17,17,17,.14); }
.t-icon { width: 40px; height: 40px; fill: none; stroke: var(--black); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.t-card h3 { margin: 30px 0 12px; }
.t-card p { color: var(--gray); font-size: .975rem; }
.t-card--feature { background: var(--black); border-color: var(--black); color: var(--white); }
.t-card--feature .t-icon { stroke: var(--white); }
.t-card--feature p { color: rgba(255,255,255,.7); }
.t-card--feature:hover { border-color: var(--black); }
.t-tag {
  position: absolute; top: 24px; right: 24px;
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--beige); border: 1px solid rgba(216,200,184,.45); padding: 5px 10px; border-radius: 999px;
}

/* ---------- Resultados ---------- */
.results { background: var(--white); padding-top: calc(var(--section) * .8); }
.gallery-hint {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: .8125rem; color: var(--gray);
}
.gallery-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.case--wide { grid-column: 1 / -1; }
.case { min-width: 0; }

.compare, .single, .split-item {
  position: relative; overflow: hidden; display: block; width: 100%;
  border-radius: var(--radius); background: var(--white-2);
  aspect-ratio: var(--ratio, 1.5);
}
.compare { touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; --pos: 50%; }
.compare img, .single img, .split-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  pointer-events: none; -webkit-user-drag: none;
}
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; pointer-events: none;
}
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: rgba(255,255,255,.95); box-shadow: 0 0 12px rgba(0,0,0,.18); }
.compare-handle span {
  position: absolute; top: 50%; left: 0; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--white); box-shadow: 0 6px 20px rgba(17,17,17,.2);
  transition: transform .3s var(--ease);
}
.compare-handle span::before, .compare-handle span::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--black); border-width: 0 0 1.5px 1.5px;
}
.compare-handle span::before { left: 12px; transform: translateY(-50%) rotate(45deg); }
.compare-handle span::after { right: 12px; transform: translateY(-50%) rotate(-135deg); }
.compare.is-dragging .compare-handle span { transform: translate(-50%, -50%) scale(1.08); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none;
}
.compare:focus-within { outline: 2px solid var(--black); outline-offset: 3px; }

.tag {
  position: absolute; top: 14px; z-index: 2;
  font-family: var(--font-text); font-weight: 500;
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.88); color: var(--black);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
}
.tag--before { left: 14px; }
.tag--after { right: 14px; background: rgba(17,17,17,.82); color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-item { --ratio: 4 / 3; cursor: zoom-in; }
.split-item img, .single img { transition: transform .8s var(--ease); }
.split-item:hover img, .single:hover img { transform: scale(1.03); }
.single { cursor: zoom-in; }

.case-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px 0; }
.case-meta p { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.case-meta strong { font-family: var(--font-title); font-weight: 500; font-size: 1.0625rem; }
.case-meta span { font-size: .8125rem; color: var(--gray); }
.zoom-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.zoom-btn:hover { border-color: var(--black); background: var(--black); color: var(--white); }
.zoom-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.gallery-disclaimer { margin: 48px auto 0; max-width: 680px; text-align: center; font-size: .8125rem; color: var(--gray); line-height: 1.6; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: var(--white);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) max(20px, env(safe-area-inset-bottom));
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.lb-title { font-family: var(--font-title); font-weight: 500; font-size: 1.125rem; margin-right: auto; }
.lb-count { font-size: .8125rem; color: var(--gray); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lb-close, .lb-prev, .lb-next {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--white);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--black); background: var(--black); color: var(--white); }
.lightbox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lb-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; overflow: hidden; }
.lb-slide { width: 100%; max-height: 100%; display: grid; gap: 16px; align-content: center; animation: lbIn .45s var(--ease); }
.lb-slide.from-left { animation-name: lbInLeft; }
.lb-slide--pair { grid-template-columns: 1fr 1fr; }
.lb-fig { position: relative; min-height: 0; }
.lb-fig img { width: 100%; max-height: calc(100svh - 210px); object-fit: contain; border-radius: var(--radius); margin-inline: auto; }
.lb-fig .tag { top: 12px; }
.lb-fig .tag--after { right: auto; left: 12px; }
.lb-slide--single .lb-fig img { width: auto; max-width: 100%; }
.lb-nav { display: flex; justify-content: center; gap: 12px; padding-top: 12px; }
@keyframes lbIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes lbInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* ---------- Diferenciais ---------- */
.pillars { background: var(--white-2); }
.pillar-list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.pillar-list li { padding: 34px 26px 8px 0; }
.pillar-list li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.pillar-list svg { width: 28px; height: 28px; fill: none; stroke: var(--black); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pillar-list h3 { font-size: 1.0625rem; margin: 24px 0 10px; }
.pillar-list p { font-size: .9rem; color: var(--gray); }

/* ---------- Consultório ---------- */
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.office-grid h2 { margin-top: 18px; max-width: 11em; }
.office-card { border-top: 1px solid var(--black); padding-top: 32px; }
.office-lead { font-size: 1.125rem; color: var(--black-2); max-width: 30em; }
.office-card address { margin: 28px 0 32px; font-family: var(--font-title); font-size: 1.5rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.office-label { display: block; margin-bottom: 8px; font-family: var(--font-text); font-size: .6875rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); }

/* ---------- CTA ---------- */
.cta { background: var(--black); color: var(--white); padding-block: clamp(90px, 12vw, 160px); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin: 22px 0 18px; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); }
.cta p:not(.eyebrow) { color: rgba(255,255,255,.7); font-size: 1.125rem; margin-bottom: 40px; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); }
.contact-grid h2 { margin-top: 18px; }
.contact-role { margin-top: 14px; color: var(--gray); }
.contact-list dl { border-top: 1px solid var(--line); }
.contact-list dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); padding-top: 4px; }
.contact-list dd { font-family: var(--font-title); font-weight: 500; font-size: 1.0625rem; }
.contact-list dd a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.contact-list dd a:hover { border-color: var(--black); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-brand .brand-name { display: block; }
.footer-brand p:last-child { margin-top: 6px; font-size: .875rem; color: var(--gray); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .875rem; justify-content: flex-end; }
.footer-links a { color: var(--black-2); }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links span { color: var(--gray); }
.footer-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--gray); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--black); color: var(--white);
  box-shadow: 0 12px 30px -8px rgba(17,17,17,.45);
  transform: translateY(16px) scale(.9); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .45s var(--ease), background-color .3s;
}
.wa-float.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.wa-float:hover { background: var(--black-2); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav ul { gap: 24px; }
  .pillar-list { grid-template-columns: repeat(3, 1fr); }
  .pillar-list li:nth-child(4) { border-left: 0; padding-left: 0; }
  .pillar-list li { padding-bottom: 34px; }
  .pillar-list li:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 920px) {
  :root { --header-h: 66px; }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }

  /* Hero mobile: foto em destaque logo acima do título */
  .hero { padding-top: calc(var(--header-h) + 12px); }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 1 / 1.02; min-height: 0; max-height: 72svh; object-position: 50% 28%; }
  .hero-badge { left: 14px; bottom: 14px; padding: 12px 16px; }
  .hero-text h1 { margin: 16px 0 18px; }
  .hero-actions { margin-top: 30px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { margin-top: 36px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .cards-3 { grid-template-columns: 1fr; gap: 14px; }
  .t-card { padding: 30px 26px; }
  .t-card h3 { margin-top: 22px; }

  .office-grid, .contact-grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 8px; }
  .split-item { --ratio: 4 / 3; }
  .tag { top: 10px; font-size: .625rem; padding: 6px 10px; }
  .tag--before { left: 10px; } .tag--after { right: 10px; }
  .compare-handle span { width: 42px; height: 42px; }
  .gallery-disclaimer { text-align: left; margin-top: 40px; }
  .section-head--center { text-align: left; }
  .section-head--center .eyebrow { justify-content: flex-start; }

  .lb-slide--pair { grid-template-columns: 1fr; gap: 10px; }
  .lb-fig img { max-height: calc((100svh - 220px) / 2); }
  .lb-slide--single .lb-fig img { max-height: calc(100svh - 220px); }
  .lb-fig .tag--after { left: 10px; }

  .pillar-list { grid-template-columns: 1fr; border-top: 0; }
  .pillar-list li, .pillar-list li + li {
    display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: start;
    padding: 22px 0; border-left: 0; border-top: 1px solid var(--line);
  }
  .pillar-list li:last-child { border-bottom: 1px solid var(--line); }
  .pillar-list svg { grid-row: span 2; margin-top: 2px; }
  .pillar-list h3 { margin: 0 0 4px; }

  .contact-list dl > div { grid-template-columns: 1fr; gap: 4px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .cta .btn-lg { width: 100%; padding: 0 20px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; flex-direction: column; gap: 10px; }
  .wa-float { width: 52px; height: 52px; }
}

@media (max-width: 380px) {
  .hero-facts { gap: 24px; }
  .case-meta span { display: none; }
}

@media (hover: none) {
  .t-card:hover { transform: none; box-shadow: none; }
  .split-item:hover img, .single:hover img { transform: none; }
}

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



/* ==========================================================================
   Hero mobile editorial — fotografia integrada à tipografia
   Escopo exclusivo para smartphones; tablet/desktop permanecem inalterados.
   ========================================================================== */
@media (max-width: 720px) {
  .hero {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 68px;
    overflow: hidden;
  }

  .hero-grid {
    position: relative;
    display: block;
    min-height: 0;
    isolation: isolate;
  }

  .hero-text {
    position: relative;
    z-index: 1;
  }

  .hero-text > .eyebrow {
    position: relative;
    z-index: 4;
    max-width: 100%;
    font-size: .66rem;
    letter-spacing: .15em;
  }

  .hero-text h1 {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 20px 0 0;
    padding: 0;
    font-size: clamp(2.35rem, 9.4vw, 2.9rem);
    line-height: .99;
    letter-spacing: -.055em;
    text-wrap: pretty;
  }

  /* A foto fica em primeiro plano e atravessa parcialmente o título. */
  .hero-media {
    position: absolute;
    z-index: 2;
    top: 76px;
    right: -4px;
    width: min(59%, 236px);
    height: clamp(236px, 60vw, 258px);
    margin: 0;
    order: initial;
    overflow: visible;
    pointer-events: none;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 19%;
    border-radius: 42% 42% 19% 19% / 20% 20% 12% 12%;
    background: transparent;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, .24) 8%,
      rgba(0, 0, 0, .82) 23%,
      #000 36%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, .24) 8%,
      rgba(0, 0, 0, .82) 23%,
      #000 36%
    );
  }

  .hero-badge {
    left: auto;
    right: 0;
    bottom: 8px;
    max-width: min(260px, 82vw);
    padding: 9px 12px;
    border: 1px solid rgba(234, 234, 234, .8);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, .07);
  }

  .hero-badge strong {
    font-size: .78rem;
  }

  .hero-badge span {
    font-size: .64rem;
    line-height: 1.35;
  }

  /* Mantém a leitura e os CTAs abaixo da área da fotografia. */
  .hero-text .lead {
    position: relative;
    z-index: 4;
    margin-top: clamp(122px, 32vw, 138px);
    max-width: 32em;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    position: relative;
    z-index: 4;
    margin-top: 24px;
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-facts {
    position: relative;
    z-index: 4;
    margin-top: 32px;
    gap: 28px;
    padding-top: 22px;
  }
}

@media (max-width: 380px) {
  .hero-text h1 {
    font-size: clamp(2.25rem, 9.6vw, 2.55rem);
    letter-spacing: -.058em;
  }

  .hero-media {
    right: -6px;
    width: 59%;
    height: 236px;
  }

  .hero-text .lead {
    margin-top: 122px;
  }

  .hero-badge {
    max-width: 78vw;
    padding: 8px 10px;
  }
}
