/* =========================================================
   Nafis clinic landing page
   Arabic first (RTL), phone first, nothing loaded from other sites.
   The clinic's colours arrive as CSS variables from site.js.
   One idea runs through the page: the arched window of an old Levantine
   house. The doctor stands in one, the clinic in another, and the
   patients' words sit in small ones. Everything else stays quiet.
   ========================================================= */

/* ---------- Fonts (served from this site) ---------- */
@font-face {
  font-family: "Readex Pro Arabic";
  src: url("../fonts/readex-pro-arabic-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Readex Pro Arabic";
  src: url("../fonts/readex-pro-arabic-600-normal.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-pro-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/readex-pro-latin-600-normal.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens (Nafis defaults; site.js swaps the brand ones) ---------- */
:root {
  --brand: #0B6B5D;
  --brand-strong: #08544A;
  --brand-tint: #E7F3F0;
  --brand-wash: #F0F7F5;          /* the cool section band */
  --on-brand: #FFFFFF;
  --brand-rgb: 11, 107, 93;
  --brand-lite: #3EBFA6;          /* the clinic colour made bright enough for dark cards */
  --on-brand-lite: #06231E;
  --brand-lite-rgb: 62, 191, 166;
  --gem: #EFAC45;
  --gem-tint: #FCEFD9;
  --gem-wash: #FDF7EC;            /* the warm section band */
  --on-gem-tint: #8A5A00;
  --gem-rgb: 239, 172, 69;
  --deep: #0B2622;                /* the closing card: the clinic colour taken to near-black */
  --deep-rgb: 11, 38, 34;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #10201C;
  --ink-muted: #50605B;
  --line: #DCE4E1;

  --font: "Readex Pro Arabic", "Readex Pro", Tahoma, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --wrap: 1160px;
  --gutter: 16px;
  --top-h: 72px;
  --band: clamp(64px, 9vw, 112px);
  --r-lg: 28px;
  --r: 22px;
  --r-sm: 14px;
  /* a round top, soft feet. Top radii in % (not 999px): a huge radius would make the browser shrink the feet to nothing */
  --arch: 50% 50% var(--r) var(--r) / 40% 40% var(--r) var(--r);
  --arch-sm: 50% 50% 12px 12px / 42% 42% 12px 12px;   /* small arches: icons, initials */
  --shadow: 0 0 0 1px rgba(16, 32, 28, .05), 0 1px 2px rgba(16, 32, 28, .04), 0 18px 40px -24px rgba(16, 32, 28, .3);
}
@media (min-width: 700px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 12px);
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
a { color: var(--brand-strong); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
button, a, [role="button"] { touch-action: manipulation; }
button, .btn { -webkit-user-select: none; user-select: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.num { font-family: "Readex Pro", var(--font); direction: ltr; unicode-bidi: isolate; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.noscript { padding: 16px; text-align: center; }

/* Until the clinic's details are written in, the sample text stays hidden (shown anyway after 2.5 s) */
.nf-wait [data-t], .nf-wait .hero-art { visibility: hidden; animation: nf-show 0s 2.5s forwards; }
@keyframes nf-show { to { visibility: visible; } }

/* ---------- Liquid glass ---------- */
.glass {
  background: linear-gradient(140deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .56) 60%, rgba(255, 255, 255, .66));
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(16, 32, 28, .05), 0 16px 36px -20px rgba(16, 32, 28, .32);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .glass { background: rgba(255, 255, 255, .96); } }
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- Type ---------- */
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.25; color: var(--ink); }
h3 { font-size: 1.15rem; }
.sub { margin-top: 12px; color: var(--ink-muted); font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem); line-height: 1.75; max-width: 34em; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 12px 26px -14px rgba(var(--brand-rgb), .9); }
.btn-line { background: var(--surface); color: var(--brand-strong); border-color: rgba(var(--brand-rgb), .35); }
.btn-light { background: var(--brand-lite); color: var(--on-brand-lite); box-shadow: 0 12px 30px -12px rgba(var(--brand-lite-rgb), .7); }
.btn-glass-light {
  color: #fff; border-color: rgba(255, 255, 255, .3);
  background: linear-gradient(140deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  color: var(--brand-strong); background: rgba(var(--brand-rgb), .08); border: 1px solid rgba(var(--brand-rgb), .14);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-strong); }
  .btn-line:hover { border-color: var(--brand); background: var(--brand-wash); }
  .btn-light:hover { box-shadow: 0 16px 34px -12px rgba(var(--brand-lite-rgb), .9); }
  .btn-glass-light:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .55); }
  .icon-btn:hover { background: rgba(var(--brand-rgb), .14); }
}

