/* =========================================================================
   Dr. Ahmed Basuni El-Saka · site styles
   Logical properties throughout (margin-inline, inset-inline...) so the
   Arabic (RTL) layout mirrors automatically. Light and dark themes via
   [data-theme] on <html>; the system setting is the default.
   ========================================================================= */

:root {
  --paper: #f6f9f8;
  --surface: #ffffff;
  --tint: #e8f2f0;
  --tint-2: #d6e7e4;
  --ink: #10242b;
  --ink-2: #44575e;
  --line: #d3e1de;
  --line-strong: #b3c9c5;
  --brand: #0b5d63;
  --brand-hover: #084a4f;
  --brand-soft: #e0eeec;
  --on-brand: #ffffff;
  --logo-bg: #0b5d63;
  --heart: #b4363f;
  --heart-on-brand: #f4a3a8;
  --wa: #157a43;
  --wa-hover: #10633a;
  --on-wa: #ffffff;
  --ph-bg: #fff0bf;
  --ph-ink: #5c4400;
  --footer-bg: #0c1d21;
  --shadow-1: 0 1px 2px rgba(16, 36, 43, 0.06), 0 6px 18px rgba(16, 36, 43, 0.07);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --dir: 1;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
  interpolate-size: allow-keywords;
}
[dir='rtl'] {
  --dir: -1;
  --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
}
[data-theme='dark'] {
  --paper: #0a1619;
  --surface: #0f2025;
  --tint: #11262b;
  --tint-2: #173339;
  --ink: #e3eeed;
  --ink-2: #a7bebd;
  --line: #20393f;
  --line-strong: #2f5058;
  --brand: #5fc4c4;
  --brand-hover: #86d7d6;
  --brand-soft: #133439;
  --on-brand: #052226;
  --logo-bg: #0e6e75;
  --heart: #f08890;
  --heart-on-brand: #f4a3a8;
  --wa: #2ebd6b;
  --wa-hover: #49cf82;
  --on-wa: #04150b;
  --ph-bg: #4a3a06;
  --ph-ink: #ffe9a8;
  --footer-bg: #061013;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 22px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}
/* No-JS fallback: follow the system theme. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --paper: #0a1619; --surface: #0f2025; --tint: #11262b; --tint-2: #173339; --ink: #e3eeed; --ink-2: #a7bebd;
    --line: #20393f; --line-strong: #2f5058; --brand: #5fc4c4; --brand-hover: #86d7d6; --brand-soft: #133439;
    --on-brand: #052226; --logo-bg: #0e6e75; --heart: #f08890; --wa: #2ebd6b; --on-wa: #04150b; --footer-bg: #061013;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
html[lang='ar'] { font-size: 115%; }
body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[dir='rtl'] body { line-height: 1.85; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); font-weight: 700; text-wrap: balance; }
[dir='rtl'] :is(h1, h2, h3) { line-height: 1.45; }
h1 { font-size: clamp(2rem, 1.45rem + 2.3vw, 3.05rem); letter-spacing: -0.015em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); letter-spacing: -0.01em; margin: 0 0 0.75rem; font-weight: 600; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; font-weight: 600; }
[dir='rtl'] :is(h1, h2) { letter-spacing: 0; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 62ch; }
.num { unicode-bidi: isolate; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.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; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
[dir='rtl'] .flip-rtl { scale: -1 1; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
mark.ph, .stat-ph, .way-value:has(> mark.ph) {
  background: var(--ph-bg); color: var(--ph-ink); padding: 0.05em 0.4em; border-radius: 6px; font-weight: 600;
  font-size: 0.9em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
[data-theme='dark'] img { filter: brightness(0.94); }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -120px; z-index: 100; background: var(--brand); color: var(--on-brand);
  padding: 0.6rem 1rem; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: var(--on-brand); }

.wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding-block: clamp(3.5rem, 6vw, 5.75rem); }
.section-tint { background: var(--tint); }
.section-flush { padding-block: 2.5rem 4rem; }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-2); margin: 0; }
.section-foot { margin: 2rem 0 0; }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .split-form { align-items: start; }
  .split-clinic { align-items: start; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 48px;
  padding: 0.65rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600;
  font-size: 0.97rem; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, translate 0.2s ease, box-shadow 0.2s ease;
}
.btn .icon { width: 20px; height: 20px; }
.header-book { white-space: nowrap; }
.btn:hover { translate: 0 -1px; box-shadow: var(--shadow-1); }
.btn:active { translate: 0 0; box-shadow: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-wa { background: var(--wa); color: var(--on-wa); }
.btn-wa:hover { background: var(--wa-hover); color: var(--on-wa); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { min-height: 54px; padding-inline: 1.45rem; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.cta-row-tight { margin-top: 1.25rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon { width: 18px; height: 18px; transition: translate 0.2s ease; }
.text-link:hover .icon { translate: calc(var(--dir) * 3px) 0; }

/* ---------- Demo preview notice (demo build only) ---------- */
.demo-notice { margin: 0; padding: 0.45rem 1.25rem; text-align: center; font-size: 0.82rem; line-height: 1.5; background: var(--ph-bg); color: var(--ph-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(16, 36, 43, 0.05); }
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h); width: min(100% - 2.5rem, 1320px); }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-mark rect { fill: var(--logo-bg); }
.brand-text { display: grid; min-width: 0; }
.brand-text strong { font-size: 1rem; line-height: 1.25; white-space: nowrap; }
.brand-text small { font-size: 0.78rem; color: var(--ink-2); line-height: 1.3; white-space: nowrap; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; }
.main-nav a {
  display: block; padding: 0.4rem 0.55rem; border-radius: 999px; color: var(--ink); text-decoration: none;
  font-size: 0.86rem; font-weight: 500; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--ink); }
