/* Ortaköy Dental — main stylesheet */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue-950: #041a40;
  --blue-900: #062457;
  --blue-800: #063c91;
  --blue-700: #0b4ca1;
  --blue-200: #c9d8f0;
  --blue-100: #e3ebf7;
  --blue-50: #f1f5fc;
  --ink: #0e1b33;
  --ink-2: #3d4a63;
  --ink-3: #5f6a80;
  --bg: #fbfaf7;
  --sand: #f4f0e9;
  --sand-2: #e9e3d8;
  --line: #e4dfd5;
  --white: #fff;
  --gold: #b08d57;
  --danger: #b42318;
  --success: #12643b;

  --font-serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 51, .05), 0 4px 16px rgba(14, 27, 51, .04);
  --shadow: 0 2px 6px rgba(14, 27, 51, .05), 0 18px 48px rgba(14, 27, 51, .08);
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-800); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-900); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 450; line-height: 1.15; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--blue-800); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.icon-sm { width: 1.05em; height: 1.05em; }
.icon-xs { width: .95em; height: .95em; }

/* ---------- Typography ---------- */

.display, .page-title, .section-title, .cta-title, .form-title, .profile-name {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--ink);
  font-optical-sizing: auto;
}
.display { font-size: clamp(2.6rem, 1.5rem + 4.2vw, 4.75rem); line-height: 1.03; }
.display em { font-style: normal; color: var(--blue-800); }
.page-title { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.75rem); line-height: 1.06; }
.section-title { font-size: clamp(1.95rem, 1.4rem + 1.9vw, 2.85rem); line-height: 1.1; }
.section-title-sm { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin-bottom: 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-800);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-3); font-size: .92rem; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.35rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .96rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-800); color: #fff; box-shadow: 0 6px 18px rgba(6, 60, 145, .22); }
.btn-primary:hover { background: var(--blue-900); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--sand-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-light:hover { background: var(--blue-50); color: var(--blue-900); }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: .62rem 1.05rem; font-size: .9rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--blue-800);
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-muted { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-3); font-size: .93rem; text-decoration: none; }
.link-muted:hover { color: var(--ink); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--sand-2); background: #fff; color: var(--ink); cursor: pointer;
}
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile drawer. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 250, 247, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.nav-open .site-header::before { background: var(--bg); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(14, 27, 51, .05); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue-800); flex-shrink: 0; }
.brand:hover { color: var(--blue-900); }
.brand-mark { width: 30px; height: 35px; }
.brand-name { font-family: var(--font-serif); font-size: 1.38rem; font-weight: 500; letter-spacing: -.015em; line-height: 1; }
.brand-light, .brand-light:hover { color: #fff; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; gap: 6px; list-style: none; }
.nav-list a {
  position: relative; display: block; padding: 10px 14px;
  color: var(--ink-2); font-weight: 500; font-size: .98rem; text-decoration: none; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav-list a:hover { color: var(--ink); background: rgba(14, 27, 51, .04); }
.nav-list a[aria-current="page"] { color: var(--blue-800); }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue-800);
}
.nav-drawer-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.header-phone .icon { color: var(--blue-800); }
.header-phone:hover { color: var(--blue-800); }
.header-call, .nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 8vw, 112px);
  background:
    radial-gradient(60% 70% at 88% 18%, rgba(201, 216, 240, .55), transparent 70%),
    radial-gradient(40% 50% at 8% 90%, rgba(233, 227, 216, .7), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero-copy .lead { margin: 24px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-address { display: flex; align-items: center; gap: 10px; margin: 30px 0 0; color: var(--ink-3); font-size: .95rem; }
.hero-address .icon { color: var(--gold); }

.hero-media { position: relative; justify-self: end; width: min(100%, 440px); }
.hero-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border-radius: 240px 240px 32px 32px; background: var(--sand); border: 1px solid var(--sand-2);
}
.hero-photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 240px 240px 32px 32px; background: var(--blue-50); box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-badge {
  position: absolute; left: -36px; bottom: 36px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .96); box-shadow: var(--shadow);
}
.hero-badge-mark { width: 26px; height: 31px; color: var(--blue-800); }
.hero-badge-title { margin: 0; font-size: .88rem; font-weight: 600; line-height: 1.45; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-media { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-media { animation-delay: .15s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Quick contact ---------- */

.quick { padding-bottom: clamp(24px, 4vw, 40px); margin-top: calc(-1 * clamp(24px, 4vw, 56px)); position: relative; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.quick-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50); color: var(--blue-800); flex-shrink: 0; }
.quick-icon .icon { width: 22px; height: 22px; }
.quick-title { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.quick-text { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.quick-text a { color: var(--ink); text-decoration: none; }
.quick-text a:hover { color: var(--blue-800); text-decoration: underline; }
.quick-text .sep { color: var(--ink-3); margin: 0 .5em; font-weight: 400; }
.quick-doctors { list-style: none; display: grid; gap: 6px; }
.quick-doctors a { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.quick-doctors a:hover { color: var(--blue-800); text-decoration: underline; }
.quick-doctors small { display: block; color: var(--ink-3); font-size: .82rem; line-height: 1.3; }
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-flush-top { padding-top: 0; }
.section-sand { background: var(--sand); }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 64px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-intro { margin: 0; color: var(--ink-2); max-width: 46ch; justify-self: end; }

/* ---------- Treatment cards ---------- */

.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 22px 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.t-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.t-card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--blue-50); color: var(--blue-800); transition: background-color .25s, color .25s;
}
.t-card-icon .icon { width: 28px; height: 28px; }
.t-card:hover .t-card-icon { background: var(--blue-800); color: #fff; }
.t-card-body { display: grid; gap: 2px; min-width: 0; }
.t-card-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 450; letter-spacing: -.01em; line-height: 1.25; }
.t-card-text { font-size: .9rem; line-height: 1.5; color: var(--ink-3); }
.t-card-more { color: var(--ink-3); transition: transform .25s var(--ease), color .25s; }
.t-card:hover .t-card-more { color: var(--blue-800); transform: translateX(3px); }

.t-grid-lg .t-card { grid-template-columns: 1fr; align-items: start; gap: 22px; padding: 30px 28px 26px; border-radius: var(--radius-lg); }
.t-grid-lg .t-card-icon { width: 60px; height: 60px; border-radius: 18px; }
.t-grid-lg .t-card-icon .icon { width: 32px; height: 32px; }
.t-grid-lg .t-card-title { font-size: 1.45rem; margin-bottom: 6px; }
.t-grid-lg .t-card-text { font-size: .97rem; color: var(--ink-2); }
.t-grid-lg .t-card-more { position: absolute; top: 30px; right: 28px; }

/* ---------- Doctor cards ---------- */

.d-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.d-card {
  display: grid; grid-template-columns: 128px 1fr; gap: 28px; align-items: start;
  padding: 32px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.d-card-photo img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--blue-50); }
.d-card-role { margin: 0 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.d-card-name { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 450; letter-spacing: -.015em; margin-bottom: 12px; }
.d-card-title { color: var(--blue-800); }
.d-card-text { color: var(--ink-2); font-size: .98rem; }
.d-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 18px; }

/* ---------- Process ---------- */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; counter-reset: none; }
.process-step { padding-top: 24px; border-top: 1px solid var(--sand-2); position: relative; }
.process-step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--blue-800); }
.process-num { display: block; font-family: var(--font-serif); font-size: 1rem; color: #866532; margin-bottom: 14px; font-variant-numeric: lining-nums; }
.process-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 450; margin-bottom: 10px; }
.process-step p { color: var(--ink-2); font-size: .98rem; margin: 0; }

