/* =========================================================
   QAMAR Homoeopathic Clinic — CLEAN PREMIUM STYLESHEET
   - Compact / organized
   - Responsive from 1200px down to small phones
   - Playfair Display for headings
   - Existing color palette preserved
   - Contact CTA design/colors intentionally preserved
   ========================================================= */

:root {
  color-scheme: light;
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --muted: #666666;
  --primary: #124734;
  --primary-dark: #0D3527;
  --accent: #B53030;
  --border: rgba(18, 71, 52, .12);
  --shadow: 0 24px 72px rgba(18, 71, 52, .08);
  --radius: 30px;
  --radius-sm: 18px;
  --transition: 250ms ease;
  --max-width: 1180px;
  --heading: "Playfair Display", Georgia, serif;
  --body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(18,71,52,.05), transparent 25%),
    radial-gradient(circle at 85% 28%, rgba(181,48,48,.06), transparent 22%),
    var(--bg);
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at top center, rgba(255,255,255,.65), transparent 26%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, .brand span, .footer-brand {
  font-family: var(--heading);
}
h1, h2, h3, p { overflow-wrap: break-word; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(250,248,243,.90);
  border-bottom: 1px solid rgba(18,71,52,.08);
}
.header-inner {
  width: min(100%, var(--max-width));
  min-height: 78px;
  margin: auto;
  padding: .8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-weight: 700;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}
.brand span {
  font-size: 1.08rem;
  letter-spacing: .02em;
  white-space: nowrap;
}
.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 5px;
  transition: color var(--transition), transform var(--transition);
}

/* Premium underline */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 10px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

/* Hover + selected link */
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  width: 65%;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
  transform: translateY(-1px);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.button:hover,
.button:focus-visible { transform: translateY(-2px); }
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 32px rgba(18,71,52,.16);
}
.button-secondary {
  color: var(--primary-dark);
  background: rgba(18,71,52,.06);
  border-color: rgba(18,71,52,.12);
}

/* ---------- Layout ---------- */
main {
  width: min(100%, var(--max-width));
  margin: auto;
  padding: 1.25rem 1.25rem 3.5rem;
}
section { scroll-margin-top: 90px; }
.section-header {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .24em;
}
.section-header h2 {
  margin: .8rem 0 .5rem;
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  font-weight: 600;
}
.section-header > p:last-child { color: var(--muted); }

/* =========================================================
   HERO
   Supports both the current .hero-visual-card markup and
   the earlier .hero-brand-card markup.
   ========================================================= */