.main-nav a[aria-current='page'] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-mobile-actions { display: none; }
@media (min-width: 1340px) {
  .brand { flex: none; }
  .main-nav .nav-home { display: none; }
  .main-nav { margin-inline-start: auto; }
}
.header-tools { display: flex; align-items: center; gap: 0.5rem; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.88rem;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }
.lang-switch .icon { width: 18px; height: 18px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn > span { display: grid; place-items: center; }
.theme-toggle .i-sun { display: none; }
[data-theme='dark'] .theme-toggle .i-sun { display: grid; }
[data-theme='dark'] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded='true'] .i-close { display: grid; }
.menu-toggle[aria-expanded='true'] .i-menu { display: none; }

@media (max-width: 1339px) {
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--paper); padding: 1.25rem 1.25rem 6rem;
    overflow-y: auto; opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity 0.22s ease, translate 0.22s ease, visibility 0s linear 0.22s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.22s ease, translate 0.22s ease; }
  .main-nav ul { flex-direction: column; gap: 0.25rem; max-width: 560px; margin-inline: auto; }
  .main-nav a { font-size: 1.1rem; padding: 0.85rem 1rem; border-radius: 14px; }
  .nav-mobile-actions { display: grid; gap: 0.75rem; max-width: 560px; margin: 1.5rem auto 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-bar { display: none; }
}
@media (max-width: 639px) {
  .header-book { display: none; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 0.92rem; white-space: normal; line-height: 1.25; }
}
@media (max-width: 420px) {
  .lang-switch span { display: none; }
  .lang-switch { padding: 0; width: 44px; justify-content: center; }
  .logo-mark { width: 36px; height: 36px; }
  .header-tools { gap: 0.35rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; } }
.hero h1 { max-width: 22ch; }
.hero-badges { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.85rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 0.85rem; font-weight: 600;
}
.hero-badges .icon { width: 16px; height: 16px; }
.hero-meta { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--ink-2); font-size: 0.94rem; margin: 0.45rem 0 0; }
.hero-meta:first-of-type { margin-top: 1.5rem; }
.hero-meta .icon { width: 19px; height: 19px; color: var(--brand); margin-top: 0.2rem; }
.arch {
  position: relative; aspect-ratio: 3 / 4; width: 100%; max-width: 420px; margin-inline: auto; overflow: hidden;
  border-radius: 999px 999px 28px 28px; background: var(--tint-2); box-shadow: var(--shadow-1);
  outline: 1px solid var(--line); outline-offset: 8px;
}
.arch-sm { max-width: 340px; }
.arch img, .arch picture { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; }
@media (max-width: 899px) {
  .hero-media .arch { max-width: 300px; }
  /* Booking buttons right under the H1 on phones, so they sit above the fold. */
  .hero-text { display: flex; flex-direction: column; }
  .hero-text .cta-row { order: 2; margin-top: 0.5rem; margin-bottom: 1.25rem; }
  .hero-text .lead { order: 3; }
  .hero-text .hero-meta { order: 4; }
  .hero-badges li { font-size: 0.8rem; }
}

