/* ==========================================================================
   Clinic site styles. Tokens first (shared with the future page builder),
   then base, components, sections. Logical properties for RTL.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --bg: #FAFAF7; --bg-alt: #F0F5F5; --surface: #fff;
  --ink: #2C3E50; --ink-2: #4A5A68; --ink-3: #5B6B7A; --line: #E8ECEA;
  --teal: #38A3A5; --teal-2: #2C7A7B; --teal-soft: #BCD8D8; --teal-tint: rgba(56, 163, 165, .10);
  --peach: #F4A896; --peach-ink: #6A3024; --ok: #7FB685; --err: #C0392B;
  --navy: #2C3E50; --navy-2: #26374A; --navy-3: #33465C; --navy-ink: #C8D3DC; --navy-ink-2: #8FA0B0;
  --r: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 4px 16px rgba(44, 62, 80, .05); --sh-2: 0 12px 28px rgba(44, 62, 80, .09); --sh-3: 0 20px 50px rgba(44, 62, 80, .12);
  --font: 'IRANYekanX', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --fs-h1: clamp(28px, 4vw, 44px); --fs-h2: clamp(24px, 3vw, 32px); --fs-h3: 18px;
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 80px;
  --container: 1200px; --container-narrow: 1000px; --container-text: 800px;
  --header-h: 72px;
}

/* ---- Fonts (IRANYekanX variable, self-hosted) ------------------------- */
@font-face { font-family: 'IRANYekanX'; font-style: normal; font-weight: 100 1000; font-display: swap; src: url('../fonts/IRANYekanXVF.woff2') format('woff2'); }

/* ---- Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section { scroll-margin-top: var(--header-h); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--bg); }
h1, h2, h3 { line-height: 1.5; margin: 0; font-weight: 800; overflow-wrap: anywhere; }
h1 { font-size: var(--fs-h1); } h2 { font-size: var(--fs-h2); } h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal-2); text-decoration: none; transition: color .2s; }
a:hover { color: #23605F; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.ic { flex-shrink: 0; vertical-align: middle; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--teal-2); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 8px; color: #fff; }
[hidden] { display: none !important; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
.container--narrow { max-width: var(--container-narrow); }
.container--text { max-width: var(--container-text); }
.section { padding-block: var(--sp-6); }
.section--tight { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section__h { text-align: center; margin-bottom: var(--sp-1); }
.section__lead { text-align: center; color: var(--ink-3); max-width: 640px; margin: 0 auto var(--sp-4); }
.section__h--start, .section__lead--start { text-align: start; margin-inline: 0; }
.section__row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-2); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.section__row .section__lead { margin-bottom: 0; }

/* ---- Reveal ------------------------------------------------------------ */

/* ---- Components -------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--r); font-weight: 700; font-size: 15px; border: 2px solid transparent; transition: background .2s, color .2s, box-shadow .2s, transform .2s; white-space: nowrap; min-height: 48px; }
.btn--primary { background: var(--teal-2); color: #fff; box-shadow: 0 6px 20px rgba(44, 122, 123, .28); }
.btn--primary:hover { background: #23605F; color: #fff; }
.btn--outline { border-color: var(--teal-2); color: var(--teal-2); background: transparent; }
.btn--outline:hover { background: var(--bg-alt); color: var(--teal-2); }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 48px; padding: 0; border-radius: 50%; }
.btn--icon.btn--outline { background: var(--surface); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; line-height: 1.6; }
.badge--peach { background: var(--peach); color: var(--peach-ink); }
.badge--soft { background: var(--bg-alt); color: var(--teal-2); }

.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; font-size: 14.5px; }
.link-muted { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; color: var(--ink-3); }
.link-muted:hover { color: var(--teal-2); }

/* Video (poster + click-to-load) */
.video { position: relative; margin: 0; width: 100%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); background: var(--bg-alt); }
.video__poster, .video__el { width: 100%; height: 100%; object-fit: cover; }
.video__ph { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 18px; text-align: center; color: var(--ink-3); font-size: 13px; background: linear-gradient(135deg, var(--bg-alt), #DCE9E9 60%, #D2E4E4); }
.video__ph span { max-width: 26ch; background: rgba(250, 250, 247, .7); padding: 4px 12px; border-radius: var(--r-pill); }
.video__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(250, 250, 247, .92); color: var(--teal); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(44, 62, 80, .25); transition: transform .2s, background .2s; }
.video__play .ic { margin-left: 4px; }
.video__play:hover { background: #fff; transform: scale(1.06); }
.video__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 10px 16px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(44, 62, 80, .8)); text-align: center; }