/* =========================================================
   Header: a floating glass bar
   ========================================================= */
.top { position: sticky; top: 0; z-index: 60; padding: 8px 8px 0; }
.top-in {
  display: flex; align-items: center; gap: 12px;
  max-width: calc(var(--wrap) + 2 * var(--gutter) - 16px); margin-inline: auto;
  height: 58px; padding-inline: 14px 8px; border-radius: 20px;
}
.top-in.glass { background: linear-gradient(140deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .86) 60%, rgba(255, 255, 255, .9)); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; color: var(--ink); }
.brand img { height: 34px; width: auto; max-width: 168px; object-fit: contain; }
.brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; }
.brand-name { font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img + .brand-name { display: none; }
.brand .brand-mark + .brand-name { display: inline; }
.logo-plate { background: var(--deep); padding: 4px 10px; border-radius: 10px; box-sizing: content-box; }
.nav { display: none; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.top-actions .icon-btn { width: 44px; height: 44px; }
.phone-pill { display: none; }
@media (max-width: 380px) { .top-actions .btn-sm .ic { display: none; } }
@media (min-width: 1000px) {
  :root { --top-h: 78px; }
  .top-in { height: 62px; padding-inline: 18px 10px; }
  .nav { display: flex; gap: 2px; margin-inline: auto; }
  .nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--ink); font-size: .97rem; transition: background-color 200ms ease, color 200ms ease; }
  .top-actions { margin-inline-start: 0; }
  .top-actions .icon-btn-call { display: none; }
  .phone-pill:not([hidden]) {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    border: 1.5px solid rgba(var(--brand-rgb), .3); border-radius: 999px; color: var(--brand-strong); font-weight: 600; font-size: .95rem;
    transition: border-color 200ms ease, background-color 200ms ease;
  }
  .phone-pill .ic { width: 17px; height: 17px; }
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background: rgba(var(--brand-rgb), .08); color: var(--brand-strong); }
  .phone-pill:hover { border-color: var(--brand); background: var(--brand-wash); }
}

/* =========================================================
   The arch: the page's one recurring shape
   ========================================================= */
.arch { position: relative; overflow: hidden; border-radius: var(--arch); background: var(--brand-tint); isolation: isolate; }
.arch > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
/* no photo yet: the clinic's colour, a quiet line drawing of teeth, and the mark in a white disc */
.arch-fb {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(var(--brand-lite-rgb), .45), transparent 70%),
    linear-gradient(180deg, var(--brand), var(--deep));
}
.arch-fb::before { content: ""; position: absolute; inset: 0; background: url("../img/hero-pattern-tall.svg") center / cover no-repeat; opacity: .14; }
.arch-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 450ms ease; }
.arch-layer > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
[data-show="doc"] [data-arch="about-doc"], [data-show="clinic"] [data-arch="about-clinic"] { opacity: 1; }
[data-show="doc"] [data-arch="about-doc"] > img, [data-show="clinic"] [data-arch="about-clinic"] > img { animation: arch-zoom 900ms var(--ease-out); }
@keyframes arch-zoom { from { transform: scale(1.06); } }
.is-light .arch-fb { background: radial-gradient(70% 55% at 50% 35%, #fff, transparent 75%), var(--brand-tint); }
.is-light .arch-fb::before { opacity: .1; background: var(--brand); -webkit-mask: url("../img/hero-pattern-tall.svg") center / cover no-repeat; mask: url("../img/hero-pattern-tall.svg") center / cover no-repeat; }
.is-light .arch-disc { box-shadow: 0 24px 50px -24px rgba(var(--deep-rgb), .45), 0 0 0 10px rgba(var(--brand-rgb), .07); }
.arch-disc {
  position: relative; display: grid; place-items: center;
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: #fff; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55), 0 0 0 10px rgba(255, 255, 255, .12);
}
.arch-disc img { width: 62%; height: 62%; object-fit: contain; }
.arch-disc .mono { font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 600; color: var(--brand-strong); line-height: 1; }
/* the tinted arch standing behind, and the thin gold outline in front */
.arch-back { position: absolute; z-index: 0; border-radius: var(--arch); background: var(--brand-tint); }
.arch-line { position: absolute; z-index: 2; border-radius: var(--arch); border: 1.5px solid var(--gem); pointer-events: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
/* one very large, very faint arch behind everything: the room the window sits in */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: min(1100px, 150vw); aspect-ratio: 1 / 1.05; inset-inline-end: -28%; top: -8%;
  border-radius: var(--arch); background: var(--brand-wash);
}
.hero-in { display: grid; gap: 44px; align-items: center; }
.hero-copy { max-width: 36rem; }
.hero h1 {
  font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4.1rem); line-height: 1.18; letter-spacing: -.005em;
  color: var(--brand-strong);
}
.hero-lead { margin-top: 18px; font-size: clamp(1.06rem, 1rem + .4vw, 1.25rem); color: var(--ink-muted); max-width: 30em; text-wrap: pretty; }
.hero .cta-row { margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--ink-muted); font-size: .95rem; }
.hero-note .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gem-tint); color: var(--on-gem-tint); stroke-width: 2.6; }