/* Gentle hero entrance (the one orchestrated moment on load). */
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes settle { from { opacity: 0; scale: 0.97; } to { opacity: 1; scale: 1; } }
.js .hero-text > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .hero-text > :nth-child(2) { animation-delay: 0.06s; }
.js .hero-text > :nth-child(3) { animation-delay: 0.12s; }
.js .hero-text > :nth-child(4) { animation-delay: 0.18s; }
.js .hero-text > :nth-child(n + 5) { animation-delay: 0.24s; }
.js .hero-media .arch { animation: settle 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ---------- Stats ---------- */
.stats-band { background: var(--surface); border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.5rem 0.75rem; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat-value { margin: 0; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; color: var(--brand); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-ph { font-size: 0.85rem; display: inline-block; }
.stat-label { margin: 0.25rem 0 0; color: var(--ink-2); font-size: 0.9rem; line-height: 1.4; }

/* ---------- Incision figure ---------- */
.incision-figure {
  margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.prose .incision-figure { margin: 0 0 2.5rem; }
.incision-panel { display: grid; gap: 0.75rem; align-content: start; text-align: center; }
.incision-svg { width: 100%; max-width: 190px; height: auto; margin-inline: auto; display: block; }
.incision-svg .torso { fill: none; stroke: var(--ink-2); stroke-width: 2; opacity: 0.6; stroke-linecap: round; }
.incision-svg .ribs { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; }
.incision-svg .cut-long { stroke: var(--ink-2); stroke-width: 3.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.incision-svg .cut-small { fill: none; stroke: var(--heart); stroke-width: 4.5; stroke-linecap: round; }
.incision-svg .stitch { stroke: var(--heart); stroke-width: 1.6; stroke-linecap: round; }
.incision-panel figcaption { display: grid; gap: 0.25rem; }
.incision-panel figcaption strong { font-weight: 600; font-size: 1rem; }
.is-small figcaption strong { color: var(--heart); }
.incision-panel figcaption span { font-size: 0.88rem; color: var(--ink-2); line-height: 1.55; }
.incision-note { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; color: var(--ink-2); text-align: center; }
/* The small incision draws itself once the figure scrolls into view. */
.js .incision-figure .cut-small { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset 1.1s ease 0.35s; }
.js .incision-figure .stitch { opacity: 0; transition: opacity 0.5s ease 1.3s; }
.js .incision-figure.is-in .cut-small { stroke-dashoffset: 0; }
.js .incision-figure.is-in .stitch { opacity: 1; }
@media (max-width: 480px) { .incision-figure { padding: 1rem; gap: 0.75rem; } }

/* ---------- Services ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.svc-item {
  position: relative; display: flex; gap: 1rem; padding: 1.35rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color 0.2s ease, box-shadow 0.25s ease, translate 0.25s ease;
}
.svc-item:hover { border-color: var(--brand); box-shadow: var(--shadow-1); translate: 0 -2px; }
.svc-item:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.svc-item a.stretched:focus-visible { outline: none; }
.svc-icon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.svc-icon .icon { width: 27px; height: 27px; }
.svc-item h2, .svc-item h3 { font-size: 1.1rem; margin: 0 0 0.3rem; }
.svc-item p { margin: 0 0 0.6rem; color: var(--ink-2); font-size: 0.94rem; line-height: 1.6; }
a.stretched { color: var(--ink); text-decoration: none; }
a.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.svc-more { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--brand); font-size: 0.88rem; }
.svc-more .icon { width: 16px; height: 16px; transition: translate 0.2s ease; }
.svc-item:hover .svc-more .icon, .article-card:hover .svc-more .icon { translate: calc(var(--dir) * 3px) 0; }
.svc-group + .svc-group { margin-top: 3rem; }
.svc-group-head { max-width: 680px; margin-bottom: 1.25rem; }
.svc-group-head h2 { margin-bottom: 0.35rem; }
.svc-group-head p { color: var(--ink-2); margin: 0; }

/* ---------- Why list ---------- */
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.why-list li { border-top: 2px solid var(--brand); padding-top: 1rem; }
.why-list p { color: var(--ink-2); margin: 0; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.review { margin: 0; display: flex; flex-direction: column; gap: 0.85rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review > .icon { width: 28px; height: 28px; color: var(--brand); opacity: 0.55; }
[dir='rtl'] .review > .icon { scale: -1 1; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1.02rem; }
.review figcaption { display: grid; gap: 0.1rem; font-size: 0.86rem; color: var(--ink-2); }
.review figcaption strong { color: var(--ink); font-size: 0.96rem; }
.review-original summary { cursor: pointer; font-size: 0.82rem; color: var(--brand); font-weight: 600; }
.review-original p { margin: 0.5rem 0 0; font-size: 0.95rem; color: var(--ink-2); font-family: 'IBM Plex Sans Arabic', var(--font); }
.note-box, .disclaimer-box, .urgent-box {
  display: flex; gap: 0.85rem; align-items: flex-start; margin: 2rem 0; padding: 1.15rem 1.35rem; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 0.93rem;
}
.note-box .icon, .disclaimer-box .icon, .urgent-box .icon { color: var(--heart); width: 22px; height: 22px; margin-top: 0.15rem; }
.disclaimer-box p, .urgent-box p { margin: 0 0 0.4rem; }
.disclaimer-box p:last-child, .urgent-box p:last-child { margin: 0; }
.urgent-box { border-color: var(--heart); }
.urgent-box h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }

/* ---------- Branch, hours, map ---------- */
.branches-grid { display: grid; gap: 1.5rem; max-width: 820px; }
.branch-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.85rem); }
.branch-card > :is(h2, h3) { margin-top: 0; }
.branch-facts, .contact-list { margin: 1rem 0; display: grid; gap: 0.9rem; }
.branch-facts > div, .contact-list > div { display: grid; gap: 0.15rem; }
.branch-facts dt, .contact-list dt { display: flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; font-weight: 600; color: var(--ink-2); }
.branch-facts dt .icon, .contact-list dt .icon { width: 18px; height: 18px; color: var(--brand); }
.branch-facts dd, .contact-list dd { margin: 0; font-weight: 500; }
.contact-list dd { display: grid; }
.branch-facts dd a, .contact-list dd a { color: var(--ink); }
.branch-facts small, .contact-list small { color: var(--ink-2); font-weight: 400; font-size: 0.86rem; }
.contact-list dd > a { font-size: 1.15rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.branch-note { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.75rem 1rem; border-radius: 12px; background: var(--brand-soft); font-size: 0.92rem; margin: 0; }
.branch-note .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 0.15rem; }
.branch-card .cta-row { margin-top: 1.25rem; }
.sidebar .branch-card .cta-row { flex-direction: column; }
.sidebar .branch-card .btn { width: 100%; }
.hours { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: 0.95rem; }
.hours th, .hours td { padding: 0.55rem 0.25rem; border-bottom: 1px solid var(--line); text-align: start; }
.hours th { font-weight: 500; color: var(--ink-2); }
.hours td { text-align: end; color: var(--ink-2); }
.hours tr.is-open :is(th, td) { color: var(--ink); font-weight: 600; }
.map-facade {
  position: relative; margin: 1.25rem 0; min-height: 230px; display: grid; place-items: center; gap: 0.75rem; padding: 1.5rem;
  text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); overflow: hidden;
}
.map-placeholder .icon { width: 42px; height: 42px; color: var(--brand); }
.map-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.map-note { width: 100%; margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--ink-2); }
.map-facade.is-loaded { padding: 0; min-height: 0; display: block; }
.map-facade iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s ease; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; font-weight: 600; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 22px; height: 22px; color: var(--brand); transition: rotate 0.25s ease; }
.faq-item[open] summary .icon { rotate: 180deg; }
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-answer { padding: 0 1.25rem 1.15rem; color: var(--ink-2); }
.faq-answer p { margin: 0; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-group + .faq-group { margin-top: 2.75rem; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ---------- Page head, breadcrumbs, prose, sidebar ---------- */
.page-head { padding-block: 1.75rem 2.5rem; background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0.9rem 0 0.75rem; max-width: 24ch; }
.page-head-article h1 { max-width: 30ch; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.84rem; color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin-inline-end: 0.35rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.article-meta { margin: 0.25rem 0 0; font-size: 0.88rem; color: var(--ink-2); }
.trust-line { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-2); }
.trust-line p { margin: 0; line-height: 1.65; }
.trust-line a { color: var(--ink); font-weight: 600; }
.trust-line .icon { width: 17px; height: 17px; color: var(--brand); margin-inline-end: 0.25rem; vertical-align: -3px; }
.trust-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--tint-2); }
.trust-avatar img, .doctor-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 8%; display: block; }
.trust-avatar picture, .doctor-card-photo picture { display: block; width: 100%; height: 100%; }

