/* ==========================================================================
   AL JAMEEL AL RAQI — Premium Dental Clinic Redesign Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES, PALETTE & TYPOGRAPHY SYSTEM
   -------------------------------------------------------------------------- */
:root {
  /* Curated Premium Palette */
  --emerald-950: #04382f;
  --emerald-900: #06483c;
  --emerald-800: #075e4c;
  --emerald-700: #08705a;
  --emerald-600: #16806a;

  --sage-500: #82ad8c;
  --sage-400: #9fc2a5;
  --sage-200: #d9e8dc;
  --sage-100: #edf4ee;

  --sky-brand: #55add5;
  --sky-soft: #dceff7;

  --ivory: #fbfaf6;
  --sand: #f3eee5;
  --surface: #ffffff;

  /* Typography Tokens */
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Tajawal", var(--font-base);
  --font-body: "Tajawal", var(--font-base);
  --font-ui: var(--font-body);

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --line-tight: 1.25;
  --line-heading: 1.4;
  --line-body: 1.75;
  --line-ui: 1.5;

  /* Color Roles - High Contrast */
  --text-primary: #12372f;
  --text-secondary: #33433e; /* Enhanced contrast */
  --text-muted: #556862;     /* Enhanced contrast */
  --border-soft: rgba(4, 56, 47, 0.1);
  --error: #e63946;

  /* Spacing */
  --section-pad-desktop: 54px; /* Reduced padding slightly for visual flow */
  --section-pad-mobile: 38px;

  /* Global Shadows & Radii */
  --shadow-sm: 0 4px 12px rgba(4, 56, 47, 0.04);
  --shadow-md: 0 10px 30px rgba(4, 56, 47, 0.06);
  --shadow-lg: 0 20px 50px rgba(4, 56, 47, 0.08);

  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --trans-fast: 0.2s ease;
  --trans-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & ACCESSIBILITY
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--ivory);
  line-height: var(--line-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--trans-fast);
}

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  right: 20px;
  background: var(--emerald-950);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

*:focus-visible {
  outline: 3px solid var(--sky-brand);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY SYSTEM
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--emerald-950);
  line-height: var(--line-heading);
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
  font-weight: var(--weight-bold);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. UI BUTTONS & ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all var(--trans-fast);
  border: none;
  font-size: 15px;
}

.btn-primary {
  background-color: var(--emerald-700);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(8, 112, 90, 0.15);
}
.btn-primary:hover {
  background-color: var(--emerald-800);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--emerald-950);
  border: 2px solid var(--border-soft);
}
.btn-outline:hover {
  border-color: var(--emerald-700);
  background-color: var(--sage-100);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(251, 250, 246, 0.95);
  backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid var(--border-soft);
  transition: padding var(--trans-fast), height var(--trans-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(4, 56, 47, 0.12));
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: var(--weight-semibold);
  font-size: 16px; /* Increased readability */
  font-family: var(--font-ui);
  color: var(--text-primary);
  padding: 8px 4px;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background-color: var(--sky-brand);
  transform: scaleX(0);
  transition: transform var(--trans-fast);
}
.nav-link:hover {
  color: var(--emerald-700);
}
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-100);
  color: var(--emerald-950);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  font-size: 14px;
}
.btn-header-wa:hover {
  background: var(--sky-soft);
  color: var(--emerald-950);
}

.btn-nav-cta {
  padding: 8px 18px;
  font-size: 14px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  border-radius: 4px;
}
.hamburger-btn span {
  width: 100%; height: 2px;
  background: var(--emerald-950);
  transition: all var(--trans-base);
  border-radius: 2px;
}
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile Navigation Drawer */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 80%; max-width: 320px;
  background: var(--surface);
  box-shadow: -10px 0 30px rgba(4, 56, 47, 0.15);
  transform: translateX(100%);
  transition: transform var(--trans-base);
  padding: 100px 24px 40px;
  z-index: 99;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav-link {
  font-size: 18px;
  font-weight: var(--weight-semibold);
  font-family: var(--font-ui);
  color: var(--emerald-950);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-cta-btn {
  background: var(--emerald-700);
  color: #ffffff !important;
  text-align: center;
  border-radius: var(--radius-pill);
  margin-top: 16px;
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 130px 0 var(--section-pad-desktop);
  background: linear-gradient(to bottom right, var(--ivory), var(--sage-100));
}

/* Grid layout for Desktop 1024px+ */
@media (min-width: 1024px) {
  .hero-inner {
    display: grid;
    grid-template-areas: 
      "text visual"
      "meta visual";
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px 48px;
    align-items: center;
  }
  .hero-text-content {
    grid-area: text;
    max-width: 620px;
  }
  .hero-visual-content {
    grid-area: visual;
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 480px;
  }
  .hero-meta {
    grid-area: meta;
    border-top: 1.5px solid var(--border-soft);
    padding-top: 24px;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: var(--emerald-800);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--emerald-950);
  line-height: 1.25;
}

.hero-lead {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px; /* Increased gap */
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 10px 24px; /* Increased horizontal breathing room */
  border-radius: var(--radius-pill);
  font-family: var(--font-base); /* Use body sans-serif font */
  font-size: 15.5px; /* Desktop font size */
  font-weight: 600; /* Font weight 600 */
  line-height: 1.5; /* Line height 1.5 */
  color: var(--emerald-950);
  box-shadow: 0 4px 16px rgba(4, 56, 47, 0.03); /* Restrained shadow */
  margin-bottom: 28px;
  width: max-content;
  max-width: 100%;
  white-space: nowrap; /* Keep on one line on desktop */
}

.pulse-dot {
  width: 8px; height: 8px;
  background-color: #10b981; /* Bright "active" green */
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  animation: live-indicator-pulse 2s infinite;
}

@keyframes live-indicator-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-text {
  font-weight: 700;
  color: var(--emerald-950);
  font-size: 15px;
}

.payment-badges-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}
.payment-logos {
  display: flex;
  gap: 8px;
}
.payment-logos img {
  height: 18px;
  width: auto;
  object-fit: contain;
}

