/* =================================================================
   OMAR KHASHABA CLINIC — MAIN STYLESHEET
   ================================================================= */

/* -----------------------------------------------------------------
   1. CUSTOM PROPERTIES
   ----------------------------------------------------------------- */
:root {
  --bg:          #F7F7F7;
  --white:       #FFFFFF;
  --gold:        #987D3E;
  --gold-light:  #b8a06a;
  --gold-pale:   rgba(152, 125, 62, 0.08);
  --navy:        #10334F;
  --navy-mid:    #1a4a6e;
  --navy-pale:   rgba(16, 51, 79, 0.06);
  --text:        #2C2C2C;
  --text-mid:    #555555;
  --text-light:  #888888;
  --border:      #E2E2E2;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 10px rgba(16, 51, 79, 0.06);
  --shadow:      0 6px 28px rgba(16, 51, 79, 0.10);
  --shadow-lg:   0 12px 50px rgba(16, 51, 79, 0.16);
  --transition:  0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h:       88px;
}

/* -----------------------------------------------------------------
   2. RESET & BASE
   ----------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Raleway', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
fieldset { border: none; }

/* -----------------------------------------------------------------
   3. TYPOGRAPHY
   ----------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { line-height: 1.8; color: var(--text-mid); }

/* -----------------------------------------------------------------
   4. LAYOUT UTILITIES
   ----------------------------------------------------------------- */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-white { background: var(--white); }
.section-navy  { background: var(--navy); }

/* -----------------------------------------------------------------
   5. BUTTONS
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-lg  { padding: .9rem 2.2rem; font-size: .98rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 1rem; }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(152, 125, 62, 0.30);
}
.btn-gold:hover { background: #7a6432; box-shadow: 0 6px 24px rgba(152, 125, 62, 0.42); transform: translateY(-2px); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(16, 51, 79, 0.22);
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-white-outline:hover { background: var(--white); color: var(--navy); }

/* -----------------------------------------------------------------
   6. SECTION SHARED STYLES
   ----------------------------------------------------------------- */
section { padding: 96px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-title  { margin-bottom: .75rem; }
.section-sub    { color: var(--text-mid); font-size: .97rem; }
.sub-light      { color: rgba(255,255,255,0.7); }
.title-light    { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.eyebrow-light { color: var(--gold-light); }

/* -----------------------------------------------------------------
   7. SCROLL ANIMATIONS
   ----------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1),
              transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------------------------------------
   8. NAVBAR
   ----------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(247, 247, 247, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.logo {
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1;
}
.logo-name { color: var(--gold); }
.logo-tag  { color: var(--navy); margin-left: .25rem; }
.logo-light .logo-name { color: var(--gold-light); }
.logo-light .logo-tag  { color: rgba(255,255,255,0.85); }

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav-link {
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  padding: .45rem .75rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-link:hover,
.nav-link.active { color: var(--gold); }

.nav-book { margin-left: .5rem; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------------------------------------------
   9. HERO
   ----------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg-decor {
  position: absolute;
  top: -120px; right: -180px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(152,125,62,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.hero-content { max-width: 560px; }

.hero-headline {
  margin: .6rem 0 1.2rem;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.12;
}
/* Exact clinic name kicker inside the H1 — small, branded, for SEO + identity */
.hero-clinic-name {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .55rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  max-width: 490px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .5rem;
}
.hero-stars   { font-size: 1.35rem; line-height: 1; letter-spacing: .05rem; }
.hero-rating-text {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-mid);
}

/* Doctor card */
.hero-doctor {
  width: 380px;
  flex-shrink: 0;
}
.doctor-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.doctor-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 3px solid rgba(152,125,62,.2);
  pointer-events: none;
  z-index: 1;
}
.doctor-accent-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
}
.doctor-img { width: 100%; display: block; border-radius: var(--radius); }

.doctor-bio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.doctor-name  { font-size: 1.2rem; color: var(--navy); margin-bottom: .25rem; }
.doctor-title { font-size: .83rem; font-weight: 600; color: var(--gold); letter-spacing: .03em; margin-bottom: .75rem; }
.doctor-bio   { font-size: .875rem; color: var(--text-mid); margin-bottom: 1rem; line-height: 1.7; }
.doctor-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-pale);
  padding: .3rem .75rem;
  border-radius: 50px;
}
.badge i { color: var(--gold); }