.content-grid { display: grid; gap: 3rem; padding-block: 2.75rem 4.5rem; }
@media (min-width: 1000px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
}
@media (max-width: 999px) { .sidebar .toc { display: none; } }
.sidebar { display: grid; gap: 1.25rem; align-content: start; }
.prose { max-width: 72ch; }
.prose > :first-child, .prose-section:first-child h2 { margin-top: 0; }
.prose h2 { margin: 2.75rem 0 0.9rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose :is(ul, ol) { padding-inline-start: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-block: 0.35rem; }
.prose li::marker { color: var(--brand); }
.prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose-section { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.toc { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc-title { margin: 0 0 0.5rem; font-weight: 700; font-size: 0.95rem; }
.toc ol { margin: 0; padding-inline-start: 1.15rem; font-size: 0.88rem; }
.toc li { margin: 0.3rem 0; }
.toc li::marker { color: var(--ink-2); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--brand); }
.toc a.is-active { font-weight: 600; }
.side-book { display: grid; gap: 0.65rem; padding: 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.side-book-title { margin: 0 0 0.2rem; font-weight: 700; font-size: 1.1rem; }
.side-book-meta { display: flex; gap: 0.5rem; margin: 0; font-size: 0.88rem; color: var(--ink-2); }
.side-book-meta .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 0.2rem; }
.takeaways { margin: 0 0 2.25rem; padding: 1.35rem 1.6rem; border-radius: var(--radius-lg); background: var(--brand-soft); }
.takeaways h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.takeaways ul { margin: 0; }
.doctor-card { display: flex; gap: 1.25rem; align-items: center; margin-top: 3rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--tint); }
.doctor-card-photo { flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--tint-2); }
.doctor-card-name { margin: 0 0 0.25rem; font-weight: 700; font-size: 1.1rem; }
.doctor-card-title { margin: 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.55; }
.doctor-card .text-link { margin-top: 0.6rem; }
@media (max-width: 520px) { .doctor-card { flex-direction: column; align-items: flex-start; } }

