/* ==========================================================================
   STARMED KLİNİKASI — Premium Healthcare Brand System
   Institutional · calm · timeless · self-hosted · no external deps · WCAG 2.2 AA
   Type: Newsreader (serif display) + Manrope (sans body)
   Color: deep institutional green · red reserved for the logo star only
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 380 600; font-display: swap;
  src: url("../fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 380 600; font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Design tokens ---------- */
:root {
  /* deep institutional green */
  --brand: #134e3a;
  --brand-700: #0d3a2b;
  --brand-600: #114632;
  --brand-500: #15573f;
  --brand-400: #4f8270;
  --brand-300: #97b8aa;
  --brand-100: #dde8e2;
  --brand-50: #f1f6f3;
  /* red — STAR accent, used with extreme restraint (logo + hairline only) */
  --accent: #c0392c;

  /* ink + neutrals (warm, calm) */
  --ink: #14211b;
  --ink-2: #44514a;
  --muted: #6f7c74;
  --line: #e7ece9;
  --line-2: #f0f4f1;
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --bg-deep: #0c2a20;
  --bg-deep-2: #08201a;

  /* effects — hairlines, minimal shadow */
  --focus: #4f8270;
  --shadow-sm: 0 1px 2px rgba(16, 45, 33, .04);
  --shadow-md: 0 8px 30px rgba(16, 45, 33, .06);
  --shadow-lg: 0 24px 60px rgba(16, 45, 33, .09);

  /* layout — generous */
  --container: 1180px;
  --container-narrow: 740px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-btn: 9px;
  --radius-lg: 22px;
  --space: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* type */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --fs-display: clamp(2.6rem, 1.7rem + 3.9vw, 4.4rem);
  --fs-h1: clamp(2.15rem, 1.55rem + 2.4vw, 3.2rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem);
  --fs-h3: clamp(1.22rem, 1.08rem + .55vw, 1.45rem);
  --fs-lead: clamp(1.12rem, 1.04rem + .42vw, 1.32rem);
  --fs-body: 1.075rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 420; line-height: 1.75;
  color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
ul, ol { padding-left: 1.25rem; }
button { font: inherit; cursor: pointer; }
:where(h1, h2, h3, h4) { font-family: var(--font-serif); line-height: 1.14; color: var(--ink); letter-spacing: -.01em; font-weight: 500; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.018em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.016em; }
h3 { font-size: var(--fs-h3); font-weight: 540; }
p { text-wrap: pretty; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 8px; font-weight: 600; transition: top .15s ease; }
.skip-link:focus { top: 12px; color: #fff; }
.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; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, .7rem + 2.4vw, 2.4rem); }
.section { padding-block: var(--space); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(3rem, 2.2rem + 2.4vw, 4.5rem); }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }
.section__head { max-width: 680px; margin-bottom: clamp(2.6rem, 1.8rem + 2.4vw, 4rem); }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .eyebrow { justify-content: center; }
.section__head h2 { margin-top: 1rem; }
.section__head p { margin-top: 1.1rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.7; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.7; }

/* brand-tinted inline words (hero) */
.brand-star { color: var(--accent); }
.brand-med { color: var(--brand); }