.hero-art { position: relative; justify-self: center; width: min(76vw, 360px); margin-block: 10px 30px; }
.arch-hero { z-index: 1; aspect-ratio: 4 / 5.1; box-shadow: 0 40px 70px -40px rgba(var(--deep-rgb), .55); }
.hero-art .arch-back { inset: 7% -9% -5% 9%; }
.hero-art .arch-line { inset: -12px -12px 18% -12px; border-radius: 999px 999px 0 0; border-bottom: 0; }
.plate {
  position: absolute; z-index: 3; inset-inline: 12% 12%; bottom: -26px;
  display: grid; justify-items: center; gap: 0; padding: 12px 18px; border-radius: 18px; text-align: center;
}
.plate strong { font-size: 1.05rem; line-height: 1.4; }
.plate span { color: var(--ink-muted); font-size: .88rem; line-height: 1.5; }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; line-height: 1.35; max-width: 220px;
}
.chip b { display: block; font-size: .92rem; }
.chip small { display: block; color: var(--ink-muted); font-size: .8rem; }
.chip-today { top: 12%; inset-inline-start: -14%; }
.chip-fact { top: 48%; inset-inline-end: -12%; flex-direction: column; align-items: center; gap: 0; padding: 10px 16px; text-align: center; }
.chip-fact b { font-size: 1.5rem; line-height: 1.2; color: var(--brand-strong); }
.dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #9AA6A3; box-shadow: 0 0 0 4px rgba(154, 166, 163, .2); }
.is-open .dot { background: #1F9D55; box-shadow: 0 0 0 4px rgba(31, 157, 85, .18); }
.is-soon .dot { background: var(--gem); box-shadow: 0 0 0 4px rgba(var(--gem-rgb), .22); }

@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
  .hero-art { width: min(100%, 420px); margin-block: 0 26px; }
  .hero::before { inset-inline-end: auto; inset-inline-start: -14%; top: -18%; width: 760px; }
  .chip-today { inset-inline-start: -22%; }
  .chip-fact { inset-inline-end: -14%; }
}

/* the one moment nobody asks for: the window opens from the sill, the gold line follows, the notes arrive */
.intro .arch-hero { clip-path: inset(100% 0 0 0 round var(--arch)); }
.intro .arch-hero > * { transform: scale(1.08); }
.intro .hero-art .arch-back { opacity: 0; transform: translateY(24px); }
.intro .hero-art .arch-line { opacity: 0; transform: scale(.96); }
.intro .plate, .intro .chip { opacity: 0; transform: translateY(14px); }
.intro-go .arch-hero { clip-path: inset(0 0 0 0 round var(--arch)); transition: clip-path 1100ms var(--ease-in-out); }
.intro-go .arch-hero > * { transform: none; transition: transform 1400ms var(--ease-out); }
.intro-go .hero-art .arch-back { opacity: 1; transform: none; transition: opacity 700ms ease 250ms, transform 900ms var(--ease-out) 250ms; }
.intro-go .hero-art .arch-line { opacity: 1; transform: none; transition: opacity 600ms ease 700ms, transform 900ms var(--ease-out) 700ms; }
.intro-go .plate { opacity: 1; transform: none; transition: opacity 500ms ease 900ms, transform 600ms var(--ease-out) 900ms; }
.intro-go .chip-today { opacity: 1; transform: none; transition: opacity 500ms ease 1100ms, transform 600ms var(--ease-out) 1100ms; }
.intro-go .chip-fact { opacity: 1; transform: none; transition: opacity 500ms ease 1250ms, transform 600ms var(--ease-out) 1250ms; }

/* =========================================================
   Section bands
   ========================================================= */