/* ---------- Location & map ---------- */

.location { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.location .section-title { margin-bottom: 20px; }
.location-address { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 20px; }
.location-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.contact-list { list-style: none; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.contact-list li:first-child a { border-top: 1px solid var(--line); }
.contact-list a:hover { color: var(--blue-800); }
.contact-list .icon { color: var(--blue-800); }
.contact-list small { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-3); }

.map {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 16 / 11; min-height: 340px; background: #e9eff8; border: 1px solid var(--line);
}
.map-section .map { aspect-ratio: 5 / 2; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-water { fill: #d6e2f3; }
.map-roads path { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; }
.map-streets path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .75; }
.map-overlay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(360px, calc(100% - 40px));
  padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .97); box-shadow: var(--shadow);
  text-align: center;
}
.map-pin { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-800); color: #fff; margin-bottom: 10px; }
.map-pin .icon { width: 24px; height: 24px; }
.map-address { font-size: .95rem; color: var(--ink-2); margin-bottom: 16px; }
.map-address strong { color: var(--ink); }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.map-note { margin: 14px 0 0; font-size: .76rem; color: var(--ink-3); line-height: 1.45; }

/* ---------- CTA band ---------- */

.cta-band { padding: clamp(56px, 8vw, 104px) 0; }
.section-sand + .cta-band { background: var(--bg); }
.cta-inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: radial-gradient(80% 140% at 100% 0%, #0b4ca1 0%, transparent 60%), linear-gradient(135deg, var(--blue-800), var(--blue-950));
  color: rgba(255, 255, 255, .82);
}
.cta-title { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 10px; }
.cta-text { margin: 0; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.cta-inner :focus-visible { outline-color: #fff; }

/* ---------- Page hero ---------- */

.page-hero {
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 88px);
  background: radial-gradient(50% 80% at 100% 0%, rgba(201, 216, 240, .5), transparent 70%);
}
.page-hero-body { max-width: 780px; }
.page-hero .lead { margin: 22px 0 0; }
.page-hero-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--blue-800); margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.page-hero-icon .icon { width: 34px; height: 34px; }

.breadcrumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .88rem; color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sand-2); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-800); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Article (treatment) ---------- */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose-narrow { max-width: 74ch; }
.prose h2 {
  font-family: var(--font-serif); font-weight: 450; letter-spacing: -.015em; color: var(--ink);
  font-size: clamp(1.5rem, 1.25rem + .8vw, 1.9rem); margin: 0 0 18px;
}
.prose h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 26px 0 8px; font-family: var(--font-sans); letter-spacing: 0; }
.prose-section { padding-top: clamp(36px, 5vw, 52px); }
.prose-section:first-child { padding-top: 0; }
.prose > p:first-child { margin-top: 0; }
.prose > * + h2 { margin-top: 1.6em; }
.prose > h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-bottom: 12px; }
.prose ul:not([class]) { padding-left: 1.2em; margin-bottom: 1em; }
.prose ul:not([class]) li { margin-bottom: .45em; }
.prose ul:not([class]) li::marker { color: var(--blue-800); }
.prose strong { color: var(--ink); font-weight: 600; }

.checklist { display: grid; gap: 12px; list-style: none; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .icon {
  width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-800); stroke-width: 2.2;
}

.steps { list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--blue-200); color: var(--blue-800); font-family: var(--font-serif); font-size: 1rem;
}
.steps h3 { margin: 4px 0 4px; }
.steps p { margin: 0; }

