/* Dr. Tariq Hussein Yousef — Urology Clinic
   Layout concept: straight-edged sections in the logo's navy and teal, consistent
   12px card corners, and a faint logo arc in the home hero.
   One stylesheet serves Arabic (RTL) and English (LTR) through logical properties.
   Deliberately single-theme (light): a clinic site with fixed brand colours. */

:root {
  color-scheme: light;
  /* colour — taken from the logo */
  --navy: #193263;
  --navy-deep: #10224a;
  --teal: #19a2b5;
  --teal-ink: #0d7584;       /* teal dark enough for text on white */
  --teal-soft: #d9f0f3;
  --mist: #eff6f8;           /* teal-tinted neutral surface */
  --paper: #ffffff;
  --ink: #15233f;            /* body text, navy-biased */
  --muted: #536079;
  --line: #d5e2e8;
  --alert: #b3262f;          /* semantic: urgent care only */
  --alert-soft: #fcefef;
  --on-dark: #ffffff;
  --on-dark-muted: #b9c8de;

  /* type */
  --display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --step--1: clamp(0.8rem, 0.78rem + 0.08vw, 0.85rem);
  --step-0: clamp(0.95rem, 0.93rem + 0.1vw, 1rem);
  --step-1: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-4: clamp(1.8rem, 1.45rem + 1.6vw, 2.6rem);

  /* shape & space */
  --r: 12px;
  --r-sm: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --shadow: 0 1px 2px rgba(16, 34, 74, .06), 0 10px 30px -12px rgba(16, 34, 74, .18);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.25; margin: 0; text-wrap: balance; font-weight: 600; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.skip { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { inline-size: auto; block-size: auto; clip-path: none; inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: grid; gap: 1rem; }
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

/* placeholder text the clinic must replace */
.ph { color: var(--teal-ink); text-decoration: underline dotted 1.5px; text-underline-offset: 4px; font-style: normal; }
.on-dark .ph { color: #8fdbe6; }

/* ------------------------------------------------------------ eyebrow arc */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--display); font-weight: 500; font-size: var(--step--1);
  color: var(--teal-ink); letter-spacing: .02em;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .1em; }
.eyebrow::before {
  content: ""; inline-size: 22px; block-size: 22px; flex: none;
  border: 3px solid var(--teal); border-radius: 50%;
  border-inline-end-color: transparent; border-block-start-color: transparent;
  transform: rotate(-20deg);
}
.on-dark .eyebrow { color: #8fdbe6; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .55em 1.25em; border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: var(--step-0);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  line-height: 1.2;
}
.btn svg { inline-size: 20px; block-size: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-ink); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--display); font-weight: 500; text-decoration: none; }
.link-arrow svg { inline-size: 18px; block-size: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
[dir="rtl"] .ic-arrow { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { flex: none; display: block; }
.brand img { block-size: 40px; inline-size: auto; }
.nav { display: flex; align-items: center; gap: .25rem; margin-inline-start: auto; }
.nav a {
  font-family: var(--display); font-weight: 400; color: var(--ink); text-decoration: none;
  padding: .5em .9em; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; background: var(--teal-soft); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang {
  display: inline-grid; place-items: center; min-inline-size: 44px; block-size: 44px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--navy); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
}
.lang:hover { border-color: var(--navy); }
.header-actions .btn { min-height: 40px; padding-inline: 1.05em; font-size: .92rem; }
.menu-btn { display: none; inline-size: 48px; block-size: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; place-items: center; }
.menu-btn svg { inline-size: 22px; block-size: 22px; }

@media (max-width: 1079px) {
  .menu-btn { display: inline-grid; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-block-end: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem; box-shadow: var(--shadow);
  }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: .85em .75em; border-radius: var(--r-sm); }
  .nav .nav-book { display: flex; margin-block-start: .5rem; }
  .brand img { block-size: 40px; }
  .header-in { gap: .75rem; }
  .header-actions { margin-inline-start: auto; }
}
@media (min-width: 1080px) { .nav .nav-book { display: none; } }

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.section.tint { background: var(--mist); }
.section-head { display: grid; gap: .75rem; margin-block-end: clamp(1.5rem, 3vw, 2.25rem); max-width: 62ch; }
.section-head h2 { font-size: var(--step-3); }
.section-head.split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; }
.section-head.split > div { display: grid; gap: .75rem; max-width: 62ch; }
@media (max-width: 700px) { .section-head.split { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ home hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-deep); color: var(--on-dark);
}
.hero::after {
  /* the logo's crescent, scaled up */
  content: ""; position: absolute; z-index: -1;
  inline-size: min(900px, 140vw); aspect-ratio: 1; max-width: none;
  inset-inline-end: -14%; top: -12%;
  border-radius: 50%;
  border: clamp(18px, 3vw, 34px) solid var(--teal);
  border-inline-start-color: transparent; border-block-start-color: transparent;
  opacity: .55; transform: rotate(-30deg);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.75rem, 5.5vw, 4.5rem); }
.hero h1 { line-height: 1.2; color: #fff; font-size: var(--step-4); font-weight: 600; }
.hero h1 em { font-style: normal; color: #7fd6e2; }
.hero .lede { color: var(--on-dark-muted); }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; list-style: none; color: var(--on-dark-muted); font-size: var(--step--1); }
.hero-facts li { display: inline-flex; align-items: center; gap: .45em; }
.hero-facts svg { inline-size: 18px; block-size: 18px; color: var(--teal); }

.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); display: grid; gap: 1rem; min-width: 0;
}
.hero-card h2 { font-size: var(--step-1); }
.reason-list { list-style: none; display: grid; gap: .4rem; }
.reason-list a {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink); background: var(--mist); transition: background .2s;
}
.reason-list a:hover { background: var(--teal-soft); }
.reason-list .ic { inline-size: 36px; block-size: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--teal-ink); flex: none; }
.reason-list .ic svg { inline-size: 20px; block-size: 20px; }
.reason-list span { flex: 1; min-width: 0; line-height: 1.4; }
.reason-list .go { flex: none; inline-size: 18px; block-size: 18px; color: var(--muted); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero::after { top: auto; bottom: -55%; inset-inline-end: -70%; opacity: .35; } }

/* ------------------------------------------------------------ inner page hero */
.page-hero { background: var(--mist); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; inline-size: 420px; aspect-ratio: 1;
  inset-inline-end: -120px; bottom: -220px; border-radius: 50%;
  border: 22px solid var(--teal-soft); border-inline-start-color: transparent; border-block-end-color: transparent;
}
.page-hero-in { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); display: grid; gap: 1rem; justify-items: start; }
.page-hero-in h1 { max-width: 22ch; }
.page-hero h1 { font-size: var(--step-4); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--step--1); color: var(--muted); list-style: none; }
.crumbs li + li::before { content: "/"; margin-inline-end: .4rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }

/* ------------------------------------------------------------ service cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.svc-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: .65rem;
  padding: 1.25rem; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0;
}
.svc-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.svc-card .ic { inline-size: 44px; block-size: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--navy); }
.svc-card .ic svg { inline-size: 22px; block-size: 22px; }
.svc-card .grp { font-size: var(--step--1); color: var(--teal-ink); font-family: var(--display); }
.svc-card h3 { font-size: var(--step-1); }
.svc-card p { color: var(--muted); font-size: .95em; line-height: 1.65; }
.svc-card .link-arrow { color: var(--navy); font-size: .95em; }
.tint .svc-card { border-color: transparent; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-end: 1.5rem; }
.chip {
  font-family: var(--display); font-size: var(--step--1); padding: .5em 1.05em; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 40px;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ------------------------------------------------------------ stone size guide */
.stone-guide { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .stone-guide { grid-template-columns: 1fr; } }
.sg-panel { background: #fff; border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); display: grid; gap: 1.25rem; min-width: 0; }
.sg-stage { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; align-items: center; }
.sg-dot-box { inline-size: 120px; block-size: 120px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; }
.sg-dot { inline-size: 24px; block-size: 24px; border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; background: var(--navy); transition: inline-size .25s, block-size .25s; }
.sg-size { font-family: var(--display); font-size: var(--step-3); color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.sg-size small { font-size: .45em; color: var(--muted); font-weight: 400; }
.sg-band-name { font-family: var(--display); font-weight: 600; color: var(--teal-ink); margin-block-start: .35rem; }
.sg-panel input[type="range"] { inline-size: 100%; accent-color: var(--teal); block-size: 28px; }
.sg-scale { display: grid; grid-template-columns: 5fr 5fr 10fr 10fr; gap: 4px; }
.sg-scale div { block-size: 10px; border-radius: 999px; background: var(--teal-soft); }
.sg-scale div[data-on="true"] { background: var(--teal); }
.sg-ticks { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; }
[dir="rtl"] .sg-scale, [dir="rtl"] .sg-panel input[type="range"] { direction: ltr; }
.sg-text { color: var(--ink); min-height: 4.5em; }
.sg-bands { list-style: none; display: grid; gap: .6rem; }
.sg-bands li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .85rem 1rem; border-radius: var(--r-sm); background: #fff; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.sg-bands li[data-on="true"] { border-color: var(--teal); background: var(--teal-soft); }
.sg-bands b { font-family: var(--display); color: var(--navy); font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1.4; }
.sg-bands span { color: var(--muted); line-height: 1.55; font-size: .95em; }
@media (max-width: 560px) { .sg-bands li { grid-template-columns: 1fr; gap: .2rem; } }
.fine { font-size: var(--step--1); color: var(--muted); }

/* ------------------------------------------------------------ doctor teaser / about */
.doc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 800px) { .doc { grid-template-columns: 1fr; } }
.portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 420px; inline-size: 100%;
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
}
.portrait::before { content: ""; position: absolute; inset: 14% -30% -30% 14%; border-radius: 50%; border: 18px solid var(--teal); border-inline-end-color: transparent; border-block-start-color: transparent; z-index: -1; opacity: .9; }
.portrait.has-photo { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.portrait.has-photo::before { display: none; }
.portrait .photo { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; max-width: none; object-fit: cover; object-position: 50% 18%; }
.author img.avatar { padding: 0; object-fit: cover; border: 2px solid var(--teal-soft); }
.portrait img.mark { inline-size: 38%; opacity: .95; }
.portrait .ph-label { position: absolute; bottom: 1rem; inset-inline: 1rem; text-align: center; color: var(--on-dark-muted); font-size: var(--step--1); }
.doc-name { font-size: var(--step-3); }
.doc-title { color: var(--teal-ink); font-family: var(--display); font-weight: 500; }
.creds { list-style: none; display: grid; gap: .5rem; }
.creds li { display: flex; gap: .7rem; align-items: flex-start; }
.creds svg { inline-size: 20px; block-size: 20px; color: var(--teal); flex: none; margin-block-start: .3em; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.value { padding: 1.25rem; border-radius: var(--r); background: #fff; display: grid; gap: .6rem; align-content: start; }
.value .ic { inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.value .ic svg { inline-size: 22px; block-size: 22px; }
.value h3 { font-size: var(--step-1); }
.value p { color: var(--muted); font-size: .95em; }

.timeline { list-style: none; display: grid; gap: 0; border-inline-start: 2px solid var(--teal-soft); margin-inline-start: .5rem; }
.timeline li { position: relative; padding-inline-start: 1.75rem; padding-block: .25rem 1.4rem; display: grid; gap: .2rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -8px; top: .55em; inline-size: 14px; block-size: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); }
.timeline b { font-family: var(--display); color: var(--navy); font-weight: 600; }

.areas { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .6rem; }
.areas a { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: #fff; color: var(--ink); text-decoration: none; line-height: 1.5; border: 1px solid transparent; transition: border-color .2s; }
.areas a:hover { border-color: var(--teal); color: var(--navy); }
.areas svg { inline-size: 20px; block-size: 20px; color: var(--teal); flex: none; margin-block-start: .15em; }

/* ------------------------------------------------------------ visit steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; padding: 1.25rem; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: grid; gap: .5rem; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 600; inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
.steps h3 { color: #fff; font-size: var(--step-1); }
.steps p { color: var(--on-dark-muted); font-size: .95em; }
.band-dark { background: var(--navy-deep); color: var(--on-dark); }
.band-dark h2 { color: #fff; }
.band-dark .lede { color: var(--on-dark-muted); }

/* ------------------------------------------------------------ urgent */
.urgent { border-radius: var(--r); background: var(--alert-soft); padding: 1.25rem 1.4rem; display: grid; gap: .6rem; border-inline-start: 4px solid var(--alert); }
.urgent h3, .urgent h2 { color: var(--alert); font-size: var(--step-1); display: flex; gap: .5em; align-items: center; }
.urgent h3 svg, .urgent h2 svg { inline-size: 22px; block-size: 22px; flex: none; }
.urgent ul { list-style: none; display: grid; gap: .35rem; }
.urgent li { padding-inline-start: 1.1rem; position: relative; line-height: 1.55; }
.urgent li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--alert); }
.urgent p { font-size: var(--step--1); color: var(--ink); }
.urgent-wide { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
@media (max-width: 700px) { .urgent-wide { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ service detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } }
.detail-main { display: grid; gap: clamp(2.25rem, 5vw, 3.25rem); min-width: 0; }
.detail-main section { display: grid; gap: 1rem; }
.detail-main h2 { font-size: var(--step-2); }
.ticks { list-style: none; display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.6; }
.ticks svg { inline-size: 20px; block-size: 20px; color: var(--teal); flex: none; margin-block-start: .25em; }
.deflist { display: grid; gap: .75rem; margin: 0; }
.deflist > div { padding: 1rem 1.2rem; border-radius: var(--r-sm); background: var(--mist); display: grid; gap: .25rem; }
.deflist dt { font-family: var(--display); font-weight: 600; color: var(--navy); }
.deflist dd { margin: 0; color: var(--muted); line-height: 1.6; }
.options { list-style: none; display: grid; gap: .75rem; }
.options li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-sm); }
.options .ic { inline-size: 36px; block-size: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--navy); }
.options .ic svg { inline-size: 18px; block-size: 18px; }
.options b { font-family: var(--display); color: var(--navy); font-weight: 600; display: block; }
.options p { color: var(--muted); line-height: 1.6; }
.faq { display: grid; gap: .6rem; }
.faq details { border-radius: var(--r-sm); background: var(--mist); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-family: var(--display); font-weight: 500; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--teal-ink); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--muted); }
.aside { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: grid; gap: 1rem; }
@media (max-width: 960px) { .aside { position: static; } }
.book-card { background: var(--navy-deep); color: #fff; border-radius: var(--r); padding: 1.5rem; display: grid; gap: .9rem; }
.book-card h2, .book-card h3 { color: #fff; font-size: var(--step-1); }
.book-card p { color: var(--on-dark-muted); font-size: .95em; }
.book-card .btn { inline-size: 100%; }

/* ------------------------------------------------------------ symptom finder */
.finder { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: .6rem; }
.finder a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--r-sm); background: #fff; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: border-color .2s; }
.finder a:hover { border-color: var(--teal); }
.finder .q { line-height: 1.5; }
.finder .to { font-family: var(--display); font-size: var(--step--1); color: var(--teal-ink); display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; }
.finder .to svg { inline-size: 16px; block-size: 16px; }

/* ------------------------------------------------------------ blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.post-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; min-width: 0; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.post-card .body { padding: 1.25rem 1.4rem 1.5rem; display: grid; gap: .55rem; align-content: start; }
.post-card h3 { font-size: var(--step-1); }
.post-card p { color: var(--muted); font-size: .95em; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: var(--step--1); color: var(--muted); }
.meta .cat { color: var(--teal-ink); font-family: var(--display); }
.cover { aspect-ratio: 16 / 9; inline-size: 100%; max-width: 100%; }
.post-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border-radius: var(--r); overflow: hidden; background: var(--navy-deep); text-decoration: none; color: #fff; margin-block-end: 1.25rem; }
.post-feature .body { padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: .8rem; align-content: center; }
.post-feature h2 { color: #fff; font-size: var(--step-2); }
.post-feature p { color: var(--on-dark-muted); }
.post-feature .meta { color: var(--on-dark-muted); }
.post-feature .meta .cat { color: #8fdbe6; }
.post-feature .cover { aspect-ratio: auto; block-size: 100%; min-block-size: 240px; }
.post-feature:hover { color: #fff; }
@media (max-width: 760px) { .post-feature { grid-template-columns: 1fr; } .post-feature .cover { min-block-size: 0; aspect-ratio: 16 / 9; } }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } }
.article-body { display: grid; gap: 1.15rem; max-width: 68ch; font-size: 1.05em; min-width: 0; }
.article-body h2 { font-size: var(--step-2); margin-block-start: 1rem; }
.article-body ul { display: grid; gap: .5rem; padding-inline-start: 1.25rem; }
.article-body li::marker { color: var(--teal); }
.callout { padding: 1.1rem 1.25rem; border-radius: var(--r-sm); background: var(--alert-soft); border-inline-start: 4px solid var(--alert); display: flex; gap: .75rem; align-items: flex-start; }
.callout svg { inline-size: 22px; block-size: 22px; color: var(--alert); flex: none; margin-block-start: .2em; }
.review-note { font-size: var(--step--1); color: var(--muted); border-block-start: 1px solid var(--line); padding-block-start: 1rem; }
.author { display: flex; align-items: center; gap: .8rem; }
.author img { inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--mist); padding: 6px; }
.author b { font-family: var(--display); color: var(--navy); display: block; line-height: 1.3; }
.author span { font-size: var(--step--1); color: var(--muted); }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.cards { display: grid; gap: .75rem; }
.ccard { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-sm); background: var(--mist); align-items: start; }
.ccard .ic { inline-size: 42px; block-size: 42px; border-radius: 50%; background: #fff; color: var(--teal-ink); display: grid; place-items: center; }
.ccard .ic svg { inline-size: 20px; block-size: 20px; }
.ccard b { font-family: var(--display); color: var(--navy); display: block; font-weight: 600; }
.ccard span { color: var(--muted); }
.map-slot { border-radius: var(--r); background: var(--navy-deep); color: var(--on-dark-muted); padding: 1.5rem; display: grid; gap: .75rem; min-block-size: 200px; align-content: end; position: relative; overflow: hidden; isolation: isolate; }
.map-slot::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; }
.map-slot .pin { position: absolute; top: 34%; inset-inline-start: 50%; inline-size: 44px; block-size: 44px; color: var(--teal); }
.map-slot b { color: #fff; font-family: var(--display); }

/* ------------------------------------------------------------ forms */
.form { display: grid; gap: 1.1rem; background: #fff; border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); min-width: 0; }
.field { display: grid; gap: .4rem; }
.field label, .legend { font-family: var(--display); font-weight: 500; color: var(--navy); font-size: .95em; }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; inline-size: 100%;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .75em .9em; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--alert); }
.field .err { color: var(--alert); font-size: var(--step--1); display: none; }
.field[data-invalid="true"] .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
input[dir="ltr"] { text-align: start; }
[dir="rtl"] input[type="tel"] { text-align: right; }
.form-done { display: grid; gap: .8rem; justify-items: start; padding: 1.25rem; border-radius: var(--r); background: var(--teal-soft); }
.form-done h3 { font-size: var(--step-1); }
.form-done .ok { inline-size: 48px; block-size: 48px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.form-done .ok svg { inline-size: 24px; block-size: 24px; }

/* booking flow */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr; } }
.progress { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-block-end: .5rem; }
.progress li { display: grid; gap: .45rem; font-size: var(--step--1); color: var(--muted); font-family: var(--display); }
.progress li::before { content: ""; block-size: 6px; border-radius: 999px; background: var(--line); }
.progress li[data-state="done"]::before, .progress li[data-state="current"]::before { background: var(--teal); }
.progress li[data-state="current"] { color: var(--navy); font-weight: 600; }
.step-panel { display: grid; gap: 1.2rem; }
.step-panel h2 { font-size: var(--step-2); }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .6rem; }
.pick label {
  display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); cursor: pointer; line-height: 1.4; background: #fff; transition: border-color .2s, background .2s; min-height: 56px;
}
.pick label:hover { border-color: var(--teal); }
.pick label { position: relative; }
.pick input { position: absolute; inset-inline-start: 8px; top: 8px; inline-size: 1px; block-size: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.pick label:has(input:checked) { border-color: var(--navy); background: var(--teal-soft); }
.pick label:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.pick .ic { inline-size: 32px; block-size: 32px; border-radius: 50%; background: var(--mist); color: var(--navy); display: grid; place-items: center; flex: none; }
.pick .ic svg { inline-size: 18px; block-size: 18px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.days label { flex-direction: column; justify-content: center; gap: 0; text-align: center; padding: .6rem .4rem; min-height: 72px; }
.days b { font-family: var(--display); font-size: 1.25em; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2; }
.days small { color: var(--muted); font-size: .8em; }
.step-nav { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; padding-block-start: .5rem; border-block-start: 1px solid var(--line); }
.summary { list-style: none; display: grid; gap: .5rem; }
.summary li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; font-size: .95em; }
.summary span { color: var(--on-dark-muted); }
.summary b { color: #fff; font-weight: 500; }

/* ------------------------------------------------------------ CTA band */
.cta-band { background: var(--teal); color: #fff; border-radius: var(--r); padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; inline-size: 340px; aspect-ratio: 1; inset-inline-end: -90px; top: -150px; border-radius: 50%; border: 26px solid rgba(255,255,255,.18); }
.cta-band h2 { color: #fff; font-size: var(--step-3); }
.cta-band p { color: rgba(255,255,255,.88); }
.cta-band .btn-navy { background: var(--navy-deep); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--mist); margin-block-start: clamp(3rem, 7vw, 5rem); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h2 { font-size: var(--step-0); margin-block-end: .75rem; }
.foot-grid ul { list-style: none; display: grid; gap: .4rem; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--teal-ink); text-decoration: underline; }
.foot-brand { display: grid; gap: 1rem; align-content: start; }
.foot-brand img { block-size: 52px; inline-size: auto; }
.foot-brand p { color: var(--muted); font-size: .95em; max-width: 36ch; }
.foot-contact li { color: var(--muted); font-size: .95em; }
.foot-contact b { color: var(--ink); font-weight: 500; }
.foot-bottom { margin-block-start: 2.5rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: var(--step--1); color: var(--muted); }
.foot-bottom a { color: var(--muted); }
.foot-urgent { color: var(--alert); }

/* mobile action bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-block-start: 1px solid var(--line);
  }
  .mbar .btn { min-height: 46px; padding-inline: .8em; font-size: .95em; }
  body { padding-block-end: 76px; }
}

/* legal */
.legal { max-width: 72ch; display: grid; gap: 1rem; }
.legal h2 { font-size: var(--step-1); margin-block-start: 1rem; }
.legal ul { padding-inline-start: 1.25rem; display: grid; gap: .4rem; }

/* straight-edged sections; only the home hero keeps a faint logo arc */
.page-hero::after, .cta-band::after, .portrait::before { display: none; }
.hero::after { opacity: .18; border-width: clamp(12px, 1.8vw, 20px); }
.hero-card { box-shadow: 0 20px 40px -24px rgba(0,0,0,.45); }
.portrait { max-width: 380px; }
.lang { min-inline-size: 40px; block-size: 40px; }
.nav a { font-size: .95rem; padding: .45em .85em; }

/* ---------------------------------------------------- header, matched to Arab Eyes Center */
:root { --header-h: 88px; }
.header-in { min-height: var(--header-h); gap: 1.5rem; }
.brand img { block-size: 46px; }
@media (min-width: 480px) { .brand img { block-size: 52px; } }
@media (min-width: 1080px) {
  .brand img { block-size: 62px; }
  .nav { gap: clamp(1rem, 2vw, 2rem); margin-inline-start: auto; margin-inline-end: .5rem; }
  .nav a { position: relative; padding: .55rem 0; border-radius: 0; background: none; font-size: var(--step--1); font-weight: 500; color: var(--ink); }
  .nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; block-size: 2px; background: var(--teal); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .25s ease; }
  [dir="rtl"] .nav a::after { --origin: right; }
  .nav a:hover { background: none; color: var(--teal-ink); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { background: none; color: var(--navy); font-weight: 600; }
}
.lang { min-inline-size: 44px; block-size: 44px; padding-inline: .85rem; border-radius: 999px; border-color: #c9d9e0; font-size: var(--step--1); }
.header-actions .btn { min-height: 44px; padding-inline: 1.2em; font-size: var(--step--1); }

/* ---------------------------------------------------- hero visual: doctor photo */
.hero-in { align-items: end; padding-block-end: 0; }
.hero-copy { align-self: center; padding-block-end: clamp(2.75rem, 5.5vw, 4.5rem); }
.hero-visual { position: relative; align-self: end; display: grid; justify-items: center; align-items: end; min-width: 0; padding-block-start: 1rem; }
.hv-ring { position: absolute; inset-inline: 6%; bottom: 0; aspect-ratio: 1; max-inline-size: 470px; margin-inline: auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a5a92 0%, #1d3e6e 55%, var(--navy) 100%); }
.hv-ring::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 6px solid var(--teal);
  border-block-end-color: transparent; border-inline-end-color: transparent; transform: rotate(-35deg); opacity: .9; }
.hv-photo { position: relative; inline-size: min(100%, 440px); block-size: auto; display: block; }
.hv-badge { position: absolute; display: flex; align-items: center; gap: .65rem; background: #fff; color: var(--ink);
  border-radius: var(--r); padding: .65rem .9rem; box-shadow: 0 14px 30px -16px rgba(0,0,0,.55); max-inline-size: 250px; line-height: 1.3; }
.hv-badge > svg { inline-size: 30px; block-size: 30px; flex: none; color: #fff; background: var(--teal); border-radius: 50%; padding: 6px; }
.hv-badge img { inline-size: 34px; block-size: auto; flex: none; }
.hv-badge b { display: block; font-family: var(--display); color: var(--navy); font-size: .92rem; font-weight: 600; }
.hv-badge small { display: block; color: var(--muted); font-size: .78rem; }
.hv-b1 { top: 22%; inset-inline-start: 0; }
.hv-b2 { bottom: 9%; inset-inline-end: 0; }
@media (max-width: 860px) {
  .hero-copy { padding-block-end: 0; }
  .hero-visual { max-inline-size: 420px; inline-size: 100%; margin-inline: auto; }
  .hv-b1 { top: 12%; }
}

/* quick links strip under the hero */
.quick { background: #fff; border-block-end: 1px solid var(--line); }
.quick-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem 2rem; align-items: center; padding-block: 1.25rem; }
.quick h2 { font-size: var(--step-0); white-space: nowrap; }
.quick-list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.quick-list a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--r-sm); background: var(--mist);
  color: var(--ink); text-decoration: none; font-size: var(--step--1); line-height: 1.35; block-size: 100%; transition: background .2s, color .2s; }
.quick-list a:hover { background: var(--teal-soft); color: var(--navy); }
.quick-list .ic { inline-size: 30px; block-size: 30px; border-radius: 50%; background: #fff; color: var(--teal-ink); display: grid; place-items: center; flex: none; }
.quick-list .ic svg { inline-size: 17px; block-size: 17px; }
.quick-list span:not(.ic) { flex: 1; min-width: 0; }
.quick-list .go { display: none; }
@media (max-width: 1079px) {
  .quick-in { grid-template-columns: 1fr; }
  .quick-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
}
.hero::after { display: none; }
.hv-photo { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%); }
.hv-b1 { top: 4%; }
.hv-b2 { bottom: 7%; }
@media (max-width: 860px) { .hv-b1 { top: 2%; } }

/* ---------------------------------------------------- hero with operating-room photo */
.hero-photo { min-block-size: clamp(520px, 44vw, 640px); display: grid; }
.hero-media { position: absolute; inset-block: 0; inset-inline-end: 0; inline-size: 54%; z-index: -1; }
.hero-media img { inline-size: 100%; block-size: 100%; max-width: none; object-fit: cover; object-position: 55% 45%; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, var(--navy-deep) 0%, rgba(16,34,74,.75) 18%, rgba(16,34,74,.15) 45%, rgba(16,34,74,0) 70%),
              linear-gradient(to top, rgba(16,34,74,.65) 0%, rgba(16,34,74,0) 35%); }
[dir="rtl"] .hero-media::after { background: linear-gradient(to left, var(--navy-deep) 0%, rgba(16,34,74,.75) 18%, rgba(16,34,74,.15) 45%, rgba(16,34,74,0) 70%),
              linear-gradient(to top, rgba(16,34,74,.65) 0%, rgba(16,34,74,0) 35%); }
[dir="rtl"] .hero-media img { transform: scaleX(1); }
.hero-photo .hero-in { align-items: center; padding-block: clamp(2.75rem, 5.5vw, 4.5rem); }
.hero-photo .hero-copy { padding-block-end: 0; max-inline-size: 560px; }
.hero-photo .hero-visual { align-self: end; justify-items: end; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; min-block-size: 0; padding: 0; }
.hero-photo .hv-badge { position: static; }
.hero-photo .hv-ring, .hero-photo .hv-photo { display: none; }
@media (max-width: 860px) {
  .hero-photo { min-block-size: 0; }
  .hero-media { position: relative; inline-size: 100%; block-size: 340px; inset: auto; z-index: 0; }
  .hero-media::after, [dir="rtl"] .hero-media::after { background: linear-gradient(to top, var(--navy-deep) 0%, rgba(16,34,74,0) 45%); }
  .hero-photo { display: flex; flex-direction: column; }
  .hero-photo .hero-visual { align-items: flex-start; }
}

.hero-media img { object-position: 50% 100%; }
.hero-photo .hero-in { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .hero-media img { object-position: 50% 80%; } }
a.tel { color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
a.tel:hover { color: var(--teal-ink); text-decoration: underline; }

/* Google reviews: outlined pill above the hero headline */
.g-review { justify-self: start; display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; color: #fff; text-decoration: none; font-size: var(--step--1); line-height: 1.2; transition: border-color .2s, background .2s; }
.g-review:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.05); color: #fff; }
.g-stars { display: inline-flex; gap: 1px; color: #f4b400; }
.g-stars svg { inline-size: 14px; block-size: 14px; }
.g-review b { font-family: var(--display); font-weight: 600; font-size: .95rem; }
.g-sep { inline-size: 1px; block-size: 14px; background: rgba(255,255,255,.3); }
.g-count { color: var(--on-dark-muted); }
.g-review > svg { inline-size: 15px; block-size: 15px; color: #8fdbe6; }
.hours { display: inline-block; vertical-align: top; }

/* review pill, styled after the reference: solid fill, strong outline */
.g-review { gap: .75rem; padding: .55rem 1.15rem; background: var(--navy); border: 2px solid var(--teal); border-radius: 999px; font-size: .95rem; }
.g-review:hover { background: #1f3d75; border-color: #4cc3d3; }
.g-review b { font-size: 1.1rem; color: #fff; font-weight: 700; }
.g-stars { gap: 3px; }
.g-stars svg { inline-size: 16px; block-size: 16px; }
.g-sep { block-size: 20px; inline-size: 1.5px; background: rgba(255,255,255,.35); }
.g-count { color: #fff; font-family: var(--display); font-weight: 500; }
.g-logo { inline-size: 20px; block-size: 20px; flex: none; }

/* ---------------------------------------------------- appointment form + pop-up */
.req { color: var(--alert); font-weight: 600; }
.appt-form { display: grid; gap: 1rem; }
.appt-form .field select { appearance: none; -webkit-appearance: none; padding-inline-end: 2.4rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat; background-size: 18px; background-position: right .8rem center; }
[dir="rtl"] .appt-form .field select { background-position: left .8rem center; }
.appt-form .field select:invalid { color: var(--muted); }
.appt-form .field input[type="date"] { min-height: 50px; }
.appt-submit { justify-self: stretch; }
.appt-done { display: grid; gap: .7rem; justify-items: start; padding: 1.5rem; border-radius: var(--r); background: var(--teal-soft); }
.appt-done h3 { font-size: var(--step-1); }
.appt-done .ok { inline-size: 48px; block-size: 48px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; }
.appt-done .ok svg { inline-size: 24px; block-size: 24px; }
.appt-card { padding: clamp(1.25rem, 3vw, 2rem); }

.appt-modal { inline-size: min(640px, calc(100vw - 32px)); max-block-size: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r);
  color: var(--ink); background: #fff; box-shadow: 0 30px 80px -20px rgba(16,34,74,.55); overflow: auto; }
.appt-modal::backdrop { background: rgba(16,34,74,.6); backdrop-filter: blur(3px); }
.appt-modal[open] { animation: appt-in .22s ease-out; }
@keyframes appt-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.appt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem; background: var(--navy-deep); color: #fff; position: sticky; top: 0; z-index: 1; }
.appt-head h2 { color: #fff; font-size: var(--step-2); }
.appt-head p { color: var(--on-dark-muted); font-size: var(--step--1); margin-block-start: .2rem; }
.appt-close { inline-size: 40px; block-size: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer; }
.appt-close:hover { border-color: #fff; }
.appt-close svg { inline-size: 18px; block-size: 18px; }
.appt-modal .appt-form, .appt-modal .appt-done { margin: 1.5rem; }
@media (max-width: 560px) { .appt-modal .appt-form, .appt-modal .appt-done { margin: 1rem; } .appt-head { padding: 1rem; } }

/* Article photos (assets/img/blog/<slug>.jpg) */
.cover-img { display: block; object-fit: cover; block-size: auto; }
.post-feature .cover-img { block-size: 100%; }
.article-figure { margin: 0 0 1.75rem; border-radius: var(--r); overflow: hidden; }
.article-figure .cover-img { aspect-ratio: 16 / 9; }

/* Article hero with photo: headline sits in a navy fade over the image */
.page-hero.has-img { background: var(--navy-deep); color: #fff; display: grid; align-items: center; min-block-size: clamp(360px, 40vw, 520px); }
.page-hero.has-img::after { display: none; }
.page-hero .ph-bg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgba(16,34,74,.97) 0%, rgba(16,34,74,.9) 32%, rgba(16,34,74,.45) 58%, rgba(16,34,74,0) 80%); }
html[dir="ltr"] .page-hero.has-img::before {
  background: linear-gradient(to right, rgba(16,34,74,.97) 0%, rgba(16,34,74,.9) 32%, rgba(16,34,74,.45) 58%, rgba(16,34,74,0) 80%); }
.page-hero.has-img .page-hero-in { max-inline-size: var(--wrap, 1200px); }
.page-hero.has-img .page-hero-in > * { max-inline-size: min(560px, 52%); }
.page-hero.has-img h1 { color: #fff; }
.page-hero.has-img .lede { color: rgba(255,255,255,.82); }
.page-hero.has-img .crumbs, .page-hero.has-img .crumbs a { color: rgba(255,255,255,.7); }
.page-hero.has-img .crumbs a:hover { color: #fff; }
.page-hero.has-img .crumbs li + li::before { color: rgba(255,255,255,.35); }
@media (max-width: 860px) {
  .page-hero.has-img { align-items: end; min-block-size: 0; padding-block-start: 52vw; }
  .page-hero.has-img .ph-bg { block-size: 62vw; inset-block-end: auto; }
  .page-hero.has-img::before, html[dir="ltr"] .page-hero.has-img::before {
    background: linear-gradient(to bottom, rgba(16,34,74,0) 0, rgba(16,34,74,0) 30vw, rgba(16,34,74,1) 62vw); }
  .page-hero.has-img .page-hero-in > * { max-inline-size: 100%; }
}
/* Desktop: photo sits on the far side so its subject stays clear of the headline */
@media (min-width: 861px) {
  .page-hero.has-img .ph-bg { inset-inline-start: auto; inset-inline-end: 0; inline-size: 66%; }
  .page-hero.has-img::before { background: linear-gradient(to left, rgba(16,34,74,1) 0%, rgba(16,34,74,1) 34%, rgba(16,34,74,.75) 42%, rgba(16,34,74,.25) 54%, rgba(16,34,74,0) 64%); }
  html[dir="ltr"] .page-hero.has-img::before { background: linear-gradient(to right, rgba(16,34,74,1) 0%, rgba(16,34,74,1) 34%, rgba(16,34,74,.75) 42%, rgba(16,34,74,.25) 54%, rgba(16,34,74,0) 64%); }
}

/* Urgent strip: heading | symptoms | "go to emergency" box */
.urgent-wide { grid-template-columns: auto minmax(0, 1fr) minmax(0, 300px); gap: 1.25rem 2rem; padding: 1.5rem 1.75rem; }
.urgent-wide ul { grid-template-columns: repeat(2, minmax(0, max-content)); gap: .5rem 2rem; }
.urgent-wide .urgent-go { display: flex; align-items: center; gap: .7rem; margin: 0; padding: 1rem 1.25rem; border-radius: var(--r);
  background: var(--alert); color: #fff; font-family: var(--display); font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.urgent-wide .urgent-go svg { inline-size: 28px; block-size: 28px; flex: none; }
@media (max-width: 1020px) { .urgent-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); } .urgent-wide h2 { grid-column: 1 / -1; } .urgent-wide ul { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .urgent-wide { grid-template-columns: 1fr; } }
.urgent-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; }
.urgent-wide h2 { grid-column: 1 / -1; }
.urgent-wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1020px) { .urgent-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); } .urgent-wide ul { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .urgent-wide { grid-template-columns: 1fr; } }
.urgent-wide { grid-template-columns: minmax(0, 1fr) max-content; }
.urgent-wide .urgent-go { white-space: nowrap; }
@media (max-width: 1020px) { .urgent-wide { grid-template-columns: minmax(0, 1fr) max-content; } }
@media (max-width: 700px) { .urgent-wide { grid-template-columns: 1fr; } .urgent-wide .urgent-go { font-size: clamp(.95rem, 4.2vw, 1.15rem); justify-content: center; padding-inline: .9rem; } }
@media (max-width: 700px) { .urgent-wide .urgent-go { white-space: normal; } }
@media (max-width: 700px) { html[lang="ar"] .urgent-wide .urgent-go { white-space: nowrap; font-size: clamp(.85rem, 4vw, 1.15rem); } .urgent-wide .urgent-go svg { inline-size: 24px; block-size: 24px; } }
/* Red box centred vertically in the whole urgent panel */
@media (min-width: 701px) {
  .urgent-wide h2 { grid-column: 1; grid-row: 1; }
  .urgent-wide ul { grid-column: 1; grid-row: 2; }
  .urgent-wide .urgent-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* Mobile and tablet: header always pinned to the top while scrolling */
@media (max-width: 1079px) {
  .site-header { position: fixed; inset-inline: 0; top: 0; padding-block-start: env(safe-area-inset-top, 0px); background: rgba(255,255,255,.97); }
  body { padding-block-start: calc(89px + env(safe-area-inset-top, 0px)); }
  :target, [id] { scroll-margin-top: 100px; }
}
@media (max-width: 1079px) { .nav a.nav-book, .nav a.nav-book:hover { color: #fff; background: var(--navy); justify-content: center; font-weight: 600; } }

/* Contact: map card */
.map-card { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.map-img img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 52%; display: block; transition: transform .4s; }
.map-img:hover img { transform: scale(1.03); }
.map-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.25rem; padding: 1.1rem 1.25rem; background: var(--navy-deep); }
.map-info b { display: block; color: #fff; font-family: var(--display); }
.map-info span { color: var(--on-dark-muted); font-size: var(--step--1); }
.map-row { margin-block-start: clamp(1.5rem, 3vw, 2rem); }
.map-row .map-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.map-row .map-img { aspect-ratio: auto; min-block-size: 320px; }
.map-row .map-img img { object-position: 34% 52%; }
.map-row .map-info { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.1rem; padding: 1.75rem; }
.map-row .map-info b { font-size: var(--step-1); margin-block-end: .3rem; }
@media (max-width: 760px) { .map-row .map-card { grid-template-columns: 1fr; } .map-row .map-img { min-block-size: 0; aspect-ratio: 16 / 10; } .map-row .map-info { padding: 1.25rem; } }
/* Urgent symptoms: each on one line */
@media (min-width: 701px) {
  .urgent-wide li { white-space: nowrap; }
  .urgent-wide ul { grid-template-columns: repeat(2, max-content); column-gap: 2.5rem; }
}
@media (min-width: 701px) and (max-width: 1100px) { .urgent-wide ul { grid-template-columns: max-content; } }
@media (min-width: 701px) and (max-width: 1199px) {
  .urgent-wide ul { grid-template-columns: max-content; }
  .urgent-wide h2 { grid-column: 1 / -1; grid-row: 1; }
  .urgent-wide .urgent-go { grid-row: 2; }
}
@media (min-width: 1200px) { .urgent-wide ul { grid-template-columns: repeat(2, max-content); } }
@media (max-width: 900px) {
  .urgent-wide { grid-template-columns: 1fr; }
  .urgent-wide h2, .urgent-wide ul, .urgent-wide .urgent-go { grid-column: 1; grid-row: auto; }
  .urgent-wide .urgent-go { justify-self: start; }
}
@media (max-width: 700px) { .urgent-wide .urgent-go { justify-self: stretch; } }

/* ------------------------------------------------------------ Arabic typeface: GE SS Two
   Bold (700) for the main headlines, Light (300) for everything else.
   Font files: assets/fonts/ge-ss-two-light.woff2 and ge-ss-two-bold.woff2 (licensed commercial font). */
@font-face { font-family: "GE SS Two"; font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+0020-002F, U+003A-0040, U+005B-0060, U+007B-007E, U+00A0, U+00AB, U+00BB;
  src: url("../fonts/ge-ss-two-light.woff2") format("woff2"); }
@font-face { font-family: "GE SS Two"; font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+0020-002F, U+003A-0040, U+005B-0060, U+007B-007E, U+00A0, U+00AB, U+00BB;
  src: url("../fonts/ge-ss-two-bold.woff2") format("woff2"); }
/* Latin letters and the digits 0-9 are not taken from GE SS Two (it has no Latin letters and turns 0-9 into
   Arabic-Indic numerals), so phone numbers, ratings and abbreviations like PSA stay in IBM Plex Sans Arabic. */
html[lang="ar"] {
  --display: "GE SS Two", "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "GE SS Two", "IBM Plex Sans Arabic", "Readex Pro", system-ui, Tahoma, sans-serif;
}
html[lang="ar"] body, html[lang="ar"] body * { font-family: var(--body); font-weight: 300; }
html[lang="ar"] h1, html[lang="ar"] h2 { font-family: var(--display); font-weight: 700; }
html[lang="ar"] h1 *, html[lang="ar"] h2 * { font-weight: 700; }
.g-review, .g-review * { white-space: nowrap; }
@media (max-width: 420px) { .g-review { gap: .5rem; padding-inline: .9rem; font-size: .88rem; } }
/* Symptom boxes: width follows the label so every label fits on two lines */
@media (min-width: 1080px) {
  .quick-list { display: flex; gap: .5rem; }
  .quick-list li { flex: 1 1 auto; min-width: 0; }
  .quick-list li:nth-child(2), .quick-list li:nth-child(3) { flex-grow: 1.6; }
  .quick-list a { block-size: 100%; }
  .quick-list span:not(.ic) { text-wrap: balance; }
}
@media (min-width: 1080px) {
  .quick-list li { flex: 1 1 0; }
  .quick-list li:nth-child(2) { flex-grow: 1.3; }
  .quick-list li:nth-child(3) { flex-grow: 1.2; }
  .quick-list li:nth-child(4) { flex-grow: 1.1; }
}
@media (min-width: 1080px) {
  .quick-list li, .quick-list li:nth-child(n) { flex: 1 1 0; }
  .quick-list span:not(.ic) { text-wrap: wrap; }
}

/* Symptom finder: equal cards in a neat grid, symptom on top, link at the bottom */
.finder { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; align-items: stretch; }
.finder li { display: flex; }
.finder a { flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 1rem; padding: 1.15rem 1.2rem; min-block-size: 150px; }
.finder .q { font-family: var(--display); font-weight: 500; color: var(--navy); }
.finder .to { white-space: normal; padding-block-start: .75rem; border-block-start: 1px solid var(--line); justify-content: space-between; inline-size: 100%; }
.finder .to svg { flex: none; }
@media (max-width: 1079px) { .finder { grid-template-columns: repeat(2, minmax(0, 1fr)); } .finder a { min-block-size: 0; } }
@media (max-width: 600px) { .finder { grid-template-columns: 1fr; } }
@media (min-width: 1080px) { .finder .to { min-block-size: calc(3em + .75rem); align-items: center; } .finder .q { flex: 1; } }
.page-hero .ph-bg.flip { transform: scaleX(-1); }

/* Doctor name tag on the home hero photo (Arabic) */
.doc-tag { position: absolute; z-index: 2; inset-block-end: clamp(1.25rem, 3vw, 2rem); inset-inline-end: clamp(1rem, 3vw, 2rem);
  display: grid; gap: .2rem; max-inline-size: min(360px, 80%); padding: .85rem 1.1rem; border-radius: var(--r);
  background: rgba(255,255,255,.94); border-inline-start: 4px solid var(--teal); box-shadow: 0 10px 30px rgba(8,20,48,.25); color: var(--navy); }
.doc-tag b { font-size: 1.15rem; color: var(--navy); }
.doc-tag span { font-size: .92rem; line-height: 1.5; color: var(--ink); }
html[lang="ar"] .doc-tag b { font-weight: 700; }
@media (max-width: 860px) { .doc-tag { inset-block-end: auto; inset-block-start: 1rem; inset-inline-end: 1rem; max-inline-size: calc(100% - 2rem); } }

/* Privacy policy and terms of use */
.legal-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.legal-toc { position: sticky; top: calc(110px + env(safe-area-inset-top, 0px)); display: grid; gap: .75rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.legal-toc b { color: var(--navy); font-family: var(--display); }
.legal-toc ol { list-style: none; display: grid; gap: .15rem; counter-reset: toc; margin: 0; padding: 0; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: .5rem; padding: .3rem .4rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--step--1); line-height: 1.45; }
.legal-toc a::before { content: counter(toc) "."; color: var(--teal-ink); min-inline-size: 1.4em; }
.legal-toc a:hover { background: var(--mist); color: var(--navy); }
.legal { max-width: 74ch; gap: 0; counter-reset: sec; }
.legal-intro p { font-size: var(--step-1); color: var(--ink); line-height: 1.75; margin: 0 0 1.5rem; }
.legal-sec { counter-increment: sec; padding-block: 1.5rem; border-block-start: 1px solid var(--line); scroll-margin-top: 110px; display: grid; gap: .8rem; }
.legal-sec h2 { font-size: var(--step-2); display: flex; gap: .6rem; align-items: baseline; }
.legal-sec h2::before { content: counter(sec); font-size: .7em; color: var(--teal-ink); min-inline-size: 1.2em; }
.legal-sec p { line-height: 1.8; margin: 0; }
.legal-sec ul { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: .45rem; line-height: 1.75; }
.legal-sec li::marker { color: var(--teal); }
.legal-sec a { color: var(--teal-ink); }
@media (max-width: 900px) { .legal-wrap { grid-template-columns: 1fr; } .legal-toc { position: static; } }
.legal-toc a::before { content: none; }
.legal-toc ol a::before { content: counter(toc) "."; }
.legal-toc .fine a { display: inline; padding: 0; color: var(--teal-ink); text-decoration: underline; font-size: inherit; }

/* 404 page */
.nf { background: var(--mist); }
.nf-in { min-block-size: calc(100vh - 89px - 1px); display: grid; align-content: center; justify-items: center; text-align: center; gap: 1.1rem; padding-block: clamp(3rem, 8vw, 6rem); }
.nf-code { font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--teal); letter-spacing: .04em; margin: 0; }
.nf h1 { font-size: var(--step-3); }
.nf .lede { max-width: 56ch; margin-inline: auto; }
.nf-links { list-style: none; padding: 0; margin: .75rem 0 .5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; inline-size: min(100%, 860px); }
.nf-links a { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; transition: border-color .2s; }
.nf-links a:hover { border-color: var(--teal); }
.nf-links .ic { inline-size: 36px; block-size: 36px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); display: grid; place-items: center; flex: none; }
.nf-links .ic svg { inline-size: 18px; block-size: 18px; }
.nf-links span:not(.ic) { flex: 1; text-align: start; }
.nf-links a > svg { inline-size: 16px; block-size: 16px; color: var(--teal-ink); flex: none; }
[dir="rtl"] .nf-links a > svg { transform: scaleX(-1); }
.nf .btn-row { justify-content: center; }
@media (max-width: 760px) { .nf-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .nf-links { grid-template-columns: 1fr; } }
html[lang="ar"] .nf-code { font-weight: 700; }

/* Author link on articles */
.author b a { color: inherit; text-decoration: none; }
.author b a:hover { color: var(--teal-ink); text-decoration: underline; }
/* Footer policy links wrap neatly */
.foot-legal { line-height: 1.9; }
/* HTML sitemap */
.smap { columns: 3 280px; column-gap: clamp(2rem, 4vw, 3rem); }
.smap-group { break-inside: avoid; margin-block-end: 2rem; display: grid; gap: .6rem; }
.smap-group h2 { font-size: var(--step-1); padding-block-end: .5rem; border-block-end: 2px solid var(--teal-soft); }
.smap-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.smap-group a { color: var(--ink); text-decoration: none; line-height: 1.5; }
.smap-group a:hover { color: var(--teal-ink); text-decoration: underline; }
/* Footer bottom: copyright + emergency note on one line, policy links on their own line */
.foot-bottom .foot-legal { flex-basis: 100%; order: 3; }
/* Language switch: "EN" / "AR" optically centred in the circle */
.lang, html[lang="ar"] .lang { font-family: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif; font-weight: 600; line-height: 1; padding: 0; }
html[lang="en"] .lang { font-family: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif; }
.foot-credit { white-space: nowrap; }

/* Cookie consent bar */
.cookie-bar { position: fixed; z-index: 60; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-inline-size: 760px;
  display: flex; align-items: center; gap: 1rem 1.25rem; padding: 1rem 1.25rem; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(8,20,48,.18); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1; font-size: var(--step--1); line-height: 1.6; color: var(--ink); }
.cookie-bar a { color: var(--teal-ink); }
.cookie-btns { display: flex; gap: .5rem; flex: none; }
.cookie-btns .btn { min-height: 40px; padding-inline: 1.2em; font-size: .92rem; }
@media (max-width: 760px) {
  .cookie-bar { flex-direction: column; align-items: stretch; inset-inline: 10px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: .9rem 1rem; }
  .cookie-btns .btn { flex: 1; }
}

/* ---------------------------------------------------- touch & small-screen polish */
@media (max-width: 1079px) {
  /* comfortable tap targets for footer and policy links */
  .foot-grid ul { gap: .1rem; }
  .foot-grid ul a { display: inline-block; padding-block: .45rem; }
  .foot-legal a { display: inline-block; padding-block: .3rem; }
  .crumbs a { display: inline-block; padding-block: .3rem; }
}
.sg-size small { font-size: max(.8em, 12px); }
/* very small phones (≤360px): keep logo, language switch and menu button on one line */
@media (max-width: 360px) {
  .header-in { gap: .5rem; }
  .brand img { block-size: 38px; }
  .header-actions { gap: .4rem; }
  .lang { min-inline-size: 40px; block-size: 40px; }
  .menu-btn { inline-size: 42px; block-size: 42px; }
}
@media (max-width: 1079px) { .smap-group ul { gap: .1rem; } .smap-group a { display: inline-block; padding-block: .4rem; } }
/* Tablet: even grids, no orphan cards */
@media (min-width: 561px) and (max-width: 1079px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* iPhone: form fields at 16px so Safari doesn't zoom in when a field is tapped */
.field input, .field select, .field textarea, input, select, textarea { font-size: max(16px, 1em) !important; }
/* Phones held sideways: slimmer pinned header so more of the page shows */
@media (max-width: 1079px) and (max-height: 500px) {
  .header-in { min-height: 60px; }
  .brand img { block-size: 34px; }
  .lang, .menu-btn { inline-size: 38px; min-inline-size: 38px; block-size: 38px; }
  body { padding-block-start: calc(61px + env(safe-area-inset-top, 0px)); }
  .mbar { padding-block: .4rem calc(.4rem + env(safe-area-inset-bottom, 0px)); }
  .mbar .btn { min-height: 40px; }
}
@media (max-width: 1079px) and (max-height: 500px) { .hero-media { block-size: 55vh; } .page-hero.has-img { padding-block-start: 30vw; } .page-hero.has-img .ph-bg { block-size: 40vw; } }
.appt-done h2.done-h { font-size: var(--step-1); }

/* Accessibility (WCAG AA): white text on teal needs a slightly deeper teal to be readable */
:root { --teal-strong: #11808f; }
.btn-primary { background: var(--teal-strong); }
.btn-primary:hover { background: #0b6a77; }
.cta-band { background: var(--teal-strong); }
.steps li::before { background: var(--teal-strong); }
.cta-band p { color: #fff; }

/* Thank-you page */
.ty { background: var(--mist); }
.ty-in { display: grid; justify-items: center; text-align: center; gap: 1.1rem; padding-block: clamp(3rem, 7vw, 5rem); }
.ty-ok { inline-size: 72px; block-size: 72px; border-radius: 50%; background: var(--teal-strong); color: #fff; display: grid; place-items: center; }
.ty-ok svg { inline-size: 36px; block-size: 36px; }
.ty h1 { font-size: var(--step-3); }
.ty .lede { max-width: 54ch; margin-inline: auto; }
.ty-steps { list-style: none; counter-reset: t; padding: 0; margin: .25rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; inline-size: min(100%, 640px); }
.ty-steps li { counter-increment: t; display: grid; gap: .3rem; justify-items: start; text-align: start; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.ty-steps li::before { content: counter(t); inline-size: 30px; block-size: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); font-family: var(--display); font-weight: 600; }
.ty-steps b { color: var(--navy); font-family: var(--display); }
.ty-steps span { color: var(--muted); font-size: var(--step--1); }
.ty-alert { display: flex; gap: .6rem; align-items: center; padding: .8rem 1rem; border-radius: var(--r-sm); background: #fff6e5; color: #7a4b00; text-align: start; }
.ty-alert[hidden] { display: none; }
.ty-alert svg { inline-size: 20px; block-size: 20px; flex: none; }
.ty .btn-row { justify-content: center; }
.ty-pulse { box-shadow: 0 0 0 0 rgba(17,128,143,.5); animation: tyPulse 1.6s infinite; }
@keyframes tyPulse { 70% { box-shadow: 0 0 0 14px rgba(17,128,143,0); } 100% { box-shadow: 0 0 0 0 rgba(17,128,143,0); } }
@media (prefers-reduced-motion: reduce) { .ty-pulse { animation: none; } }
@media (max-width: 560px) { .ty-steps { grid-template-columns: 1fr; } }
/* Footer social icons */
.social { display: flex; gap: .6rem; }
.social a { inline-size: 44px; block-size: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.social svg { inline-size: 20px; block-size: 20px; }