/* ---------- About ---------- */
.page-head-about { padding-bottom: 3rem; }
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.35fr 0.65fr; } }
.fact-list { margin: 1.5rem 0 0; display: grid; gap: 0; }
.fact-list > div { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
.fact-list dt { color: var(--ink-2); font-size: 0.92rem; }
.fact-list dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { .fact-list > div { grid-template-columns: 1fr; gap: 0.1rem; } }
.social-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-list a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 500;
}
.social-list a:hover { border-color: var(--brand); color: var(--brand); }
.social-list .icon { width: 20px; height: 20px; }

/* ---------- Article cards ---------- */
.article-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.article-card {
  position: relative; display: flex; flex-direction: column; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color 0.2s ease, box-shadow 0.25s ease, translate 0.25s ease;
}
.article-card:hover { border-color: var(--brand); box-shadow: var(--shadow-1); translate: 0 -2px; }
.article-card:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.article-card a.stretched:focus-visible { outline: none; }
.article-card :is(h2, h3) { font-size: 1.15rem; margin: 0.5rem 0; line-height: 1.35; }
.article-card p { color: var(--ink-2); font-size: 0.94rem; line-height: 1.6; }
.article-card .article-meta { margin: 0; font-size: 0.82rem; }
.article-card .svc-more { margin-top: auto; }