.defs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.defs div { padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.defs dt { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.defs dd { margin: 0; font-size: .95rem; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--blue-800); transition: transform .25s var(--ease); }
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  margin: clamp(36px, 5vw, 52px) 0 0; padding: 18px 22px; border-radius: 16px;
  background: var(--sand); color: var(--ink-2); font-size: .9rem; line-height: 1.55;
}
.notice .icon { color: var(--blue-800); margin-top: 1px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.side-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.side-card-accent { background: linear-gradient(160deg, var(--blue-800), var(--blue-950)); border-color: transparent; color: rgba(255, 255, 255, .82); }
.side-card-accent p { font-size: .95rem; }
.side-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 450; margin-bottom: 10px; color: var(--ink); }
.side-card-accent .side-title { color: #fff; }
.side-phones { list-style: none; display: grid; gap: 4px; margin-top: 16px; }
.side-phones a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; padding: 4px 0; }
.side-phones a:hover { text-decoration: underline; }
.side-label { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.side-phones-doctors { margin-top: 8px; }
.side-phones-doctors a { align-items: flex-start; }
.side-phones-doctors .icon { margin-top: 3px; }
.side-phones small { display: block; font-weight: 400; font-size: .8rem; color: rgba(255, 255, 255, .7); }
.side-card-accent :focus-visible { outline-color: #fff; }
.side-nav ul { list-style: none; display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-size: .95rem;
}
.side-nav a .icon { color: var(--ink-3); }
.side-nav a:hover { background: var(--blue-50); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--blue-50); color: var(--blue-800); font-weight: 600; }
.side-nav a[aria-current="page"] .icon { color: var(--blue-800); }

.t-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Doctors page ---------- */

.profile {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 72px);
  padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.profile:first-child { border-top: 0; padding-top: 0; }
.profile-media { display: grid; gap: 18px; justify-items: start; align-content: start; }
.profile-photo img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line); }
.profile-name { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); line-height: 1.1; margin-bottom: 22px; }
.profile-name span { color: var(--blue-800); }
.profile-body { max-width: 66ch; color: var(--ink-2); }
.profile-body .eyebrow { margin-bottom: 12px; }
.timeline { list-style: none; margin-top: 28px; border-left: 1px solid var(--sand-2); padding-left: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 8px 0 8px 22px; position: relative; font-size: .97rem; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-800); }
.timeline-year { font-family: var(--font-serif); color: var(--blue-800); font-variant-numeric: lining-nums; }
.timeline-plain li { display: block; }
.timeline-plain .timeline-year::after { content: " ·"; margin-right: .35em; }

