/* ==========================================================================
   Instituto Kimura — Design System Editorial & Clínico
   Paleta: Marfim Quente (#FAF7F2), Areia Kimura (#EDE4D6), Grafite (#171717) e Bronze (#9A744C)
   ========================================================================== */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F;
}

:root {
  --bg: #faf7f2;
  --bg-tint: #f2ece2;
  --sand: #ede4d6;
  --sand-deep: #e2d5c1;
  --surface: #ffffff;
  --ink: #171717;
  --ink-soft: #4a4640;
  --ink-muted: #706a61;
  --bronze: #966f46;
  --bronze-light: #d6b68e;
  --bronze-glow: rgb(198 160 114 / 0.28);
  --dark: #161615;
  --dark-card: #21201e;
  --dark-elevated: #292724;
  --border: rgb(23 23 23 / 0.09);
  --border-strong: rgb(23 23 23 / 0.16);
  --border-dark: rgb(237 228 214 / 0.13);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 38px;
  --shadow-soft: 0 18px 48px rgb(23 23 23 / 0.06);
  --shadow-float: 0 20px 44px rgb(23 23 23 / 0.12);
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Containers (1360px com respiro lateral amplo = grade de 1440px equilibrada) */
.container {
  width: min(1360px, calc(100% - clamp(32px, 5vw, 80px)));
  margin-inline: auto;
}

.container.narrow {
  width: min(880px, calc(100% - clamp(32px, 5vw, 80px)));
}

.centered {
  text-align: center;
}

/* Typography */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 3.8vw, 3.55rem);
}

h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.85rem);
}

h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.42rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.heading-line {
  display: block;
  text-wrap: balance;
}

.heading-line + .heading-line {
  margin-top: 0.06em;
}

h1 em,
h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.01em;
  color: var(--bronze);
}

.light h2 em {
  color: var(--bronze-light);
}

.line {
  padding: 0.08em 0.06em;
  margin: -0.08em -0.06em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid rgb(150 111 70 / 0.2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bronze);
}

.eyebrow-dark {
  background: rgb(237 228 214 / 0.08);
  border-color: rgb(214 182 142 / 0.25);
  color: var(--sand);
}

.eyebrow-dark::before {
  background: var(--bronze-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-dark {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 10px 24px rgb(23 23 23 / 0.16);
}

.btn-dark:hover {
  background: #2b2926;
  box-shadow: 0 14px 30px rgb(23 23 23 / 0.24);
}

.btn-outline {
  background: rgb(255 255 255 / 0.65);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.btn-champagne {
  background: var(--bronze-light);
  color: var(--ink);
  font-weight: 600;
}

.btn-champagne:hover {
  background: var(--sand);
}

.inline-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: gap 0.2s ease, color 0.2s ease;
}

.inline-arrow:hover {
  gap: 10px;
  color: var(--bronze);
}

/* ==========================================================================
   Header (barra de ponta a ponta: logo à esquerda, menu ao centro, CTA à direita)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  width: 100%;
  background: rgb(250 247 242 / 0.86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 8px 30px rgb(23 23 23 / 0.06);
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 40px;
  width: auto;
}

.nav-drawer {
  display: contents;
}

.primary-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 30px);
}

.primary-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current='page'] {
  color: var(--ink);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1.8px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(3.4px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  transform: translateY(-3.4px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(44px, 6vw, 76px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -120px auto auto 50%;
  width: min(1100px, 120vw);
  height: 680px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 42%,
    rgb(226 203 171 / 0.58) 0%,
    rgb(237 228 214 / 0.34) 44%,
    transparent 74%
  );
  pointer-events: none;
  z-index: 0;
}

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

.hero-copy {
  max-width: 1120px;
  margin: 0 auto clamp(34px, 4.5vw, 52px);
  text-align: center;
}

.hero-lead {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.3vw, 1.16rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-showcase {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
}

.hero-stage {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9.5;
  box-shadow: 0 28px 68px rgb(23 23 23 / 0.14);
  background: var(--sand);
}

.hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow: var(--shadow-float);
  max-width: 215px;
}

.float-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bronze);
}

.float-card strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.float-card small {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.float-tl {
  top: 12%;
  left: -26px;
}

.float-tr {
  top: 16%;
  right: -26px;
}

.float-bl {
  bottom: 12%;
  left: 24px;
}

.float-br {
  bottom: 14%;
  right: 24px;
}

/* 3-Pillar Trust Strip */
.trust-strip {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 1220px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-strip li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.trust-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--sand);
  color: var(--bronze);
}

.trust-strip strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.trust-strip p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Sections & Headers
   ========================================================================== */
.section {
  padding: clamp(68px, 8vw, 112px) 0;
}

.section.pt-0 {
  padding-top: 0;
}

.section-tint {
  background: var(--bg-tint);
}

.section-head {
  max-width: 860px;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.section-head.centered {
  margin-inline: auto;
}

.section-sub {
  margin-top: 16px;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: var(--ink-soft);
}

.light {
  color: var(--surface);
}

.light .section-sub {
  color: rgb(237 228 214 / 0.78);
}

/* ==========================================================================
   3 Pillars + Authority Stats
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgb(23 23 23 / 0.11);
}

.pillar-featured {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.pillar-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand);
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.pillar-media .card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
}

.pillar-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
}

.pillar-body p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  flex: 1;
}

.pillar-featured .pillar-body p {
  color: rgb(237 228 214 / 0.8);
}

.pillar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
}

.pillar-featured .pillar-foot {
  border-top-color: var(--border-dark);
}

.pillar-note {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bronze);
}

.pillar-featured .pillar-note,
.pillar-featured .inline-arrow {
  color: var(--bronze-light);
}

/* Stats Strip */
.stats-bar {
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Monumental Dark Block (Protocol in 4 Steps + Structure & Zeiss 23x)
   ========================================================================== */
.monolith-wrap {
  padding-inline: clamp(10px, 2.2vw, 28px);
}

.monolith {
  position: relative;
  padding: clamp(68px, 8vw, 116px) 0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 50% 0%, rgb(198 160 114 / 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgb(198 160 114 / 0.12) 0%, transparent 50%),
    var(--dark);
  color: var(--surface);
  overflow: hidden;
}

.bento-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.step-card {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--dark-card);
  border: 1px solid var(--border-dark);
}

.step-card.step-wide {
  grid-column: span 7;
  background: linear-gradient(155deg, #282520 0%, var(--dark-card) 100%);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--bronze-light);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.step-text h3 {
  margin-bottom: 10px;
  color: var(--surface);
}

.step-text p {
  font-size: 0.94rem;
  color: rgb(237 228 214 / 0.75);
}

.step-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
}

.step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.step-card:hover .step-photo img {
  transform: scale(1.04);
}

/* Technology & Zeiss Spotlight */
.tech-spotlight {
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--border-dark);
}

.zeiss-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--dark-elevated), var(--dark-card));
  border: 1px solid rgb(214 182 142 / 0.24);
}

