/*
Theme Name: ERM Dental Studio
Theme URI: https://draerikarubi.com
Author: ERM Theme Developer
Description: Premium dental aesthetic theme for Dra. Erika Rubi - modular, bilingual, with visual module editor.
Version: 3.0.0
Text Domain: erm-v3
*/
/* === Dra. Erika Rubi - Dental Aesthetic === */
:root {
  --bg: #F4F8FC;
  --bg-2: #FFFFFF;
  --bg-3: #EAF2FA;
  --accent-soft: #A8C8E0;
  --accent: #3A6FA5;
  --accent-deep: #1F4D7A;
  --ink: #14243A;
  --ink-2: #2D4159;
  --muted: #6B7E92;
  --line: #DBE6F0;
  --gold: #C9A24A;
  --pad-y: 140px;
  --pad-x: clamp(20px, 4vw, 64px);
  --gap: 32px;
  --card-pad: 28px;
  --radius: 14px;
  --radius-lg: 22px;
  --serif: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --sans: "DM Sans", "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
[data-density="compact"] {
  --pad-y: 96px;
  --gap: 22px;
  --card-pad: 20px;
}
[data-density="spacious"] {
  --pad-y: 180px;
  --gap: 44px;
  --card-pad: 36px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent-soft); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 6.4vw, 96px); line-height: 0.98; }
h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.italic { font-style: italic; color: var(--accent); }
p { color: var(--ink-2); text-wrap: pretty; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.small { font-size: 13px; color: var(--muted); }
/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  color: white;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
}
.brand-text {
  line-height: 1;
}
.brand-text .name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}
.brand-text .sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.nav-links {
  display: flex; gap: 38px;
  font-size: 14px;
}
.nav-links a {
  position: relative;
  color: var(--ink-2);
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle {
  display: flex; gap: 4px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px;
}
.lang-toggle button {
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all .2s;
}
.lang-toggle button.active {
  background: var(--accent);
  color: white;
}
/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all .25s cubic-bezier(.2,.7,.3,1);
  cursor: pointer;
}
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-link {
  padding: 0;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
/* ============ LAYOUT HELPERS ============ */
section { padding: var(--pad-y) var(--pad-x); position: relative; }
#top { padding: 0; }
.section-tight { padding-block: calc(var(--pad-y) * 0.6); }
/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  padding: 110px var(--pad-x) 0;
  margin: 0;
  overflow: hidden;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
}
.hero::before {
  content: "";
  position: absolute;
  bottom: -10%; left: 50%;
  transform: translateX(-50%);
  width: 920px; height: 920px;
  background: radial-gradient(circle, color-mix(in srgb, white 22%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 80px,
      rgba(255,255,255,0.025) 80px,
      rgba(255,255,255,0.025) 81px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}
.hero-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 8px;
}
.hero-top h1 {
  color: white;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 76px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 640px;
  margin: 0;
}
.hero-top h1 .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
.hero-top .lead {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.7;
  max-width: 360px;
  margin-left: auto;
  margin-top: 56px;
  text-align: right;
}
.hero-bottom {
  position: relative;
  min-height: 480px;
  padding-bottom: 0;
}
.hero-bottom-left {
  position: absolute;
  left: 0;
  bottom: 40px;
  width: 22%;
  max-width: 320px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-bottom-right {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 22%;
  max-width: 320px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
  text-align: right;
}
.hero-bottom-right .hero-stats {
  justify-content: flex-end;
}
.hero-doctor {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  width: 100%;
  margin-bottom: -80px;
  margin-top: -160px;
  z-index: 2;
  pointer-events: none;
}
.hero-doctor-img {
  width: auto;
  max-width: 100%;
  height: clamp(900px, 132vh, 1500px);
  object-fit: contain;
  object-position: bottom center;
  display: block;
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 88%, transparent 100%);
  mask-image: linear-gradient(180deg, black 0%, black 88%, transparent 100%);
}
.hero-bottom-left .sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  max-width: 280px;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
}
.hero-stats .stat .num {
  font-family: var(--serif);
  font-size: 38px;
  color: white;
  line-height: 1;
}
.hero-stats .stat .lbl {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
}
.hero-patients {
  position: absolute;
  right: 0;
  bottom: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
  z-index: 3;
}
.hero-patients .patient {
  width: 130px;
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.95);
  position: relative;
}
.hero-patients .patient:nth-child(1) { margin-right: 60px; }
.hero-patients .patient:nth-child(2) { margin-right: 0; }
.hero-patients .patient:nth-child(3) { margin-right: 40px; }
.hero-floating-badge {
  position: absolute;
  top: 100px;
  right: var(--pad-x);
  background: white;
  border-radius: 100px;
  padding: 10px 18px 10px 12px;
  display: flex; align-items: center; gap: 10px;
  z-index: 3;
}
.hero-floating-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ABE6A;
}
.hero-floating-badge .dot-gray {
  background: #E04040;
}
.hero-floating-badge .dot-gray::after {
  background: #E04040;
}
.hero-badge-unavailable {
  background: rgba(255,255,255,0.95);
}
.hero-badge-unavailable .txt {
  color: var(--ink-2);
}
.hero-floating-badge .dot::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ABE6A;
  opacity: 0.4;
  animation: pulse 2.4s ease-in-out infinite;
}
.hero-floating-badge .txt {
  font-size: 12px; font-weight: 500;
  color: var(--ink);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(2.4); opacity: 0; }
}
.hero .btn-primary {
  background: white;
  color: var(--accent-deep);
}
.hero .btn-primary:hover {
  background: var(--bg);
  color: var(--accent-deep);
  transform: translateY(-1px);
}
.hero .btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: white;
}
.hero .btn-ghost:hover {
  border-color: white;
  color: white;
}
/* ============ PLACEHOLDERS ============ */
.ph {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--accent-soft) 60%, white) 0 10px,
      color-mix(in srgb, var(--accent-soft) 40%, white) 10px 20px);
  display: grid; place-items: center;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}