.practice { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.practice-photo { margin: 0; }
.practice-photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.practice-text .section-title { margin-bottom: 20px; }
.practice-text p { color: var(--ink-2); }
.practice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Contact ---------- */

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.info-block + .info-block { margin-top: 34px; }
.info-title { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.contact-info .location-address { margin-bottom: 10px; }
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }

.form-card {
  padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.form-card:focus { outline: none; }
.form-title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 8px; }
.form-intro { color: var(--ink-2); margin-bottom: 26px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: .82rem 1rem; font-size: 1rem; line-height: 1.4;
  background: #fff; border: 1px solid #d6cfc2; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4a63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9b1a3; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(11, 76, 161, .14);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: .86rem; font-weight: 500; }
.field-hint { margin: 0; color: var(--ink-3); font-size: .84rem; line-height: 1.5; }
.field-check { grid-template-columns: 22px 1fr; align-items: start; gap: 4px 12px; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-800); cursor: pointer; }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.field-check .field-error { grid-column: 2; }
.form-foot { margin: 0; text-align: center; font-size: .86rem; color: var(--ink-3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin-bottom: 22px; font-weight: 500; }
.form-status .icon { margin-top: 2px; }
.form-status.is-success { background: #e9f6ef; color: var(--success); border: 1px solid #bfe3cf; }
.form-status.is-error { background: #fdeeec; color: #8a1c14; border: 1px solid #f3c7c1; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- 404 ---------- */

.not-found-inner { text-align: center; max-width: 640px; }
.not-found-inner .eyebrow::before { display: none; }
.not-found-inner .lead { margin: 20px auto 32px; }
.not-found-inner .hero-actions { justify-content: center; }
.not-found-mark { width: 64px; height: 76px; color: var(--blue-200); margin: 0 auto 28px; }

/* ---------- Footer ---------- */

.site-footer { background: #0a1630; color: rgba(255, 255, 255, .7); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.25fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 22px; }
.footer-brand .brand-mark { color: #fff; }
.footer-address { line-height: 1.7; margin-bottom: 14px; }
.footer-link-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .9rem; }
.footer-title { font-family: var(--font-sans); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-contact a { display: inline-flex; align-items: flex-start; gap: 10px; font-variant-numeric: tabular-nums; }
.footer-contact .icon { margin-top: 4px; color: rgba(255, 255, 255, .5); }
.footer-contact small { display: block; color: rgba(255, 255, 255, .5); font-size: .8rem; }
.footer-hours { list-style: none; margin-top: 16px; }
.footer-legal { margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-disclaimer { font-size: .84rem; color: rgba(255, 255, 255, .55); max-width: 100ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; font-size: .84rem; color: rgba(255, 255, 255, .55); }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }

/* ---------- Mobile bar ---------- */

.mobile-bar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .t-grid { grid-template-columns: repeat(2, 1fr); }
  .d-card { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .header-inner { gap: 12px; }
  .header-phone, .header-cta { display: none; }
  .header-call, .nav-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; gap: 8px; }

  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-open .primary-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { font-family: var(--font-serif); font-size: 1.9rem; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-list a:hover { background: none; }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-drawer-extra { display: grid; gap: 6px; margin-top: 32px; }
  .nav-drawer-label { margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .nav-drawer-phone { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
  .nav-drawer-phone .icon { color: var(--blue-800); }
  .nav-drawer-phone small { display: block; font-weight: 400; font-size: .84rem; color: var(--ink-3); }
  .nav-drawer-label-sub { margin-top: 14px; }
  .nav-drawer-extra .btn { margin-top: 12px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: center; width: min(100%, 380px); margin-top: 8px; }
  .hero-media::before { inset: 18px -14px -18px 14px; }
  .hero-badge { left: -8px; bottom: 24px; }
  .quick { margin-top: 0; }
  .quick-grid { grid-template-columns: 1fr; gap: 10px; }
  .section-head { grid-template-columns: 1fr; }
  .section-intro { justify-self: start; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .location, .practice, .contact-layout, .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .side-nav { display: none; }
  .d-grid { grid-template-columns: 1fr; }
  .d-card { grid-template-columns: 112px 1fr; padding: 26px; }
  .d-card-photo img { width: 112px; height: 112px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }

  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 250, 247, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px;
    border-radius: 14px; border: 1px solid var(--sand-2); background: #fff;
    color: var(--ink); font-weight: 600; text-decoration: none;
  }
  .mobile-bar-primary { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
  .mobile-bar-primary:hover { color: #fff; }
  .nav-open .mobile-bar { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .t-grid, .t-grid-3 { grid-template-columns: 1fr; gap: 8px; }
  .t-card { padding: 14px 16px; gap: 14px; }
  .t-grid-lg .t-card { padding: 22px; }
  .t-grid-lg .t-card-more { top: 22px; right: 22px; }
  .quick-item { padding: 16px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 24px; }
  .d-card { grid-template-columns: 72px 1fr; gap: 16px; padding: 22px 20px; }
  .d-card-photo img { width: 72px; height: 72px; box-shadow: 0 0 0 4px var(--blue-50); }
  .d-card-name { font-size: 1.35rem; }
  .profile { grid-template-columns: 1fr; gap: 20px; }
  .profile-photo img { width: 140px; height: 140px; }
  .defs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .map, .map-section .map { aspect-ratio: 4 / 5; }
  .brand-name { font-size: 1.24rem; }
  .brand-mark { width: 26px; height: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .mobile-bar, .cta-band, .map, .sidebar, .skip-link { display: none !important; }
  body { padding: 0; background: #fff; }
  .site-footer { background: #fff; color: #000; }
}
