/* ==========================================================================
   Prime Care Clinic — concept demo stylesheet
   Built by Ahmed Eldakroury Web Studio. Plain CSS, no build step.
   Edit the colour tokens below to re-skin the whole site.
   ========================================================================== */

:root {
  /* Brand palette */
  --ink: #0b2626;
  --teal: #0f4a48;
  --teal-700: #0c3a39;
  --teal-600: #14655f;
  --teal-500: #1c7c73;
  --mint: #bfe3d3;
  --mint-soft: #e4f1ea;
  --sand: #f8f5ee;
  --sand-deep: #efe9dc;
  --paper: #ffffff;
  --coral: #d9644a;
  --coral-dark: #bd4f37;
  --muted: #5a6f6d;
  --line: rgba(11, 38, 38, 0.12);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 38, 38, 0.06), 0 8px 24px rgba(11, 38, 38, 0.05);
  --shadow-md: 0 18px 50px rgba(11, 38, 38, 0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4.15rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 0.9em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--teal-600);
  display: inline-block;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ---------- Demo ribbon ---------- */
.demo-bar {
  background: var(--ink);
  color: #e8f0ec;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.demo-bar .wrap {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 38px; padding: 8px 24px; text-align: center;
}
.demo-bar strong { color: #fff; font-weight: 700; }
.demo-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 238, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(248, 245, 238, 0.96); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.94rem; font-weight: 600;
  padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--coral); transition: right 0.28s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--teal-600); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(15, 74, 72, 0.18); }
.btn-primary:hover { background: var(--teal-700); color: #fff; }
.btn-accent { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(217, 100, 74, 0.22); }
.btn-accent:hover { background: var(--coral-dark); color: #fff; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(11, 38, 38, 0.05); color: var(--ink); }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--mint-soft); color: var(--teal-700); }
.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.text-link {
  font-weight: 700; font-size: 0.94rem; text-decoration: none; color: var(--teal-600);
  display: inline-flex; align-items: center; gap: 7px;
}
.text-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-alt { background: var(--paper); }
.section-deep { background: var(--teal); color: #eef6f2; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep .lede, .section-deep .muted { color: rgba(238, 246, 242, 0.78); }
.section-deep .eyebrow { color: var(--mint); }
.section-deep .eyebrow::before { background: var(--mint); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: none; }
.section-head.split > div { max-width: 620px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -30%; height: 620px;
  background: radial-gradient(closest-side, rgba(191, 227, 211, 0.55), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero h1 { margin-bottom: 0.45em; }
.hero h1 em { font-style: italic; color: var(--teal-600); }
.hero .lede { font-size: 1.15rem; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-fact { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); }
.hero-fact svg { width: 20px; height: 20px; color: var(--teal-500); flex: none; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover;
  border-radius: 160px 160px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-card {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--paper); border-radius: var(--radius-md); padding: 16px 20px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 14px; max-width: 290px;
}
.hero-card .pulse { width: 10px; height: 10px; border-radius: 50%; background: #2fa36b; box-shadow: 0 0 0 5px rgba(47, 163, 107, 0.15); flex: none; }
.hero-card strong { display: block; font-size: 0.95rem; }
.hero-card span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 22px; display: flex; gap: 14px; align-items: flex-start; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 22px; height: 22px; color: var(--teal-600); flex: none; margin-top: 2px; }
.trust-item strong { display: block; font-size: 0.95rem; }
.trust-item span { font-size: 0.84rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-split { grid-template-columns: 1.35fr 0.65fr; align-items: start; }
.grid-split--even { grid-template-columns: 1.1fr 0.9fr; }

.specialty-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-md);
  text-decoration: none; color: #fff; background: var(--teal-700); min-height: 260px;
  box-shadow: var(--shadow-sm);
}
.specialty-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease); opacity: 0.92;
}
.specialty-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 38, 38, 0.05) 30%, rgba(11, 38, 38, 0.85) 100%);
}
.specialty-card:hover img { transform: scale(1.05); }
.specialty-card .body { position: relative; z-index: 1; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 260px; }
.specialty-card h3 { color: #fff; margin-bottom: 4px; }
.specialty-card p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); margin: 0; }
.specialty-card .tag {
  align-self: flex-start; margin-bottom: 10px; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; background: rgba(255, 255, 255, 0.16); padding: 5px 10px; border-radius: 999px;
}