.hero {
  position: relative;
  min-height: 650px;
  padding: 5.25rem 2.5rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .88fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 42%, rgba(18,71,52,.09), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(181,48,48,.07), transparent 25%);
}
.hero-content { position: relative; z-index: 2; min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.7rem;
  padding: .7rem 1.2rem .7rem 1rem;
  border: 1px solid rgba(18,71,52,.13);
  border-radius: 999px;
  background: rgba(18,71,52,.07);
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(3rem, 5.1vw, 4.55rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.025em;
}
.hero h1 .highlight {
  color: var(--primary-dark);
  font-style: italic;
}
.hero .subheading {
  display: inline-block;
  position: relative;
  margin: 1.25rem 0 0;
  padding-bottom: .5rem;
  color: var(--primary-dark);
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 600;
}
.hero .hero-description {
  max-width: 540px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.hero-actions .button { padding-inline: 1.45rem; }
.hero-media { position: relative; z-index: 2; min-width: 0; display: grid; place-items: center; }

/* Preferred photo-based hero card */
.hero-visual-card {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(18,71,52,.10);
  border-radius: 38px;
  background: #eee7d7;
  box-shadow: 0 28px 70px rgba(18,71,52,.14);
}
.hero-visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(13,53,39,.04));
}
.hero-visual-caption {
  position: absolute;
  top: 11%;
  left: 50%;
  z-index: 3;
  width: 78%;
  transform: translateX(-50%);
  text-align: center;
}
.hero-visual-arabic {
  margin: 0;
  color: #1c3b2c;
  font-family: "Amiri", "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(255,255,255,.75);
}
.hero-visual-divider {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  max-width: 220px;
  margin: .55rem auto;
}
.hero-visual-divider span { flex: 1; height: 1px; background: #b08d57; opacity: .7; }
.hero-visual-divider i { width: 6px; height: 6px; background: #b08d57; transform: rotate(45deg); }
.hero-visual-caption-en {
  margin: 0;
  color: #1c3b2c;
  font-family: var(--heading);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
}

/* Fallback card for the older HTML structure */
.hero-brand-card {
  position: relative;
  width: min(100%, 450px);
  min-height: 470px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2.5rem;
  border: 1px solid rgba(18,71,52,.10);
  border-radius: 38px;
  background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(247,242,235,.96));
  box-shadow: 0 28px 70px rgba(18,71,52,.13);
}
.hero-brand-card .hero-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-card-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; }
.remedy-bottle { display: grid; place-items: center; margin-bottom: 1rem; filter: drop-shadow(0 12px 20px rgba(18,71,52,.12)); }
.hero-card-title { margin: 0 0 .35rem; font-family: var(--heading); font-size: 1.8rem; color: var(--primary-dark); }
.hero-card-subtitle { margin: 0 0 1.5rem; color: var(--muted); }
.hero-card-highlights { display: grid; grid-template-columns: repeat(2,1fr); gap: .7rem; width: 100%; }
.hero-highlight { padding: .9rem .65rem; border: 1px solid rgba(18,71,52,.09); border-radius: 16px; background: rgba(18,71,52,.04); }
.hero-highlight strong { display: block; color: var(--primary-dark); font-family: var(--heading); font-size: 1.05rem; }
.hero-highlight span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }

/* ---------- About ---------- */

.about {
  padding: 4.5rem 0 4rem;
}

/* About layout */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* Doctor image */
.about-photo {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(18, 71, 52, 0.08);
  border-radius: 26px;
  background: #f5f3ed;
  box-shadow: 0 24px 60px rgba(18, 71, 52, 0.09);
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center top;
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 45%,
      rgba(13, 53, 39, 0.07) 100%
    );
}

/* Doctor information */
.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 2.5rem 2.7rem;

  border: 1px solid rgba(18, 71, 52, 0.08);
  border-radius: 26px;

  background: rgba(255, 255, 255, 0.96);

  box-shadow: 0 24px 60px rgba(18, 71, 52, 0.07);
}

/* Small red label */
.doctor-intro {
  display: inline-block;
  margin-bottom: 0.75rem;

  color: var(--accent);

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Main heading */
.about-text h3 {
  max-width: 680px;

  margin: 0 0 1.15rem;

  color: var(--primary-dark);

  font-family: var(--heading);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 600;
  line-height: 1.08;
}

/* Description */
.about-text p {
  max-width: 680px;

  margin: 0 0 1rem;

  color: var(--muted);

  font-size: 1rem;
  line-height: 1.75;
}

/* Highlights */
.doctor-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;

  margin-top: 1rem;
}