/* CONCEPT 1 REFINED VISUAL LAYOUT */
.visual-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Organic curved background shape - shared deep-emerald backdrop (subtly inspired by tooth contour) */
.emerald-bg-blob {
  position: absolute;
  width: 380px;
  height: 380px;
  background-color: var(--emerald-950);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%; /* Stylized tooth silhouette */
  opacity: 0.95;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Portraits in custom non-rectangular frames */
.doctor-portraits-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.doc-portrait-frame {
  position: absolute;
  overflow: hidden;
  border: 3px solid var(--ivory); /* Thinner border outline */
  background-color: var(--sand);
  box-shadow: 0 6px 20px rgba(4, 56, 47, 0.1); /* Softened shadow */
  transition: transform var(--trans-base);
}

/* Main Portrait (Male - Dr. Nasr Aldin) - Sized up 5-8% */
.doc-portrait-frame.main-doc {
  width: 236px;
  height: 320px;
  border-radius: 118px 118px 24px 24px; /* Arched Top */
  top: 40px;
  right: 30px;
  z-index: 3;
}

/* Secondary Portrait (Female - Dr. Nabila) - Sized up 8-12% and raised */
.doc-portrait-frame.secondary-doc {
  width: 190px;
  height: 265px;
  border-radius: 95px 95px 24px 24px; /* Arched Top */
  bottom: 45px;
  left: 30px;
  z-index: 4;
}

.doc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(8%) brightness(99%) contrast(100%);
}

.doc-img-nasr {
  object-position: center 12%;
}
.doc-img-nabila {
  object-position: center 25%;
}

/* Single sky-blue smile curve - Extended behind portraits */
.smile-curve-overlay {
  position: absolute;
  width: 320px;
  height: 100px;
  bottom: 30px;
  right: 50px;
  z-index: 5;
  pointer-events: none;
}

/* Compact Free Consultation Floating Badge - Positioned closer */
.floating-consult-badge {
  position: absolute;
  bottom: 35px;
  left: 15px;
  background-color: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(4, 56, 47, 0.08);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--emerald-950);
  font-size: 12.5px;
  max-width: 170px;
}
.floating-consult-badge svg {
  color: var(--sky-brand);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6.5 HERO ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes blobBreathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.04) rotate(3deg); }
}

@keyframes fadeInUpFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.emerald-bg-blob {
  animation: blobBreathe 8s ease-in-out infinite;
  transform-origin: center;
}

.doc-portrait-frame.main-doc {
  animation: floatGentle 6s ease-in-out infinite;
}

.doc-portrait-frame.secondary-doc {
  animation: floatGentle 7s ease-in-out infinite 1s;
}

.floating-consult-badge {
  animation: floatGentle 5s ease-in-out infinite 0.5s;
}

.hero-text-content > * {
  animation: fadeInUpFade 0.8s ease-out forwards;
  opacity: 0;
  will-change: transform, opacity;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-lead { animation-delay: 0.3s; }
.offer-badge { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.5s; }
/* --------------------------------------------------------------------------
   7. TRUST STRIP
   -------------------------------------------------------------------------- */
.trust-strip {
  background-color: var(--emerald-950);
  color: #ffffff;
  padding: 24px 0;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--trans-base);
  cursor: default;
  padding: 8px;
  border-radius: var(--radius-lg);
}

.trust-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.02);
}

.trust-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85); /* Muted white for base state */
  background: rgba(255, 255, 255, 0.05); /* Very dark glass */
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all var(--trans-base);
}

