/* ============================================================
   Al Diyafa Medical Group — Trusted-Clinical redesign
   Phase 2 mockup stylesheet. All components, no framework.
   Author: Quasix LLC · 2026-04-22
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
/* Direction B — Modern healthcare. Locked 2026-05-09.
   Cool slate ink scale (replaces navy) + deep emerald primary CTA + brighter action green
   so the two greens differentiate ("trust green" vs "live green"). */
:root {
  /* Ink — cool slate (was navy) */
  --ink:          #1A1D24;
  --ink-80:       #3A4150;
  --ink-60:       #646A78;
  --ink-40:       #9CA1AC;
  --ink-20:       #CDD0D7;
  --ink-10:       #E2E5EA;
  --ink-05:       #F1F2F5;

  /* Primary CTA — deep emerald (NEW, separated from --ink so headings stay slate but buttons go green) */
  --cta:          #0E5C4A;
  --cta-hover:    #0A4A3B;
  --cta-soft:     #D7EBE1;     /* tinted bg for icon tiles inside cards */

  /* Brand accent — teal (still used for inline links, info callouts, "trust" elements like DHA badge) */
  --teal:         #0D7A8A;
  --teal-hover:   #095F6C;
  --teal-soft:    #E4F1F3;

  /* Action green — bumped slightly brighter so it reads as "live/active" vs the deeper "trustworthy" --cta */
  --action:       #0E7C45;     /* "Open now" dot, "Learn more →" arrows, success states */
  --action-hover: #0A6038;
  --action-soft:  #DCF0E5;
  --action-fill:  #2FD18A;     /* bright mint — fills/icons only, never body text */

  /* Surfaces */
  --canvas:       #FFFFFF;
  --surface:      #F7F9FC;
  --surface-alt:  #EEF2F8;

  /* Signal */
  --alert:        #B3261E;
  --warning:      #8A5B00;
  --info:         var(--teal);

  /* Shadow — rgba uses the new slate ink so shadows feel coherent with text */
  --shadow-sm:   0 1px 2px rgba(26, 29, 36, .06);
  --shadow-md:   0 6px 20px rgba(26, 29, 36, .08);
  --shadow-lg:   0 18px 40px rgba(26, 29, 36, .10);
  /* Modern layered card shadow — used by .card hover states. Cleaner than a single drop shadow. */
  --shadow-card:        0 1px 2px rgba(26, 29, 36, .04), 0 4px 16px rgba(26, 29, 36, .06);
  --shadow-card-hover:  0 4px 8px rgba(26, 29, 36, .05), 0 12px 28px rgba(26, 29, 36, .10);

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui:      "Outfit", var(--font-body);

  /* Spacing (8px grid) */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 200ms;
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-80);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--teal-hover); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 0 0 var(--s-4);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p  { margin: 0 0 var(--s-4); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s-3);
  display: inline-block;
}

.lead { font-size: 1.15rem; color: var(--ink-80); max-width: 60ch; }

/* ---------- 3. Layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.wrap-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--s-5); }
section { padding: var(--s-9) 0; }
section.tight { padding: var(--s-7) 0; }
@media (max-width: 760px) { section { padding: var(--s-7) 0; } }

.grid { display: grid; gap: var(--s-5); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

/* ---------- 4. Top bar + nav ---------- */
.topbar {
  background: var(--ink);
  color: var(--ink-20);
  font-family: var(--font-ui);
  font-size: .82rem;
  padding: var(--s-2) 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.topbar a { color: #E3E6EC; }
.topbar a:hover { color: #fff; }
.topbar-group { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; }
.topbar-group .sep { color: var(--ink-60); }

.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--ink-10);
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--nav-h);
}
.nav-logo { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.1; }
.nav-logo-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 700; font-size: .78rem; letter-spacing: .06em; flex-shrink: 0; }
.nav-logo-mark.red { background: #B3261E; }
/* Real ADMMC logo */
.nav-logo-img { width: 46px; height: auto; flex-shrink: 0; display: block; }
/* Footer is now light gray (Direction B Option 1) — logo renders as-is, no invert. */
.footer .nav-logo-img { width: 40px; }
.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-text em { font-family: var(--font-ui); font-style: normal; font-weight: 500; font-size: .7rem; color: var(--ink-60); letter-spacing: .14em; text-transform: uppercase; }
.topbar-group { flex-wrap: wrap; }
.topbar-group > * + * { margin-left: 0; }
.topbar .sep { opacity: .4; }

/* Testimonial stars */
.stars { display: inline-flex; gap: 2px; color: #E8A72E; }
.stars [data-lucide], .stars .star-filled { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; }

/* Hero image improvement */
.hero-image { aspect-ratio: 5/6; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-05); box-shadow: var(--shadow-lg); position: relative; }
@media (max-width: 900px) { .hero-image { aspect-ratio: 16/10; max-height: 400px; } }

/* Proof row dividers */
.hero-proof > * + * { position: relative; padding-left: var(--s-5); }
.hero-proof > * + *::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--ink-10); }
@media (max-width: 520px) {
  .hero-proof { gap: var(--s-4); }
  .hero-proof > * + * { padding-left: var(--s-4); }
}

