/* =========================================================
   Proficiency Medical Center — site styles
   Palette taken from the PMC logo: brand blue #1F67B3 + navy
   ========================================================= */
:root {
  /* Brand palette from the PMC logo: #1F67B3 */
  --navy-900: #0a1e38;
  --navy-800: #0d2b50;
  --blue-700: #1f67b3;
  --blue-600: #1a5799;
  --blue-100: #e3eefa;
  --accent-500: #3d9be9;
  --accent-400: #6cb4f0;
  --accent-200: #d4e8fb;
  --ivory: #f6f9fd;
  --ivory-2: #eaf1f9;
  --ink: #13233a;
  --muted: #5a6a80;
  --line: rgba(31, 103, 179, 0.14);
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(10, 30, 56, 0.35);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 0.5em; color: var(--blue-700); }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(30px, 4vw, 46px); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }
.diamond-rule { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--accent-500); margin: 18px 0 0; }
.diamond-rule::before, .diamond-rule::after { content: ""; width: 60px; height: 1px; background: currentColor; }
.diamond-rule span { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; transition: all 0.3s ease;
  font-family: var(--sans);
}
.btn svg { width: 18px; height: 18px; }
.btn-accent { background: linear-gradient(135deg, var(--accent-400), var(--accent-500)); color: var(--navy-900); box-shadow: 0 10px 30px -12px rgba(61, 155, 233, 0.8); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(61, 155, 233, 0.9); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--blue-700); }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-700); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 9px 0; flex-wrap: wrap; }
.topbar a:hover { color: var(--accent-400); }
.topbar-group { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 15px; height: 15px; color: var(--accent-500); flex: none; }
.doh-chip { color: var(--accent-200); letter-spacing: 0.04em; }
.doh-chip strong { color: var(--accent-400); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 249, 253, 0.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(10, 30, 56, 0.4); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 86px; gap: 24px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--blue-700);
  position: relative; padding: 6px 0;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--accent-500); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav .btn { padding: 12px 22px; font-size: 12.5px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--blue-700); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(61, 155, 233, 0.18), transparent 60%),
    linear-gradient(160deg, var(--blue-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 4 L60 32 L32 60 L4 32 Z' fill='none' stroke='%233d9be9' stroke-width='1'/%3E%3C/svg%3E");
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; padding: 90px 0 110px; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.4vw, 70px); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent-400); font-weight: 500; }
.hero .lead { font-size: 18px; color: rgba(255, 255, 255, 0.8); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-meta { display: flex; gap: 38px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid rgba(61, 155, 233, 0.3); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta small { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-400); font-weight: 700; }
.hero-meta span { font-family: var(--serif); font-size: 20px; color: #fff; }

.arch-frame { position: relative; justify-self: center; width: min(470px, 100%); }
.arch-frame .arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden;
  border: 1px solid rgba(61, 155, 233, 0.6); padding: 12px; background: rgba(255, 255, 255, 0.03);
}
.arch-frame .arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 10px 10px; }
.arch-frame::after {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 120px; height: 120px;
  border-top: 1px solid var(--accent-500); border-right: 1px solid var(--accent-500); border-radius: 0 40px 0 0; opacity: 0.6;
}
.float-card {
  position: absolute; left: -46px; bottom: 54px; background: var(--ivory); color: var(--ink);
  border-radius: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow);
  max-width: 270px;
}
.float-card .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--blue-700); color: var(--accent-400); display: grid; place-items: center; flex: none; }
.float-card .icon svg { width: 24px; height: 24px; }
.float-card strong { display: block; font-family: var(--serif); color: var(--blue-700); font-size: 17px; line-height: 1.25; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.float-card.top { left: auto; right: -30px; top: 60px; bottom: auto; }

/* ---------- Trust strip ---------- */
.trust { position: relative; z-index: 2; margin-top: -56px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid var(--line);
}
.trust-item { padding: 30px 28px; display: flex; gap: 16px; align-items: flex-start; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; flex: none; }
.trust-item .icon svg { width: 22px; height: 22px; }
.trust-item h4 { font-size: 17px; margin-bottom: 4px; }
.trust-item p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section.tight { padding: 80px 0; }
.bg-white { background: #fff; }
.bg-ivory2 { background: var(--ivory-2); }
.bg-navy { background: linear-gradient(160deg, var(--blue-700), var(--navy-900)); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .section-head p { color: rgba(255, 255, 255, 0.72); }

/* Welcome */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.image-stack { position: relative; }
.image-stack .main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; }
.image-stack .main img { width: 100%; height: 100%; object-fit: cover; }
.image-stack .badge {
  position: absolute; right: -28px; bottom: -34px; width: 180px; height: 180px; border-radius: 50%;
  background: var(--blue-700); color: #fff; display: grid; place-items: center; text-align: center;
  border: 6px solid var(--ivory); box-shadow: var(--shadow); padding: 18px;
}
.image-stack .badge strong { font-family: var(--serif); font-size: 18px; color: var(--accent-400); display: block; line-height: 1.2; }
.image-stack .badge small { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.image-stack .outline { position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--accent-500); border-radius: var(--radius); z-index: -1; }
.check-list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; color: var(--blue-700); }
.check-list svg { width: 20px; height: 20px; color: var(--accent-500); flex: none; margin-top: 3px; }

/* Clinics */
.clinic-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 34px;
}
.clinic-feature .media { position: relative; min-height: 440px; }
.clinic-feature .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clinic-feature .body { padding: 56px 54px; }
.clinic-feature h3 { font-size: 36px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.status.open { background: #e5f4ec; color: #137a4b; }
.status.open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1fa463; box-shadow: 0 0 0 4px rgba(31, 164, 99, 0.2); animation: pulse 2s infinite; }
.status.soon { background: var(--accent-200); color: #1a4f8a; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(31, 164, 99, 0.05); } }
.service-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.service-list li { padding-left: 22px; position: relative; font-size: 15px; color: var(--ink); }
.service-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--accent-500); transform: rotate(45deg); }