.trust-item:hover .trust-icon {
  background: rgba(2, 172, 235, 0.15); /* Elegant tinted blue glass */
  color: #ffffff; /* Bright white icon */
  transform: scale(1.08) rotate(-3deg);
  border-color: rgba(2, 172, 235, 0.4); /* Subtle blue border */
  box-shadow: 0 8px 25px rgba(2, 172, 235, 0.25); /* Soft blue glow */
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  margin-bottom: 4px;
}

.trust-text span {
  font-size: 14px;
  color: var(--sage-200);
}

/* --------------------------------------------------------------------------
   8. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-section {
  padding: var(--section-pad-desktop) 0;
  background-color: var(--surface);
}

/* Unified Tabs structure */
.services-tablist {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  background: var(--sand);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--trans-fast);
}
.tab-btn:hover {
  background: var(--sage-200);
  color: var(--emerald-950);
}
.tab-btn.active {
  background: var(--emerald-700);
  color: #ffffff;
}

/* Accordion trigger hidden on desktop */
.accordion-trigger {
  display: none;
}

/* Editorial Services Layout */
.category-content-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr; /* List side slightly wider */
  gap: 32px;
  align-items: center; /* Vertically aligned */
}

.service-featured-card {
  background-color: transparent;
  border: none;
  padding-inline-end: 32px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.service-featured-card::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  inset-inline-end: 0;
  width: 1px;
  background-color: var(--border-soft);
}

@media (max-width: 1023px) {
  .service-featured-card::after {
    display: none;
  }
}

.featured-card-icon-wrap {
  width: 44px; height: 44px;
  background-color: var(--sage-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  margin-bottom: 8px; /* Closer to label/heading */
}
.featured-card-icon {
  width: 22px; height: 22px;
}

.service-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--emerald-800);
  background-color: var(--sage-200);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.service-featured-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--emerald-950);
}

.service-featured-card p {
  font-size: 15px;
  color: var(--text-secondary);
}

.service-list-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.service-list-title {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  margin-bottom: 16px;
  color: var(--emerald-950);
}

.service-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Increased gap spacing */
}

.service-bullets-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bullet-check-icon {
  width: 18px; height: 18px;
  color: var(--sky-brand);
  margin-top: 4px;
  flex-shrink: 0;
}

.service-bullets-list strong {
  display: block;
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--emerald-950);
  margin-bottom: 4px;
}

.service-bullets-list span {
  font-size: 15px;
  color: var(--text-secondary);
}

.category-content {
  display: none;
}
.category-content.active {
  display: block;
  animation: fadeIn var(--trans-fast);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.all-services-link-wrapper {
  text-align: center;
  margin-top: 20px; /* Reduced empty space */
}

.btn-all-services-cta {
  border: 2px solid var(--emerald-800) !important;
  color: var(--emerald-800) !important;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--trans-fast);
  background-color: transparent;
}
.btn-all-services-cta:hover {
  background-color: var(--emerald-800) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 94, 76, 0.15);
}

/* --------------------------------------------------------------------------
   9. DOCTORS SECTION
   -------------------------------------------------------------------------- */
.doctors-section {
  padding: var(--section-pad-desktop) 0 32px; /* Reduced bottom padding */
  background-color: var(--sand);
}

.doctors-slider-wrapper {
  position: relative;
  width: 100%;
}

.doctors-grid-container {
  width: 100%;
}

.doc-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-fast);
}
.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.doc-image-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #eae6dd; /* Consistent neutral background frame */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border-soft);
}

.doc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Individual object positions to prevent cropping faces */
.doc-card:nth-child(1) .doc-photo { object-position: center 10%; } /* Mino */
.doc-card:nth-child(2) .doc-photo { object-position: center 25%; } /* Nabila */
.doc-card:nth-child(3) .doc-photo { object-position: center 15%; } /* Abdullah */
.doc-card:nth-child(4) .doc-photo { object-position: center 12%; } /* Nasr */
.doc-card:nth-child(5) .doc-photo { object-position: center 20%; } /* Huda */

.doc-info {
  padding: 20px 20px 24px; /* Balanced padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.doc-exp-badge {
  font-size: 14px; /* Slightly increased */
  font-weight: var(--weight-semibold);
  color: var(--emerald-800);
  background-color: var(--sage-200);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  display: inline-block;
}

.doc-name {
  font-size: 19px; /* Slightly increased */
  margin-bottom: 6px;
  font-weight: var(--weight-bold);
  color: var(--emerald-950);
  min-height: 26px; /* Consistent height */
}

.doc-specialty {
  font-size: 16px; /* Slightly increased */
  color: var(--emerald-700);
  font-weight: var(--weight-semibold);
  margin-bottom: 4px;
  min-height: 22px; /* Consistent height */
}