/* Service card meta row tighter */
.service-card .meta span { white-space: nowrap; }

/* Filled star color fix for stat band */
.stat-band .stat .n [data-lucide] { width: 28px; height: 28px; vertical-align: -4px; }
.nav-links { display: flex; gap: var(--s-5); align-items: center; font-family: var(--font-ui); font-size: .95rem; }
.nav-links a { color: var(--ink-80); font-weight: 500; }
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; display: block; height: 2px; background: var(--teal); border-radius: 2px; margin-top: 2px; }
.nav-cta { display: flex; gap: var(--s-3); align-items: center; }

/* Language dropdown — button shows CURRENT language; menu reveals on click. */
.lang-dropdown { position: relative; }
.lang-toggle {
  display: inline-flex; gap: 6px; align-items: center;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-10);
  color: var(--ink-80);
  font-family: var(--font-ui); font-size: .85rem; font-weight: 500;
  background: var(--canvas);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lang-toggle:hover { border-color: var(--ink-20); }
.lang-toggle[aria-expanded="true"] { border-color: var(--cta); background: var(--ink-05); }
.lang-toggle .lang-chevron {
  width: 12px !important; height: 12px !important;
  transition: transform var(--dur) var(--ease);
}
.lang-toggle[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--canvas);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(26, 29, 36, .12), 0 2px 6px rgba(26, 29, 36, .06);
  z-index: 50;
}
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu[hidden] { display: none; }

.lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-80);
  text-decoration: none;
  font-family: var(--font-ui); font-size: .9rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-item:hover { background: var(--ink-05); color: var(--ink); }