/* grids */
.grid { display: grid; gap: clamp(1.1rem, .8rem + 1.2vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 1.5rem; border-radius: var(--radius-btn); border: 1px solid transparent; font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-sm); line-height: 1; transition: background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-700); }
.btn--wa { background: #157a45; color: #fff; }
.btn--wa:hover { background: #0f5c34; color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #a32e23; color: #fff; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: rgba(255,255,255,.88); color: var(--brand-700); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--bg-deep); color: rgba(255,255,255,.78); font-size: var(--fs-sm); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; }
.topbar a { color: rgba(255,255,255,.78); display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; }
.topbar__group { display: flex; align-items: center; gap: 1.6rem; }
.topbar svg { width: 15px; height: 15px; opacity: .8; }
.topbar__hours { color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .topbar__hours, .topbar__addr { display: none; } }

/* ---------- Header / nav ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand__logo { height: 48px; width: auto; display: block; }
.brand--footer { background: #fff; padding: 10px 16px; border-radius: 12px; display: inline-flex; }
.brand--footer .brand__logo { height: 40px; }
@media (max-width: 480px) { .brand__logo { height: 42px; } }
.brand__mark { height: 44px; width: 44px; flex-shrink: 0; }
.brand__wm { display: flex; flex-direction: column; line-height: 1; }
.brand__wm b { font-family: var(--font-sans); font-size: 1.28rem; font-weight: 800; letter-spacing: -.01em; color: var(--brand); }
.brand__wm b em { font-style: normal; color: var(--accent); }
.brand__wm span { font-size: .62rem; font-weight: 600; letter-spacing: .3em; color: var(--muted); margin-top: .22rem; }
.brand--footer .brand__wm b { color: #fff; }
.brand--footer .brand__wm b em { color: #e8897f; }
.brand--footer .brand__wm span { color: rgba(255,255,255,.6); }
.nav { display: flex; align-items: center; }
.nav__panel { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: .05rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__drawer-head, .nav__drawer-cta, .nav__close { display: none; }
.nav__link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .75rem; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: var(--fs-sm); white-space: nowrap; transition: color .15s, background .15s; }
.nav__link:hover, .nav__item:focus-within .nav__link { color: var(--brand); background: var(--brand-50); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__caret { width: 14px; height: 14px; opacity: .55; transition: transform .2s; }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 268px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 60; }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a { display: block; padding: .58rem .7rem; border-radius: 7px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; }
.nav__menu a:hover { background: var(--brand-50); color: var(--brand); }
.nav__menu--cols { display: grid; grid-template-columns: 1fr 1fr; min-width: 468px; gap: .1rem; }
.header__cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; }
@media (max-width: 1180px) { .header__phone { display: none; } }

/* ===== Mobile drawer — bulletproof: display toggle (no transform/visibility leak) ===== */
@media (max-width: 1024px) {
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .header__book { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 200; display: none; background: rgba(8,32,26,.55); }
  html.menu-open .nav { display: block; }
  html.menu-open { overflow: hidden; }
  .nav__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(87vw, 372px); display: flex; flex-direction: column; align-items: stretch; background: #fff; padding: 1.1rem 1.2rem 1.8rem; overflow-y: auto; box-shadow: -10px 0 44px rgba(13, 60, 35, .20); transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
  html.menu-open .nav__panel { transform: translateX(0); }
  .nav__drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line); }
  .nav__close { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
  .nav__close svg { width: 22px; height: 22px; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; width: 100%; }
  .nav__item { position: static; }
  .nav__link { padding: .95rem .65rem; font-size: 1.08rem; font-weight: 550; border-radius: 9px; color: var(--ink); }
  .nav__link:hover, .nav__item--open > .nav__link { background: var(--brand-50); color: var(--brand); }
  .nav__caret { margin-left: auto; }
  .nav__item--open > .nav__link .nav__caret { transform: rotate(180deg); }
  .nav__menu, .nav__menu--cols { position: static; display: none; opacity: 1; visibility: visible; transform: none; min-width: 0; box-shadow: none; border: 0; background: none; margin: .1rem 0 .5rem .7rem; padding: 0 0 0 .8rem; border-left: 2px solid var(--brand-100); }
  .nav__item--open .nav__menu, .nav__item--open .nav__menu--cols { display: block; }
  .nav__menu a { padding: .64rem .6rem; font-size: 1rem; }
  .nav__drawer-cta { display: grid; gap: .55rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--bg-soft), #fff 78%); }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2.5rem, 1.4rem + 4vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 2.4rem + 5vw, 7rem); }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; color: var(--brand); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; }
.hero__badge svg { width: 15px; height: 15px; color: var(--accent); }
.hero h1 { margin-top: 1.4rem; font-size: var(--fs-display); line-height: 1.07; letter-spacing: -.02em; font-weight: 470; }
.hero__lead { margin-top: 1.5rem; font-size: var(--fs-lead); color: var(--ink-2); max-width: 38ch; line-height: 1.7; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__stat .n { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 480; color: var(--brand); letter-spacing: -.02em; line-height: 1; }
.hero__stat .l { font-size: var(--fs-xs); color: var(--muted); margin-top: .45rem; letter-spacing: .02em; }
.hero__media { position: relative; }
.hero__media img, .hero__shot { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3.2; object-fit: cover; background: var(--brand-50); box-shadow: var(--shadow-lg); }
.hero__shot { display: grid; place-items: center; border: 1px solid var(--brand-100); }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__media { order: -1; max-width: 600px; }
  .hero__lead { max-width: none; }
  .hero__trust { gap: 1.6rem 2.4rem; }
}

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: border-color .2s ease, box-shadow .2s ease; height: 100%; }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card__ic { width: 46px; height: 46px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 1.3rem; }
.card__ic svg { width: 23px; height: 23px; stroke-width: 1.6; }
.card h3 { font-size: 1.2rem; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--brand); }
.card p { margin-top: .6rem; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65; }
.card__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-weight: 600; font-size: var(--fs-sm); color: var(--brand); }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(3px); }
a.card { display: block; color: inherit; }