.band { padding-block: var(--band); }
.band-warm { background: var(--gem-wash); }
.band-cool { background: var(--brand-wash); }
.sec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(26px, 4vw, 44px); }
.arrows { display: flex; gap: 8px; flex: none; }
.arrow {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(var(--brand-rgb), .3); background: var(--surface); color: var(--brand-strong); cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, opacity 200ms ease, transform 160ms var(--ease-out);
}
.arrow:active { transform: scale(.94); }
.arrow:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .arrow:not(:disabled):hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } }
@media (max-width: 699px) { [data-rail-nav] { display: none; } }

/* ---------- Services ---------- */
.rail-wrap { margin-inline: calc(-1 * var(--gutter)); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 300px); column-gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 6px var(--gutter) 26px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.svc {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
  padding: 24px 22px 22px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow);
}
.svc-ic {
  display: grid; place-items: center; width: 50px; height: 58px; margin-bottom: 6px;
  border-radius: var(--arch-sm); background: var(--brand-tint); color: var(--brand-strong);
}
.svc-ic .ic { width: 24px; height: 24px; }
.svc h3 { font-size: 1.12rem; color: var(--brand-strong); }
.svc p { color: var(--ink-muted); font-size: .96rem; line-height: 1.7; flex: 1; }
.svc-book {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 46px; margin-top: 8px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid rgba(var(--brand-rgb), .3); color: var(--brand-strong); font-weight: 600; font-size: .95rem;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.svc-book .ic { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.svc-book:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .svc-book:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
  .svc-book:hover .ic { transform: translateX(-3px); }
}
@media (min-width: 1000px) {
  .rail-wrap { margin-inline: 0; }
  .rail { grid-auto-columns: calc((100% - 3 * 18px) / 4); column-gap: 18px; padding: 6px 2px 28px; scroll-padding-inline: 0; }
}
.dots { display: flex; justify-content: center; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(var(--brand-rgb), .22); transition: width 300ms var(--ease-out), background-color 300ms ease; }
.dots i.on { width: 26px; background: var(--brand); }

/* ---------- About ---------- */
.about-h { margin-bottom: clamp(26px, 4vw, 44px); }
.about { display: grid; gap: 40px; align-items: center; }
.about-art { position: relative; width: min(74vw, 340px); justify-self: center; }
.arch-about { z-index: 1; aspect-ratio: 4 / 4.7; }
.about-art .arch-back { inset: 8% 10% -6% -10%; background: rgba(var(--brand-rgb), .1); }
.tabs { position: relative; display: flex; gap: 6px; border-bottom: 1.5px solid var(--line); margin-bottom: 24px; }
.tab {
  position: relative; min-height: 48px; padding: 0 16px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1.02rem; color: var(--ink-muted);
  transition: color 200ms ease;
}
.tab[aria-selected="true"] { color: var(--brand-strong); }
.tabs::after {
  content: ""; position: absolute; bottom: -1.5px; left: 0; height: 3px; border-radius: 3px; background: var(--brand);
  width: var(--tab-w, 0); transform: translateX(var(--tab-x, 0)); transition: transform 350ms var(--ease-out), width 350ms var(--ease-out);
}
.tabs:not(.is-ready)::after { display: none; }
.tabs:not(.is-ready) .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--brand); }
.pane h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.pane .role { color: var(--brand-strong); font-weight: 600; font-size: .98rem; margin-top: 2px; }
.pane .text { margin-top: 14px; color: var(--ink-muted); max-width: 34em; white-space: pre-line; text-wrap: pretty; }
.pane.is-in { animation: pane-in 380ms var(--ease-out); }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.skills li { padding: 7px 14px; border-radius: 999px; background: var(--surface); color: var(--brand-strong); font-size: .92rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .18); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 22px; }
.facts li { display: grid; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .12); }
.facts b { justify-self: start; font-size: 1.6rem; line-height: 1.25; color: var(--brand-strong); }
.facts span { color: var(--ink-muted); font-size: .9rem; line-height: 1.5; }
.about-cta { margin-top: 30px; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
  .about-body { padding-top: 48px; }
  .about-art { width: 100%; max-width: 400px; }
}

/* ---------- Reviews ---------- */
.quotes { display: grid; gap: 22px; }
.quote {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start;
  padding: 26px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}