.lang-item.is-current {
  color: var(--cta);
  font-weight: 600;
  background: var(--cta-soft);
}
.lang-item.is-current:hover { background: var(--cta-soft); }
.lang-item-check { width: 16px !important; height: 16px !important; color: var(--cta); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--ink-10); border-radius: var(--r-sm); background: var(--canvas); place-items: center; cursor: pointer; }
.nav-toggle [data-lucide] { width: 22px; height: 22px; color: var(--ink-80); }
@media (max-width: 960px) {
  /* Mobile: hamburger replaces inline nav links; menu opens as a panel below the sticky header */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--ink-10);
    box-shadow: var(--shadow-md);
    padding: var(--s-3);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    z-index: 49;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 14px 12px;
    font-size: 1rem;
    border-radius: var(--r-sm);
    color: var(--ink-80);
  }
  .nav-links a:hover, .nav-links a.active { background: var(--ink-05); color: var(--ink); }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: grid; }
  .nav-toggle[aria-expanded="true"] { background: var(--ink-05); border-color: var(--cta); }
  .nav-cta .btn.ghost { display: none; }
}
/* Small phones: tighten the nav row so logo + lang + book + hamburger all fit */
@media (max-width: 560px) {
  .nav-logo-text { display: none; }
  .nav-cta { gap: var(--s-2); }
  .nav-cta .btn.sm { padding: 10px 14px; font-size: .85rem; min-height: 40px; }
  .lang-toggle { padding: 6px 10px; font-size: .8rem; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 22px;
  min-height: 48px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--cta);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--cta-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn.secondary { background: var(--action); color: #fff; }
.btn.secondary:hover { background: var(--action-hover); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink-20); }
.btn.ghost:hover { background: var(--ink-05); color: var(--ink); box-shadow: none; }
/* Outline = white-filled emerald-bordered pill with subtle shadow.
   Coordinated pair with the primary CTA — looks designed, not "secondary because it's quieter". */
.btn.outline {
  background: var(--canvas);
  color: var(--cta);
  border-color: var(--cta);
  box-shadow: 0 1px 2px rgba(14, 92, 74, .08);
}
.btn.outline:hover { background: var(--cta); color: #fff; box-shadow: var(--shadow-md); }
/* Official WhatsApp brand green */
.btn.whatsapp { background: #25D366; color: #fff; }
.btn.whatsapp:hover { background: #1EBE5A; color: #fff; }
.btn.sm { padding: 10px 16px; min-height: 40px; font-size: .88rem; }
.btn.lg { padding: 18px 28px; min-height: 56px; font-size: 1rem; }
.btn.block { width: 100%; }

/* ---------- 6. Pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 4px 12px;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: var(--r-pill);
  font-family: var(--font-ui); font-size: .78rem; font-weight: 500;
  letter-spacing: .02em;
}
.pill.action { background: var(--action-soft); color: var(--action); }
.pill.alert { background: #FDEDEB; color: var(--alert); }
.pill.plain { background: var(--ink-05); color: var(--ink-80); }
.pill svg { width: 14px; height: 14px; }

/* ---------- 7. Cards ---------- */
/* Modern layered shadow — softer at rest, more lift on hover. Stripe/Linear aesthetic.
   The shadow is doing the visual work, the border is just a hairline for crisp edges. */
.card {
  background: var(--canvas);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--ink-20); }

.card-link { color: inherit; display: block; height: 100%; }
.card-link:hover { color: inherit; }

/* Service card */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .icon {
  width: 54px; height: 54px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal);
  margin-bottom: var(--s-4);
}
.service-card .icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.service-card h3 { margin-bottom: var(--s-2); font-family: var(--font-display); font-size: 1.25rem; }
.service-card p { font-size: .95rem; color: var(--ink-60); margin-bottom: var(--s-4); flex: 1; }
.service-card .meta { display: flex; gap: var(--s-3); font-family: var(--font-ui); font-size: .82rem; color: var(--ink-60); margin-bottom: var(--s-4); flex-wrap: wrap; }
.service-card .meta span { display: inline-flex; gap: 4px; align-items: center; }
.service-card .cta { display: flex; align-items: center; gap: var(--s-2); color: var(--action); font-family: var(--font-ui); font-weight: 600; font-size: .92rem; }
.service-card .cta svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.service-card:hover .cta svg { transform: translateX(3px); }

/* Color-coded specialty tints */
.svc-internal .icon { background: #E6F0F5; color: #1F5770; }
.svc-gp       .icon { background: #E4F2EC; color: #17663E; }
.svc-paeds    .icon { background: #FDEEE3; color: #B65513; }
.svc-gyn      .icon { background: #F3E7F2; color: #853D7B; }
.svc-homeo    .icon { background: #EAF0E1; color: #506B2A; }
.svc-physio   .icon { background: #FCEFE2; color: #9A5516; }
.svc-dent     .icon { background: #E9F4FB; color: #1E678E; }
.svc-lab      .icon { background: #FBECE4; color: #9A4515; }
.svc-iv       .icon { background: #E7ECFA; color: #27448F; }
.svc-vac      .icon { background: #FEF2E5; color: #8C5612; }

/* Doctor card */
.doc-card { padding: 0; overflow: hidden; }
.doc-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--ink-05); }
.doc-card-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.doc-card h3 { margin-bottom: 2px; font-family: var(--font-display); font-size: 1.2rem; }
.doc-card .credentials { font-family: var(--font-ui); font-size: .82rem; color: var(--ink-60); margin-bottom: var(--s-3); display: block; }
.doc-card .specialty { font-size: .9rem; color: var(--teal); margin-bottom: var(--s-3); }
.doc-card .langs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: var(--s-4); }

/* Location card */
.loc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.loc-card .map { aspect-ratio: 16/10; background: var(--ink-05); position: relative; overflow: hidden; }
.loc-card .map img { width: 100%; height: 100%; object-fit: cover; }
.loc-card .map-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); width: 36px; height: 36px; background: var(--alert); border-radius: 50% 50% 50% 0; rotate: -45deg; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.loc-card-body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; }
.loc-card h3 { margin-bottom: var(--s-3); }
.loc-card .addr { color: var(--ink-60); font-size: .95rem; margin-bottom: var(--s-3); }
.loc-card .hours { font-family: var(--font-ui); font-size: .88rem; color: var(--ink-80); margin-bottom: var(--s-4); display: flex; flex-direction: column; gap: 2px; }
.loc-card .hours .open { color: var(--action); font-weight: 600; }
.loc-card .actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: auto; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-8) 0 var(--s-9);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--teal-soft) 0%, transparent 60%),
    radial-gradient(800px 400px at -10% 100%, var(--action-soft) 0%, transparent 55%),
    var(--canvas);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-8); align-items: center; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-inner > .hero-image { order: -1; aspect-ratio: 4/3; max-height: 320px; margin: 0 auto; max-width: 480px; width: 100%; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero .lead { font-size: 1rem; }
  .hero-ctas .btn.lg { flex: 1 1 100%; justify-content: center; }
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.hero .since { display: inline-flex; gap: var(--s-2); align-items: center; color: var(--teal); font-family: var(--font-ui); font-weight: 500; }
.hero-image { aspect-ratio: 5/6; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-05); box-shadow: var(--shadow-lg); position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-5); }
.hero-proof { display: flex; gap: var(--s-6); margin-top: var(--s-6); flex-wrap: wrap; }
.hero-proof div { font-family: var(--font-display); color: var(--ink); }
.hero-proof .big { font-size: 1.7rem; font-weight: 600; display: block; line-height: 1; margin-bottom: 4px; }
.hero-proof .label { font-family: var(--font-body); font-size: .85rem; color: var(--ink-60); font-weight: 400; }

/* Page hero (internal pages) */
.page-hero {
  padding: var(--s-7) 0 var(--s-6);
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
  border-bottom: 1px solid var(--ink-10);
}
.page-hero .breadcrumb {
  font-family: var(--font-ui); font-size: .85rem;
  color: var(--ink-60);
  margin-bottom: var(--s-4);
  display: flex; gap: var(--s-2); align-items: center;
}
.page-hero .breadcrumb .sep { color: var(--ink-40); }
.page-hero .breadcrumb a { color: var(--ink-60); }
.page-hero .breadcrumb a:hover { color: var(--ink); }
.page-hero .breadcrumb .here { color: var(--ink-80); font-weight: 500; }
.page-hero h1 { margin-bottom: var(--s-3); }
.page-hero .lead { color: var(--ink-60); }

/* ---------- 9. Insurance / trust bar ---------- */
.trust-bar { background: var(--surface); border-top: 1px solid var(--ink-10); border-bottom: 1px solid var(--ink-10); padding: var(--s-5) 0; }
.trust-bar h4 { text-align: center; color: var(--ink-60); font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 500; margin-bottom: var(--s-4); }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: var(--s-7); flex-wrap: wrap; opacity: .75; }
.trust-logos .logo { font-family: var(--font-display); font-weight: 600; color: var(--ink-60); font-size: 1.1rem; letter-spacing: -.01em; }

/* Full 19-insurer grid variant */
.trust-bar-grid { padding: var(--s-7) 0 var(--s-7); }
.trust-bar-grid .trust-head { text-align: center; max-width: 60ch; margin: 0 auto var(--s-6); }
/* Insurance trust grid — logo-first layout with text-wordmark fallback.
   Tiles have a soft card feel + lift on hover. Logos render grayscale-friendly via desaturation. */
.trust-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 1100px) { .trust-logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .trust-logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .trust-logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Tiles are informational badges (not links) — full-color logos at rest, no hover affordance.
   Subtle border + light shadow keeps them visually present without implying interactivity.
   Min-height bumped so logos with intrinsic whitespace (DubaiCare, SAICO, Al Madallah) still read clearly. */
.ins-tile {
  position: relative;
  padding: var(--s-3) var(--s-3);
  border: 1px solid var(--ink-10);
  background: var(--canvas);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 110px;
  box-shadow: 0 1px 2px rgba(26, 29, 36, .03);
}

/* Logo image: full color, larger size envelope. width:100% lets the logo fill horizontally
   (so PNGs with built-in whitespace can scale up via object-fit), capped at 64px tall
   so very tall logos don't dominate. */
.ins-tile.has-logo img {
  max-height: 64px;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Text wordmark fallback: refined typographic treatment that reads as intentional, not placeholder. */
.ins-tile.no-logo .ins-wordmark {
  font-family: var(--font-ui);
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
  text-align: center;
  line-height: 1.2;
}

/* Optional small note under the tile (e.g. "GP only" for FMC) */
.ins-tile .ins-note {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink-60);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
}

/* Legacy <small> support if any existing markup uses it */
.ins-tile small { display: block; font-size: .72rem; color: var(--ink-60); font-weight: 400; margin-top: 2px; }

/* ---------- 10. Stat band ---------- */
.stat-band { padding: var(--s-7) 0; background: var(--ink); color: #fff; }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); text-align: center; }
@media (max-width: 760px) { .stat-band .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat .n { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1; color: #fff; display: block; }
.stat .label { font-family: var(--font-ui); font-size: .88rem; color: var(--ink-20); margin-top: var(--s-2); }

/* ---------- 11. Testimonial ---------- */
.testi {
  background: var(--canvas);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-5) var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
  position: relative;
}
.testi .stars { color: #E8A72E; letter-spacing: 2px; }
.testi blockquote { font-size: .95rem; color: var(--ink-80); margin: 0; line-height: 1.55; font-weight: 400; flex: 1; }
.testi .who { display: flex; gap: var(--s-3); align-items: center; }
.testi .who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testi .who .name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.testi .who .meta { font-size: .82rem; color: var(--ink-60); }

/* Google-style review card */
.google-reviews-head {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--canvas); border: 1px solid var(--ink-10); border-radius: var(--r-md);
  font-family: var(--font-ui);
  margin-bottom: var(--s-5);
}
.google-reviews-head .g-logo { width: 28px; height: 28px; }
.google-reviews-head .rating { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; color: var(--ink); line-height: 1; }
.google-reviews-head .rating-meta { display: flex; flex-direction: column; gap: 2px; }
.google-reviews-head .rating-stars { color: #E8A72E; font-size: .95rem; letter-spacing: 1px; }
.google-reviews-head .rating-label { font-size: .78rem; color: var(--ink-60); }
.google-reviews-head .rating-count { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--ink); line-height: 1; }
.google-reviews-head .rating-sublabel { font-size: .78rem; color: var(--ink-60); font-style: italic; padding-left: var(--s-3); border-left: 1px solid var(--ink-10); }
[dir="rtl"] .google-reviews-head .rating-sublabel { padding-left: 0; padding-right: var(--s-3); border-left: 0; border-right: 1px solid var(--ink-10); }

.testi.google { padding: var(--s-5); }
.testi.google .who-top { display: flex; align-items: center; gap: var(--s-3); }
.testi.google .who-top .avatar-initial {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem;
  color: #fff; flex-shrink: 0;
}
.testi.google .who-top .avatar-initial.c1 { background: #4285F4; }
.testi.google .who-top .avatar-initial.c2 { background: #34A853; }
.testi.google .who-top .avatar-initial.c3 { background: #EA4335; }
.testi.google .who-top .avatar-initial.c4 { background: #FBBC04; }
.testi.google .who-top .avatar-initial.c5 { background: #AA47BC; }
.testi.google .who-top .name-block { flex: 1; min-width: 0; }
.testi.google .who-top .name-block .name { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.testi.google .who-top .name-block .meta { font-size: .82rem; color: var(--ink-60); }
.testi.google .who-top .g-badge { width: 20px; height: 20px; flex-shrink: 0; }
.testi.google blockquote { font-family: var(--font-body); font-style: normal; font-size: .92rem; color: var(--ink-80); }
.testi.google .posted { display: flex; gap: 6px; align-items: center; padding-top: var(--s-3); border-top: 1px solid var(--ink-10); font-size: .78rem; color: var(--ink-60); margin-top: var(--s-2); }
.testi.google .posted img { width: 14px; height: 14px; }

/* ---------- 12. Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.field label { font-family: var(--font-ui); font-size: .88rem; font-weight: 500; color: var(--ink-80); }
.field label .req { color: var(--alert); margin-left: 2px; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-10);
  border-radius: var(--r-md);
  background: var(--canvas);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
}
/* Custom select: native arrow doesn't render the same across browsers, and the default sizing
   on Safari/Firefox can come out narrower than its container. Use a custom chevron + width:100%. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23646A78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}
[dir="rtl"] .field select {
  background-position: left 16px center;
  padding-right: 14px;
  padding-left: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 4px var(--cta-soft);
}
.field textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.field .hint { font-size: .82rem; color: var(--ink-60); }

.consent { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .88rem; color: var(--ink-80); line-height: 1.4; }
.consent input { min-width: 22px; min-height: 22px; margin-top: 2px; accent-color: var(--action); }

/* Choice tiles (for booking flow) */
.choice {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
}
@media (max-width: 720px) { .choice { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .choice { grid-template-columns: 1fr; } }
.choice label {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-4);
  border: 1.5px solid var(--ink-10);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  background: var(--canvas);
}
.choice label:hover { border-color: var(--teal); background: var(--teal-soft); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice input:checked + span { color: var(--action); }
.choice input:checked ~ .choice-title { color: var(--action); }
.choice label:has(input:checked) { border-color: var(--action); background: var(--action-soft); }
.choice .choice-title { font-family: var(--font-ui); font-weight: 600; color: var(--ink); }
.choice .choice-sub { font-size: .85rem; color: var(--ink-60); }
.choice .choice-ic {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--teal-soft);
  color: var(--teal);
  display: grid; place-items: center;
}
.choice .choice-ic svg { width: 22px; height: 22px; }

/* Booking step indicator */
.steps {
  display: flex; gap: var(--s-4); margin-bottom: var(--s-6);
  font-family: var(--font-ui);
}
.steps .step {
  flex: 1; display: flex; gap: var(--s-3); align-items: center;
  padding-bottom: var(--s-3);
  border-bottom: 3px solid var(--ink-10);
  color: var(--ink-40); font-weight: 500; font-size: .92rem;
}
.steps .step.active { border-color: var(--teal); color: var(--ink); }
.steps .step.done { border-color: var(--action); color: var(--action); }
.steps .step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink-10); color: var(--ink-60); display: grid; place-items: center; font-weight: 600; font-size: .82rem; }
.steps .step.active .n { background: var(--teal); color: #fff; }
.steps .step.done .n { background: var(--action); color: #fff; }

/* ---------- 13. FAQ accordion ---------- */
.faq { border-top: 1px solid var(--ink-10); }
.faq details { border-bottom: 1px solid var(--ink-10); padding: var(--s-4) 0; }
.faq summary { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 1.3rem; color: var(--teal); margin-left: var(--s-4); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--teal); }
.faq details p { margin-top: var(--s-3); color: var(--ink-60); }

/* ---------- 14. CTA band — soft-teal light style (matches .inline-cta) ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-soft) 0%, var(--surface) 100%);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-6); align-items: center;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: var(--s-6); } }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--ink-80); }
.cta-band .actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) { .cta-band .actions { justify-content: flex-start; } }

/* Buttons inside CTA band — primary stays navy, outline gets teal tint, WhatsApp stays green */
.cta-band .btn { /* default navy primary works fine on light teal */ }
.cta-band .btn.outline,
.cta-band .btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-40);
}
.cta-band .btn.outline:hover,
.cta-band .btn.ghost:hover {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--ink);
}
.cta-band .btn.whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.cta-band .btn.whatsapp:hover { background: #1EBE5A; }

/* ---------- 15. Footer ---------- */
/* Direction B reskin — Option 1: light gray footer (Stripe / Linear aesthetic).
   Lets the emerald CTAs above carry the brand statement; the footer recedes as supporting cast. */
.footer { background: var(--ink-05); color: var(--ink-80); padding: var(--s-9) 0 var(--s-6); margin-top: var(--s-9); border-top: 1px solid var(--ink-10); }
.footer h4 { color: var(--ink); font-family: var(--font-ui); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: var(--s-4); }
.footer .f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-7); }
@media (max-width: 900px) { .footer .f-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
@media (max-width: 520px) { .footer .f-grid { grid-template-columns: 1fr; } }
.footer a { color: var(--ink-80); display: block; padding: 4px 0; font-size: .92rem; }
.footer a:hover { color: var(--cta); }
.footer .brand { font-family: var(--font-display); color: var(--ink); font-size: 1.25rem; margin-bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-3); }
.footer .about { font-size: .92rem; color: var(--ink-60); max-width: 38ch; }
.footer .legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--ink-10); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: .82rem; color: var(--ink-60); }
.footer .legal a { color: var(--ink-60); display: inline; padding: 0; margin-right: var(--s-4); }
.footer .legal a:hover { color: var(--cta); }

/* ---------- 16. Floating actions ---------- */
.floating-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform var(--dur) var(--ease);
}
.floating-whatsapp:hover { transform: scale(1.06); color: #fff; }
.floating-whatsapp svg { width: 28px; height: 28px; }

/* ---------- 17. Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--s-3); }
.mb-md { margin-bottom: var(--s-5); }
.mb-lg { margin-bottom: var(--s-7); }
.muted { color: var(--ink-60); }
.bg-surface { background: var(--surface); }
.divider { height: 1px; background: var(--ink-10); border: 0; margin: var(--s-7) 0; }

/* Map iframe placeholder */
.map-embed { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--ink-05); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Feature bullet list */
.feature-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.feature-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.feature-list .check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--action-soft); color: var(--action); display: grid; place-items: center; margin-top: 2px; }
.feature-list .check svg { width: 14px; height: 14px; }

