/* ==========================================================================
   DR. SHAZIA ZAFAR ALI BALOUCH — SENIOR PHYSIOTHERAPIST
   Design tokens + global styles
   ========================================================================== */

:root {
  /* Color tokens */
  --navy: #0f2a4a;
  --navy-deep: #081a30;
  --navy-soft: #234875;
  --background: #faf8f5;
  --surface: #ffffff;
  --surface-tint: #f2f0ec;
  --border: #e6e2da;
  --text: #1c2126;
  --muted: #5c6570;
  --accent: #c9a3a0; /* muted dusty rose, derived from portrait hijab */
  --accent-deep: #b3898a;

  /* Type */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --radius-large: 32px;
  --radius-medium: 18px;
  --radius-small: 10px;
  --container-width: 1400px;
  --section-space: clamp(4rem, 8vw, 8rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4.5rem);
}

.section { padding: var(--section-space) 0; }
.section--tint { background: var(--surface-tint); }

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-soft);
  font-weight: 600;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.section-heading {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  max-width: 40rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
  margin-top: 1rem;
}

.highlight { color: var(--navy); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.25s ease, color 0.25s ease, border-color .25s ease;
  min-height: 44px;
  will-change: transform;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-arrow { transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- Header / Nav ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -20px rgba(15, 42, 74, 0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-subtitle { display: block; font-weight: 400; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

.brand-name {
  display: inline-block;
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-soft) 55%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.3s ease;
}
.brand:hover .brand-name { filter: brightness(1.15); }

.nav-links {
  display: flex;
  gap: 2.1rem;
  align-items: center;
}
.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.4rem 0.1rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--navy);
  transition: right 0.3s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-panel a { padding: 0.85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.mobile-panel.is-open { display: flex; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}
.mobile-book-btn {
  display: none;
}
@media (max-width: 860px) {
  .mobile-book-btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin: 0.25rem 0 0.75rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}
.hero-shell {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-large);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: 640px;
}
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-decor svg { position: absolute; opacity: 0.55; }
.hero-decor .line-a { top: 8%; right: -6%; width: 46%; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.hero-decor .line-b { bottom: -4%; left: -8%; width: 40%; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }

.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  color: var(--text);
  margin: 0.6rem 0 1.25rem;
}
.hero-title .highlight { color: var(--navy); font-style: normal; font-weight: 700; }
.hero-support { color: var(--muted); font-size: 1.05rem; max-width: 30rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-portrait-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}
.hero-portrait-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-tint), var(--surface));
  box-shadow: 0 30px 60px -30px rgba(15, 42, 74, 0.35);
  will-change: transform;
  transition: transform 0.2s ease-out;
}
.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-portrait-ring {
  position: absolute;
  inset: -14px;
  border: 1px solid var(--accent);
  border-radius: calc(var(--radius-large) + 14px);
  opacity: 0.6;
  z-index: -1;
}

.hero-quote {
  position: relative;
  z-index: 2;
  padding-left: clamp(0, 2vw, 1.5rem);
  border-left: 1px solid var(--border);
}
.hero-quote .quote-mark { font-size: 2.6rem; color: var(--accent); line-height: 1; font-style: italic; }
.hero-quote blockquote {
  margin: 0.5rem 0 1rem;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy-soft);
  line-height: 1.55;
}
.hero-quote cite { font-style: normal; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 1080px) {
  .hero-shell { grid-template-columns: 1fr; min-height: unset; text-align: left; }
  .hero-portrait-wrap { order: -1; margin-bottom: 1rem; }
  .hero-portrait-frame { width: min(100%, 300px); margin: 0 auto; }
  .hero-quote { border-left: none; border-top: 1px solid var(--border); padding-top: 1.5rem; padding-left: 0; }
}

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  padding: 1.6rem 1.4rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(15,42,74,0.35); }
.stat-number { font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.stat-label { color: var(--muted); font-size: 0.88rem; margin-top: 0.35rem; }

@media (max-width: 760px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.5rem;
}
.about-copy p { margin: 0 0 1.1rem; color: var(--text); }
.about-copy p:last-child { margin-bottom: 0; }
.about-points { display: grid; gap: 1rem; }
.about-point {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  padding: 1.25rem 1.4rem;
}
.about-point h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--navy); }
.about-point p { margin: 0; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Card grids (expertise / treatments / certifications) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  padding: 1.75rem;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color .35s ease;
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -30px rgba(15, 42, 74, 0.4);
  border-color: var(--navy-soft);
}
.info-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--navy);
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.info-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.equipment-note {
  margin-top: 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-medium);
  padding: 1.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--surface-tint);
}