/* -----------------------------------------------------------------
   10. ABOUT
   ----------------------------------------------------------------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image { position: relative; }
.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow);
}
.about-badge-card {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  box-shadow: var(--shadow-lg);
}
.about-badge-card i { font-size: 1.8rem; color: var(--gold); }
.about-badge-card strong { display: block; font-size: .92rem; color: var(--navy); }
.about-badge-card span  { font-size: .8rem; color: var(--text-light); }

.about-text .section-title { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1.1rem; }

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-lbl { font-size: .8rem; font-weight: 600; color: var(--text-mid); letter-spacing: .04em; }

/* -----------------------------------------------------------------
   11. SERVICES
   ----------------------------------------------------------------- */
.services { background: var(--bg); }

.children-callout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  color: var(--white);
  flex-wrap: wrap;
}
.callout-icon-wrap {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.callout-body { flex: 1; min-width: 200px; }
.callout-body strong { display: block; font-size: 1rem; margin-bottom: .2rem; }
.callout-body span   { font-size: .88rem; opacity: .85; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom: 3px solid var(--gold);
}
.svc-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  transition: var(--transition);
}
/* Circular badge fills the container; scale up slightly to absorb the
   PNG's transparent margin so the navy circle meets the edges */
.svc-icon-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform .35s ease;
}
.service-card:hover .svc-icon-img { transform: scale(1.2); }
.service-card h3 { font-size: 1.05rem; color: var(--navy); }
.service-card p  { font-size: .855rem; line-height: 1.65; color: var(--text-mid); flex: 1; }
.svc-btn { margin-top: auto; font-size: .82rem; padding: .55rem 1.2rem; }

/* -----------------------------------------------------------------
   12. REVIEWS SLIDER
   ----------------------------------------------------------------- */
.reviews { background: var(--navy); padding: 96px 0; }

/* Slider structure: .slider-outer > [btn] + .slider-clip > .slider-track > cards */
.slider-outer {
  position: relative;
}
.slider-clip {
  overflow: hidden;
  border-radius: var(--radius);
}
.slider-track {
  display: flex;
  gap: 20px;
  transition: transform .55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.review-card {
  flex: 0 0 auto;   /* width set in JS */
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  box-shadow: 4px 0 20px rgba(16,51,79,0.06);
}
.review-stars { color: var(--gold); font-size: 1rem; letter-spacing: .1em; }
.review-text  { font-size: .9rem; color: var(--text-mid); line-height: 1.75; flex: 1; font-style: italic; }
.review-text::before { content: '"'; font-size: 1.4rem; color: var(--gold); line-height: 0; vertical-align: -0.4rem; margin-right: .1rem; }
.review-text::after  { content: '"'; font-size: 1.4rem; color: var(--gold); line-height: 0; vertical-align: -0.4rem; margin-left: .1rem; }
.review-author { display: flex; align-items: center; gap: .85rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-pale);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.review-name    { font-weight: 700; font-size: .88rem; color: var(--navy); }
.review-meta    { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.review-service { font-size: .75rem; font-weight: 700; color: var(--gold); }
.review-sep     { font-size: .75rem; color: var(--text-light); }
.review-date    { font-size: .75rem; color: var(--text-light); }

.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  z-index: 5;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--gold); color: var(--white); }
.slider-prev { left: -1.6rem; }
.slider-next { right: -1.6rem; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--gold); width: 22px; border-radius: 50px; }

/* -----------------------------------------------------------------
   13. GALLERY
   ----------------------------------------------------------------- */
.gallery { background: var(--white); }

/* Sticky-scroll layout — the side columns scroll while the middle pins */
.gallery-sticky {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}
.gal-col { display: grid; gap: 12px; }
.gal-col .gal-item { height: 380px; }

/* Middle column stays pinned in the viewport as you scroll the section.
   Three rows: small photo, larger video, small photo */
.gal-col-mid {
  position: sticky;
  top: 96px;
  height: calc(100vh - 120px);
  grid-template-rows: 1fr 1.7fr 1fr;
}
.gal-col-mid .gal-item,
.gal-col-mid .gal-video { height: 100%; min-height: 0; }

/* Video tile — matches the gallery image tiles but is not a lightbox item */
.gal-video {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.gal-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gal-item:hover img { transform: scale(1.06); }
.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 51, 79, 0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  font-size: 1.5rem;
}
.gal-item:hover .gal-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-content    { text-align: center; max-width: 90vw; max-height: 90vh; }
.lb-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lb-caption {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  margin-top: .75rem;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); }
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* -----------------------------------------------------------------
   14. WHY US
   ----------------------------------------------------------------- */