.doctor-highlight {
  min-width: 0;

  padding: 1rem 0.8rem;

  border: 1px solid rgba(18, 71, 52, 0.09);
  border-radius: 15px;

  background: rgba(18, 71, 52, 0.035);

  text-align: center;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.doctor-highlight:hover {
  transform: translateY(-3px);

  border-color: rgba(18, 71, 52, 0.16);

  background: rgba(18, 71, 52, 0.055);
}

.doctor-highlight strong {
  display: block;

  color: var(--primary-dark);

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.doctor-highlight span {
  display: block;

  margin-top: 0.35rem;

  color: var(--muted);

  font-size: 0.75rem;
  line-height: 1.35;
}


/* ---------- About Responsive ---------- */

@media (max-width: 900px) {

  .about {
    padding: 3.5rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-photo {
    min-height: 420px;
  }

  .about-photo img {
    min-height: 420px;
  }

  .about-text {
    padding: 2rem;
  }

  .about-text h3 {
    font-size: clamp(1.9rem, 5vw, 2.4rem);
  }
}


/* ---------- Small Phones ---------- */

@media (max-width: 600px) {

  .about {
    padding: 3rem 0;
  }

  .about-grid {
    gap: 1rem;
  }

  .about-photo {
    min-height: 360px;
    border-radius: 22px;
  }

  .about-photo img {
    min-height: 360px;
    object-position: center top;
  }

  .about-text {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .doctor-intro {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .about-text h3 {
    margin-bottom: 1rem;
    font-size: 1.9rem;
    line-height: 1.1;
  }

  .about-text p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .doctor-highlights {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .doctor-highlight {
    padding: 0.85rem 1rem;
    text-align: left;
  }

  .doctor-highlight strong,
  .doctor-highlight span {
    display: inline;
  }

  .doctor-highlight span {
    margin-left: 0.3rem;
  }
}

/* ---------- Shared section spacing ---------- */
.services, .benefits, .reviews, .appointment, .location { padding: 3.75rem 0; }
.service-cards, .benefit-grid, .location-grid { display: grid; gap: 1.25rem; }

/* ---------- Services ---------- */
.service-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
.service-card {
  position: relative;
  min-height: 230px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgba(14,70,54,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  top: -70px;
  right: -55px;
  border: 1px solid rgba(14,70,54,.08);
  border-radius: 50%;
}
.service-card h3, .benefit-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 .9rem;
  color: var(--primary-dark);
  font-family: var(--heading);
  font-size: 1.45rem;
  line-height: 1.2;
}
.service-card p, .benefit-card p { position: relative; z-index: 1; margin: 0; color: #65716B; line-height: 1.75; }
.service-card:hover, .benefit-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(14,70,54,.10); border-color: rgba(14,70,54,.22); }

/* ---------- Benefits ---------- */
.benefit-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.benefit-card {
  min-height: 210px;
  padding: 2rem;
  border: 1px solid rgba(14,70,54,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.benefit-card:first-child { background: #0E4636; color: #fff; }
.benefit-card:first-child h3, .benefit-card:first-child p { color: #fff; }

/* ---------- Reviews ---------- */
.review-subsection { margin-top: 2.75rem; }
.review-subsection-heading { margin-bottom: 1.25rem; }
.review-subsection-heading h3 { margin: 0; color: var(--primary-dark); font-family: var(--heading); font-size: clamp(1.7rem, 3vw, 2.2rem); }
.review-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; margin-top: 2.75rem; }
.review-subsection .review-carousel { margin-top: 0; }
.review-carousel-viewport { min-width: 0; overflow: hidden; }
.review-carousel-track { display: flex; gap: 1.25rem; transition: transform .35s ease; }
.review-carousel-track > .review-card { flex: 0 0 calc((100% - 2.5rem) / 3); min-width: 0; }
@media (min-width: 1024px) {
  #video-reviews-track.is-single-review { justify-content: center; }
  #video-reviews-track.is-single-review > .review-card { flex-basis: min(520px, 100%); }
}
.review-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(18,71,52,.11);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(18,71,52,.07);
}
.review-card::before {
  content: "“";
  position: absolute;
  top: .2rem;
  right: 1.15rem;
  color: rgba(181,141,60,.22);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
}
.review-card-featured { border-color: rgba(181,141,60,.38); box-shadow: 0 20px 50px rgba(18,71,52,.1); }
.review-card-label { margin: 0 0 .65rem; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.review-rating { margin: 0 0 .9rem; color: #b58d3c; font-size: 1.25rem; letter-spacing: .12em; }
.review-card blockquote { flex: 1; margin: 0 0 1.25rem; color: var(--text); font-family: var(--heading); font-size: 1.25rem; line-height: 1.5; overflow-wrap: anywhere; }
.review-card-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-top: auto; }
.review-card-name { color: var(--primary-dark); font-weight: 700; }
.review-card-date { color: var(--muted); font-size: .84rem; }
.reviews-message { grid-column: 1 / -1; margin: 0; padding: 2rem; border: 1px dashed rgba(18,71,52,.2); border-radius: 18px; color: var(--muted); text-align: center; }
.review-carousel-arrow { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid rgba(18,71,52,.14); border-radius: 50%; background: #fff; color: var(--primary-dark); box-shadow: 0 8px 20px rgba(18,71,52,.08); cursor: pointer; }
.review-carousel-arrow[hidden] { display: none; }
.review-carousel-arrow:hover:not(:disabled) { background: var(--primary-dark); color: #fff; }
.review-carousel-arrow:focus-visible { outline: 3px solid rgba(181,141,60,.38); outline-offset: 3px; }
.review-carousel-arrow:disabled { cursor: default; opacity: .4; }
.review-carousel-arrow svg { width: 20px; height: 20px; }
.review-video-card { padding: 0; }
.review-video-card::before { display: none; }
.review-video-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: #18211e; }
.review-video-frame iframe, .review-video-frame video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.review-video-link { position: relative; display: block; width: 100%; height: 100%; background: #18211e; }
.review-video-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review-video-play { position: absolute; top: 50%; left: 50%; display: grid; width: 48px; height: 34px; place-items: center; border-radius: 9px; background: #d92323; color: #fff; font-size: 1rem; transform: translate(-50%, -50%); }
.review-video-link:focus-visible { outline: 3px solid rgba(181,141,60,.6); outline-offset: -3px; }
.review-video-content { display: grid; align-content: start; gap: .2rem; padding: .75rem 1rem .85rem; }
.review-video-content .review-rating { margin: 0 0 .1rem; font-size: 1rem; line-height: 1.2; }
.review-video-content .review-card-name { line-height: 1.25; }
.review-video-description { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.reviews-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1.35rem 1.5rem; border: 1px solid rgba(18,71,52,.1); border-radius: 18px; background: rgba(18,71,52,.045); }
.reviews-cta p { margin: 0; color: var(--primary-dark); font-family: var(--heading); font-size: 1.35rem; }

/* ---------- Appointment ---------- */
.appointment-form {
  max-width: 820px;
  margin: auto;
  padding: 2.25rem;
  border: 1px solid rgba(18,71,52,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 60px rgba(18,71,52,.07);
}
.form-row { display: grid; gap: .55rem; margin-bottom: 1.15rem; }
.form-row label { font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid rgba(18,71,52,.16);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(18,71,52,.08);
}
.form-row textarea { min-height: 125px; resize: vertical; }
.form-actions { text-align: right; }
.form-hint { font-size: .82rem; color: var(--text-muted, #6b6b6b); font-weight: 400; }

/* ---------- Clinic hours note ---------- */
.hours-note {
  font-weight: 600;
  color: var(--primary-dark);
}

/* ---------- Location ---------- */
.location-grid { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
.location-details {
  padding: 2.25rem;
  border: 1px solid rgba(18,71,52,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 60px rgba(18,71,52,.07);
}
.location-details address { color: var(--muted); font-style: normal; }
.location-details p { margin: 0 0 1rem; }
.location-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.location-map {
  width: 100%;
  min-height: 450px;
  overflow: hidden;
  border-radius: 28px;
  background: #e9e5db;
  box-shadow: 0 20px 50px rgba(18,71,52,.10);
}
.location-map iframe { display: block; width: 100%; height: 450px; border: 0; }
.map-placeholder { min-height: 450px; background: linear-gradient(180deg, rgba(18,71,52,.03), rgba(18,71,52,.06)); }

/* =========================================================
   CONTACT CTA — KEEPING THE EXISTING DESIGN + COLORS
   ========================================================= */
.contact-cta { padding: 3.6rem 0; }
.cta-content {
  padding: 3.2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-dark), #114736);
  color: #f8f6f1;
  box-shadow: 0 28px 70px rgba(10,30,20,.35);
  display: grid;
  gap: 1.6rem;
  text-align: center;
}
.cta-content h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  line-height: 1.02;
}
.cta-content p { margin: 0; color: rgba(248,246,241,.88); font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.contact-cta .button {
  background: rgba(250,248,243,.96);
  color: var(--primary-dark);
  border-color: rgba(18,71,52,.12);
  box-shadow: 0 18px 32px rgba(18,71,52,.08);
}
.contact-cta .button:hover,
.contact-cta .button:focus-visible { transform: translateY(-1px); background: #fff; }
.cta-phone { margin: 0; font-size: 1.05rem; color: rgba(255,255,255,.95); font-weight: 600; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 1.25rem 3rem; background: #0D3527; color: rgba(255,255,255,.82); }
.footer-inner { width: min(100%, var(--max-width)); margin: auto; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start; }
.footer-brand { margin: 0 0 .65rem; font-size: 1.05rem; font-weight: 700; color: #fff; }
.footer-inner address, .footer-inner p { margin: 0 0 .75rem; color: rgba(255,255,255,.68); }
.footer-inner a { color: rgba(255,255,255,.92); }
.footer-nav ul { display: grid; grid-template-columns: repeat(2,minmax(120px,1fr)); gap: .65rem .9rem; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: rgba(255,255,255,.78); }
.footer-nav a:hover { color: #fff; }
.footer-social {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  margin-top: .15rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-social svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.footer-social:hover,
.footer-social:focus-visible { background: #1877F2; border-color: #1877F2; color: #fff; transform: translateY(-2px); }
.footer-social:focus-visible { outline: 3px solid rgba(255,255,255,.45); outline-offset: 3px; }
.footer-inner .copyright { grid-column: 1 / -1; margin: .5rem 0 0; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: #146b4d;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(18,71,52,.22), 0 3px 8px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.floating-whatsapp:hover { background: #0f593f; transform: translateY(-3px); }
.whatsapp-symbol { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 50%; background: #fff; color: #146b4d; }
.whatsapp-symbol svg { width: 23px; height: 23px; fill: currentColor; }
.whatsapp-label { white-space: nowrap; }

/* ---------- Back to top ---------- */
#topBtn {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: linear-gradient(145deg, #1b6048, #0d3527);
  color: #f4d79a;
  font-size: 1rem;
  box-shadow: 0 12px 26px rgba(13,53,39,.24), 0 0 0 2px rgba(244,215,154,.24), inset 0 1px 0 rgba(255,255,255,.16);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease;
}
#topBtn::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(244,215,154,.42);
  border-radius: 50%;
  pointer-events: none;
}
#topBtn .top-btn-icon {
  position: relative;
  z-index: 1;
  width: 19px;
  height: 19px;
}
#topBtn:hover {
  transform: translateY(-3px);
  border-color: rgba(244,215,154,.7);
  color: #fff;
  box-shadow: 0 16px 32px rgba(13,53,39,.32), 0 0 0 2px rgba(244,215,154,.5), inset 0 1px 0 rgba(255,255,255,.2);
}
#topBtn:focus-visible {
  outline: 3px solid rgba(181,141,60,.38);
  outline-offset: 3px;
}
#topBtn:active { transform: translateY(-1px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1050px) {
  .header-inner { flex-wrap: wrap; justify-content: center; }
  .brand { margin-right: auto; }
  .site-nav { order: 3; width: 100%; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 4rem 1.5rem; }
  .hero-content { max-width: 760px; margin: auto; }
  .hero h1, .hero .hero-description { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { margin-top: .5rem; }
  .about-grid, .location-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 420px; }
  .about-photo img { min-height: 420px; }
  .service-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 1023px) {
  .review-carousel-track > .review-card { flex-basis: calc((100% - 1.25rem) / 2); }
}

@media (max-width: 720px) {
  .header-inner { min-height: auto; padding: .7rem 1rem; gap: .65rem; }
  .brand { margin: 0; width: 100%; justify-content: center; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 1rem; }
  .site-nav ul { gap: .65rem .9rem; }
  .site-nav a { font-size: .88rem; }
  .header-inner > .button { min-height: 42px; padding: .68rem 1.1rem; }

  main { padding: .5rem .9rem 2.5rem; }
  .hero { min-height: auto; padding: 3.5rem .75rem 3rem; gap: 2.5rem; }
  .eyebrow { margin-bottom: 1.3rem; font-size: .68rem; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.3rem); line-height: 1.08; }
  .hero .subheading { font-size: 1.2rem; }
  .hero .hero-description { font-size: .98rem; }
  .hero-actions { margin-top: 1.5rem; justify-content: center; }
  .hero-actions .button { min-width: 150px; }

  .hero-visual-card { width: min(100%, 380px); border-radius: 28px; }
  .hero-visual-caption { top: 10%; }
  .hero-visual-arabic { font-size: 1.8rem; }
  .hero-visual-divider { max-width: 130px; }
  .hero-visual-caption-en { font-size: .95rem; }
  .hero-brand-card { width: min(100%, 380px); min-height: 390px; padding: 2rem 1.4rem; border-radius: 28px; }

  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: clamp(1.9rem, 8vw, 2.55rem); }
  .about, .services, .benefits, .reviews, .appointment, .location { padding: 3rem 0; }
  .about-photo, .about-photo img { min-height: 340px; }
  .about-text, .appointment-form, .location-details { padding: 1.6rem; border-radius: 22px; }
  .reviews-cta { align-items: flex-start; flex-direction: column; }
  .doctor-highlights { grid-template-columns: 1fr; }
  .service-cards, .benefit-grid { grid-template-columns: 1fr; }
  .service-card, .benefit-card { min-height: 0; padding: 1.65rem; }
  .location-actions { align-items: stretch; }
  .location-actions .button { flex: 1 1 150px; }
  .location-map, .location-map iframe, .map-placeholder { min-height: 340px; height: 340px; }
  .form-actions { text-align: left; }
  .form-actions .button { width: auto; }
  .cta-content { padding: 2.2rem 1.25rem; border-radius: 24px; }
  .cta-actions { gap: .7rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav ul { grid-template-columns: repeat(2,minmax(100px,1fr)); }
}

@media (max-width: 480px) {
  .site-nav ul { justify-content: center; gap: .55rem .75rem; }
  .site-nav a { font-size: .82rem; }
  .header-inner > .button { width: auto; }
  .hero { padding-inline: .25rem; }
  .eyebrow { max-width: 100%; padding-inline: .8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .button { width: min(100%, 250px); }
  .hero-visual-card, .hero-brand-card { width: 100%; }
  .hero-visual-arabic { font-size: 1.55rem; }
  .hero-card-highlights { gap: .5rem; }
  .hero-highlight { padding-inline: .4rem; }
  .floating-whatsapp { right: 14px; bottom: 14px; padding: 10px; }
  .whatsapp-label { display: none; }
  .whatsapp-symbol { width: 42px; height: 42px; flex-basis: 42px; }
  #topBtn { right: 14px; bottom: 88px; }
  .review-card { padding: 1.4rem; }
  .reviews-cta .button { width: 100%; }
}

@media (max-width: 600px) {
  .review-carousel { gap: .45rem; }
  .review-carousel-track { gap: 0; }
  .review-carousel-track > .review-card { flex-basis: 100%; }
  .review-carousel-arrow { width: 36px; height: 36px; }
}

/* Prevent long content from creating horizontal overflow. */
.hero *, .about *, .service-cards *, .benefit-grid *, .location *, .appointment *, .contact-cta *, .site-footer * { min-width: 0; }


/* =========================================
   MOBILE HAMBURGER MENU
========================================= */

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid rgba(18, 71, 52, 0.15);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;

  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: 0.25s ease;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

  /* Prevent horizontal scrolling */
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Header */
  .header-inner {
    position: relative;
    min-height: 72px;
    padding: 0 18px;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Hide desktop appointment button */
  .header-inner > .button-primary {
    display: none;
  }

  /* Mobile navigation */
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    z-index: 9999;

    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(18, 71, 52, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(18, 71, 52, 0.14);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    margin: 0;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 13px 14px;
    box-sizing: border-box;
    border-radius: 10px;
  }

  .site-nav a:hover {
    background: rgba(18, 71, 52, 0.06);
  }

  /* Hamburger animation */
  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }


  /* =====================================
     MOBILE CONTENT
  ===================================== */

  .hero {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  /* Don't make buttons huge */
  .button {
    width: auto;
    max-width: 100%;
  }

  .hero-actions,
  .cta-actions,
  .location-actions {
    flex-wrap: wrap;
  }

}
/* =========================================================
   FINAL MOBILE POLISH
   ========================================================= */

@media (max-width: 700px) {

  /* -------------------------------------------------------
     HEADER — LOGO + HAMBURGER ON SAME ROW
     ------------------------------------------------------- */

  .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 10px 16px;
    gap: 12px;
  }

  .brand {
    width: auto !important;
    max-width: calc(100% - 58px);
    margin: 0 !important;
    justify-content: flex-start;
    flex-shrink: 1;
  }

  .brand img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .brand span {
    font-size: 0.9rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  /* Hamburger */
  .menu-toggle {
    display: flex !important;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin: 0 !important;
    padding: 8px;
    box-sizing: border-box;
  }

  /* Hide desktop appointment button */
  .header-inner > .button-primary {
    display: none !important;
  }

  /* Mobile dropdown */
  .site-nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    width: auto !important;
    z-index: 9999;

    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(18, 71, 52, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(18, 71, 52, 0.14);
  }

  .site-nav.is-open {
    display: block !important;
  }

  .site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    margin: 0;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 13px 14px;
    box-sizing: border-box;
    border-radius: 9px;
    font-size: 0.95rem;
  }


  /* -------------------------------------------------------
     HERO
     ------------------------------------------------------- */

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    box-sizing: border-box;
    padding: 2.8rem 1rem 3rem;
    gap: 2rem;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10vw, 3.2rem);
    line-height: 1.02;
  }

  .hero .subheading {
    font-size: 1.15rem;
  }

  .hero .hero-description {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.65;
  }


  /* -------------------------------------------------------
     HERO BUTTONS — NORMAL SIZE
     ------------------------------------------------------- */

  .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 1.4rem;
  }

  .hero-actions .button {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none;
    min-height: 46px !important;
    height: auto !important;
    padding: 0.72rem 1.15rem !important;
    font-size: 0.9rem;
    line-height: 1.2;
    border-radius: 999px;
    box-sizing: border-box;
  }

  /*
     Some older CSS may be adding a large phone icon
     to telephone buttons. Remove it.
  */
  .hero-actions a[href^="tel"]::before,
  .hero-actions a[href^="tel"]::after {
    display: none !important;
    content: none !important;
  }

  .hero-actions a[href^="tel"] i,
  .hero-actions a[href^="tel"] svg {
    width: 16px;
    height: 16px;
    font-size: 16px;
  }


  /* -------------------------------------------------------
     HERO IMAGE / CARD
     ------------------------------------------------------- */

  .hero-media {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-visual-card,
  .hero-brand-card {
    width: min(100%, 360px) !important;
    max-width: 360px;
    margin: 0 auto;
  }


  /* -------------------------------------------------------
     ABOUT
     ------------------------------------------------------- */

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }

  .about-photo {
    width: 100%;
    max-width: 420px;
    min-height: 0 !important;
    margin: 0 auto;
  }

  .about-photo img {
    width: 100%;
    height: auto;
    min-height: 0 !important;
    object-fit: cover;
  }


  /* -------------------------------------------------------
     SERVICES + BENEFITS
     ------------------------------------------------------- */

  .service-cards,
  .benefit-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .service-card,
  .benefit-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }


  /* -------------------------------------------------------
     LOCATION
     ------------------------------------------------------- */

  .location-grid {
    grid-template-columns: 1fr !important;
  }

  .location-map {
    width: 100%;
    min-width: 0;
  }

  .location-map iframe {
    width: 100% !important;
    max-width: 100%;
    min-height: 300px;
    box-sizing: border-box;
  }


  /* -------------------------------------------------------
     GENERAL BUTTON FIX
     ------------------------------------------------------- */

  .button {
    max-width: 100%;
    box-sizing: border-box;
  }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

  .header-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand span {
    font-size: 0.84rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .hero {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 2.8rem);
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .button {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-size: 0.85rem;
  }

}