.doc-list-specialties {
  font-size: 14.5px; /* Slightly increased */
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 38px; /* Consistent height for specialties alignment */
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-info .btn-outline {
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto; /* Align cards bottoms buttons */
}

/* Responsive grid for Doctors on Desktop (>= 1200px) */
@media (min-width: 1200px) {
  .doctors-grid-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    row-gap: 16px; /* Reduced vertical gap */
    column-gap: 24px;
  }
  .doc-card {
    grid-column: span 2;
    width: 100%;
  }
  /* Second row centered */
  .doc-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .doc-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
  /* Remove doctor arrows from desktop grid */
  .doctors-slider-wrapper .slider-controls {
    display: none !important;
  }
}

/* Tablet Row Grid (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .doctors-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  .doc-card {
    width: calc(50% - 12px);
    max-width: 290px;
  }
  /* Hide doctors slider-controls on tablet grid */
  .doctors-slider-wrapper .slider-controls {
    display: none !important;
  }
}

/* Mobile snapping carousel (< 768px) */
@media (max-width: 767px) {
  .doctors-grid-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    margin: 0 -24px;
    padding: 0 24px 16px;
    scroll-padding: 0 24px;
  }
  .doctors-grid-container::-webkit-scrollbar {
    display: none;
  }
  .doc-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
    max-width: 320px;
  }
  .slider-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
  }
  .slider-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    color: var(--emerald-950);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }
}

/* --------------------------------------------------------------------------
   10. TESTIMONIALS SECTION
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: var(--section-pad-desktop) 0;
  background-color: var(--surface);
}

.testimonials-slider-wrapper {
  position: relative;
  width: 100%;
}

.testimonials-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 16px;
}
.testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testi-card {
  scroll-snap-align: start;
  background-color: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* Desktop layout (>= 1024px) */
@media (min-width: 1024px) {
  .testi-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

/* Tablet Layout (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .testi-card {
    flex: 0 0 calc(50% - 12px);
  }
}

/* Mobile Layout (< 768px) */
@media (max-width: 767px) {
  .testi-card {
    flex: 0 0 82vw;
    scroll-snap-align: center;
  }
}

.testi-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.avatar-wrap {
  width: 48px; height: 48px;
  border-radius: 50%;
  background-color: var(--sage-200);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--sage-400);
  flex-shrink: 0;
}
.avatar-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.avatar-fallback {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--emerald-950);
}

.testi-meta {
  display: flex;
  flex-direction: column;
}

.testi-name {
  font-size: 15px;
  font-weight: var(--weight-semibold);
  margin-bottom: 2px;
  color: var(--emerald-950);
}

.testi-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}
.testi-stars svg {
  width: 14px; height: 14px;
  fill: currentColor;
}

.testi-date {
  font-size: 13px;
  color: var(--text-secondary); /* Improved contrast */
  margin-bottom: 12px;
}

.testi-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all var(--trans-base);
}

.testi-text.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.testi-expand-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--emerald-700);
  font-weight: var(--weight-semibold);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 2px 0;
}
.testi-expand-btn:hover {
  text-decoration: underline;
}

.testi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
  font-size: 14px;
}

.testi-tag {
  color: var(--text-muted);
  font-weight: 600;
}

.testi-link {
  color: var(--sky-brand);
  font-weight: var(--weight-semibold);
}
.testi-link:hover {
  text-decoration: underline;
}

/* Dots and Slider navigation */
.testi-dots-wrap {
  display: flex;
  justify-content: center;
  gap: 12px; /* Better spacing */
  margin-top: 24px;
}

.testi-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--sage-200);
  cursor: pointer;
  transition: all var(--trans-fast);
}
.testi-dot.active {
  background: var(--emerald-950) !important; /* Higher contrast active dot */
  transform: scale(1.3);
}

.testi-cta-wrap {
  text-align: center;
  margin-top: 28px;
}

/* Testimonial slider navigation is always visible */
.testimonials-slider-wrapper .slider-controls {
  display: flex;
  justify-content: center;
  gap: 20px; /* Better spacing between arrows and dots */
  margin-top: 24px;
}
.testimonials-slider-wrapper .slider-btn {
  width: 46px; height: 46px; /* Minimum 40x40px */
  border-radius: 50%;
  border: 2px solid var(--emerald-800); /* Stronger contrast border */
  background: var(--surface);
  color: var(--emerald-950);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-fast);
}
.testimonials-slider-wrapper .slider-btn:hover {
  background: var(--emerald-800);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}
.testimonials-slider-wrapper .slider-btn:focus-visible {
  outline: 3px solid var(--sky-brand);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   11. FAQ ACCORDION NATIVE
   -------------------------------------------------------------------------- */
.faq-section {
  padding: var(--section-pad-desktop) 0;
  background-color: var(--ivory);
}

.faq-inner {
  max-width: 820px; /* Standardized max-width */
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-details {
  background-color: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--trans-fast);
}

.faq-summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--emerald-950);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 14px; height: 14px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--emerald-700);
  border-radius: 2px;
  transition: transform var(--trans-fast);
}
.faq-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }

.faq-details[open] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-details[open] .faq-summary {
  border-bottom: 1px solid var(--border-soft);
}

.faq-answer {
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   12. TWO-STEP BOOKING SECTION
   -------------------------------------------------------------------------- */
.booking-section {
  padding: var(--section-pad-desktop) 0;
  background-color: var(--sand);
}
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start; /* Align form and info panel from the same top position naturally */
}

/* Redesigned unified premium booking panel (Ivory Theme with Emerald Side Accent) - Compact Version */
.premium-booking-panel {
  display: flex;
  flex-direction: column;
  background-color: var(--ivory);
  color: var(--text-primary);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  border-right: 3px solid var(--emerald-700);
  height: auto;
}

.premium-booking-panel .panel-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--emerald-700);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.premium-booking-panel .panel-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 8px;
  line-height: 1.3;
}

.premium-booking-panel .panel-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.premium-booking-panel .panel-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}

.premium-booking-panel .panel-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.premium-booking-panel .panel-benefits-list li span {
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-base);
  color: var(--text-primary);
  line-height: 1.5;
}

.premium-booking-panel .benefit-icon {
  width: 16px;
  height: 16px;
  color: var(--emerald-700);
  flex-shrink: 0;
  margin-top: 3px;
}

.premium-booking-panel .panel-divider {
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  height: 1px;
  background: transparent;
  margin: 12px 0 20px 0;
}

.premium-booking-panel .panel-support-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
  width: 100%;
}

.premium-booking-panel .support-block-heading {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-base);
  color: var(--emerald-950);
  margin-bottom: 6px;
}

.premium-booking-panel .support-block-text {
  font-size: 14px;
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.premium-booking-panel .panel-support-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--emerald-600);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: var(--weight-semibold);
  font-size: 14px;
  font-family: var(--font-base);
  min-height: 48px;
  box-shadow: 0 4px 12px rgba(7, 94, 76, 0.12);
  transition: all var(--trans-fast);
  text-decoration: none;
}

.premium-booking-panel .panel-support-cta:hover {
  background-color: var(--emerald-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(7, 94, 76, 0.18);
}

.premium-booking-panel .panel-support-cta svg {
  color: #25D366;
}

.premium-booking-panel .panel-privacy-reassurance {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-base);
  margin-top: 12px;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

.premium-booking-panel .panel-privacy-reassurance svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Booking Form */
.booking-form-col {
  width: 100%;
}

.booking-form-card {
  background-color: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  height: 100%;
}

/* Steps Indicator visibility */
.booking-steps-bar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  background-color: var(--ivory);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
}

.step-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
  font-size: 14px;
}

.step-bar-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

.step-bar-item.active {
  color: var(--emerald-950);
}
.step-bar-item.active .step-bar-num {
  background: var(--emerald-600);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(7, 94, 76, 0.15);
}

.step-bar-item.completed {
  color: var(--emerald-800);
}
.step-bar-item.completed .step-bar-num {
  background: var(--emerald-700);
  color: #ffffff;
}

.step-bar-line {
  flex: 1;
  height: 2px;
  background-color: var(--sage-200);
  margin: 0 12px;
}

.form-step {
  border: none;
  outline: none;
  opacity: 0;
  transform: translateY(8px);
  display: none;
  transition: opacity var(--trans-base), transform var(--trans-base);
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: var(--emerald-950);
  margin-bottom: 6px;
}
.required {
  color: var(--error);
}

.form-control {
  width: 100%;
  border: 1px solid var(--border-soft);
  background-color: var(--ivory);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  transition: all var(--trans-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--emerald-700);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(8, 112, 90, 0.08);
}

.form-input-height {
  height: 50px;
}
.form-textarea {
  resize: none;
}

.form-error-msg {
  display: block;
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
  min-height: 16px;
  font-weight: 600;
}

.step-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   13. LOCATION SECTION
   -------------------------------------------------------------------------- */
.location-section {
  padding: var(--section-pad-desktop) 0;
  background-color: var(--surface);
}

.location-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.location-visual-panel {
  width: 100%;
}

.location-map-interactive {
  position: relative;
  width: 100%;
  height: 340px;
  background-color: var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.map-cover {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.map-illustration-svg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.map-cover .btn {
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  padding: 8px 18px; /* Slightly reduced */
  font-size: 14px;
}

.map-iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
  z-index: 4;
}

.location-info-panel {
  display: flex;
  flex-direction: column;
}

.loc-heading {
  font-size: 22px;
  font-weight: var(--weight-bold);
  margin-bottom: 12px;
}

.loc-address {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--emerald-700);
  margin-bottom: 12px;
}

.loc-details-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.loc-details-list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px; /* More compact and scanable spacing */
}
.loc-details-list li {
  display: flex;
  align-items: flex-start; /* top align icons */
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.loc-icon {
  color: var(--sky-brand);
}

.loc-actions-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loc-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-icon-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-direction: row; /* Ensures leading icon in RTL */
}