/* ---- Top bar + header -------------------------------------------------- */
.topbar { background: var(--navy); color: #fff; font-size: 14px; padding: 6px 24px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; align-items: center; }
.topbar a { color: var(--bg-alt); display: inline-flex; align-items: center; gap: 5px; }
.topbar a:hover { color: var(--peach); }
.topbar__phone { font-weight: 700; }
.topbar__links { display: flex; gap: 14px; }

.hdr { position: sticky; top: 0; z-index: 50; min-height: var(--header-h); background: rgba(250, 250, 247, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 40px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-2); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.brand__text { font-weight: 800; font-size: 16px; line-height: 1.35; display: flex; flex-direction: column; }
.brand__text small { font-weight: 500; font-size: 13px; color: var(--ink-3); }
.brand--light { color: #fff; margin-bottom: 14px; }
.brand__logo { display: block; max-width: min(260px, 55vw); object-fit: contain; }
/* Logo placement (Settings > لوگو و سربرگ): start is the default row; end swaps sides; center puts the logo between the menu and the buttons. */
@media (min-width: 1081px) {
  .hdr--logo-end .brand { order: 3; }
  .hdr--logo-end .hdr__actions { order: 1; }
  .hdr--logo-center { display: grid; grid-template-columns: 1fr auto 1fr; }
  .hdr--logo-center .brand { grid-column: 2; grid-row: 1; }
  .hdr--logo-center .nav { grid-column: 1; grid-row: 1; justify-self: start; min-width: 0; flex-wrap: wrap; }
  .hdr--logo-center .hdr__actions { grid-column: 3; grid-row: 1; justify-self: end; }
}

.nav { display: flex; gap: 6px; align-items: center; }
.nav__item, .nav__item > a { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.nav > a, .nav__item > a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 10px; }
.nav > a:hover, .nav__item > a:hover { color: var(--teal-2); background: var(--bg-alt); }
.nav .is-active { color: var(--teal-2); font-weight: 700; box-shadow: inset 0 -2px 0 var(--teal-2); border-radius: 10px 10px 0 0; }
.sub a.is-active { background: var(--bg-alt); color: var(--teal-2); font-weight: 700; box-shadow: none; }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; inset-inline-start: 0; display: none; flex-direction: column; gap: 2px; min-width: 210px; padding: 10px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-2); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }
.sub a { padding: 8px 14px; border-radius: 10px; color: var(--ink); font-size: 14px; }
.sub a:hover { background: var(--bg-alt); color: var(--teal-2); }
.hdr__actions { display: flex; align-items: center; gap: 10px; }
.hamb { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); place-items: center; }

/* Drawer (mobile) */
.drawer { position: fixed; inset: 0 auto 0 0; inset-inline-start: 0; inset-inline-end: auto; margin: 0; width: min(300px, 85vw); height: 100dvh; max-height: none; max-width: none; border: 0; padding: 20px; background: var(--bg); box-shadow: var(--sh-3); overflow-y: auto; display: none; flex-direction: column; gap: 4px; }
.drawer[open] { display: flex; }
.drawer::backdrop { background: rgba(44, 62, 80, .4); }
body:has(.drawer[open]) { overflow: hidden; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.drawer__close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; }
.drawer__link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 12px; color: var(--ink); font-weight: 700; }
.drawer__link.is-active { background: var(--bg-alt); color: var(--teal-2); box-shadow: inset -3px 0 0 var(--teal-2); }
.drawer__phone { margin-top: 10px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 16px; color: var(--teal-2); }
.drawer__link--sub { padding: 6px 28px; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.drawer__link:hover { background: var(--bg-alt); color: var(--teal-2); }
.drawer__cta { margin-top: 14px; }

.mob-cta { display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 45; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 250, 247, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.mob-cta .btn--icon { width: 52px; height: 52px; border-radius: var(--r); flex-shrink: 0; }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__blob--a { top: -80px; inset-inline-end: -60px; width: 340px; height: 340px; background: radial-gradient(circle, var(--teal-tint), transparent 70%); }
.hero__blob--b { bottom: -100px; inset-inline-start: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(244, 168, 150, .12), transparent 70%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-block: 72px 56px; }
.hero h1 { margin: 14px 0 8px; }
.hero h1 .accent { color: var(--teal-2); }
.hero__wave { margin-bottom: 14px; }
.hero__sub { font-size: 17px; color: var(--ink-2); max-width: 520px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 28px; font-size: 13.5px; color: var(--ink-3); }
.hero__trust li + li::before { content: '·'; margin-inline-end: 22px; color: var(--teal-soft); }
.hero__media .video { aspect-ratio: 4 / 3; }
.hero__doc { position: relative; margin: 0; max-width: 440px; justify-self: center; }
.hero__doc-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.hero__doc-cap { position: absolute; inset-inline: 16px; bottom: 16px; display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--r); background: rgba(250, 250, 247, .94); backdrop-filter: blur(6px); box-shadow: var(--sh-1); font-size: 14px; color: var(--ink-2); }
.hero__doc-cap strong { font-size: 16px; color: var(--ink); }

/* ---- Trust bar --------------------------------------------------------- */
.trust { background: var(--bg-alt); padding: 28px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1100px; }
.trust__grid li { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14.5px; font-weight: 700; }
.trust__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--surface); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(44, 62, 80, .06); }

/* ---- Services ---------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { position: relative; overflow: hidden; padding: 30px 26px; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; gap: 10px; }
.svc::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 90px; height: 90px; border-end-end-radius: 100%; background: linear-gradient(215deg, rgba(56, 163, 165, .08), transparent 65%); pointer-events: none; }
.svc:hover { box-shadow: var(--sh-2); }
.svc__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--bg-alt); color: var(--teal); display: grid; place-items: center; transition: transform .3s; }
.svc__title a { color: var(--ink); }
.svc__title a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.svc__title a:hover { color: #23605F; }
.svc p { font-size: 14px; color: var(--ink-3); flex: 1; }
.svc__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.svc__foot .badge { font-size: 13px; padding: 3px 10px; }

/* ---- How it works ------------------------------------------------------ */
.how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { display: flex; flex-direction: column; }
.steps__item { display: flex; gap: 18px; position: relative; padding-bottom: 26px; }
.steps__item:not(:last-child)::before { content: ''; position: absolute; top: 44px; bottom: 0; inset-inline-start: 19px; width: 2px; background: var(--teal-soft); }
.steps__n { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-2); color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.steps__title { margin-top: 6px; font-size: 17px; }
.steps__item p { font-size: 14px; color: var(--ink-3); }