.zeiss-badge {
  display: inline-block;
  padding: 5px 13px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgb(214 182 142 / 0.16);
  color: var(--bronze-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zeiss-copy h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 14px;
}

.zeiss-copy p {
  color: rgb(237 228 214 / 0.8);
  font-size: 1rem;
}

.zeiss-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.zeiss-pills span {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--border-dark);
  font-size: 0.82rem;
  color: var(--sand);
}

.zeiss-media {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 6 / 5;
}

.zeiss-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.tech-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
}

.tech-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bronze);
}

.tech-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Treatments Grid + Filter
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}

.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.treatment-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.treatment-card[hidden] {
  display: none;
}

.treatment-card:hover {
  transform: translateY(-4px);
  border-color: rgb(150 111 70 / 0.45);
  box-shadow: var(--shadow-soft);
}

.treatment-card.is-priority {
  background: linear-gradient(180deg, var(--surface) 0%, #fbf8f3 100%);
  border-color: rgb(150 111 70 / 0.28);
}

.treatment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.treatment-cat {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
}

.treatment-index {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.treatment-card p {
  flex: 1;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.treatment-card .inline-arrow {
  margin-top: 6px;
}

/* ==========================================================================
   Before & After Clinical Cases
   ========================================================================== */
.cases-stack {
  display: grid;
  gap: 28px;
}

.case-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
}

.compare-item {
  position: relative;
  margin: 0;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  background: var(--sand);
}

.compare-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-item figcaption {
  position: absolute;
  bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(23 23 23 / 0.72);
  backdrop-filter: blur(8px);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-before figcaption {
  left: 14px;
}

.compare-after figcaption {
  right: 14px;
}

/* Interactive stacked mode enabled by main.js */
.compare.is-ready {
  display: block;
  aspect-ratio: 6 / 5;
}

.compare.is-ready .compare-item {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.compare.is-ready .compare-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.compare-handle {
  display: none;
}

.compare.is-ready .compare-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 3;
  width: 2px;
  background: var(--surface);
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgb(0 0 0 / 0.35);
  pointer-events: none;
}

.compare-handle span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.25);
}

.compare-range {
  display: none;
}

.compare.is-ready .compare-range {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.case-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.case-details .card-tag {
  background: var(--sand);
}

.case-details p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.case-cro {
  font-size: 0.84rem !important;
  font-weight: 600;
  color: var(--bronze) !important;
}

.cfo-note {
  max-width: 780px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Heritage Bento + Doctors Grid
   ========================================================================== */
.heritage-bento {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: clamp(64px, 7vw, 96px);
}

.heritage-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.prose {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.heritage-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  background: var(--sand);
}

.heritage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-head {
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
}

.doctor-photo {
  margin: 0;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: var(--sand);
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s ease;
}

.doctor-card:hover .doctor-photo img {
  transform: scale(1.04);
}

.doctor-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.doctor-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.doctor-spec {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bronze);
}

.doctor-cro {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-tint);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.doctor-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ==========================================================================
   GSAP-Scrubbed Transformation Timeline
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
}

.timeline-rail {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: var(--border-strong);
  overflow: hidden;
}

.timeline-rail span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bronze);
  transform-origin: top;
  transform: scaleY(var(--progress, 0));
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 36px;
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 340px;
  align-items: center;
  gap: 28px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.timeline-row.is-active .timeline-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bronze-light);
}