/* service compact card */
.svc-card { display: flex; gap: 1.1rem; align-items: flex-start; }
.svc-card .card__ic { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; }

/* ---------- Pills / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .65rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); transition: border-color .15s, background .15s, color .15s; }
a.chip:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand); }
.chip svg { width: 15px; height: 15px; color: var(--brand-400); }

/* ---------- Feature rows ---------- */
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature__ic { width: 46px; height: 46px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.feature__ic svg { width: 22px; height: 22px; stroke-width: 1.6; }
.feature h3 { font-size: 1.12rem; }
.feature p { margin-top: .45rem; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65; }

/* check list */
.ticks { list-style: none; padding: 0; display: grid; gap: .85rem; }
.ticks li { position: relative; padding-left: 2.1rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .12em; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23134e3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 13px; background-repeat: no-repeat; background-position: center; }

/* ---------- Doctors ---------- */
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; height: 100%; }
.doc-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.doc-card__media { aspect-ratio: 1 / 1; background: linear-gradient(165deg, var(--brand-50), var(--brand-100)); display: grid; place-items: center; color: var(--brand); position: relative; }
.doc-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc-card__media .mono { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 480; color: var(--brand-300); }
.doc-card__badge { position: absolute; top: .75rem; right: .75rem; background: rgba(255,255,255,.92); color: var(--brand); font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .28rem .65rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.doc-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.doc-card__spec { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-400); }
.doc-card h3 { font-size: 1.16rem; margin-top: .35rem; }
.doc-card__meta { margin-top: .6rem; font-size: var(--fs-sm); color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.doc-card__meta svg { width: 15px; height: 15px; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__q { width: 100%; text-align: left; background: none; border: 0; padding: 1.3rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-serif); font-weight: 540; font-size: 1.1rem; color: var(--ink); }
.acc__q:hover { color: var(--brand); }
.acc__icn { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand); transition: transform .22s; }
.acc__q[aria-expanded="true"] .acc__icn { transform: rotate(45deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.acc__a-inner { overflow: hidden; }
.acc__a-inner p { padding: 0 1.4rem 1.3rem; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.acc__item.open .acc__a { grid-template-rows: 1fr; }

/* ---------- Breadcrumb ---------- */
.crumbs { padding-block: 1.2rem; font-size: var(--fs-sm); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--brand-300); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current="page"] { color: var(--ink-2); font-weight: 500; }

/* ---------- Page header (inner) ---------- */
.page-head { background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); }
.page-head__in { padding-block: clamp(1.8rem, 1.3rem + 2vw, 3rem) clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); max-width: 760px; }
.page-head h1 { margin-top: .6rem; }
.page-head p { margin-top: 1.1rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.7; }
/* tighten the gap between an inner page header and its first content section */
.page-head + .section { padding-top: clamp(2.6rem, 1.9rem + 2.4vw, 4rem); }