/* ---- Doctor ------------------------------------------------------------ */
.doc { border-radius: var(--r-lg); padding: 48px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 44px; align-items: center; box-shadow: 0 8px 30px rgba(44, 62, 80, .06); }
.doc__photo { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: 20px; justify-self: center; }
.doc__body { min-width: 0; }
.doc__body h2 { font-size: 28px; margin-bottom: 12px; }
.doc__bio { font-size: 15.5px; color: var(--ink-2); margin-bottom: 20px; }
.doc__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.doc__links { display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: center; }
.doc-list { display: grid; gap: 24px; }

/* ---- Testimonials ------------------------------------------------------ */
.tm__nav { display: flex; gap: 10px; }
.tm__track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; scrollbar-width: thin; scrollbar-color: var(--teal-soft) transparent; }
.tm__card { flex: 0 0 300px; scroll-snap-align: start; }
.tm__card .video { box-shadow: var(--sh-1); border-radius: var(--r); }
.tm__card .video__play { width: 52px; height: 52px; }
.tm__quote { margin: 12px 0 4px; font-size: 14px; color: var(--ink-2); }
.tm__name { font-size: 13px; font-weight: 700; color: var(--teal-2); }
.tm__empty { display: flex; align-items: center; gap: 16px; padding: 28px 32px; border-radius: var(--r); background: var(--bg-alt); color: var(--ink-2); }
.tm__empty .ic { color: var(--teal); }