.quote.is-swap { opacity: 0; transform: translateY(6px); }
.q-av { display: none; place-items: center; border-radius: var(--arch-sm); place-items: center; background: linear-gradient(180deg, var(--brand), var(--deep)); }
.q-av span { color: #fff; font-size: 1.7rem; font-weight: 600; line-height: 1; }
.q-mark { width: 34px; height: 34px; fill: var(--gem); stroke: none; margin-bottom: 6px; }
.quote blockquote { font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); line-height: 1.8; color: var(--ink); white-space: pre-line; text-wrap: pretty; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 16px; }
.quote figcaption b { color: var(--brand-strong); }
.quote figcaption small { color: var(--ink-muted); font-size: .9rem; }
.people { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.people::-webkit-scrollbar { display: none; }
.person {
  display: grid; justify-items: center; gap: 6px; width: 84px; flex: none; padding: 8px 4px; border: 0; border-radius: 16px;
  background: none; cursor: pointer; font: inherit; color: var(--ink-muted); transition: background-color 200ms ease, color 200ms ease;
}
.p-av { width: 46px; height: 56px; border-radius: var(--arch-sm); display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-strong); font-weight: 600; font-size: 1.15rem; transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease-out); }
.p-name { font-size: .82rem; line-height: 1.4; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person[aria-pressed="true"] { color: var(--ink); }
.person[aria-pressed="true"] .p-av { background: var(--brand); color: var(--on-brand); transform: translateY(-3px); }
@media (hover: hover) and (pointer: fine) { .person:hover { background: rgba(var(--brand-rgb), .06); } }
@media (min-width: 900px) {
  .quotes { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: center; }
  .quote { grid-template-columns: auto minmax(0, 1fr); padding: 40px 40px 36px; gap: 32px; }
  .q-av { display: grid; width: 104px; height: 128px; }
  .q-av span { font-size: 2.6rem; }
  .people { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .person { width: auto; }
}

/* ---------- Hours + place ---------- */
.visit { display: grid; gap: 16px; }
.card { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); padding: 24px 22px; }
.hours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 .ic { color: var(--brand-strong); }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--brand-wash); font-size: .9rem; font-weight: 600; color: var(--ink); }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .d { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hours-list .h { color: var(--ink-muted); text-align: end; }
.hours-list .off .d, .hours-list .off .h { color: #8A9793; font-weight: 400; }
.hours-list .today { margin-inline: -12px; padding-inline: 16px; border-radius: 12px; border-bottom-color: transparent; background: var(--brand-wash); }
.hours-list .today .h { color: var(--brand-strong); font-weight: 600; }
.today-tag { padding: 1px 9px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: .74rem; font-weight: 600; }
.hours-break { margin-top: 12px; color: var(--ink-muted); font-size: .92rem; }
.closures { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--gem-tint); color: var(--on-gem-tint); font-size: .92rem; }
.closures ul { margin-top: 4px; list-style: disc; padding-inline-start: 18px; }
.place { display: flex; flex-direction: column; }
/* the map picture: a real street map, served from this website (works in Syria without Google) */
.place-map {
  position: relative; display: block; overflow: hidden; margin: -10px -10px 20px; border-radius: 18px;
  aspect-ratio: 2 / 1; background: var(--brand-wash); box-shadow: inset 0 0 0 1px rgba(16, 32, 28, .06);
}
.place-map-img, .place-map-img img { display: block; width: 100%; height: 100%; }
.place-map-img img { object-fit: cover; transition: transform 600ms var(--ease-out); }
.place-map-credit { position: absolute; bottom: 6px; left: 8px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .85); color: #34423F; font-size: 11px; line-height: 1.6; }
.place-map:not([hidden]) + .place-ic { display: none; }
@media (hover: hover) and (pointer: fine) { .place-map[href]:hover .place-map-img img { transform: scale(1.03); } }
@media (min-width: 900px) { .place-map { margin: -14px -14px 22px; } }
.place-ic { display: grid; place-items: center; width: 52px; height: 62px; margin-bottom: 16px; border-radius: var(--arch-sm); background: var(--brand-tint); color: var(--brand-strong); }
.place-ic .ic { width: 24px; height: 24px; }
.place-addr { margin-top: 6px; color: var(--ink-muted); }
.place-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 24px; }
.place-btns .btn { padding-inline: 14px; }
.place-btns .btn:first-child { grid-column: 1 / -1; }
.place-btns .btn:only-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .visit { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
  .card { padding: 32px; }
}