/* Avatar stack */
.avatar-stack { display: inline-flex; }
.avatar-stack img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--canvas); object-fit: cover; margin-left: -8px; }
.avatar-stack img:first-child { margin-left: 0; }

/* Print-only helper: hide floating buttons when printing */
@media print { .floating-whatsapp, .nav { display: none; } }

/* ---------- 18. Lucide icon helpers ---------- */
.ico, [data-lucide] { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; vertical-align: middle; }
.ico-sm, .ico-sm[data-lucide] { width: 14px; height: 14px; stroke-width: 2; }
.ico-lg, .ico-lg[data-lucide] { width: 22px; height: 22px; stroke-width: 1.6; }
.ico-xl, .ico-xl[data-lucide] { width: 28px; height: 28px; stroke-width: 1.6; }

/* Topbar and nav icon alignment */
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar [data-lucide] { width: 14px; height: 14px; stroke-width: 2; opacity: .8; }
.lang-toggle [data-lucide] { width: 14px; height: 14px; stroke-width: 2; }

/* Service card icons become Lucide-compatible */
.service-card .icon [data-lucide] { width: 26px; height: 26px; stroke-width: 1.6; }

/* Meta-row icons (service-card .meta) */
.service-card .meta span [data-lucide] { width: 13px; height: 13px; stroke-width: 2; opacity: .75; margin-right: 2px; }