.ph .ph-inner {
  background: color-mix(in srgb, var(--bg-2) 85%, transparent);
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
}
.ph-dark {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 50%, var(--accent-deep)) 0 10px,
      color-mix(in srgb, var(--accent) 30%, var(--accent-deep)) 10px 20px);
  color: white;
}
.ph-dark .ph-inner {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: white;
}
/* ============ MARQUEE ============ */
.marquee-section {
  padding-block: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.marquee {
  display: flex; gap: 60px;
  animation: marquee 36s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 60px;
  white-space: nowrap;
}
.marquee-item::after {
  content: "\2726";
  color: var(--accent-soft);
  font-style: normal;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
/* ============ DOCTOR ============ */
.doctor {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.doctor-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.doctor-media .signature {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--bg-2);
  padding: 20px 24px;
  border-radius: 14px;
  font-family: var(--serif);
}
.doctor-media .signature .name { font-size: 20px; font-style: italic; color: var(--ink); }
.doctor-media .signature .role { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.doctor-content h2 .italic { display: block; }
.doctor-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.doctor-credentials .item .label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.doctor-credentials .item .value {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
/* ============ SERVICES ============ */
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.services-head h2 .italic { display: inline; }
.services-head p { max-width: 460px; }
.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.svc {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: var(--card-pad);
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), border-color .35s, background .35s;
}
.svc:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.svc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-3);
  display: grid; place-items: center;
  color: var(--accent);
  transition: all .4s cubic-bezier(.2,.7,.3,1);
}
.svc:hover .svc-icon {
  background: var(--accent);
  color: white;
  transform: rotate(-6deg) scale(1.05);
}
.svc-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  color: var(--ink);
  margin: 22px 0 10px;
}
.svc-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.svc-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.svc-foot .arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all .35s cubic-bezier(.2,.7,.3,1);
}
.svc:hover .svc-foot .arrow {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateX(4px);
}
/* ============ PROCESS ============ */
.process {
  background: var(--accent-deep);
  color: white;
  position: relative;
  overflow: hidden;
}
.process h2 { color: white; max-width: 720px; }
.process .eyebrow { color: var(--accent-soft); }
.process .eyebrow::before { background: var(--accent-soft); }
.process-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.process-head p { color: rgba(255,255,255,0.7); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step {
  padding: 32px 28px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  position: relative;
}
.step:not(:last-child) { padding-right: 32px; }
.step .num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent-soft);
  letter-spacing: 0.1em;
  margin-bottom: 36px;
}
.step h3 { color: white; margin-bottom: 12px; }
.step p { color: rgba(255,255,255,0.65); font-size: 14px; }
/* ============ GALLERY ============ */
.gallery-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.compare {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}
.compare-before, .compare-after {
  position: absolute; inset: 0;
  display: flex;
  align-items: stretch;
}
.compare-before img, .compare-after img {
  width: 100%; height: 100%; object-fit: cover;
}
.compare-before .ph, .compare-after .ph {
  width: 100%; height: 100%;
}
.compare-after {
  clip-path: inset(0 0 0 var(--cmp, 50%));
}
.compare-label {
  position: absolute;
  top: 20px;
  background: rgba(255,255,255,0.95);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.compare-label.before { left: 20px; }
.compare-label.after { right: 20px; }
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--cmp, 50%);
  width: 2px;
  background: white;
  pointer-events: none;
  z-index: 3;
}
.compare-handle::after {
  content: "\21c6";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  display: grid; place-items: center;
  color: var(--accent-deep);
  font-size: 20px;
  font-weight: 700;
}
.compare-thumbs {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}
.compare-thumbs button {
  width: 110px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all .25s;
  padding: 0;
}
.compare-thumbs button.active {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.compare-thumbs button .label {
  position: absolute;
  bottom: 6px; left: 6px;
  font-size: 9px;
  background: rgba(255,255,255,0.9);
  padding: 2px 6px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.compare-thumbs button { position: relative; }
/* ============ TECH ============ */
.tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.tech-content h2 .italic { display: block; }
.tech-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.tech-list .item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: padding .3s;
}
.tech-list .item:hover { padding-left: 8px; }
.tech-list .item .idx {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.tech-list .item .name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.tech-list .item .arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
  transition: all .25s;
}
.tech-list .item:hover .arrow {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: rotate(-45deg);
}
.tech-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tech-media .floating-card {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--bg-2);
  padding: 18px 22px;
  border-radius: 14px;
  max-width: 220px;
}
.tech-media .floating-card .k {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.tech-media .floating-card .v {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 6px;
}
/* ============ TESTIMONIALS ============ */
.testimonials {
  background: var(--bg-2);
}
.test-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.test-nav { display: flex; gap: 10px; justify-self: end; }
.test-nav button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all .25s;
}
.test-nav button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.test-track {
  display: flex;
  gap: var(--gap);
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.test-viewport { overflow: hidden; }
.testimonial {
  flex: 0 0 calc((100% - var(--gap) * 2) / 3);
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 24px;
  min-height: 320px;
}
.testimonial .quote-mark {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 0.5;
  color: var(--accent-soft);
  height: 24px;
}
.testimonial .quote {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
  flex: 1;
}
.testimonial .who {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.testimonial .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent-deep);
}
.testimonial .who .name { font-weight: 500; font-size: 14px; }
.testimonial .who .meta { font-size: 12px; color: var(--muted); }
.test-stars {
  display: flex; gap: 2px;
  color: var(--gold);
  font-size: 14px;
}
/* ============ FAQ ============ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.faq-side h2 .italic { display: block; }
.faq-side .lead { margin-top: 24px; }
.faq-side .contact-card {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.faq-side .contact-card .label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.faq-side .contact-card .value {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  transition: color .25s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 20px; font-weight: 300; line-height: 1;
  padding-bottom: 1px;
  transition: all .35s cubic-bezier(.2,.7,.3,1);
}
.faq-item.open .plus {
  background: var(--accent);
  color: white;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.2,.7,.3,1);
}
.faq-a-inner {
  padding-bottom: 26px;
  padding-right: 56px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.faq-item.open .faq-a { max-height: 400px; }
/* ============ CTA BIG ============ */
.cta-big {
  background: var(--accent-deep);
  color: white;
  text-align: center;
  padding-block: calc(var(--pad-y) * 1.1);
  position: relative;
  overflow: hidden;
}
.cta-big::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 60%, transparent), transparent 60%),
    radial-gradient(ellipse at bottom right, color-mix(in srgb, var(--accent-soft) 30%, transparent), transparent 50%);
  pointer-events: none;
}
.cta-big > * { position: relative; }
.cta-big h2 {
  color: white;
  max-width: 900px;
  margin: 0 auto 28px;
  font-size: clamp(40px, 5vw, 76px);
}
.cta-big .lead {
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto 40px;
}
.cta-big .btn-primary {
  background: white;
  color: var(--accent-deep);
}
.cta-big .btn-primary:hover {
  background: var(--bg);
  color: var(--accent-deep);
}
.cta-big .btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: white;
}
.cta-big .btn-ghost:hover {
  border-color: white;
  color: white;
}
.cta-big .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* ============ LOCATION ============ */
.location {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto;
  max-width: 1400px;
}
.location-info { padding: clamp(36px, 5vw, 72px); }
.location-info h2 .italic { display: block; }
.location-info .lead { margin-top: 16px; margin-bottom: 36px; }
.location-info .row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.location-info .row:last-child { border-bottom: 1px solid var(--line); }
.location-info .row .ico {
  color: var(--accent);
  margin-top: 2px;
}
.location-info .row .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.location-info .row .value {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.location-map {
  position: relative;
  min-height: 480px;
  background: var(--bg-3);
}
/* ============ FOOTER ============ */
footer {
  padding: 100px var(--pad-x) 40px;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-brand .brand-text .name { color: white; }
.foot-brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 20px; max-width: 320px; }
.foot-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: white;
  margin: 0 0 24px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-col a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color .2s; }