/* Premium Button Colors */
.btn-whatsapp {
  background-color: var(--emerald-600);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  height: 48px;
  box-shadow: 0 4px 12px rgba(7, 94, 76, 0.15);
}
.btn-whatsapp:hover {
  background-color: var(--emerald-700);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(7, 94, 76, 0.25);
  transform: translateY(-2px);
}
.btn-whatsapp svg {
  color: #25D366;
}

.btn-call {
  background-color: var(--sky-brand);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  height: 48px;
  box-shadow: 0 4px 12px rgba(85, 173, 213, 0.2);
}
.btn-call:hover {
  background-color: #3b91b8;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(85, 173, 213, 0.35);
  transform: translateY(-2px);
}

/* Premium Social Strip */
.loc-social-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  padding: 16px 24px;
  background-color: var(--sage-100);
  border-radius: 16px;
}

.loc-social-label {
  font-size: 15px;
  font-weight: var(--weight-bold);
  color: var(--emerald-950);
}

.loc-social-links {
  display: flex;
  gap: 14px;
}

.loc-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--emerald-700);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: all var(--trans-base);
}

.loc-social-links a:hover {
  background-color: var(--emerald-700);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(7, 94, 76, 0.2);
}

/* --------------------------------------------------------------------------
   14. PRE-FOOTER CTA STRIP
   -------------------------------------------------------------------------- */
.pre-footer-cta {
  position: relative;
  background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-950) 100%);
  color: #ffffff;
  padding: 80px 0 90px;
  text-align: center;
  overflow: hidden;
}

.cta-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}
.cta-glow-left {
  width: 400px; height: 400px;
  background: rgba(2, 172, 235, 0.15);
  top: -100px; left: -100px;
}
.cta-glow-right {
  width: 300px; height: 300px;
  background: rgba(16, 185, 129, 0.15);
  bottom: -150px; right: -50px;
}

.cta-curve-decoration {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%; height: 120px;
  z-index: 1;
  pointer-events: none;
  transform: translateY(2px);
}

.pre-footer-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.pre-footer-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 0;
}

.pre-footer-subheading {
  font-size: 17px;
  color: var(--sage-100);
  max-width: 600px;
  margin-top: -12px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.pre-footer-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.pre-footer-actions .btn-primary {
  box-shadow: 0 8px 24px rgba(10, 145, 113, 0.4);
}
.pre-footer-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
}
.pre-footer-actions .btn-outline:hover {
  background-color: #ffffff;
  color: var(--emerald-950);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   15. DEEP EMERALD FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background-color: var(--emerald-950);
  color: #ffffff;
  padding-top: 100px;
}

.footer-curve-decoration {
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  width: 100%; height: 70px;
  z-index: 1;
  pointer-events: none;
  transform: rotate(180deg);
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.1)); }
  50% { filter: drop-shadow(0 0 14px rgba(85, 173, 213, 0.5)); }
}

.footer-logo-img {
  height: 48px;
  width: auto;
  align-self: flex-start;
  margin-bottom: 20px;
  animation: logoGlow 4s ease-in-out infinite;
}

.footer-clinic-title {
  font-size: 19px;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14.5px;
  color: var(--sage-200);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-social-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transition: all var(--trans-fast);
}

.social-icon-btn:hover {
  background-color: var(--sky-brand);
  color: var(--emerald-950);
  transform: translateY(-2px);
}

/* Brand specific hover colors */
.social-icon-btn[aria-label*="انستقرام"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}
.social-icon-btn[aria-label*="ثريدز"]:hover {
  background-color: #000000;
  color: #ffffff;
}
.social-icon-btn[aria-label*="تيك توك"]:hover {
  background-color: #000000;
  color: #ffffff;
}
.social-icon-btn[aria-label*="سناب"]:hover {
  background-color: #FFFC00;
  color: #000000;
}
.social-icon-btn[aria-label*="واتساب"]:hover {
  background-color: #25D366;
  color: #ffffff;
}

.social-icon-btn:focus-visible {
  outline: 2px solid var(--sky-brand);
  outline-offset: 2px;
}

.footer-payment-icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.payment-logos-wrap {
  display: flex;
  gap: 12px;
}

.footer-heading-summary {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px;
  cursor: default;
  list-style: none;
}
.footer-heading-summary::-webkit-details-marker {
  display: none;
}