.clinic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.clinic-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease; display: flex; flex-direction: column;
}
.clinic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.clinic-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.clinic-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.clinic-card:hover .media img { transform: scale(1.06); }
.clinic-card .media .status { position: absolute; top: 16px; left: 16px; margin: 0; }
.clinic-card .body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.clinic-card h3 { font-size: 24px; margin-bottom: 8px; }
.clinic-card p { color: var(--muted); font-size: 15px; }
.clinic-card ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.clinic-card ul li { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--ivory); color: var(--blue-700); border: 1px solid var(--line); }
.clinic-card .icon-tile { width: 54px; height: 54px; border-radius: 14px; background: var(--blue-700); color: var(--accent-400); display: grid; place-items: center; margin-top: -54px; position: relative; border: 4px solid #fff; margin-bottom: 14px; }
.clinic-card .icon-tile svg { width: 24px; height: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 34px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(61, 155, 233, 0.25); transition: background 0.3s ease, border-color 0.3s ease; }
.step:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(61, 155, 233, 0.6); }
.step .num { font-family: var(--serif); font-size: 52px; color: var(--accent-500); line-height: 1; margin-bottom: 18px; font-style: italic; }
.step h3 { font-size: 22px; }
.step p { color: rgba(255, 255, 255, 0.72); font-size: 15px; margin: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 58px; right: -26px; width: 26px; height: 1px; background: rgba(61, 155, 233, 0.5); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-card { padding: 38px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card .icon { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory); color: var(--blue-700); border: 1px solid var(--accent-200); }
.why-card .icon svg { width: 30px; height: 30px; }
.why-card h3 { font-size: 21px; }
.why-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Mission */
.mvv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.mvv-card { padding: 44px 40px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.mvv-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border: 1px solid var(--accent-200); border-radius: 50%; }
.mvv-card h3 { font-size: 28px; }
.mvv-card p { font-size: 17px; color: var(--muted); margin: 0; }
.values { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }
.values span { padding: 12px 26px; border-radius: 999px; border: 1px solid var(--accent-500); font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-700); background: #fff; }
.quote-band { text-align: center; padding: 70px 20px 10px; }
.quote-band blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 36px); color: var(--blue-700); max-width: 820px; margin: 0 auto; line-height: 1.4; }
.quote-band blockquote::before { content: "\201C"; display: block; font-size: 80px; line-height: 0.6; color: var(--accent-500); margin-bottom: 10px; }