/* ---- Cost -------------------------------------------------------------- */
.cost { position: relative; overflow: hidden; background: var(--bg-alt); border-radius: var(--r-lg); padding: 44px 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cost__deco { position: absolute; inset-inline-end: -40px; bottom: -40px; opacity: .6; pointer-events: none; }
.cost h2 { font-size: 26px; margin-bottom: 10px; }
.cost__price { font-size: 16px; margin-bottom: 6px; }
.cost__note { font-size: 14px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.cost__note .ic { color: var(--ok); }
.cost__valid { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }

/* ---- Articles ---------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; transition: transform .25s, box-shadow .25s; }
.post:hover { box-shadow: var(--sh-2); }
.post__title { font-size: 16px; line-height: 1.7; }
.post__title a { color: var(--ink); }
.post__title a:hover { color: #23605F; }

/* ---- FAQ (native details) ---------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-1); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; font-weight: 700; font-size: 16px; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ic { color: var(--teal); transition: transform .25s; }
.faq__item[open] summary .ic { transform: rotate(45deg); }
.faq__a { padding: 0 24px 20px; font-size: 14.5px; color: var(--ink-2); }
.faq__a p, .faq__a ul, .faq__a ol { margin: 0 0 .6em; }
.faq__a ul, .faq__a ol { padding-inline-start: 1.3em; }
.faq__a > :last-child { margin-bottom: 0; }
.faq__a strong { color: var(--ink); }
.faq__a a { text-decoration: underline; text-underline-offset: 3px; }
.faq__a .faq__more { font-weight: 700; font-size: 13.5px; text-decoration: none; }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 72px 0; text-align: center; }
.cta-band__wave { position: absolute; bottom: 0; inset-inline-start: 0; width: 200%; height: 120px; opacity: .08; pointer-events: none; background-image: radial-gradient(circle at 50% 0, transparent 38px, var(--teal) 40px, transparent 42px); background-size: 120px 120px; background-repeat: repeat-x; }
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.cta-band p { color: var(--navy-ink); margin-bottom: 30px; }
.cta-band__actions { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-band__phone { color: #fff; font-size: 24px; font-weight: 800; }
.cta-band__phone:hover { color: var(--peach); }

/* ---- Footer ------------------------------------------------------------ */
.footer { background: var(--navy-2); color: var(--navy-ink); padding: 56px 0 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr 1fr; gap: 40px; }
.footer a { color: var(--navy-ink); }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__h { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer nav { display: flex; flex-direction: column; gap: 2px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 36px; }
.footer__social { display: flex; gap: 14px; margin-top: 16px; }
.footer__social a { display: inline-flex; align-items: center; gap: 6px; }
.footer__contact p { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.footer__contact .ic { margin-top: 5px; color: var(--teal); }
.footer__map { width: 100%; height: 150px; border: 0; border-radius: var(--r); }
.footer__map--ph { background: var(--navy-3); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--navy-ink); }
.footer__bar { border-top: 1px solid var(--navy-3); margin-top: 44px; padding: 18px 20px; text-align: center; font-size: 13.5px; line-height: 1.9; color: var(--navy-ink); }

/* ---- Stub page --------------------------------------------------------- */
.stub { min-height: 50vh; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.stub code { background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hamb { display: grid; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; padding-block: 48px 40px; }
  .trust__grid, .svc-grid, .posts { grid-template-columns: repeat(2, 1fr); }
  .how__grid { grid-template-columns: 1fr; gap: 36px; }
  .doc { grid-template-columns: 1fr; padding: 28px 24px; }
  .doc__photo { max-width: 260px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --sp-4: 20px; --sp-6: 56px; }
  .topbar { font-size: 13px; gap: 12px; padding: 6px 12px; }
  .hdr { padding: 8px 16px; }
  .hdr__cta { display: none; }
  .hero__grid { padding-block: 36px 32px; }
  .hero__actions .btn { flex: 1; }
  .trust__grid, .svc-grid, .posts, .footer__grid { grid-template-columns: 1fr; }
  .trust__grid li { justify-content: flex-start; }
  .cost { padding: 28px 24px; }
  .cost .btn { width: 100%; }
  .tm__card { flex-basis: 82vw; }
  .mob-cta { display: flex; }
  body:has(.mob-cta) { padding-bottom: 76px; }
  .cta-band { padding: 56px 0; }
}

/* ---- Inner pages, forms, prose (Phase 2) ------------------------------- */
.phead { background: var(--bg-alt); padding-block: 32px 40px; border-bottom: 1px solid var(--line); }
.phead__h { font-size: var(--fs-h1); line-height: 1.45; margin: 10px 0 14px; }
.phead__lead { font-size: 18px; color: var(--ink-2); margin: 0; }
.phead__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.phead__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.phead__meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.phead__meta .ic { color: var(--teal-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0 0 10px; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-inline: 8px; color: var(--teal-soft); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--teal-2); }
.crumbs [aria-current] { color: var(--ink-2); }

.prose { font-size: 17px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--fs-h2); line-height: 1.5; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.5em 0 .5em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose figure { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: persian; }
:is(:lang(en), :lang(ar)) .prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r); height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 700; }
.prose blockquote { border-inline-start: 4px solid var(--teal-soft); padding: 10px 18px; color: var(--ink-2); background: var(--surface); border-radius: 8px; }

.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.lead__intro h2 { font-size: var(--fs-h2); margin: 0 0 12px; }
.lead__next { padding-inline-start: 1.2em; color: var(--ink-2); }
.lead__next li { margin-bottom: 8px; }
.lead__alt { color: var(--ink-2); }
.form { display: grid; gap: 18px; padding: 28px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { font: inherit; width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #C5D0CE; border-radius: 12px; background: var(--surface); color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal-soft); outline-offset: 0; border-color: var(--teal-2); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__err { color: var(--err); font-size: 14px; margin: 0; }
.form__privacy { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin: 0; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.comments h2 small { font-size: .7em; color: var(--ink-3); font-weight: 500; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-block: 12px; }
.comment--reply { margin: 12px 0 0; margin-inline-start: 18px; background: var(--bg-alt); border-inline-start: 3px solid var(--teal-2); }
.comment__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.comment__head time { color: var(--ink-3); font-size: 14px; }
.comment__badge { font-size: 13px; color: var(--teal-2); font-weight: 600; }
.comment__body { margin: 8px 0 0; white-space: normal; overflow-wrap: anywhere; }
.comments__empty { color: var(--ink-3); }
.comments__form { margin-top: 24px; display: grid; gap: 16px; }
.comments__form h3 { margin: 0; }
.comments__note { margin: 0; color: var(--ink-3); font-size: 14px; }
.comments__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .comments__row { grid-template-columns: 1fr 1fr; } }
.comments__form .btn { justify-self: start; }
.captcha__row { display: flex; align-items: center; gap: 8px; }
.captcha__row input { flex: 1 1 90px; min-width: 0; letter-spacing: .2em; text-align: center; }
.captcha__img { flex: none; width: 160px; height: 44px; border-radius: 8px; border: 1px solid #C5D0CE; background: #fafafa; }
.captcha__refresh { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid #C5D0CE; border-radius: 10px; background: var(--surface); color: var(--teal-2); cursor: pointer; }
.captcha__refresh:hover { border-color: var(--teal-2); }
.captcha__refresh:focus-visible { outline: 3px solid var(--teal-soft); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.alert p { margin: 4px 0 0; }
.alert > .ic { flex-shrink: 0; margin-top: 3px; }
.alert--ok { border-color: var(--ok); }
.alert--ok > .ic { color: #3E7D46; }
.alert--warn { border-color: var(--peach); background: #FFF7F4; }
.alert--warn > .ic { color: var(--peach-ink); }

.doc__title { color: var(--teal-2); font-weight: 600; margin: -4px 0 8px; }
.post__ex { color: var(--ink-3); font-size: 14px; margin: 8px 0 0; }
.preview-bar { position: sticky; top: 0; z-index: 200; background: var(--peach); color: var(--peach-ink); text-align: center; font-size: 13px; padding: 4px; font-weight: 700; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0; }
.notfound__links a { display: inline-block; padding: 8px 16px; border-radius: var(--r-pill); background: var(--bg-alt); }

@media (max-width: 1080px) { .lead { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) { .form { padding: 20px; } .phead { padding-block: 22px 28px; } }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.contact__info { padding: 28px; }
.contact__info h2 { font-size: 24px; margin: 0 0 18px; }
.contact__list { display: grid; gap: 14px; margin: 0; }
.contact__list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.contact__list dt { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.contact__list dt .ic { color: var(--teal-2); }
.contact__list dd { margin: 0; }
.contact__list dd a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.contact__h3 { font-size: 18px; margin: 24px 0 8px; }
.contact__dir { color: var(--ink-2); margin: 0; }
.contact__map { min-height: 320px; border-radius: var(--r); overflow: hidden; background: var(--bg-alt); }
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.contact__map-ph { height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-2); text-align: center; padding: 24px; }
.contact__map-ph .ic { color: var(--teal-2); }
@media (max-width: 1080px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .contact__list div { grid-template-columns: 1fr; gap: 2px; } }

/* ---- Content components (Phase 3) ------------------------------------- */
.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; }
.block__h { font-size: var(--fs-h2); line-height: 1.5; margin: 0 0 10px; }
.block__lead { color: var(--ink-2); margin: 0 0 18px; }
.block__note { color: var(--ink-3); font-size: 14px; margin: 12px 0 0; }
.tldr { background: var(--surface); border: 1px solid var(--teal-soft); border-inline-start: 5px solid var(--teal-2); border-radius: var(--r); padding: 20px 24px; }
.tldr__h { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0 0 10px; color: var(--teal-2); }
.tldr ul { margin: 0; padding-inline-start: 1.2em; }
.tldr li { margin-bottom: 6px; }
.toc { background: var(--bg-alt); border-radius: var(--r); padding: 14px 22px; }
.toc summary { display: flex; justify-content: space-between; align-items: center; min-height: 40px; font-weight: 700; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .ic { transition: transform .2s; }
.toc[open] summary .ic { transform: rotate(180deg); }
.toc ol { margin: 8px 0 4px; padding-inline-start: 1.3em; columns: 2; column-gap: 36px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.alert--info { border-color: var(--teal-soft); background: #F4FAFA; }
.alert--info > .ic { color: var(--teal-2); }
.alert__h { font-size: 18px; margin: 0 0 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.table-wrap:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.dtable { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.dtable th, .dtable td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.dtable thead th { background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
.dtable tbody tr:last-child > * { border-bottom: 0; }
.dtable tbody th { font-weight: 600; }
.dtable--compare tbody th { background: #FBFCFC; width: 22%; }
.dtable__num { white-space: nowrap; font-weight: 700; color: var(--teal-2); }
.post__meta { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--ink-2); }
.figure { margin-block: 0; }
.figure__img { width: 100%; height: auto; border-radius: var(--r); }
.figure figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); text-align: center; }
.search-form { display: flex; gap: 10px; margin: 20px 0; }
.search-form input { flex: 1; min-height: 50px; padding: 10px 14px; font: inherit; border: 1.5px solid #C5D0CE; border-radius: 12px; background: var(--surface); color: var(--ink); }
.search__count { color: var(--ink-2); }
.search__list { padding-inline-start: 1.2em; }
.search__list li { margin-bottom: 18px; }
.search__title { font-size: 18px; font-weight: 700; }
.search__list p { margin: 4px 0 0; font-size: 15px; color: var(--ink-3); }
.how__grid--single { grid-template-columns: 1fr; max-width: var(--container-text); margin-inline: auto; }
@media (max-width: 640px) { .toc ol { columns: 1; } .search-form { flex-direction: column; } }

/* ---- Visual builder layout helpers (Phase 5) --------------------------- */
.bld-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-block: var(--sp-3); }
.bld-card { padding: 24px; }
@media (max-width: 640px) { .bld-cols { grid-template-columns: 1fr; } }

/* Online reservation (sections/booking) */
.bk { display: grid; gap: 24px; padding: 28px; }
.bk__step { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bk__step legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0; font-size: 17px; font-weight: 700; }
.bk__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-2); color: #fff; font-size: 15px; }
.bk__services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.bk__service, .bk__chip { position: relative; display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid #C5D0CE; border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.bk__service input, .bk__chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.bk__service:has(input:checked), .bk__chip:has(input:checked) { border-color: var(--teal-2); background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--teal-2); }
.bk__service:has(input:focus-visible), .bk__chip:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.bk__service-name { font-weight: 700; }
.bk__service-meta, .bk__chip small { font-size: 13px; color: var(--ink-3); }
.bk__days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.bk__days .bk__chip { flex: 0 0 auto; min-width: 108px; text-align: center; scroll-snap-align: start; }
.bk__chip.is-full { opacity: .45; cursor: not-allowed; }
.bk__chip.is-full input { cursor: not-allowed; }
.bk__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk__times .bk__chip { padding: 10px 8px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bk__summary { margin: 0; font-weight: 700; color: var(--teal-2); }
.bk__summary:empty { display: none; }
.bk__empty { margin: 0; color: var(--ink-3); }
.receipt__h { margin: 0; font-size: 22px; }
.receipt__list { display: grid; margin: 24px 0; padding: 8px 24px; }
.receipt__list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.receipt__list div:last-child { border-bottom: 0; }
.receipt__list dt { color: var(--ink-3); }
.receipt__list dd { margin: 0; font-weight: 600; text-align: end; }
@media (max-width: 640px) { .bk { padding: 20px; } .bk__fields { grid-template-columns: 1fr; } }

/* ---- UX pass: hero photo on small screens, visit strip ------------------ */
@media (max-width: 1080px) { .hero__doc { max-width: 360px; } }
@media (max-width: 640px) { .hero__doc-img { aspect-ratio: 1; } .nav .is-active { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }.contact--solo { grid-template-columns: 1fr; max-width: var(--container-narrow); margin-inline: auto; }
@media (min-width: 1081px) { .contact--solo .contact__list { grid-template-columns: 1fr 1fr; column-gap: 32px; } .contact--solo .contact__list div { grid-template-columns: 120px 1fr; } }
/* Booking: show the whole path up front, then reveal each step (progressive disclosure) */
.bk__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: bk; }
.bk__steps li { counter-increment: bk; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 40px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.bk__steps li::before { content: counter(bk, persian); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-2); color: #fff; font-size: 13px; }
@media (max-width: 640px) { .bk__steps { grid-template-columns: repeat(2, 1fr); } }
/* Two tinted sections in a row read as one block: no double gap */
.section--alt + .section--alt { padding-top: 0; }
.lead__next { list-style: persian; }
.footer__map--ph { height: auto; min-height: 48px; justify-content: flex-start; padding-inline: 16px; }

/* Physicians list (sections/physicians) */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 280px)); justify-content: center; gap: 24px; }
.docs__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 20px 12px; text-align: center; transition: transform .25s, box-shadow .25s; }
.docs__item:has(a):hover { box-shadow: var(--sh-2); }
.docs__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.docs__photo--ph { display: grid; place-items: center; background: var(--bg-alt); color: var(--teal-2); }
.docs__name { font-size: 18px; }
.docs__name a { color: var(--ink); }
.docs__name a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.docs__title { color: var(--teal-2); font-weight: 600; }
.docs__council { font-size: 14px; color: var(--ink-3); }

/* ---- Booking UI: next-slot card, booking card, decision bar, CTA nudge ---- */
.btn--peach { background: var(--peach); color: #1F3347; box-shadow: 0 6px 20px rgba(244, 168, 150, .35); }
.btn--peach:hover { background: #F29680; color: #1F3347; }
.btn .ic { flex-shrink: 0; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3E7D46; }

/* Hero: the slot card overlaps the photo's inner edge on desktop, sits under the buttons on phones */
.hero__copy { grid-column: 1; grid-row: 1; }
.hero__media { grid-column: 2; grid-row: 1; }
.hero__slot { grid-column: 2; grid-row: 1; align-self: end; justify-self: start; z-index: 2; margin-block: 0 48px; margin-inline: -40px 0; width: 300px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: 0 20px 50px rgba(44, 62, 80, .16); transition: transform .2s, box-shadow .2s; }
.hero__slot:hover { color: var(--ink); box-shadow: 0 24px 56px rgba(44, 62, 80, .2); }
.hero__slot > .ic { color: var(--teal-2); margin-inline-start: auto; }
.hero__slot-ic, .hero__doc-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-alt); color: var(--teal-2); display: grid; place-items: center; flex-shrink: 0; }
.hero__slot-text { display: grid; line-height: 1.45; }
.hero__slot-text small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.hero__slot-text strong { font-size: 15.5px; font-weight: 800; }
.hero__slot-svc { font-size: 13px; color: var(--ink-3); }
.hero__doc-cap { inset-inline: auto 16px; bottom: auto; top: 16px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .96); }
.hero__doc-ic { width: 34px; height: 34px; border-radius: 50%; }
.hero__doc-cap > span:last-child { display: grid; line-height: 1.4; }
.hero__doc-cap strong { font-size: 14px; }
.hero__doc-cap small { font-size: 13px; color: var(--ink-3); }
@media (max-width: 1080px) {
  .hero__copy, .hero__media, .hero__slot { grid-column: 1; grid-row: auto; }
  .hero__slot { order: 1; width: auto; margin: -12px 0 0; justify-self: stretch; }
  .hero__media { order: 2; }
}

/* Trust bar: icon + label + one-line explanation */
.trust__icon { color: var(--teal-2); }
.trust__text { display: grid; line-height: 1.5; }
.trust__text small { font-size: 13px; font-weight: 400; color: var(--ink-3); }

/* Per-condition tints (icon chips only) */
.tint--amber { --tint-bg: #FFF4E0; --tint-fg: #B7791F; --tint-ink: #8A5A12; }
.tint--lavender { --tint-bg: #F1EDFB; --tint-fg: #6B5CA5; --tint-ink: #574A8C; }
.tint--sky { --tint-bg: #EAF4FB; --tint-fg: #2B6CB0; --tint-ink: #245A93; }
.tint--sand { --tint-bg: #FBEFEA; --tint-fg: #B4533A; --tint-ink: #8F4230; }
.tint--indigo { --tint-bg: #EEF0FA; --tint-fg: #4C51BF; --tint-ink: #3F43A0; }
.tint--sage { --tint-bg: #EDF5EE; --tint-fg: #3F7D4F; --tint-ink: #346842; }
.svc__icon[class*="tint--"] { background: var(--tint-bg); color: var(--tint-fg); }
.tint-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 14px; font-weight: 700; color: var(--tint-ink); }
.tint-chip__ic { width: 44px; height: 44px; border-radius: 14px; background: var(--tint-bg); color: var(--tint-fg); display: grid; place-items: center; }

/* Booking card beside the opening reading run */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-top: var(--sp-4); }
.with-aside__main .container { max-width: none; margin-inline: 0; padding-inline: 0; }
.decide { position: sticky; top: calc(var(--header-h) + 24px); }
.decide__card { display: grid; gap: 18px; padding: 28px; border-radius: var(--r-lg); background: #1F3347; color: #fff; box-shadow: 0 20px 50px rgba(31, 51, 71, .22); }
.decide__eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--peach); }
.decide__title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.5; }
.decide__rows { display: grid; gap: 14px; }
.decide__rows li { display: flex; align-items: center; gap: 12px; }
.decide__rows li > span:last-child { display: grid; line-height: 1.45; }
.decide__ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--peach); display: grid; place-items: center; flex-shrink: 0; }
.decide__k { font-size: 13px; color: #C8D3DC; }
.decide__rows strong { font-size: 15.5px; }
.decide__phone { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--r); border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 700; }
.decide__phone:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.decide__note { margin: 0; font-size: 13px; line-height: 1.7; color: #8FA0B0; }
@media (max-width: 1080px) { .with-aside { grid-template-columns: minmax(0, 1fr); gap: 0; } .decide { display: none; } }

/* Mobile bar: navy decision variant with the next free slot */
.mob-cta { flex-direction: column; gap: 8px; }
.mob-cta__row { display: flex; gap: 12px; }
.mob-cta__row .btn--block { flex: 1; }
.mob-cta--decide { background: #1F3347; border-top: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 24px rgba(31, 51, 71, .18); }
.mob-cta__slot { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #C8D3DC; }
.mob-cta__slot strong { color: #fff; }
.mob-cta__slot .ic { color: var(--peach); }
.mob-cta--decide .btn--icon.btn--outline { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
@media (max-width: 640px) { body:has(.mob-cta--decide) { padding-bottom: 112px; } }

/* CTA nudge: a short phone-ring wiggle of the calendar icon plus a soft ring, three times, then still.
   Stops on hover/focus; never runs with reduced motion. */
@media (max-width: 640px) { .hero__wave { display: none; } } /* keeps the next-slot card above the sticky bar on phones */

/* ---- Section motion (opt-in per section from the admin; html.js is set in <head>) ---- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-motion="fade"], .js [data-motion="fade-up"], .js [data-motion="slide"], .js [data-motion="zoom"] { opacity: 0; transition: opacity .6s ease-out, transform .6s ease-out; }
  .js [data-motion="fade-up"] { transform: translateY(24px); }
  .js [data-motion="slide"] { transform: translateX(32px); }
  .js [data-motion="zoom"] { transform: scale(.97); }
  .js [data-motion].is-in { opacity: 1; transform: none; }
  .js [data-motion="stagger"] :is(.svc-grid, .posts, .steps, .trust__grid, .faq, .docs, .sc__list) > *, .js [data-motion="stagger"] .seo-links li { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out; }
  .js [data-motion="stagger"].is-in :is(.svc-grid, .posts, .steps, .trust__grid, .faq, .docs, .sc__list) > *, .js [data-motion="stagger"].is-in .seo-links li { opacity: 1; transform: none; }
  [data-motion="nudge"].is-in :is(.btn--primary, .btn--peach) { animation: ctaNudge 3.2s ease-out .6s 3; }
  [data-motion="nudge"].is-in :is(.btn--primary, .btn--peach) .ic { transform-origin: 50% 20%; animation: ctaRing 3.2s ease-in-out .6s 3; }
  [data-motion="nudge"] :is(.btn--primary, .btn--peach):is(:hover, :focus-visible), [data-motion="nudge"] :is(.btn--primary, .btn--peach):is(:hover, :focus-visible) .ic { animation: none; }
  @keyframes ctaRing { 0%, 22%, 100% { transform: rotate(0); } 3% { transform: rotate(-18deg); } 7% { transform: rotate(16deg); } 11% { transform: rotate(-12deg); } 15% { transform: rotate(8deg); } 19% { transform: rotate(-4deg); } }
  @keyframes ctaNudge { 0%, 22%, 100% { transform: none; } 5% { transform: translateX(-2px) rotate(-1deg); } 10% { transform: translateX(2px) rotate(1deg); } 15% { transform: translateX(-1px); } }
}

/* ---- Rich text polish ---- */
.eyebrow { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; color: var(--peach-ink); }
.prose ul li::marker { color: var(--teal-2); }
.prose img { box-shadow: var(--sh-1); }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); text-align: center; }
.prose blockquote { background: var(--bg-alt); border-inline-start-color: var(--teal-2); border-radius: var(--r); padding: 16px 20px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose a { color: var(--teal-2); text-decoration-color: var(--teal-soft); }
.prose a:hover { text-decoration-color: var(--teal-2); }

/* Text + image */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split--image-start .split__media { order: -1; }
.split--noimg { grid-template-columns: minmax(0, 1fr); max-width: var(--container-text); }
.split__text .prose { font-size: 16.5px; }
.split__cta { margin-top: 20px; }
.split__media { margin: 0; }
.split__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.split__media figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: center; }
@media (max-width: 1080px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .split--image-start .split__media { order: 0; } }

/* SEO / internal-link text before the FAQ */
.seo-text__body { position: relative; }
.js .seo-text__body[data-collapsible]:not(.is-open) { max-height: 20em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.seo-text__more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; padding: 0 4px; border: 0; background: none; font-weight: 700; color: var(--teal-2); }
.seo-text__more[aria-expanded="true"] .ic { transform: rotate(180deg); }
.seo-links { margin-top: 28px; padding: 20px 24px; border-radius: var(--r); background: var(--bg-alt); }
.seo-links__h { margin: 0 0 12px; font-size: 16px; }
.seo-links ul { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; box-shadow: var(--sh-1); }
.seo-links a .ic { color: var(--teal-2); }
.seo-links a:hover { color: var(--teal-2); }

/* Self-check */
.sc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.sc__privacy { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--ink-3); }
.sc__privacy .ic { color: var(--teal-2); }
.sc__card { padding: 8px 24px 24px; overflow: hidden; }
.sc__progress { height: 4px; margin: 0 -24px 8px; background: var(--line); }
.sc__progress span { display: block; width: 0; height: 100%; background: var(--teal-2); transition: width .3s ease-out; }
.sc__list { counter-reset: sc; }
.sc__q { counter-increment: sc; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sc__text { font-weight: 600; }
.sc__text::before { content: counter(sc, persian) ". "; color: var(--teal-2); }
.sc__opts { display: flex; gap: 8px; flex-shrink: 0; }
.sc__opt { position: relative; display: grid; place-items: center; min-width: 64px; min-height: 44px; padding: 0 12px; border: 1.5px solid #C5D0CE; border-radius: 12px; background: var(--surface); font-weight: 600; cursor: pointer; }
.sc__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sc__opt:has(input:checked) { border-color: var(--teal-2); background: var(--bg-alt); color: var(--teal-2); box-shadow: inset 0 0 0 1px var(--teal-2); }
.sc__opt:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.sc__result { display: grid; gap: 10px; margin-top: 18px; }
.sc__result .alert .btn { margin-top: 12px; }
.sc__disclaimer { margin: 0; font-size: 13px; color: var(--ink-3); }
@media (max-width: 1080px) { .sc { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 640px) { .sc__q { flex-direction: column; align-items: stretch; } .sc__opts .sc__opt { flex: 1; } }

/* Video section (Aparat or file, click to load) */
.vsec__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.vsec--wide .vsec__grid { grid-template-columns: minmax(0, 1fr); max-width: var(--container-narrow); margin-inline: auto; }
.vsec .video { aspect-ratio: 16 / 9; }
.video__el[src*="aparat"], iframe.video__el { width: 100%; height: 100%; border: 0; }
.vsec__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; font-size: 14px; color: var(--ink-3); }
.vsec__meta span { display: inline-flex; align-items: center; gap: 6px; }
.vsec__transcript { margin-top: 16px; }
.vsec__transcript summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--teal-2); cursor: pointer; list-style: none; }
.vsec__transcript summary::-webkit-details-marker { display: none; }
.vsec__transcript .prose { font-size: 15.5px; margin-top: 8px; }
@media (max-width: 1080px) { .vsec__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Featured images: blog cards and the top of editorial pages */
.post { overflow: hidden; }
.post__media { display: grid; place-items: center; width: calc(100% + 48px); margin: -24px -24px 4px; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bg-alt); color: var(--teal-2); }
.post__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.post:hover .post__img { transform: scale(1.03); }
.phead__img { margin: 24px 0 0; }
.phead__img-el { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
@media (prefers-reduced-motion: reduce) { .post:hover .post__img { transform: none; } }

/* ---- Neuroclinic home: section foot links, info row, visit steps, contact + booking ---- */
.section__foot { margin: 28px 0 0; text-align: center; }
@media (min-width: 1081px) { .trust__grid:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); } }
.trust__text a { color: inherit; }
.how__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 32px; }
.cost__lead { margin: 0 0 10px; color: var(--ink-2); line-height: 1.9; }
.contact__book { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 28px; }
.contact__book-h { margin: 0; font-size: 22px; }
.contact__book-lead, .contact__book-note { margin: 0; color: var(--ink-2); }
.contact__book-note { font-size: 13.5px; }
.contact__slot { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--bg-alt); font-size: 14.5px; }
@media (min-width: 1081px) { .footer__grid { grid-template-columns: 1.3fr 1fr .9fr 1.2fr; } }
.footer__maplink { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }

/* ---- Scientific sources (medical pages) ---- */
.sources__box { padding: 14px 20px; border-radius: var(--r); background: var(--bg-alt); }
.sources__box summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.sources__list { margin: 12px 0 4px; padding-inline-start: 1.4em; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.sources__list a { margin-inline-start: 6px; white-space: nowrap; }

/* ---- Left-to-right pages (English) ---- */
[dir="ltr"] .ic--dir { transform: scaleX(-1); }
[dir="ltr"] .video__play .ic { margin-left: 0; margin-right: 4px; }

/* ---- Language switcher ---- */
.langs { display: inline-flex; gap: 10px; }
.langs a.is-active, .drawer__langs a.is-active { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.drawer__langs { display: flex; gap: 16px; padding: 12px 16px; border-top: 1px solid rgba(0,0,0,.06); }

/* English and Arabic pages: Western list numbers */
:is(:lang(en), :lang(ar)) .lead__next { list-style: decimal; }
:is(:lang(en), :lang(ar)) .bk__steps li::before { content: counter(bk); }
:is(:lang(en), :lang(ar)) .sc__text::before { content: counter(sc) ". "; }
.docs__links { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; }
.team-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-bottom: 24px; }
.team-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-3); }
.team-filter select { min-width: 180px; padding: 10px 12px; border: 1px solid var(--line, #d9dfe5); border-radius: var(--r); background: #fff; font: inherit; color: var(--ink); }