/* ---------- Booking ---------- */
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.way { padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.way-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.way-icon .icon { width: 26px; height: 26px; }
.way-icon-wa { background: color-mix(in srgb, var(--wa) 14%, transparent); color: var(--wa); }
.way h2 { font-size: 1.2rem; margin: 1rem 0 0.35rem; }
.way p { color: var(--ink-2); margin: 0 0 0.9rem; font-size: 0.95rem; }
a.way-value { display: inline-block; font-size: 1.45rem; font-weight: 700; color: var(--brand); text-decoration: none; }
a.way-value:hover { text-decoration: underline; text-underline-offset: 5px; }
.way-sub { font-size: 0.85rem !important; margin: 0.15rem 0 0 !important; }
.form-card { padding: clamp(1.35rem, 3vw, 2.2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.form-card > h2 { margin-top: 0; }
.form-card > p { color: var(--ink-2); }
.booking-form { margin-top: 1.25rem; position: relative; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field :is(input, select, textarea) {
  width: 100%; min-height: 52px; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.field [aria-invalid='true'] { border-color: var(--heart); }
.field input[dir='ltr'] { text-align: start; }
[dir='rtl'] .field input[dir='ltr'] { text-align: right; }
.field-hint { margin: 0; font-size: 0.82rem; color: var(--ink-2); line-height: 1.5; }
.field-error { margin: 0; font-size: 0.86rem; color: var(--heart); font-weight: 600; }
.field-error:empty { display: none; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1rem 0 0; font-size: 0.84rem; color: var(--ink-2); line-height: 1.55; }
.form-consent .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 0.15rem; }
.form-status { margin: 0.75rem 0 0; font-weight: 600; color: var(--brand); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--heart); }
.booking-form button[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: var(--on-brand); padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band-inner { display: grid; gap: 1.75rem; }
@media (min-width: 960px) { .cta-band-inner { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; } }
.cta-band h2 { color: inherit; margin: 0 0 0.5rem; }
.cta-band p { margin: 0; max-width: 60ch; opacity: 0.92; }
.cta-band-meta { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.9rem !important; font-weight: 500; }
.cta-band-meta .icon { width: 19px; height: 19px; margin-top: 0.2rem; }
.cta-band .cta-row { margin-top: 0; }
.cta-band .btn-primary { background: var(--on-brand); color: var(--brand); }
.cta-band .btn-primary:hover { background: var(--paper); color: var(--brand-hover); }
.cta-band .btn-ghost { background: transparent; color: var(--on-brand); border-color: currentColor; }
.cta-band .btn-ghost:hover { color: var(--on-brand); border-color: var(--on-brand); }
.cta-band :focus-visible { outline-color: var(--on-brand); }

/* ---------- 404 ---------- */
.link-pills { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.link-pills a { display: inline-block; padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #c9dcda; padding-top: 3.75rem; font-size: 0.94rem; }
.site-footer a { color: #e3efee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: #8fe0de; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 0.9fr 1.1fr 1.3fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin: 0 0 1rem; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.brand-footer { margin-bottom: 1rem; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #a9c4c1; display: block; }
.footer-about p { max-width: 42ch; }
.footer-follow { margin: 1.25rem 0 0.6rem; color: #fff; font-weight: 600; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); }
.social a:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.social .icon { width: 20px; height: 20px; }
.footer-branch p, .footer-wa { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0 0 0.5rem; }
.footer-branch .icon, .footer-wa .icon { width: 18px; height: 18px; color: #7fd0cf; margin-top: 0.25rem; }
.footer-branch-name { font-weight: 600; color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap;
  gap: 0.75rem 2rem; justify-content: space-between; align-items: center; font-size: 0.87rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.credit a { color: #fff; font-weight: 600; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  padding: 0.55rem 0.6rem calc(0.55rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(16, 36, 43, 0.08);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 50px; border-radius: 14px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none; color: var(--ink); background: var(--tint);
}
.mobile-bar .icon { width: 20px; height: 20px; }
.mobile-bar .mb-wa { background: var(--wa); color: var(--on-wa); }
.mobile-bar .mb-book { background: var(--brand); color: var(--on-brand); }
@media (max-width: 759px) { body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); } }
@media (min-width: 760px) { .mobile-bar { display: none; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .split .prose.reveal { translate: calc(var(--dir) * -22px) 0; }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Page transitions (cross-document view transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; translate: none; }
  .js .incision-figure .cut-small { stroke-dashoffset: 0; }
  .js .incision-figure .stitch { opacity: 1; }
  .btn:hover, .svc-item:hover, .article-card:hover { translate: none; }
  @view-transition { navigation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-bar, .site-footer, .cta-band, .sidebar, .map-facade, .booking-form { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .js .reveal { opacity: 1; translate: none; }
}