/* ---------- Answer block (AEO) ---------- */
.answer { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 1.5rem 1.7rem; }
.answer p { color: var(--ink); font-weight: 440; line-height: 1.7; }
.answer .answer__tag { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: .6rem; }

/* ---------- Prose ---------- */
.prose { max-width: 740px; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.8rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.78; }
.prose ul, .prose ol { display: grid; gap: .6rem; }
.prose strong { color: var(--ink); font-weight: 680; }
.prose a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-300); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.4rem, 1.8rem + 3vw, 4rem); position: relative; overflow: hidden; }
.cta-band__in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { color: #fff; max-width: 20ch; font-weight: 480; }
.cta-band p { color: rgba(255,255,255,.72); margin-top: .8rem; max-width: 46ch; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); color: rgba(255,255,255,.66); padding-block: clamp(3rem, 2.2rem + 2.4vw, 4.2rem) 1.8rem; font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.4rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand p { margin-top: 1.2rem; max-width: 32ch; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: rgba(255,255,255,.8); transition: background .15s, color .15s; }
.footer__social a:hover { background: var(--brand); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer h4 { font-family: var(--font-sans); color: #fff; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer a { color: rgba(255,255,255,.66); }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; margin-top: .25rem; color: var(--brand-300); flex-shrink: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; color: rgba(255,255,255,.45); font-size: var(--fs-xs); }
.footer__bottom a { color: rgba(255,255,255,.66); font-weight: 500; }
.footer__bottom a:hover { color: var(--brand-300); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Sticky mobile call bar ---------- */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: .6rem; gap: .6rem; }
.mobile-bar .btn { flex: 1; padding: .9rem; }
@media (max-width: 640px) { .mobile-bar { display: flex; } body { padding-bottom: 74px; } }

/* ---------- Misc ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.stat-band > div { padding: 2rem 1.4rem; text-align: center; border-right: 1px solid var(--line); }
.stat-band > div:last-child { border-right: 0; }
.stat-band .n { font-family: var(--font-serif); font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 470; color: var(--brand); letter-spacing: -.02em; }
.stat-band .l { font-size: var(--fs-sm); color: var(--muted); margin-top: .4rem; }
@media (max-width: 640px) { .stat-band { grid-template-columns: 1fr 1fr; } .stat-band > div:nth-child(2) { border-right: 0; } .stat-band > div:nth-child(1), .stat-band > div:nth-child(2) { border-bottom: 1px solid var(--line); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.media-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-frame--clinic { aspect-ratio: 4/3; background: linear-gradient(165deg, var(--brand-100), var(--brand-50)); display: grid; place-items: center; color: var(--brand); text-align: center; padding: 2rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 1.2rem + 2.4vw, 3.5rem); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row b { display: block; font-size: var(--fs-sm); font-weight: 650; color: var(--ink); margin-bottom: .15rem; }
.info-row span, .info-row a { color: var(--ink-2); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--bg-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* QR block */
.qr-card { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.qr-card > svg, .qr-card > img { width: 148px; height: 148px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: #fff; color: var(--brand); }

/* form */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-btn); font: inherit; font-size: var(--fs-sm); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(79,130,112,.15); }
.field textarea { resize: vertical; min-height: 120px; }

/* utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.center-btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.4rem; }

@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .header, .topbar, .mobile-bar, .cta-band, .footer__social { display: none; } }