/* ---------- Timeline ---------- */
.timeline { margin-top: 3rem; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 2.1rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--navy);
}
.timeline-date { color: var(--navy-soft); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.timeline-item h3 { font-size: 1.05rem; margin: 0.35rem 0 0.3rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Certification badges ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}
.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  color: var(--navy-soft);
  font-weight: 500;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.badge:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ---------- License strip ---------- */
.license-strip {
  margin-top: 2.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-medium);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.license-strip h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.license-strip p { margin: 0; color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.license-badge {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ---------- Reviews ---------- */
.review-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  padding: 1.9rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(15,42,74,0.35); }
.review-stars { color: var(--accent-deep); letter-spacing: 0.15em; margin-bottom: 0.9rem; font-size: 0.95rem; }
.review-quote { font-style: italic; color: var(--text); margin: 0 0 1.2rem; line-height: 1.6; }
.review-meta { display: flex; align-items: center; justify-content: space-between; }
.review-name { font-weight: 600; font-size: 0.92rem; }
.review-context { color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }

@media (max-width: 760px) {
  .review-track { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-large);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 34rem; margin: 0 auto 2rem; }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn-secondary:hover { background: #fff; color: var(--navy); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  padding: 1.6rem 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-card .icon { color: var(--navy); flex-shrink: 0; margin-top: 0.15rem; }
.contact-card h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 0.92rem; margin: 0; }
.contact-card a:hover { color: var(--navy); }

@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--surface);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}
.disclaimer { max-width: 40rem; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px -14px rgba(15,42,74,0.55);
  z-index: 50;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: translateY(-3px); }
@media (max-width: 600px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Subtle abstract movement-line decoration ---------- */
#about, #why-choose, #expertise, #treatments, #experience, #reviews, #certifications, #contact {
  position: relative;
  overflow: hidden;
}
.section-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}
.section-decor svg { width: 100%; height: 100%; }
.section-decor--alt { opacity: 0.16; }
.section-decor--dots {
  background-image: radial-gradient(circle, rgba(15,42,74,0.35) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 15%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 15%, #000 0%, transparent 70%);
}
#about .container, #why-choose .container,
#expertise .container, #treatments .container,
#experience .container, #reviews .container,
#certifications .container, #contact .container {
  position: relative;
  z-index: 1;
}

/* Single-card contact layout (WhatsApp only) */
.contact-grid--single {
  grid-template-columns: minmax(0, 22rem);
  justify-content: flex-start;
}

/* Faint radial glow polish on the CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,163,160,0.25), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }

/* ==========================================================================
   Language toggle + Arabic (RTL) support
   ========================================================================== */