/* Partners */
.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.logo-tile { background: #fff; border-radius: 16px; border: 1px solid var(--line); height: 130px; display: grid; place-items: center; padding: 22px 30px; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.logo-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.logo-tile img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(0.15); }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }
.local-band { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.local-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.local-logos .logo-tile { height: 170px; flex-direction: column; text-align: center; }
.local-logos .logo-tile small { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Appointment CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-800); color: #fff; box-shadow: var(--shadow); }
.cta-band .media { position: relative; min-height: 100%; }
.cta-band .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, var(--navy-800)); }
.cta-band .body { padding: 60px 56px; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.cta-band p { color: rgba(255, 255, 255, 0.75); }

form.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
form.booking .full { grid-column: 1 / -1; }
form.booking label { display: block; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-400); font-weight: 700; margin-bottom: 6px; }
form.booking input, form.booking select, form.booking textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 15px; outline: none; transition: border-color 0.2s ease, background 0.2s ease;
}
form.booking select option { color: var(--ink); }
form.booking input::placeholder, form.booking textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
form.booking input:focus, form.booking select:focus, form.booking textarea:focus { border-color: var(--accent-500); background: rgba(255, 255, 255, 0.1); }
form.booking textarea { min-height: 96px; resize: vertical; }
form.booking .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, 0.7); text-transform: none; letter-spacing: 0; font-weight: 500; }
form.booking .consent input { width: auto; margin-top: 4px; accent-color: var(--accent-500); }
.form-status { grid-column: 1 / -1; font-size: 14px; padding: 12px 16px; border-radius: 12px; display: none; }
.form-status.show { display: block; background: rgba(61, 155, 233, 0.15); border: 1px solid rgba(61, 155, 233, 0.5); color: var(--accent-200); }

/* Light variant of form (contact page) */
.form-light form.booking label { color: var(--blue-700); }
.form-light form.booking input, .form-light form.booking select, .form-light form.booking textarea { background: var(--ivory); border-color: var(--line); color: var(--ink); }
.form-light form.booking input::placeholder, .form-light form.booking textarea::placeholder { color: #8a9ab0; }
.form-light form.booking .consent { color: var(--muted); }
.form-light .form-status.show { background: var(--blue-100); color: var(--blue-700); border-color: var(--line); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 44px 40px; }
.contact-row { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .icon { width: 50px; height: 50px; border-radius: 50%; background: var(--blue-700); color: var(--accent-400); display: grid; place-items: center; flex: none; }
.contact-row .icon svg { width: 22px; height: 22px; }
.contact-row small { display: block; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-500); font-weight: 700; }
.contact-row strong, .contact-row a { font-family: var(--serif); font-size: 19px; color: var(--blue-700); font-weight: 600; }
.contact-row span { color: var(--muted); font-size: 15px; display: block; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 440px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; filter: saturate(0.85); }

/* Page hero (inner pages) */
.page-hero { position: relative; color: #fff; padding: 120px 0 100px; overflow: hidden; background: var(--navy-800); }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 10%, rgba(10, 30, 56, 0.55)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 62px); font-weight: 500; }
.page-hero p { color: rgba(255, 255, 255, 0.78); max-width: 620px; font-size: 18px; }
.crumbs { font-size: 13px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); margin-bottom: 18px; }
.crumbs a { color: var(--accent-400); }

/* Clinic detail rows (clinics page) */
.clinic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 70px 0; border-bottom: 1px solid var(--line); }
.clinic-row:last-child { border-bottom: 0; }
.clinic-row:nth-child(even) .media { order: 2; }
.clinic-row .media { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.clinic-row .media img { width: 100%; height: 100%; object-fit: cover; }
.clinic-row h2 { font-size: clamp(30px, 3.4vw, 42px); }
.clinic-row p.desc { font-size: 17px; color: var(--muted); }
.clinic-row .label { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-500); font-weight: 800; }