.footer-heading-static {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links-list a {
  font-size: 14.5px;
  color: var(--sage-200);
  font-weight: 400;
}
.footer-links-list a:hover {
  color: var(--sky-brand);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--sage-200);
  line-height: 1.6;
  font-weight: 500;
}
.footer-contact-list li > svg {
  color: var(--sky-brand);
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sky-brand);
  font-weight: 500;
}
.contact-text-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* Bottom Bar */
.footer-bottom {
  padding: 20px 0;
  font-size: 14px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright-text {
  color: var(--sage-400);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-bottom-links a {
  color: var(--sage-400);
}
.footer-bottom-links a:hover {
  color: #ffffff;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sky-brand);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.back-to-top:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   16. DIALOG/MODAL SYSTEM
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  display: none;
  z-index: 1000;
  border: none;
  background: transparent;
}
.modal.open {
  display: block;
}
.modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(4, 56, 47, 0.4);
  backdrop-filter: blur(8px);
}
.modal-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--surface);
  width: 90%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  border: 1px solid var(--border-soft);
}
.modal-close {
  position: absolute;
  top: 16px; left: 16px;
  background: none; border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close:hover {
  color: var(--emerald-950);
}

/* --------------------------------------------------------------------------
   17. MOBILE STICKY CTA BAR
   -------------------------------------------------------------------------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border-soft);
  padding: 10px 16px;
  z-index: 98;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(4, 56, 47, 0.08);
}

.m-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 15px;
}
.btn-wa {
  background-color: #25D366;
  color: #ffffff;
}
.btn-call {
  background-color: var(--emerald-950);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   18. TRANSITION AND ANIMATION CLASSES (JavaScript Triggered)
   -------------------------------------------------------------------------- */
html.js .scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--trans-base), transform 0.5s var(--trans-base);
}

html.js .scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */

/* TABLET AND MOBILE STYLES (< 1024px) */
@media (max-width: 1023px) {
  .header-inner {
    height: 64px;
  }
  .main-nav {
    display: none;
  }
  .header-actions {
    display: none;
  }
  
  /* Show hamburger button */
  .hamburger-btn {
    display: flex;
  }

  /* Compact header WhatsApp button on Mobile/Tablet */
  .header-actions-wrapper {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 16px;
  }
  .header-actions-wrapper .header-actions {
    display: flex;
    gap: 8px;
  }
  .header-actions-wrapper .btn-nav-cta {
    display: none;
  }

  /* Hero Section tablet/mobile overrides removed and consolidated below */

  /* Trust Strip */
  .trust-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }
  .trust-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  /* Services Layout for Mobile accordion */
  .services-tablist {
    display: none;
  }
  .category-content {
    display: none !important;
  }
  .category-content.active {
    display: block !important;
  }
  .category-content-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .accordion-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background-color: var(--ivory);
    border: 1px solid var(--border-soft);
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--emerald-950);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all var(--trans-fast);
  }
  .accordion-trigger svg {
    transition: transform var(--trans-fast);
  }
  .accordion-trigger.active {
    background-color: var(--emerald-700);
    color: #ffffff;
    border-color: var(--emerald-700);
  }
  .accordion-trigger.active svg {
    transform: rotate(180deg);
  }

  /* Booking Grid */
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .booking-info-col {
    padding-left: 0;
  }

  /* Location Grid */
  .location-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .location-map-interactive {
    height: 280px;
  }

  /* Footer details collapse behavior on mobile */
  .site-footer {
    padding: 32px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-links-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
  }
  .footer-heading-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    font-size: 16px;
    cursor: pointer;
  }
  .footer-details-arrow {
    position: relative;
    width: 12px; height: 12px;
  }
  .footer-details-arrow::before, .footer-details-arrow::after {
    content: "";
    position: absolute;
    background-color: var(--sky-brand);
    border-radius: 1px;
    transition: transform var(--trans-fast);
  }
  .footer-details-arrow::before { top: 5px; left: 0; width: 12px; height: 2px; }
  .footer-details-arrow::after { top: 0; left: 5px; width: 2px; height: 12px; }

  .footer-links-group[open] .footer-details-arrow::after {
    transform: rotate(90deg);
    opacity: 0;
  }
  .footer-links-group[open] .footer-heading-summary {
    margin-bottom: 16px;
  }
  .footer-links-list {
    padding-top: 8px;
  }

}

/* --------------------------------------------------------------------------
   20. CONSOLIDATED RESPONSIVE BREAKPOINTS (Header, Hero & Sticky Actions)
   -------------------------------------------------------------------------- */

/* BREAKPOINT 1: All screens below 1200px (tablet landscape, portrait, and mobile) */
@media (max-width: 1199px) {
  .secondary-doctor-portrait {
    display: none !important;
  }
  .smile-curve-overlay {
    display: none !important;
  }
}