/* Row-label icons (contact cards, service detail sidebar, etc.) */
.row [data-lucide], .loc-card [data-lucide] { flex-shrink: 0; }

/* Status indicator dot */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--action);
  display: inline-block; margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(10,109,61,.15);
}
.status-dot.closed { background: var(--alert); box-shadow: 0 0 0 3px rgba(179,38,30,.15); }

/* Small caption-mark used in location/map cards */
.map-pin-abs {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,31,63,.9);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.map-pin-abs [data-lucide] { width: 22px; height: 22px; stroke-width: 2; color: #fff; }

/* Override old .map-pin block */
.loc-card .map-pin { display: none !important; }

/* Focus visibility */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* Selection */
::selection { background: var(--teal-soft); color: var(--ink); }

/* ---------- Service single — body lead + icon list ---------- */
/* Body lead: restate the service summary at the top of the body section so the framing is
   set right where the structured detail (specialisations / who-for / what-to-expect) begins. */
.svc-body-lead {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-80);
  margin: 0 0 var(--s-7);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--ink-10);
  max-width: 64ch;
}

/* Icon list — replaces the previous "card" treatment.
   Clean 2-column grid, hairline dividers, soft icon tile per row. */
.svc-icon-list {
  list-style: none;
  margin: 0 0 var(--s-7);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--s-6);
}
@media (max-width: 720px) { .svc-icon-list { grid-template-columns: 1fr; } }