/* Licence panel */
.licence-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; background: #fff; border: 1px solid var(--accent-200); border-radius: var(--radius); padding: 30px 36px; }
.licence-panel .seal { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--accent-500); display: grid; place-items: center; color: var(--blue-700); background: var(--ivory); }
.licence-panel .seal svg { width: 38px; height: 38px; }
.licence-panel h3 { font-size: 22px; margin-bottom: 4px; }
.licence-panel p { margin: 0; color: var(--muted); font-size: 15px; }
.licence-panel .num { font-family: var(--serif); font-size: 30px; color: var(--blue-700); letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.7); padding-top: 90px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.site-footer h4 { color: #fff; font-size: 19px; margin-bottom: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--accent-400); }
.footer-brand img { height: 64px; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent-500); flex: none; margin-top: 5px; }
.regulatory { border-top: 1px solid rgba(61, 155, 233, 0.2); border-bottom: 1px solid rgba(61, 155, 233, 0.2); padding: 22px 0; display: flex; gap: 14px 40px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 13.5px; }
.regulatory .reg-items { display: flex; gap: 14px 36px; flex-wrap: wrap; }
.regulatory strong { color: var(--accent-400); font-weight: 700; letter-spacing: 0.04em; }
.regulatory .pending { color: rgba(255, 255, 255, 0.5); font-style: italic; }
.footer-bottom { padding: 24px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.5); }
.disclaimer { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); padding-top: 18px; line-height: 1.6; }

/* Floating call button */
.fab-call {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-400), var(--accent-500)); color: var(--navy-900);
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(10, 30, 56, 0.6);
  transition: transform 0.3s ease;
}
.fab-call:hover { transform: scale(1.08); }
.fab-call svg { width: 26px; height: 26px; }
.fab-call::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(61, 155, 233, 0.5); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; } .reveal.d3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .container, .split, .clinic-feature, .cta-band, .contact-grid, .local-band, .clinic-row { grid-template-columns: 1fr; }
  .clinic-row:nth-child(even) .media { order: 0; }
  .hero .container { padding: 70px 0 120px; gap: 70px; }
  .float-card { left: 0; }
  .float-card.top { right: 0; }
  .trust-grid, .why-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step::after { display: none; }
  .clinic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .media { min-height: 280px; }
  .cta-band .media::after { background: linear-gradient(180deg, transparent 40%, var(--navy-800)); }
  .image-stack { margin-right: 28px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; visibility: hidden; opacity: 0; background: var(--ivory); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 26px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-12px); transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .container { width: min(var(--container), 100% - 32px); }
  .trust-grid, .why-grid, .steps, .clinic-grid, .logo-row, .mvv, .check-list, .service-list, .footer-grid, form.booking { grid-template-columns: 1fr; }
  .trust-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .logo-row { grid-template-columns: 1fr 1fr; }
  .clinic-feature .body, .cta-band .body, .contact-card, .mvv-card { padding: 36px 26px; }
  .clinic-feature .media { min-height: 260px; }
  .float-card { display: none; }
  .image-stack .badge { width: 140px; height: 140px; right: -16px; }
  .licence-panel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .brand img { height: 44px; }
  .hero-meta { gap: 22px; }
}
.local-logos .logo-tile img { max-height: 92px; }

/* =========================================================
   Hero animation: PMC logo draws itself, heartbeat line pulses
   Default (no-animation) styles = final state, so reduced-motion
   users simply see the finished logo.
   ========================================================= */