/* ---------- Closing ---------- */
.closing-wrap { padding-bottom: var(--band); }
.closing {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vw, 88px) 22px; border-radius: var(--r-lg); text-align: center; color: #fff;
  background:
    radial-gradient(60% 70% at 50% 120%, rgba(var(--brand-lite-rgb), .35), transparent 70%),
    var(--deep);
}
.closing h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.closing .sub { margin-inline: auto; color: rgba(255, 255, 255, .78); }
.closing .cta-row { justify-content: center; margin-top: 30px; }
/* two gold arches, like doorways at either end of a hall */
.closing-arch { position: absolute; z-index: -1; bottom: -2px; width: clamp(120px, 22vw, 230px); aspect-ratio: 1 / 1.6; border-radius: 999px 999px 0 0; border: 1.5px solid rgba(var(--gem-rgb), .5); border-bottom: 0; }
.closing-arch.a1 { inset-inline-start: 5%; }
.closing-arch.a2 { inset-inline-end: 5%; height: auto; width: clamp(90px, 16vw, 170px); opacity: .6; }
@media (max-width: 699px) { .closing-arch.a2 { display: none; } .closing-arch.a1 { inset-inline-start: -30px; opacity: .6; } }

/* =========================================================
   Footer
   ========================================================= */
.foot { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-muted); padding-top: 52px; font-size: .96rem; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .brand img { height: 40px; max-width: 200px; }
.foot-tag { margin-top: 12px; color: var(--ink); font-weight: 600; }
.foot-brand p:not(.foot-tag) { margin-top: 4px; max-width: 30em; }
.foot-col h2 { font-size: .96rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.foot-col ul { list-style: none; display: grid; gap: 2px; }
.foot-col a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-muted); }
.foot-col a .ic { width: 18px; height: 18px; color: var(--brand-strong); }
@media (min-width: 900px) and (hover: hover) { .foot-col a { min-height: 36px; } }
.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-top: 40px; padding-block: 18px calc(100px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); font-size: .9rem;
}
/* "built by Infinity Horizons": one quiet line, the IH mark in its own colours, no box */
.ih { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-muted); font-size: .85rem; transition: color 200ms ease; }
.ih-lockup { display: inline-flex; align-items: center; gap: 8px; }
.ih-mark { width: 38px; height: 23px; flex: none; }
.ih-lockup b { font-family: "Readex Pro", var(--font); font-weight: 600; font-size: .95rem; letter-spacing: .015em; color: #0D2B3E; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
  .foot-brand { grid-column: auto; }
  .foot-bottom { padding-bottom: 28px; }
}
@media (hover: hover) and (pointer: fine) {
  .foot-col a:hover { color: var(--ink); }
  .ih:hover .ih-lockup b { color: #00897D; }
}

/* ---------- Phones: glass bottom bar. Computers: a floating button ---------- */
.dock {
  position: fixed; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: 24px;
  transform: translateY(calc(100% + 24px));
  transition: transform 220ms var(--ease-out);
}
.dock.is-on { transform: none; transition: transform 420ms var(--ease-drawer); }
.dock .btn { flex: 1; min-height: 50px; }
.fab {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 50;
  display: none; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 999px;
  color: var(--brand-strong); font-weight: 600;
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; transition-duration: 300ms; }
.fab:active { transform: scale(.96); }
@media (min-width: 700px) { .dock { display: none; } .fab { display: inline-flex; } }

/* ---------- Reduce motion: nothing slides; the page is simply there ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation-duration: 1ms !important; }
  .btn:active, .svc-book:active { transform: none; }
}

/* ---------- Print: the details, without the decoration ---------- */
@media print {
  .top, .dock, .fab, .arrows, .dots, .arch-back, .arch-line, .chip, .closing-arch, .hero::before { display: none !important; }
  .closing { color: #000; background: none !important; border: 1px solid #ccc; }
  .closing h2, .closing .sub { color: #000; }
  .pane[hidden] { display: block !important; }
  .rail { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; }
}

/* connection check (open the site with #check) */
.nf-check { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 9999; padding: 12px 16px; border-radius: 14px; background: #10201C; color: #fff; font-size: 15px; line-height: 1.6; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.nf-check p { margin: 0; }
.nf-check p + p { margin-top: 4px; font-size: 12px; opacity: .75; word-break: break-all; }
.nf-check--ok { background: #0B6B5D; }
.nf-check--error, .nf-check--no-app-url { background: #8E1F18; }
.nf-check--ok-direct { background: #8A5A00; }
.nf-check p.nf-check-book { margin-top: 6px; font-size: 14px; opacity: 1; word-break: normal; }