/* BREAKPOINT 2: Tablet Landscape (900px to 1199px) */
@media (min-width: 900px) and (max-width: 1199px) {
  .hero-inner {
    display: grid;
    grid-template-areas: 
      "text visual"
      "meta visual";
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px 32px;
    align-items: center;
  }
  .hero-text-content {
    grid-area: text;
  }
  .hero-visual-content {
    grid-area: visual;
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px;
  }
  .hero-meta {
    grid-area: meta;
    border-top: 1.5px solid var(--border-soft);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .doc-portrait-frame.main-doc {
    position: relative;
    top: unset;
    right: unset;
    margin: 0 auto;
    z-index: 3;
    width: 210px;
    height: 290px;
  }
  .emerald-bg-blob {
    width: 320px;
    height: 320px;
  }
  .floating-consult-badge {
    position: absolute;
    bottom: 25px;
    left: 20px;
    top: auto;
    right: auto;
  }
}

/* BREAKPOINT 3: Tablet Portrait (768px to 899px) */
@media (min-width: 768px) and (max-width: 899px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .hero-text-content {
    margin: 0 auto;
    max-width: 680px;
  }
  .hero-actions {
    justify-content: center;
    margin-bottom: 8px;
  }
  .hero-visual-content {
    height: 360px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .hero-meta {
    align-items: center;
    border-top: 1px solid var(--border-soft);
    padding-top: 20px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .doc-portrait-frame.main-doc {
    position: relative;
    top: unset;
    right: unset;
    margin: 0 auto;
    z-index: 3;
    width: 200px;
    height: 280px;
  }
  .emerald-bg-blob {
    width: 300px;
    height: 300px;
  }
  .floating-consult-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    right: auto;
  }
}

/* BREAKPOINT 4: Mobile (below 768px) */
@media (max-width: 767px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .hero-text-content {
    margin: 0 auto;
    width: 100%;
  }
  .hero-eyebrow {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.2rem);
    margin-bottom: 16px;
    line-height: 1.3;
  }
  .hero-lead {
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  .offer-badge {
    font-size: 14px;
    padding: 8px 18px;
    white-space: normal;
    width: auto;
    display: inline-flex;
    margin-bottom: 24px;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 12px 24px;
  }
  .hero-visual-content {
    height: 320px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 8px;
  }
  .doc-portrait-frame.main-doc {
    position: relative;
    top: unset;
    right: unset;
    margin: 0 auto;
    z-index: 3;
    width: 160px;
    height: 220px;
    border-radius: 80px 80px 16px 16px;
    box-shadow: 0 4px 16px rgba(4, 56, 47, 0.08);
  }
  .emerald-bg-blob {
    width: 250px;
    height: 250px;
  }
  .floating-consult-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    right: auto;
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    max-width: unset;
  }
  .hero-meta {
    align-items: center;
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mobile-sticky-cta {
    display: flex;
  }
  body {
    padding-bottom: 84px;
  }

  /* Consolidated Layout changes from old mobile-only query */
  .form-row {
    grid-template-columns: 1fr;
  }
  .loc-actions-row {
    grid-template-columns: 1fr;
  }
  .booking-form-card {
    padding: 24px;
  }
  .premium-booking-panel {
    padding: 22px;
    border-radius: 16px;
    border-right-width: 3px;
  }
  .premium-booking-panel .panel-support-cta {
    width: 100%;
  }
  .premium-booking-panel .panel-heading {
    font-size: 22px; /* Mobile font size: 22-25px */
    margin-bottom: 8px;
  }
  .premium-booking-panel .panel-desc {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
  }
  .premium-booking-panel .panel-benefits-list {
    gap: 12px;
    margin-bottom: 18px;
  }
  .premium-booking-panel .panel-benefits-list li span {
    font-size: 14px;
  }
  .premium-booking-panel .panel-divider {
    margin: 0 0 18px 0;
  }
  .premium-booking-panel .panel-support-block {
    margin-bottom: 18px;
  }
  .premium-booking-panel .support-block-heading {
    font-size: 16px;
  }
  .premium-booking-panel .support-block-text {
    font-size: 13.5px;
    margin-bottom: 12px;
  }
  .premium-booking-panel .panel-support-cta {
    width: 100%; /* Make support CTA full-width on mobile */
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .cta-curve-decoration {
    height: 40px;
  }
  .footer-curve-decoration {
    height: 30px;
  }
  .pre-footer-cta {
    padding: 60px 0;
  }
}

/* VERY SMALL SCREENS (<= 360px) */
@media (max-width: 360px) {
  .logo-img {
    height: 36px;
  }
  .header-actions-wrapper {
    margin-left: 8px;
  }
  .btn-header-wa {
    padding: 8px 12px;
  }
  .btn-header-wa .btn-text {
    display: none;
  }
  .doc-card {
    flex: 0 0 88vw;
  }
}

/* PRINT MEDIA STYLES */
@media print {
  .site-header, .mobile-sticky-cta, .pre-footer-cta, .site-footer {
    display: none !important;
  }
  body {
    background-color: #ffffff;
    color: #000000;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* --------------------------------------------------------------------------
   21. CALL TO ACTION ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes cta-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: scale(1);
  }
}

.btn-nav-cta {
  animation: cta-pulse 2s infinite ease-out;
  transform-origin: center;
}

.btn-nav-cta:hover {
  animation-play-state: paused;
}