.hero-logo { position: relative; width: clamp(200px, 24vw, 300px); margin-bottom: 30px; }
.hero-logo::before {
  content: ""; position: absolute; inset: -30% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(61, 155, 233, 0.22), transparent 70%);
  animation: logoGlow 4s ease-in-out 2.6s infinite both;
}
.pmc-logo-anim { width: 100%; height: auto; display: block; overflow: visible; }
.pmc-mark path {
  fill: url(#pmcFill); stroke: #8cc4f2; stroke-width: 1.4; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; stroke-opacity: 0;
  animation: logoDraw 2.6s cubic-bezier(.6, .05, .3, 1) 0.2s both, logoFill 1.1s ease 2.1s both;
}
.pmc-text path { fill: #ffffff; animation: logoText 0.9s ease both; }
.pmc-sheen { animation: logoSheen 6s ease-in-out 3.2s infinite both; }
@keyframes logoDraw {
  from { stroke-dashoffset: 1; stroke-opacity: 1; fill-opacity: 0; }
  to   { stroke-dashoffset: 0; stroke-opacity: 1; fill-opacity: 0; }
}
@keyframes logoFill {
  from { fill-opacity: 0; stroke-opacity: 1; }
  to   { fill-opacity: 1; stroke-opacity: 0; }
}
@keyframes logoText {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes logoSheen {
  0% { transform: translateX(0); }
  30%, 100% { transform: translateX(950px); }
}
@keyframes logoGlow { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
/* stagger the letters after the monogram has filled */
.pmc-text path:nth-child(1)  { animation-delay: 2.40s; } .pmc-text path:nth-child(2)  { animation-delay: 2.44s; }
.pmc-text path:nth-child(3)  { animation-delay: 2.48s; } .pmc-text path:nth-child(4)  { animation-delay: 2.52s; }
.pmc-text path:nth-child(5)  { animation-delay: 2.56s; } .pmc-text path:nth-child(6)  { animation-delay: 2.60s; }
.pmc-text path:nth-child(7)  { animation-delay: 2.64s; } .pmc-text path:nth-child(8)  { animation-delay: 2.68s; }
.pmc-text path:nth-child(9)  { animation-delay: 2.72s; } .pmc-text path:nth-child(10) { animation-delay: 2.76s; }
.pmc-text path:nth-child(11) { animation-delay: 2.80s; } .pmc-text path:nth-child(12) { animation-delay: 2.84s; }
.pmc-text path:nth-child(13) { animation-delay: 2.88s; } .pmc-text path:nth-child(14) { animation-delay: 2.92s; }
.pmc-text path:nth-child(15) { animation-delay: 2.96s; } .pmc-text path:nth-child(16) { animation-delay: 3.00s; }
.pmc-text path:nth-child(17) { animation-delay: 3.04s; } .pmc-text path:nth-child(18) { animation-delay: 3.08s; }
.pmc-text path:nth-child(19) { animation-delay: 3.12s; } .pmc-text path:nth-child(20) { animation-delay: 3.16s; }
.pmc-text path:nth-child(21) { animation-delay: 3.20s; } .pmc-text path:nth-child(22) { animation-delay: 3.24s; }
.pmc-text path:nth-child(23) { animation-delay: 3.28s; } .pmc-text path:nth-child(24) { animation-delay: 3.32s; }
.pmc-text path:nth-child(25) { animation-delay: 3.36s; } .pmc-text path:nth-child(26) { animation-delay: 3.40s; }
.pmc-text path:nth-child(27) { animation-delay: 3.44s; }

/* hero copy enters after the logo has started drawing */
.hero .reveal { transition-duration: 1.1s; }
.hero .container > div:first-child .reveal { transition-delay: 1.2s; }
.hero .container > div:first-child .reveal.d1 { transition-delay: 1.45s; }
.hero .container > div:first-child .reveal.d2 { transition-delay: 1.7s; }
.hero .container > div:first-child .reveal.d3 { transition-delay: 1.95s; }

/* heartbeat line across the hero */
.hero-ecg { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 160px; pointer-events: none; z-index: 0; }
.hero-ecg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ecg-base { stroke: rgba(61, 155, 233, 0.14); stroke-width: 1.2; }
.ecg-pulse {
  stroke: #8cc4f2; stroke-width: 2; stroke-dasharray: 160 1840;
  filter: drop-shadow(0 0 6px rgba(140, 196, 242, 0.9));
  animation: ecgRun 5.5s linear infinite;
}
@keyframes ecgRun { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }

@media (max-width: 640px) {
  .hero-logo { width: 190px; margin-bottom: 22px; }
  .hero-ecg { bottom: 40px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .ecg-pulse { display: none; }
  .pmc-sheen { display: none; }
}
.hero .container { padding-top: 56px; padding-bottom: 120px; }
.hero h1 { font-size: clamp(38px, 4.8vw, 62px); }
.hero-logo { width: clamp(190px, 19vw, 250px); margin-bottom: 22px; }
.hero-ecg { bottom: 64px; }
.hero .container { padding-bottom: 150px; }
.hero-ecg { bottom: 0; height: 130px; }
@media (max-width: 640px) { .hero-ecg { bottom: 0; height: 100px; } }
.hero-ecg { bottom: 60px; height: 84px; }
@media (max-width: 640px) { .hero-ecg { bottom: 60px; height: 70px; } }
.footer-bottom .credit { color: var(--accent-400); font-weight: 600; } .footer-bottom .credit:hover { color: #fff; }

/* WhatsApp floating button (sits above the call button) */
.fab-whatsapp {
  position: fixed; right: 22px; bottom: 96px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(10, 30, 56, 0.6); transition: transform 0.3s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 30px; height: 30px; }

/* Social icons (not linked yet) */
.socials { display: flex; gap: 12px; margin-top: 24px; }
.social {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(61, 155, 233, 0.45); color: var(--accent-400); cursor: default;
}
.social svg { width: 18px; height: 18px; }

/* Language switch */
.lang-switch {
  font-size: 14px; font-weight: 700; color: var(--blue-700);
  padding: 7px 14px; border: 1px solid var(--accent-500); border-radius: 999px; transition: all 0.25s ease;
}
.lang-switch:hover { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.lang-switch:lang(ar) { font-family: "Tajawal", var(--sans); }
@media (max-width: 900px) { .lang-switch { align-self: flex-start; margin-top: 16px; } }

/* =========================================================
   Arabic / RTL
   ========================================================= */
[dir="rtl"] {
  --serif: "Amiri", "Playfair Display", Georgia, serif;
  --sans: "Tajawal", "Manrope", system-ui, sans-serif;
}
[dir="rtl"] body { line-height: 1.85; }
/* Arabic letters must never be spaced apart or upper-cased */
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; text-transform: none !important; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-weight: 700; line-height: 1.35; }
[dir="rtl"] .hero h1 em, [dir="rtl"] .step .num, [dir="rtl"] .quote-band blockquote { font-style: normal; }
[dir="rtl"] .eyebrow { font-size: 14px; }
[dir="rtl"] .btn { font-size: 15px; }
[dir="rtl"] .nav-links a { font-size: 16px; }
[dir="rtl"] .lead, [dir="rtl"] .section-head p { font-size: 18px; }

/* mirror absolutely-positioned decoration */
[dir="rtl"] .float-card { left: auto; right: -46px; }
[dir="rtl"] .float-card.top { right: auto; left: -30px; }
[dir="rtl"] .arch-frame::after { right: auto; left: -18px; border-right: 0; border-left: 1px solid var(--accent-500); border-radius: 40px 0 0 0; }
[dir="rtl"] .image-stack .badge { right: auto; left: -28px; }
[dir="rtl"] .image-stack .outline { inset: 28px 28px -28px -28px; }
[dir="rtl"] .service-list li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .service-list li::before { left: auto; right: 0; top: 12px; }
[dir="rtl"] .step:not(:last-child)::after { right: auto; left: -26px; }
[dir="rtl"] .mvv-card::after { right: auto; left: -40px; }
[dir="rtl"] .clinic-card .media .status { left: auto; right: 16px; }
[dir="rtl"] .trust-item { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .trust-item:last-child { border-left: 0; }
[dir="rtl"] .btn svg[viewBox] path[d^="M5 12h14"] { transform: scaleX(-1); transform-origin: center; }
[dir="rtl"] .cta-band .media::after { background: linear-gradient(270deg, transparent 40%, var(--navy-800)); }
[dir="rtl"] .page-hero::after { background: linear-gradient(270deg, var(--navy-900) 10%, rgba(10, 30, 56, 0.55)); }
[dir="rtl"] .fab-call, [dir="rtl"] .fab-whatsapp { right: auto; left: 22px; }
/* keep the logo, phone numbers and licence numbers left-to-right */
[dir="rtl"] .hero-logo, [dir="rtl"] .brand, [dir="rtl"] .footer-brand img { direction: ltr; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] .num { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] form.booking input[type="tel"], [dir="rtl"] form.booking input[type="date"] { direction: ltr; text-align: right; }

@media (max-width: 1080px) {
  [dir="rtl"] .float-card { right: 0; }
  [dir="rtl"] .float-card.top { left: 0; }
  [dir="rtl"] .trust-item:nth-child(2) { border-left: 0; }
  [dir="rtl"] .cta-band .media::after { background: linear-gradient(180deg, transparent 40%, var(--navy-800)); }
  [dir="rtl"] .image-stack { margin-right: 0; margin-left: 28px; }
}
@media (max-width: 640px) {
  [dir="rtl"] .trust-item { border-left: 0 !important; }
  [dir="rtl"] .image-stack .badge { left: -16px; }
}