.doctor-card {
  background: var(--paper); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doctor-photo { aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--mint-soft); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doctor-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.doctor-body h3 { margin-bottom: 2px; font-size: 1.28rem; }
.doctor-role { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-600); font-weight: 700; margin-bottom: 12px; }
.doctor-meta { font-size: 0.86rem; color: var(--muted); margin: 0 0 14px; padding: 0; list-style: none; }
.doctor-meta li { display: flex; gap: 8px; margin-bottom: 4px; }
.doctor-meta svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--teal-500); }
.doctor-body .btn { margin-top: auto; }

.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.service-card:hover { border-color: var(--mint); transform: translateY(-3px); }
.service-card .price { font-family: var(--font-display); font-size: 1.5rem; color: var(--teal-700); }
.service-card .price small { font-family: var(--font-body); font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
.service-card h3 { margin: 0; }
.service-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.service-card .svc-list { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; color: var(--muted); }
.service-card .svc-list li { display: flex; gap: 8px; margin-bottom: 6px; }
.service-card .svc-list svg { width: 15px; height: 15px; flex: none; margin-top: 5px; color: var(--teal-500); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--mint); }
.step-num {
  font-family: var(--font-display); font-size: 0.95rem; color: var(--teal-600);
  display: inline-block; margin-bottom: 10px; font-weight: 600;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- Split feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); aspect-ratio: 4/3.2; object-fit: cover; }
.feature.reverse .feature-media { order: 2; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; font-size: 0.96rem; }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--teal-500); margin-top: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-700), var(--teal-500));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(191, 227, 211, 0.16);
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 46ch; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

/* ---------- Info cards ---------- */
.info-card { background: var(--paper); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 1.1rem; }
.info-card ul { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.info-card li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.info-card li:last-child { border-bottom: 0; }
.info-card li span:last-child { color: var(--muted); text-align: right; }

/* ---------- Forms ---------- */
.form-shell { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.01em; }
.field label .req { color: var(--coral); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid rgba(11, 38, 38, 0.18);
  background: #fdfcf9; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(28, 124, 115, 0.14);
}
.field .hint { font-size: 0.78rem; color: var(--muted); }
.field .error { font-size: 0.78rem; color: var(--coral-dark); font-weight: 600; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral); background: #fff7f4; }
.field.has-error .error { display: block; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; }
.form-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--teal-500); }
.form-result { display: none; margin-top: 22px; border-radius: var(--radius-md); padding: 20px 22px; background: var(--mint-soft); border: 1px solid var(--mint); }
.form-result.is-open { display: block; }
.form-result h3 { font-size: 1.1rem; margin-bottom: 6px; }
.form-result p { font-size: 0.9rem; margin-bottom: 12px; }
.form-result .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px;
  padding: 18px 0; font-weight: 700; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--teal-600); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 0.94rem; padding-bottom: 16px; margin: 0; max-width: 70ch; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 48px); }
.page-hero .lede { font-size: 1.08rem; }
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-600); }