.why-us { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--gold-pale), rgba(152,125,62,0.14));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  color: var(--gold);
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--gold); color: var(--white); }
.why-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .7rem; }
.why-card p  { font-size: .875rem; color: var(--text-mid); }

/* -----------------------------------------------------------------
   15. LOCATION
   ----------------------------------------------------------------- */
.location { background: var(--white); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: start;
}
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; }

/* On mobile, tapping the map opens the Google Maps app via the short link */
.map-mobile-link { display: none; }
@media (max-width: 768px) {
  .map-mobile-link {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    text-decoration: none;
    background: linear-gradient(to top, rgba(16, 51, 79, 0.55) 0%, rgba(16, 51, 79, 0) 45%);
  }
  .map-mobile-link span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow);
  }
}

.location-info { display: flex; flex-direction: column; gap: 1.5rem; }
.loc-item { display: flex; gap: 1rem; align-items: flex-start; }
.loc-icon {
  width: 42px; height: 42px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.loc-item > div { display: flex; flex-direction: column; gap: .15rem; }
.loc-item strong { font-size: .9rem; color: var(--navy); font-weight: 700; }
.loc-item span, .loc-item a { font-size: .875rem; color: var(--text-mid); }
.loc-item a:hover { color: var(--gold); }
.loc-item small  { font-size: .77rem; color: var(--text-light); font-style: italic; }

/* -----------------------------------------------------------------
   16. FOOTER
   ----------------------------------------------------------------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { display: inline-flex; align-items: center; margin-bottom: 1rem; }
.footer-tagline { font-size: .875rem; line-height: 1.7; margin-bottom: 1.5rem; color: rgba(255,255,255,.6); }

.social-row { display: flex; gap: .6rem; margin-bottom: 1.25rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.social-btn:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }

.footer-phone { font-size: .88rem; }
.footer-phone a { color: rgba(255,255,255,.8); }
.footer-phone a:hover { color: var(--gold-light); }
.footer-phone i { color: var(--gold); margin-right: .4rem; }

.footer-col h4 {
  font-family: 'Raleway', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem;
}
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul a { font-size: .875rem; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col ul a:hover { color: var(--gold-light); }

.contact-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .8rem; }
.contact-list i { color: var(--gold); margin-top: .2rem; flex-shrink: 0; font-size: .85rem; }
.contact-list a { color: rgba(255,255,255,.65); font-size: .875rem; }
.contact-list a:hover { color: var(--gold-light); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .82rem; color: rgba(255,255,255,.35); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.65); }

/* -----------------------------------------------------------------
   17. CHAT WIDGET
   ----------------------------------------------------------------- */
.chat-widget {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
.chat-fab {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.4rem;
  background: var(--gold);
  color: var(--white);
  border-radius: 50px;
  font-family: 'Raleway', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  box-shadow: 0 6px 28px rgba(152,125,62,.42);
  transition: var(--transition);
  border: none;
}
.chat-fab:hover { background: #7a6432; transform: translateY(-2px); }
.chat-fab-icon  { font-size: 1.1rem; transition: var(--transition); }
.chat-fab-close { font-size: 1.1rem; display: none; transition: var(--transition); }
.chat-fab.open .chat-fab-icon  { display: none; }
.chat-fab.open .chat-fab-close { display: block; }

.chat-popup {
  width: 340px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.chat-popup.open { display: flex; animation: slideUpIn .35s cubic-bezier(0.16,1,0.3,1); }
@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-head {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.chat-head-text strong { display: block; font-size: .92rem; }
.chat-head-text span   { font-size: .77rem; opacity: .65; }
.chat-popup-close { margin-left: auto; color: rgba(255,255,255,.5); font-size: 1rem; transition: color .2s; }
.chat-popup-close:hover { color: var(--white); }

.chat-messages {
  padding: 1.25rem;
  flex: 1;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.chat-msg { max-width: 85%; }
.chat-msg p {
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text);
  line-height: 1.6;
}
.chat-msg.bot  p { background: var(--navy-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm); }
.chat-msg.user   { align-self: flex-end; }
.chat-msg.user p { background: var(--gold-pale); border-radius: var(--radius-sm) 0 var(--radius-sm) var(--radius-sm); }

.chat-form {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.chat-input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
}
.chat-input:focus { border-color: var(--gold); }
.chat-row { display: flex; gap: .5rem; }
.chat-row .chat-input { flex: 1; }
/* Typing indicator */
.chat-typing p { display: flex; align-items: center; gap: 4px; padding: .55rem .9rem; }
.typing-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.5;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: .18s; }
.typing-dot:nth-child(3) { animation-delay: .36s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

.chat-send-btn {
  width: 42px; height: 42px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { background: #7a6432; }

/* -----------------------------------------------------------------
   18. BOOKING PAGE
   ----------------------------------------------------------------- */
.booking-page { background: var(--bg); }

.booking-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.booking-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.back-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  transition: color .2s;
}
.back-link:hover { color: var(--gold); }
.header-phone {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
}
.header-phone i { color: var(--gold); margin-right: .35rem; }

.booking-main { padding: 3rem 0 5rem; }
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.booking-intro { margin-bottom: 2.5rem; }
.booking-title { margin: .5rem 0 .75rem; }
.booking-intro p { color: var(--text-mid); }

/* Form */
.form-fieldset {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.form-fieldset legend {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
  margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .02em;
}
.req { color: var(--gold); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--white); }
.form-group select:disabled { opacity: .45; cursor: not-allowed; background: var(--bg); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 20px; padding-right: 2.5rem; }
.form-group textarea { resize: vertical; min-height: 90px; }
.field-err { font-size: .78rem; color: #c0392b; min-height: 1em; }

/* Patient type selector */
.patient-type-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.patient-type-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.patient-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.patient-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.patient-type-btn:hover {
  border-color: var(--gold);
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.patient-type-btn i {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: .25rem;
}
.patient-type-btn strong {
  font-size: .95rem;
  color: var(--navy);
  font-weight: 700;
}
.patient-type-btn span {
  font-size: .8rem;
  color: var(--text-light);
}
.patient-type-btn.selected {
  border-color: var(--gold);
  background: var(--gold-pale);
}
@media (max-width: 600px) {
  .patient-type-grid { grid-template-columns: 1fr; }
}

/* Lookup row (existing patient phone search) */
.lookup-input-wrap {
  position: relative;
}
.lookup-status {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .8rem;
  font-weight: 600;
  pointer-events: none;
}
.lookup-status.ok      { color: #27ae60; }
.lookup-status.err     { color: #c0392b; }
.lookup-status.loading { color: var(--gold); }
.lookup-status.loading::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid var(--gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-right: .4rem;
  vertical-align: middle;
}

/* Read-only form fields (existing patient mode) */
.form-group input[readonly],
.form-group input.readonly {
  background: var(--gold-pale) !important;
  color: var(--navy) !important;
  border-color: var(--gold) !important;
  cursor: not-allowed;
  font-weight: 600;
}

/* Switch type back link */
.switch-type {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.switch-type a {
  font-size: .82rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.switch-type a:hover { text-decoration: underline; }

/* Inline phone-already-exists warning */
.phone-exists-warn {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  margin-top: .5rem;
  font-size: .82rem;
  color: #92400e;
  display: none;
}
.phone-exists-warn.show { display: block; }
.phone-exists-warn a {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Slots */
.slots-section {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1.5px dashed var(--border);
}
.slots-placeholder, .slots-loading {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-light);
}
.slots-placeholder i { font-size: 2.5rem; color: var(--border); display: block; margin-bottom: .75rem; }
.slots-placeholder p, .slots-loading p { font-size: .875rem; }
.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto .75rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}
.slot-btn {
  padding: .65rem .5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.slot-btn:hover:not(.unavailable) { border-color: var(--gold); color: var(--gold); }
.slot-btn.selected { background: var(--gold); border-color: var(--gold); color: var(--white); }
.slot-btn.unavailable { background: var(--bg); color: var(--border); cursor: not-allowed; text-decoration: line-through; }

/* Submit spinner */
.btn-spinner { margin-left: .4rem; }

/* Booking sidebar */
.booking-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.sidebar-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.sidebar-info { display: flex; flex-direction: column; gap: .7rem; }
.sidebar-info li { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: var(--text-mid); }
.sidebar-info i { color: var(--gold); margin-top: .1rem; flex-shrink: 0; }
.sidebar-info a:hover { color: var(--gold); }
.sidebar-tips h4 { font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: .85rem; }
.sidebar-tips h4 i { color: var(--gold); margin-right: .35rem; }
.sidebar-tips ul li {
  font-size: .82rem;
  color: var(--text-mid);
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: .9rem;
  position: relative;
}
.sidebar-tips ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .85rem;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.sidebar-tips ul li:last-child { border-bottom: none; }
.sidebar-doctor { display: flex; gap: .9rem; align-items: center; }
.sidebar-doctor img { border-radius: 50%; flex-shrink: 0; }
.sidebar-doctor strong { display: block; font-size: .9rem; color: var(--navy); margin-bottom: .2rem; }
.sidebar-doctor span  { font-size: .78rem; color: var(--text-light); }

/* Confirmation overlay */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16,51,79,.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.confirm-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.confirm-icon {
  font-size: 3.5rem;
  color: #27ae60;
  margin-bottom: 1.25rem;
}
.confirm-box h2 { margin-bottom: .75rem; }
.confirm-box p  { color: var(--text-mid); margin-bottom: 1.5rem; }
.confirm-details {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: .875rem;
}
.confirm-details p { margin-bottom: .35rem; color: var(--text); }
.confirm-details strong { color: var(--navy); }

/* -----------------------------------------------------------------
   20. LOGO IMAGE
   ----------------------------------------------------------------- */
.logo-img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.booking-header .logo-img { height: 52px; }

/* -----------------------------------------------------------------
   21. DOCTOR CARD (premium — dcp-*)
   ----------------------------------------------------------------- */
.dcp-card {
  width: 360px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(152,125,62,0.18);
}
.dcp-photo-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.dcp-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s ease;
}
.dcp-card:hover .dcp-photo { transform: scale(1.03); }
.dcp-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(16,51,79,.93) 0%, transparent 100%);
  pointer-events: none;
}
.dcp-name     { color: var(--white); font-size: 1.25rem; margin-bottom: .2rem; }
.dcp-specialty{ color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.dcp-exp-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: .55rem .8rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(152,125,62,.4);
}
.dcp-exp-num { display: block; font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 700; line-height: 1; }
.dcp-exp-lbl { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; line-height: 1.3; margin-top: .2rem; }

.dcp-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dcp-creds { display: flex; flex-direction: column; gap: .55rem; }
.dcp-creds li { display: flex; align-items: center; gap: .65rem; font-size: .82rem; color: var(--text-mid); }
.dcp-cred-icon {
  width: 28px; height: 28px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: .72rem;
  flex-shrink: 0;
}
.dcp-bio {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  padding-top: .25rem;
  border-top: 1px solid var(--border);
}
.dcp-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.dcp-stat { text-align: center; }
.dcp-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy); line-height: 1;
}
.dcp-stat span { font-size: .7rem; color: var(--text-light); font-weight: 600; letter-spacing: .04em; }

/* Phone numbers list */
.phone-list { display: flex; flex-direction: column; gap: .3rem; }
.phone-list a { font-size: .875rem; color: var(--text-mid); }
.phone-list a:hover { color: var(--gold); }

/* -----------------------------------------------------------------
   19. RESPONSIVE — TABLET (max 1024px)
   ----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container      { grid-template-columns: 1fr; }
  .hero-doctor         { width: 100%; display: flex; justify-content: center; }
  .dcp-card            { width: 100%; max-width: 480px; }
  .dcp-photo-wrap      { height: 280px; }

  .about-grid          { grid-template-columns: 1fr; }
  .about-image         { order: -1; }
  .about-badge-card    { right: 0; bottom: -1rem; }

  .services-grid       { grid-template-columns: repeat(2, 1fr); }

  /* review-card width is JS-controlled — no override needed */

  /* gallery: drop the sticky pin on tablet, flow columns normally */
  .gal-col-mid         { position: static; height: auto; grid-template-rows: none; }
  .gal-col .gal-item,
  .gal-col-mid .gal-item,
  .gal-col-mid .gal-video { height: 300px; }

  .why-grid            { grid-template-columns: repeat(2, 1fr); }

  .location-grid       { grid-template-columns: 1fr; }

  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  .booking-layout      { grid-template-columns: 1fr; }
  .booking-sidebar     { display: grid; grid-template-columns: 1fr 1fr; }
  .slots-grid          { grid-template-columns: repeat(3, 1fr); }
}

/* -----------------------------------------------------------------
   20. RESPONSIVE — MOBILE (max 768px)
   ----------------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  section { padding: 64px 0; }

  /* Navbar */
  .nav-book { display: none; }
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-link { width: 100%; padding: .75rem 1rem; border-radius: 8px; font-size: .92rem; }
  .nav-menu .nav-book {
    display: flex;
    margin-top: .5rem;
    width: 100%;
    justify-content: center;
  }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .doctor-bio-card { padding: 1.2rem; }

  /* About */
  .about-badge-card { position: static; margin-top: 1rem; border-radius: var(--radius-sm); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .children-callout { flex-direction: column; text-align: center; }

  /* Reviews */
  .review-card { flex: 0 0 calc(100% - 1rem); }

  /* Gallery — flatten the 3 column-divs so every tile flows into one even
     2-column grid (otherwise the 3 divs stack lopsidedly in 2 columns) */
  .gallery-sticky { grid-template-columns: repeat(2, 1fr); }
  .gal-col, .gal-col-mid { display: contents; }
  .gal-col .gal-item,
  .gal-col-mid .gal-item,
  .gal-col-mid .gal-video { height: 240px; }
  .gal-hide-mobile { display: none; }
  .lb-prev      { left: .5rem; }
  .lb-next      { right: .5rem; }

  /* Why Us */
  .why-grid { grid-template-columns: 1fr; }

  /* Location */
  .location-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Chat */
  .chat-popup { width: 300px; }
  .chat-widget { bottom: 1.25rem; right: 1.25rem; }
  .chat-fab-label { display: none; }

  /* Booking */
  .form-row     { grid-template-columns: 1fr; }
  .slots-grid   { grid-template-columns: repeat(3, 1fr); }
  .booking-sidebar { grid-template-columns: 1fr; }
  .booking-header-inner .back-link span { display: none; }
  .header-phone { font-size: .8rem; }
}

@media (max-width: 480px) {
  /* Keep two columns on phones (instead of one) to roughly halve the scroll */
  .gal-col .gal-item,
  .gal-col-mid .gal-item,
  .gal-col-mid .gal-video { height: 180px; }
  .slots-grid   { grid-template-columns: repeat(2, 1fr); }
  .hero-headline { font-size: 2.2rem; }
}

/* =================================================================
   ARABIC (RTL) + LANGUAGE TOGGLE
   ================================================================= */

/* Arabic typography: Playfair/Raleway have no Arabic glyphs, so swap to Cairo. */
body.lang-ar,
body.lang-ar p,
body.lang-ar input,
body.lang-ar select,
body.lang-ar textarea,
body.lang-ar button { font-family: 'Cairo', 'Tajawal', 'Raleway', sans-serif; }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4,
body.lang-ar .section-title, body.lang-ar .hero-headline, body.lang-ar .booking-title,
body.lang-ar .eyebrow, body.lang-ar legend { font-family: 'Cairo', 'Tajawal', sans-serif; }
body.lang-ar { line-height: 1.85; }
/* The footer brand wordmark stays Latin. */
body.lang-ar .logo-name, body.lang-ar .logo-tag { font-family: 'Playfair Display', Georgia, serif; }

/* Keep phone numbers and emails left-to-right inside an RTL page. */
[dir="rtl"] a[href^="tel"], [dir="rtl"] a[href^="mailto"],
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { direction: ltr; }
[dir="rtl"] .header-phone { direction: ltr; }

/* Language toggle pill */
.nav-actions, .booking-header-actions { display: inline-flex; align-items: center; gap: .75rem; }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 36px; padding: 0 .7rem;
  border: 1.5px solid var(--gold); color: var(--gold);
  background: transparent; border-radius: 50px;
  font-weight: 700; font-size: .85rem; letter-spacing: .03em;
  transition: var(--transition);
}
.lang-toggle:hover { background: var(--gold); color: #fff; }
.navbar.scrolled .lang-toggle { border-color: var(--gold); }

/* The reviews slider is pixel/transform based for LTR; keep its mechanics LTR
   while the card text itself reads RTL in Arabic. */
.slider-outer, .slider-clip, .slider-track { direction: ltr; }
body.lang-ar .review-card { direction: rtl; text-align: right; }
body.lang-ar .review-meta { justify-content: flex-start; }

/* RTL nudges for absolutely-positioned accents (mirror left/right). */
[dir="rtl"] .dcp-exp-badge { right: auto; left: 1.25rem; }
[dir="rtl"] .about-badge-card { left: auto; right: -1.25rem; }
[dir="rtl"] .hero-bg-decor { right: auto; left: -10%; }

/* Form fields read right-aligned in Arabic; date input stays LTR. */
body.lang-ar .form-group label,
body.lang-ar .patient-type-q,
body.lang-ar .sidebar-tips li { text-align: right; }
[dir="rtl"] input[type="date"] { direction: ltr; text-align: right; }

/* Eyebrow underline / accents flip naturally with text-align via dir. */
body.lang-ar .eyebrow { letter-spacing: 0; }