.foot-col a:hover { color: white; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.foot-social { display: flex; gap: 12px; }
.foot-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.6);
  transition: all .25s;
}
.foot-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .28s; }
.reveal-d4 { transition-delay: .38s; }
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
}
.reveal-left.in, .reveal-right.in, .reveal-scale.in {
  opacity: 1;
  transform: none;
}
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal-words.in .word {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-stagger.in > * {
  opacity: 1;
  transform: none;
}
.hero-patients .patient {
  opacity: 0;
  animation: heroPop 0.7s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
.hero-patients .patient:nth-child(1) { animation-delay: 1.1s; }
.hero-patients .patient:nth-child(2) { animation-delay: 1.3s; }
.hero-patients .patient:nth-child(3) { animation-delay: 1.5s; }
.hero-floating-badge {
  opacity: 0;
  animation: heroFadeUp 0.6s cubic-bezier(.34, 1.56, .64, 1) 1.8s forwards;
}
@keyframes heroFadeUp {
  to { opacity: 1; }
}
@keyframes heroPop {
  from { opacity: 0; transform: scale(0.6) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
/* ============ HAMBURGER + MOBILE MENU ============ */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s cubic-bezier(.2,.7,.3,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 49;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .3s cubic-bezier(.2,.7,.3,1);
  opacity: 0;
  transform: translateX(-20px);
}
.mobile-menu a:hover { color: var(--accent); padding-left: 12px; }
.mobile-menu a.btn {
  font-family: var(--sans);
  font-size: 14px;
  border-bottom: none;
  align-self: flex-start;
  padding: 14px 28px;
}
.mobile-menu.open a {
  animation: menuItemIn .5s cubic-bezier(.2,.7,.3,1) forwards;
}
.mobile-menu.open a:nth-child(1) { animation-delay: .1s; }
.mobile-menu.open a:nth-child(2) { animation-delay: .15s; }
.mobile-menu.open a:nth-child(3) { animation-delay: .2s; }
.mobile-menu.open a:nth-child(4) { animation-delay: .25s; }
.mobile-menu.open a:nth-child(5) { animation-delay: .35s; }
@keyframes menuItemIn {
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 1100px) {
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}
@media (max-width: 420px) {
  .mobile-menu a { font-size: 32px; }
}
/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-grid, .doctor, .tech, .faq { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
  .doctor-media { aspect-ratio: 3/4; height: auto; }
  .doctor-media img { object-fit: contain !important; object-position: center top !important; }
  .tech-media { aspect-ratio: 4/3; height: auto; }
  .services-bento { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .services-head, .test-head, .process-head { grid-template-columns: 1fr; gap: 24px; }
  .testimonial { flex: 0 0 calc((100% - var(--gap)) / 2); }
  .hero-top { grid-template-columns: 1fr; gap: 20px; }
  .hero-top .lead { text-align: left; margin-left: 0; max-width: 480px; }
  .hero-bottom {
    position: static;
    min-height: 0;
    padding-bottom: 30px;
  }
  .hero-bottom-left, .hero-bottom-right {
    position: static;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 0;
  }
  .hero-bottom-right { display: none; }
  .hero-doctor {
    min-height: 400px;
    margin-bottom: 0;
    margin-top: -40px;
  }
  .hero-doctor-img {
    height: clamp(320px, 50vh, 520px);
  }
  .hero-patients { bottom: 60px; }
  .hero-patients .patient { width: 100px; height: 120px; }
}
@media (max-width: 760px) {
  :root {
    --pad-y: 80px;
    --pad-x: 20px;
    --gap: 16px;
    --card-pad: 22px;
  }
  .nav {
    padding: 14px var(--pad-x);
  }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; }
  .brand-text .name { font-size: 15px; }
  .brand-text .sub { font-size: 9px; }
  .nav-right .btn { padding: 8px 14px; font-size: 11px; }
  .nav-right .btn .arrow { display: none; }
  .lang-toggle button { padding: 3px 8px; font-size: 11px; }
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
  .lead { font-size: 16px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.22em; }
  .hero {
    padding: 80px 20px 0;
    min-height: auto;
  }
  .hero-floating-badge {
    top: 78px;
    right: 20px;
    padding: 8px 14px 8px 10px;
  }
  .hero-floating-badge .txt { font-size: 11px; }
  .hero-top h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero-top .lead { font-size: 14px; }
  .hero-inner { gap: 12px; }
  .hero-bottom { padding-bottom: 20px; }
  .hero-bottom-left .sub { font-size: 13px; }
  .hero-bottom-left { gap: 12px; }
  .hero-stats .stat .num { font-size: 28px; }
  .hero-cta-row .btn { font-size: 12px; padding: 12px 22px; }
  .hero-cta-row { gap: 8px; }
  .hero-doctor {
    min-height: 320px;
    margin-bottom: -40px;
    margin-top: -40px;
  }
  .hero-doctor-img {
    height: clamp(280px, 45vh, 450px);
    width: 100%;
  }
  .hero-patients {
    position: absolute;
    flex-direction: row;
    gap: 0;
    bottom: 140px;
    left: 0;
    right: 0;
    top: auto;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 1;
    pointer-events: none;
  }
  .hero-patients .patient {
    width: 88px; height: 108px;
    border-width: 3px;
    border-radius: 14px;
    margin: 0 !important;
    flex-shrink: 0;
  }
  .hero-patients .patient:nth-child(2) { display: none; }
  .hero-patients .patient:nth-child(1) { transform: rotate(-6deg); }
  .hero-patients .patient:nth-child(3) { transform: rotate(6deg); }
  .services-bento { grid-template-columns: 1fr; }
  .svc { min-height: 260px; }
  .svc-title { font-size: 22px; }
  .doctor-credentials { grid-template-columns: 1fr 1fr; gap: 18px; }
  .doctor-credentials .item .value { font-size: 15px; }
  .doctor-media .signature { padding: 14px 18px; bottom: 16px; left: 16px; }
  .doctor-media .signature .name { font-size: 16px; }
  .process-steps { grid-template-columns: 1fr; }
  .step { padding: 24px 0; }
  .step .num { margin-bottom: 16px; }
  .compare { aspect-ratio: 4/5; }
  .compare-thumbs button { width: 70px; }
  .tech-list .item { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 16px 0; }
  .tech-list .item .name { font-size: 17px; }
  .tech-media .floating-card { right: 16px; bottom: 16px; padding: 14px 18px; max-width: 180px; }
  .tech-media .floating-card .k { font-size: 28px; }
  .testimonial { flex: 0 0 100%; padding: 28px 24px; min-height: 280px; }
  .testimonial .quote { font-size: 17px; }
  .test-nav { justify-self: start; }
  .test-nav button { width: 40px; height: 40px; }
  .faq-q { font-size: 18px; padding: 20px 0; gap: 14px; }
  .faq-a-inner { padding-right: 0; font-size: 14px; }
  .cta-big h2 { font-size: clamp(32px, 8vw, 48px); }
  .cta-big .lead { font-size: 15px; }
  .location { margin: 0 auto; }
  .location-info { padding: 32px 24px; }
  .location-info .lead { font-size: 15px; margin-bottom: 24px; }
  .location-info .row { padding: 14px 0; }
  .location-info .row .value { font-size: 14px; }
  .location-map { min-height: 320px; }
  footer { padding: 60px 20px 24px; }
  .foot-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .foot-col h4 { margin-bottom: 16px; }
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .marquee-item { font-size: 18px; }
}
@media (max-width: 420px) {
  .hero-floating-badge { display: none; }
  .nav-right .btn { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}