/* ---------- Chips / filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  padding: 9px 16px; border-radius: 999px; font-family: var(--font-body);
  font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--teal-500); }
.chip[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { background: var(--mint-soft); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-700); }
tr:last-child td { border-bottom: 0; }

/* ---------- Notice ---------- */
.notice {
  border-left: 3px solid var(--coral); background: #fff8f5; padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.88rem; color: #6d4237;
}

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(31, 157, 85, 0.35); transition: transform 0.2s var(--ease);
}
.float-wa:hover { transform: scale(1.06); color: #fff; }
.float-wa svg { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(238, 246, 242, 0.72); padding: clamp(48px, 6vw, 72px) 0 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(238, 246, 242, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 24px; font-size: 0.82rem; }
.footer-bottom p { margin: 0; }
.footer-demo { color: var(--mint); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .doctor-card:hover, .service-card:hover, .specialty-card:hover img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 0.9fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--sand);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform 0.32s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 11; border-radius: var(--radius-lg); object-position: center 18%; }
  .hero-card { left: 12px; bottom: 12px; }
  .feature, .cta-band { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .steps, .grid-3 { grid-template-columns: 1fr; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-split, .grid-split--even { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-facts { gap: 14px; }
  .demo-bar .wrap { font-size: 0.72rem; }
  .cta-band { padding: 28px 22px; }
  .float-wa { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* ---------- Horizontal doctor cards (doctors page) ---------- */
.doctor-card--row { flex-direction: row; }
.doctor-card--row .doctor-photo { width: 40%; flex: none; aspect-ratio: auto; min-height: 100%; }
.doctor-card--row .doctor-photo img { height: 100%; object-position: center 18%; }
.doctor-card--row .doctor-body { padding: 24px 26px; }
@media (max-width: 760px) {
  .doctor-card--row { flex-direction: column; }
  .doctor-card--row .doctor-photo { width: 100%; aspect-ratio: 4 / 3; }
  .doctor-card--row .doctor-photo img { height: 100%; }
}

/* ==========================================================================
   Language switcher + Arabic (RTL) support
   ========================================================================== */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper);
}
.lang-switch a {
  font-size: 0.76rem; font-weight: 700; padding: 6px 10px; border-radius: 999px;
  text-decoration: none; color: var(--muted); line-height: 1.1; white-space: nowrap;
}
.lang-switch a:hover { color: var(--teal-700); }
.lang-switch a[aria-current="true"] { background: var(--teal); color: #fff; }

html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.85;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: "Amiri", "Times New Roman", serif;
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: 700;
}
html[lang="ar"] h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
html[lang="ar"] .brand-name { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: 1.1rem; }
html[lang="ar"] .brand-sub { letter-spacing: 0; font-size: 0.72rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.82rem; }
html[lang="ar"] .doctor-role, html[lang="ar"] .specialty-card .tag { letter-spacing: 0; }
html[lang="ar"] .step-num { font-family: "IBM Plex Sans Arabic", sans-serif; }
html[lang="ar"] .price { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; }
html[lang="ar"] .doctor-card--row .doctor-body { padding: 24px 26px; }
html[lang="ar"] .field input, html[lang="ar"] .field select, html[lang="ar"] .field textarea,
html[lang="ar"] .btn, html[lang="ar"] .chip { font-family: "IBM Plex Sans Arabic", sans-serif; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

[dir="rtl"] .nav a::after { left: 100%; right: 0; }
[dir="rtl"] .nav a:hover::after, [dir="rtl"] .nav a[aria-current="page"]::after { left: 0; right: 0; }
[dir="rtl"] .text-link::after { content: "\2190"; }
[dir="rtl"] .hero-card { left: auto; right: -18px; }
[dir="rtl"] .float-wa { right: auto; left: 20px; }
[dir="rtl"] .notice { border-left: 0; border-right: 3px solid var(--coral); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
[dir="rtl"] .trust-item + .trust-item { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .info-card li span:last-child { text-align: left; }
[dir="rtl"] .cta-band::after { right: auto; left: -80px; }
[dir="rtl"] .skip-link { left: auto; right: -9999px; }
[dir="rtl"] .skip-link:focus { right: 0; left: auto; border-radius: 0 0 0 10px; }
[dir="rtl"] .faq summary::after { margin-left: 0; }
[dir="rtl"] .breadcrumb { flex-direction: row; }
[dir="rtl"] .hero-media img { border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }

@media (max-width: 1080px) {
  [dir="rtl"] .trust-item:nth-child(3) { border-right: 0; }
}
@media (max-width: 900px) {
  [dir="rtl"] .nav { align-items: flex-start; }
  [dir="rtl"] .hero-card { right: 12px; }
  [dir="rtl"] .hero-media img { border-radius: var(--radius-lg); }
  .lang-switch a { padding: 6px 8px; font-size: 0.72rem; }
}
@media (max-width: 620px) {
  [dir="rtl"] .trust-item + .trust-item { border-right: 0; }
  .header-actions { gap: 8px; }
}