.svc-icon-list li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--ink-10);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-80);
  line-height: 1.4;
}
.svc-icon-list li:last-child,
.svc-icon-list li:nth-last-child(2):nth-child(odd) {
  /* Last item (and last item in odd-count grid) — softer look without bottom rule */
}

.svc-icon-list-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cta-soft);
  color: var(--cta);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.svc-icon-list-ic [data-lucide] { width: 18px; height: 18px; stroke-width: 2; }

.svc-icon-list-text {
  font-weight: 500;
  color: var(--ink);
}

/* ==========================================================================
   MOBILE FIXES — added 2026-05-09
   Several templates use INLINE 2-column grids that don't collapse on phones,
   making service / doctor / lab pages unusable. Catch them with class +
   attribute selectors so this is a single CSS bundle and we don't have to
   touch every template.
   Stacking breakpoints chosen to match the rest of the site (900px main).
   ========================================================================== */

/* ---- Service single page: hero split + body+aside ---- */
@media (max-width: 900px) {
  /* Hero split inline grid (1.3fr 1fr) — forces collapse on the inner grid div.
     Breadcrumb is a sibling div without grid display, so the rule doesn't affect it. */
  .single-aldiyafa_service .page-hero .wrap > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: var(--s-5) !important;
  }
  /* Body + aside (1.7fr 1fr) — collapse */
  .svc-layout {
    grid-template-columns: 1fr !important;
    gap: var(--s-6) !important;
  }
  /* Aside no longer sticky once it stacks below the body (no scroll context) */
  .svc-layout > aside > div { position: static !important; top: auto !important; }
  /* Hero image — 4/3 inline aspect is too tall when full-width on a phone.
     Cap it sensibly so it doesn't push the booking CTA below the fold. */
  .single-aldiyafa_service .page-hero .hero-image {
    aspect-ratio: 16/10 !important;
    max-height: 280px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ---- Doctor single page: hero portrait + bio body+aside ---- */
@media (max-width: 900px) {
  .doc-hero {
    grid-template-columns: 1fr !important;
    gap: var(--s-5) !important;
    align-items: stretch !important;
  }
  .doc-hero .portrait {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
  }
  .bio-layout {
    grid-template-columns: 1fr !important;
    gap: var(--s-6) !important;
  }
  .bio-layout > aside > div { position: static !important; top: auto !important; }
}

/* ---- Doctor archive: 4-col → 3 / 2 / 1 progressive collapse ---- */
@media (max-width: 1100px) { .doctors-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 760px)  { .doctors-grid { grid-template-columns: repeat(2, 1fr) !important; gap: var(--s-4) !important; } }
@media (max-width: 380px)  { .doctors-grid { grid-template-columns: 1fr !important; } }

/* ---- Diagnostic lab page: both inline grids ---- */
@media (max-width: 900px) {
  .page-template-page-diagnostic-lab .wrap > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: var(--s-5) !important;
  }
}