.timeline-phase {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze);
}

.timeline-copy h3 {
  margin-bottom: 8px;
}

.timeline-copy p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.timeline-media {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: var(--sand);
  box-shadow: var(--shadow-soft);
}

.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Location Split Card
   ========================================================================== */
.location-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(140deg, var(--sand) 0%, var(--sand-deep) 100%);
  border: 1px solid rgb(150 111 70 / 0.2);
}

.location-copy {
  padding: clamp(32px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.location-copy .eyebrow {
  background: rgb(255 255 255 / 0.72);
}

.location-copy .hero-ctas {
  justify-content: flex-start;
}

.location-details {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.loc-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.loc-row svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--bronze);
}

.loc-row strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.location-photo {
  margin: 0;
  min-height: 360px;
  overflow: hidden;
}

.location-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  border-top: 1px solid var(--border-strong);
}

.faq-item {
  border-bottom: 1px solid var(--border-strong);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 1.06rem;
  font-weight: 500;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-body {
  display: grid;
  gap: 10px;
  padding: 0 40px 24px 4px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ==========================================================================
   Closing CTA & Subpages
   ========================================================================== */
.closing-cta {
  position: relative;
  padding: clamp(80px, 10vw, 132px) 0;
  overflow: hidden;
}

.closing-glow {
  position: absolute;
  inset: auto auto -180px 50%;
  width: min(1000px, 120vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at 50% 60%,
    rgb(226 203 171 / 0.65) 0%,
    rgb(237 228 214 / 0.3) 48%,
    transparent 74%
  );
  pointer-events: none;
}

.closing-cta .container {
  position: relative;
  z-index: 1;
}

/* Contact & Privacy Subpages */
.subpage-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 112px);
}

.lead {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-aside > p {
  margin-top: 22px;
}

.contact-cards {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.info-card svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--bronze);
}

.info-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-card {
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.contact {
  display: grid;
  gap: 18px;
}

.form-intro {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  background: var(--surface);
}

.field [aria-invalid='true'] {
  border-color: #b42318;
}

.field-error {
  font-size: 0.82rem;
  color: #b42318;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.notice {
  padding: 16px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.notice.success {
  background: #edf7ed;
  border: 1px solid #b7dfb9;
  color: #1e4620;
}

.notice.error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #912018;
}

.legal-doc {
  margin-top: 32px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
  color: var(--ink-soft);
}

.legal-doc h2 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-top: 10px;
}

.legal-doc a {
  color: var(--bronze);
  text-decoration: underline;
}

/* ==========================================================================
   Footer & Floating WhatsApp
   ========================================================================== */
.site-footer {
  padding: clamp(64px, 8vw, 96px) 0 36px;
  background: var(--dark);
  color: rgb(237 228 214 / 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr 0.9fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-badges span {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--border-dark);
  font-size: 0.74rem;
  color: var(--sand);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.9rem;
}

.footer-col h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 6px;
}

.footer-col a:not(.btn) {
  color: rgb(237 228 214 / 0.78);
  transition: color 0.2s ease;
}

.footer-col a:not(.btn):hover {
  color: var(--surface);
}

.footer-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-info svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--bronze-light);
}

.footer-phone {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--surface) !important;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.84rem;
  color: rgb(237 228 214 / 0.56);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal a,
.footer-legal .consent-link {
  color: rgb(237 228 214 / 0.7);
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal .consent-link:hover {
  color: var(--surface);
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #1d7a46;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 14px 32px rgb(23 23 23 / 0.24);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.wa-float:hover {
  transform: translateY(-3px);
  background: #176539;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .float-card {
    display: none;
  }

  .pillars-grid,
  .treatments-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-steps {
    grid-template-columns: 1fr 1fr;
  }

  .step-card,
  .step-card.step-wide {
    grid-column: span 1;
  }

  .zeiss-stage,
  .case-panel,
  .heritage-bento,
  .location-split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .tech-trio {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 48px 1fr;
  }

  .timeline-media {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .header-bar {
    display: flex;
    justify-content: space-between;
    min-height: 68px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-drawer {
    display: flex;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 24px clamp(20px, 5vw, 40px) 28px;
    border-radius: 0 0 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 24px 56px rgb(23 23 23 / 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .menu-open .nav-drawer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav {
    justify-self: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .primary-nav a {
    font-size: 1.05rem;
  }

  .header-actions {
    justify-self: auto;
  }

  .header-actions .btn {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 28px);
  }

  .pillars-grid,
  .treatments-grid,
  .team-grid,
  .bento-steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    aspect-ratio: 4 / 3;
  }

  .monolith {
    border-radius: 26px;
  }

  .timeline-rail {
    left: 18px;
  }

  .timeline-row {
    grid-template-columns: 38px 1fr;
    gap: 16px;
  }

  .timeline-dot {
    width: 38px;
    height: 38px;
    font-size: 0.78rem;
  }

  .wa-float span {
    display: none;
  }

  .wa-float {
    padding: 14px;
  }
}