.lang-toggle {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 40px;
  min-width: 44px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.lang-toggle:hover { border-color: var(--navy); background: var(--surface-tint); }
.lang-toggle--mobile {
  align-self: flex-start;
  margin-top: 0.5rem;
}

html[dir="rtl"] body {
  font-family: "Tajawal", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Numbers/stats stay visually LTR even inside Arabic copy */
html[dir="rtl"] .stat-number,
html[dir="rtl"] .timeline-date {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Hero quote border flips to the leading (right) edge in RTL */
html[dir="rtl"] .hero-quote {
  border-left: none;
  border-right: 1px solid var(--border);
  padding-right: clamp(0, 2vw, 1.5rem);
  padding-left: 0;
}
@media (max-width: 1080px) {
  html[dir="rtl"] .hero-quote {
    border-right: none;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    padding-right: 0;
  }
}

/* Timeline rail + dots flip to the right in RTL */
html[dir="rtl"] .timeline::before { left: auto; right: 10px; }
html[dir="rtl"] .timeline-item { padding-left: 0; padding-right: 2.75rem; }
html[dir="rtl"] .timeline-item::before { left: auto; right: 4px; }

/* Nav underline + link hover direction */
html[dir="rtl"] .nav-links a::after { left: 100%; right: 0; }
html[dir="rtl"] .nav-links a:hover::after { left: 0; }

/* Skip link anchors to the leading edge (right) in RTL */
html[dir="rtl"] .skip-link { left: auto; right: -999px; border-radius: 0 0 0 8px; }
html[dir="rtl"] .skip-link:focus { right: 0; }

/* ---------- Stat card icons ---------- */
.stat-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.6rem;
  color: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-tint);
  border-radius: 10px;
}

/* ---------- License seal (abstract, non-official) ---------- */
.license-strip { gap: 1.25rem; }
.license-seal {
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero portrait glow (depth, no photo needed) ---------- */
.hero-portrait-wrap { position: relative; }
.hero-portrait-glow {
  position: absolute;
  inset: -10% -10% 10% -10%;
  background: radial-gradient(circle at 50% 35%, rgba(201,163,160,0.35), rgba(15,42,74,0.12) 45%, transparent 70%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}
.hero-portrait-ring, .hero-portrait-frame { position: relative; z-index: 1; }

.license-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* ---------- Hero signature logo ---------- */
.signature-logo {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}
.signature-dr {
  font-family: "Alex Brush", "Brush Script MT", cursive;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  color: var(--navy);
  line-height: 0.8;
}
.signature-name {
  font-family: "Alex Brush", "Brush Script MT", cursive;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--navy-soft);
  line-height: 1.15;
}
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
}
@media (max-width: 1080px) {
  .signature-dr { font-size: clamp(2.8rem, 12vw, 3.6rem); }
  .signature-name { font-size: clamp(1.3rem, 5vw, 1.6rem); }
}

/* ---------- Qualification circle + ribbon (hero) ---------- */
.quali-circle-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.quali-circle {
  width: clamp(280px, 26vw, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--navy-soft), var(--navy) 62%, var(--navy-deep) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13%;
  box-shadow: 0 30px 60px -28px rgba(15, 42, 74, 0.5);
  flex-shrink: 0;
  margin: 0 auto;
  align-self: center;
  justify-self: center;
  min-height: 0;
  overflow: hidden;
}
.quali-circle h2 {
  color: #fff;
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  margin: 0 0 0.5rem;
  position: relative;
  padding-bottom: 0.45rem;
}
.quali-circle h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 34px;
  height: 2px;
  background: var(--accent);
}
.quali-circle ul {
  display: grid;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.quali-circle li {
  font-size: clamp(0.62rem, 0.95vw, 0.82rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}
.quali-ribbon {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.quali-ribbon h3 { font-size: 1.1rem; color: var(--navy); margin: 0; }
.quali-ribbon .quali-cta { align-self: flex-start; margin-top: 0.25rem; }

@media (max-width: 900px) {
  .quali-circle-row { grid-template-columns: 1fr; justify-items: center; }
  .quali-circle { width: clamp(300px, 80vw, 360px); padding: 11%; }
}
@media (max-width: 420px) {
  .quali-circle { width: 88vw; padding: 9%; }
  .quali-circle li { font-size: 0.66rem; }
}

/* ---------- Physiotherapy services (photo grid) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
}
.service-photo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.service-photo:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -30px rgba(15,42,74,0.4); }
.service-photo img { width: 100%; height: 170px; object-fit: cover; display: block; }
.service-photo figcaption {
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  text-align: center;
}
.focus-row { margin-top: 2.75rem; }
.focus-row .badge-row { margin-top: 0.85rem; }