/* ---- Service body: doctor team cards keep 2-col on phone (instead of 1-col 4:5 monsters) ---- */
@media (max-width: 560px) {
  .svc-body .grid.grid-3 { grid-template-columns: repeat(2, 1fr) !important; gap: var(--s-3) !important; }
  .svc-body .doc-card h3 { font-size: .95rem; }
  .svc-body .doc-card .muted { font-size: .8rem; }
}

/* ---- Single clinic: 1fr 1fr inline info row ---- */
@media (max-width: 560px) {
  .single-aldiyafa_clinic [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Page hero typography — readable at 375px ---- */
@media (max-width: 560px) {
  .page-hero h1 {
    font-size: clamp(1.6rem, 6.5vw, 2rem) !important;
    line-height: 1.2 !important;
    margin-bottom: var(--s-3) !important;
  }
  .page-hero .lead { font-size: 1rem; line-height: 1.55; }
  .page-hero { padding: var(--s-5) 0 var(--s-4); }
  .page-hero .eyebrow { font-size: .68rem; }
}

/* ---- Buttons — full-width primary CTAs on phone (easy to tap, no awkward stacking) ---- */
@media (max-width: 560px) {
  .page-hero .btn,
  .svc-body > div > .btn,
  .bio-body .btn { flex: 1 1 100%; justify-content: center; min-height: 48px; }
  .btn { padding: 12px 18px; font-size: .92rem; }
  .btn.lg { padding: 14px 20px; font-size: 1rem; min-height: 52px; }
  /* Booking aside cards on mobile — buttons fill width naturally */
  aside .btn.block { min-height: 48px; }
}

/* ---- Body copy minimum 16px on phone (avoids iOS form autozoom on focus) ---- */
@media (max-width: 560px) {
  .svc-body, .bio-body, .post-content { font-size: 1rem; line-height: 1.6; }
  .svc-body p, .svc-body li,
  .bio-body p, .bio-body li,
  .post-content p { font-size: 1rem; }
  .svc-body-lead { font-size: 1rem; line-height: 1.6; padding: var(--s-4) 0; }
  /* h2 headings inside body: tighten size on phone */
  .svc-body h2, .bio-body h2 { font-size: 1.4rem; line-height: 1.25; margin-top: var(--s-6); margin-bottom: var(--s-3); }
}

/* ---- FAQ: visible cursor + 44px tap target + chevron rotation when open ---- */
.faq-list summary { cursor: pointer; min-height: 44px; }
.faq-list summary [data-lucide="chevron-down"] { transition: transform 200ms ease; }
.faq-list details[open] summary [data-lucide="chevron-down"] { transform: rotate(180deg); }

/* ---- Floating WhatsApp — phone position so it doesn't overlap content ---- */
@media (max-width: 560px) {
  .floating-whatsapp { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .floating-whatsapp svg { width: 24px; height: 24px; }
}

/* ---- Breadcrumbs — let long ones scroll horizontally instead of wrapping ugly ---- */
@media (max-width: 560px) {
  .breadcrumb {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: var(--s-3);
    font-size: .82rem;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }
}

/* ---- Cards / boxes — tighten phone padding so content gets more room ---- */
@media (max-width: 560px) {
  .card { padding: var(--s-4); }
  aside > div { padding: var(--s-4) !important; }
}

/* ---- Forms — make sure inputs hit 16px+ to avoid iOS autozoom ---- */
@media (max-width: 560px) {
  .field input, .field select, .field textarea { font-size: 16px; }
}

/* ---- Container width — make sure .wrap has phone-side padding ---- */
@media (max-width: 560px) {
  .wrap, .wrap-wide { padding-left: var(--s-4); padding-right: var(--s-4); }
}

/* ---- Tables in blog content — horizontal scroll wrapper rather than overflow ---- */
@media (max-width: 600px) {
  .post-content table,
  .svc-body table,
  .bio-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}
