/* Bahera Dental Hospital Component Stylesheet */

/* HEADER & NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(8, 72, 127, 0.08);
  z-index: 10000;
  transition: all 0.3s ease;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 1;
  max-width: 320px;
}

.header-logo-full {
  height: 68px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  transition: height 0.3s ease, max-width 0.3s ease;
}

@media (max-width: 768px) {
  .header-inner {
    height: 68px;
  }
  .header-logo-full {
    height: 44px;
    max-width: 190px;
  }
}

.brand-logo-img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--signature-teal);
  font-weight: 600;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-text);
  padding: 0.4rem 0.2rem;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--brand-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  justify-content: flex-end;
}

.header-btn-desktop {
  min-width: 165px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Language Switcher Segmented Toggle Switch in Top Right Header */
.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 115px;
  height: 36px;
  background: var(--bg-light);
  border: 1.5px solid var(--primary-blue);
  border-radius: 50px;
  padding: 3px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 6px rgba(10, 100, 170, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.lang-switch-toggle:hover {
  border-color: var(--signature-teal);
  box-shadow: 0 4px 12px rgba(0, 170, 170, 0.2);
}

.lang-switch-opt {
  width: 52px;
  text-align: center;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  color: var(--slate-subtext);
  transition: all 0.25s ease;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
}

.lang-switch-toggle[data-lang="hi"] .lang-opt-hi {
  background: var(--brand-gradient);
  color: var(--base-white);
  box-shadow: 0 2px 6px rgba(10, 100, 170, 0.3);
}

.lang-switch-toggle[data-lang="en"] .lang-opt-en {
  background: var(--brand-gradient);
  color: var(--base-white);
  box-shadow: 0 2px 6px rgba(10, 100, 170, 0.3);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-light);
  border: 1.5px solid var(--primary-blue);
  color: var(--deep-navy);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  background: var(--primary-blue);
  color: var(--base-white);
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--deep-navy);
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-toggle-btn {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--base-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 999;
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .header-btn-desktop {
    display: none;
  }
}

/* STICKY MOBILE BOTTOM CTA BAR */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 -6px 20px rgba(8, 72, 127, 0.18);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) 1rem;
  z-index: 99999;
  border-top: 1px solid rgba(10, 100, 170, 0.15);
}

.sticky-mobile-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--base-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.mobile-call-btn {
  background: var(--brand-gradient);
  animation: pulse-glow 2.5s infinite;
}

.mobile-wa-btn {
  background: #25D366;
}

.mobile-cta-btn:active {
  transform: scale(0.97);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(10, 100, 170, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(10, 100, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10, 100, 170, 0); }
}

@media (max-width: 992px) {
  .sticky-mobile-cta {
    display: block;
  }
  body {
    padding-bottom: 75px;
  }
  .scroll-to-top-btn {
    bottom: 85px !important;
    right: 16px !important;
  }
}

/* 3. DOCTOR CARDS */
.doctors-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.doctor-card {
  background: var(--base-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: stretch;
}

.doctor-card.doctor-card--reverse {
  grid-template-columns: 40% 60%;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10, 100, 170, 0.12);
  border-color: rgba(0, 170, 170, 0.4);
}

.doctor-img-wrap {
  position: relative;
  background: linear-gradient(135deg, #f0f7fc 0%, #e1f1f7 100%);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-card:not(.doctor-card--reverse) .doctor-img-wrap {
  border-left: 1px solid rgba(10, 100, 170, 0.08);
}

.doctor-card--reverse .doctor-img-wrap {
  border-right: 1px solid rgba(10, 100, 170, 0.08);
}

.doctor-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img-wrap img {
  transform: scale(1.03);
}

.doctor-exp-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--brand-gradient);
  color: var(--base-white);
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(10, 100, 170, 0.25);
  z-index: 2;
}

.doctor-card--reverse .doctor-exp-badge {
  right: auto;
  left: 1rem;
}

.doctor-body {
  padding: 2rem 2.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-name {
  font-size: 1.55rem;
  color: var(--deep-navy);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.doctor-degrees {
  font-size: 0.92rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.doctor-bio {
  font-size: 0.93rem;
  color: var(--slate-subtext);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.doctor-tag {
  background: var(--bg-light);
  color: var(--deep-navy);
  border: 1px solid rgba(10, 100, 170, 0.15);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.doctor-tag:hover {
  background: rgba(10, 100, 170, 0.08);
  border-color: var(--primary-blue);
}

@media (max-width: 992px) {
  .doctor-card,
  .doctor-card.doctor-card--reverse {
    grid-template-columns: 1fr;
  }
  .doctor-img-wrap {
    order: -1;
    height: 300px;
    min-height: auto;
  }
  .doctor-card--reverse .doctor-img-wrap {
    border-right: none;
    border-bottom: 1px solid rgba(10, 100, 170, 0.08);
  }
  .doctor-card:not(.doctor-card--reverse) .doctor-img-wrap {
    border-left: none;
    border-bottom: 1px solid rgba(10, 100, 170, 0.08);
  }
  .doctor-card--reverse .doctor-exp-badge {
    left: auto;
    right: 1rem;
  }
}

/* 5. TESTIMONIALS (GOOGLE REVIEWS) */
.testimonials-section {
  background: var(--navy-gradient);
  color: var(--base-white);
}

.testimonials-section .section-title {
  color: var(--base-white);
}

.testimonials-section .section-subtitle {
  color: rgba(255, 255, 255, 0.88);
}

.gbp-rating-box {
  background: var(--base-white);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  border: 1px solid var(--card-border);
}

.gbp-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gbp-g-icon {
  width: 44px;
  height: 44px;
}

.gbp-score-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--deep-navy);
}

.gbp-stars {
  color: #FFB800;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

/* Reviews Carousel Component */
.reviews-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.reviews-carousel-track-container {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-md);
  padding: 0.75rem 0;
}

.reviews-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1.25rem !important;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform !important;
  width: 100% !important;
}

.review-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  min-width: calc((100% - 2.5rem) / 3);
  box-sizing: border-box;
  background: var(--base-white);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.reviews-arrow {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--base-white);
  color: var(--deep-navy);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  z-index: 10;
  transition: all 0.3s ease;
  user-select: none;
}

.reviews-arrow:hover:not(:disabled) {
  background: var(--teal-green);
  color: var(--base-white);
  border-color: var(--teal-green);
  transform: scale(1.1);
}

.reviews-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.reviews-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.reviews-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.reviews-carousel-dot.active {
  width: 28px;
  border-radius: 20px;
  background: var(--teal-green);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--base-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.reviewer-name {
  font-weight: 600;
  color: var(--deep-navy);
  font-size: 0.98rem;
}

.review-date {
  font-size: 0.75rem;
  color: var(--slate-subtext);
}

.review-text {
  font-size: 0.92rem;
  color: var(--slate-subtext);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .review-card {
    flex: 0 0 calc((100% - 1.25rem) / 2) !important;
    min-width: calc((100% - 1.25rem) / 2) !important;
  }

  .gbp-rating-box {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .review-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 1.25rem !important;
  }

  .reviews-carousel-wrapper {
    padding: 0 2.5rem !important;
    position: relative !important;
  }

  .reviews-arrow {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    font-size: 1.4rem !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: var(--base-white) !important;
    color: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 25 !important;
  }

  .reviews-arrow-prev {
    left: 0 !important;
  }

  .reviews-arrow-next {
    right: 0 !important;
  }
}

/* 6. GALLERY SLIDER - ELEGANT HIGH-IMPACT STYLING (CENTER PHOTO BIG + 60% TRANSPARENCY SIDES) */
.gallery-section {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(10, 100, 170, 0.04) 0%, transparent 75%);
}

.gallery-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.gallery-carousel-track-container {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 2.25rem 0;
  border-radius: var(--radius-md);
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  align-items: center;
}

/* Base side gallery item: flex width calc((100% - 3rem) / 2.8) so 3 cards visually span 100% width */
.gallery-item {
  flex: 0 0 calc((100% - 3rem) / 2.8);
  width: calc((100% - 3rem) / 2.8);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  height: 320px;
  max-height: 380px;
  border-radius: 16px;
  background: var(--bg-light);
  border: 1px solid rgba(10, 100, 170, 0.15);
  box-shadow: 0 6px 18px rgba(8, 72, 127, 0.08);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
  opacity: 0.6; /* 60% transparency for side photos */
  transform: scale(0.85); /* Smaller size for side photos */
  filter: brightness(0.85) saturate(0.9);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(5, 44, 79, 0.3) 100%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Center photo: Big (scale 1.1) + 100% Opacity + Ambient Cyan/Teal Glow Highlight */
.gallery-item.center-slide {
  opacity: 1; /* 100% opacity for center photo */
  transform: scale(1.1); /* Big enlarged center photo */
  z-index: 3;
  filter: brightness(1) saturate(1.05);
  border: 2px solid var(--signature-teal);
  box-shadow: 0 18px 42px rgba(8, 72, 127, 0.24), 0 0 24px rgba(0, 170, 170, 0.28);
  border-radius: 20px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item.center-slide:hover img {
  transform: scale(1.06);
}

.gallery-arrow {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: var(--deep-navy);
  border: 1.5px solid rgba(10, 100, 170, 0.2);
  font-size: 1.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10, 100, 170, 0.16);
  flex-shrink: 0;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.gallery-arrow:hover {
  background: var(--brand-gradient);
  color: var(--base-white);
  border-color: transparent;
  transform: scale(1.12);
  box-shadow: 0 12px 28px rgba(0, 170, 170, 0.35);
}

.gallery-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.gallery-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(10, 100, 170, 0.22);
  cursor: pointer;
  transition: all 0.35s ease;
}

.gallery-carousel-dot.active {
  width: 32px;
  border-radius: 20px;
  background: var(--brand-gradient);
  box-shadow: 0 3px 12px rgba(10, 100, 170, 0.35);
}

@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 100%;
    opacity: 1;
    transform: scale(1);
  }
  .gallery-item.center-slide {
    transform: scale(1);
    box-shadow: var(--shadow-md);
  }
  .gallery-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.5rem;
  }
}

/* FLOATING SCROLL TO TOP BUTTON */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--base-white);
  border: none;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(10, 100, 170, 0.35);
  z-index: 9999;
  opacity: 1 !important;
  visibility: visible !important;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-to-top-btn.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.scroll-to-top-btn:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 26px rgba(20, 199, 168, 0.45);
}

.gallery-caption {
  color: var(--base-white);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* LIGHTBOX MODAL */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  max-height: 80vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--base-white);
  border: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

/* 7. FAQS ACCORDION */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  background: var(--base-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-card.open {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--base-white);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--deep-navy);
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--primary-blue);
  transition: transform 0.3s ease;
}

.faq-card.open .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  background: var(--bg-light);
  font-size: 0.98rem;
  color: var(--slate-subtext);
}

.faq-card.open .faq-body {
  max-height: 400px;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--card-border);
}

/* 8. BLOG PREVIEW GRID & ENHANCED CARDS */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--base-white, #ffffff);
  border: 1px solid rgba(10, 100, 170, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(8, 72, 127, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(8, 72, 127, 0.14);
  border-color: rgba(10, 100, 170, 0.28);
}

.blog-card-img {
  height: 230px;
  position: relative;
  background: #E0F2FE;
  overflow: hidden;
}

.blog-card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: #ffffff;
  color: var(--primary-blue, #0284C7);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  z-index: 5;
  white-space: nowrap !important;
  max-width: calc(100% - 1.7rem) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  pointer-events: none;
  letter-spacing: 0.2px;
  border: 1px solid rgba(10, 100, 170, 0.15);
  display: inline-block;
  line-height: 1.3;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 1.5rem 1.6rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.blog-meta {
  font-size: 0.83rem;
  color: var(--slate-subtext, #64748B);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--deep-navy, #0F172A);
  margin-bottom: 0.65rem;
}

.blog-card-title a {
  color: var(--deep-navy, #0F172A);
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-card:hover .blog-card-title a,
.blog-card-title a:hover {
  color: var(--primary-blue, #0284C7);
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--charcoal-text, #475569);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-blog-read {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  background: transparent;
  color: var(--primary-blue, #0284C7);
  border: 1.5px solid var(--primary-blue, #0284C7);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-blog-read:hover {
  background: var(--brand-gradient, linear-gradient(135deg, #0284C7, #0369A1));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transform: translateY(-2px);
}

.btn-blog-read span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn-blog-read:hover span {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .blog-card-img {
    height: 195px;
  }
  .blog-card-badge {
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
    max-width: calc(100% - 1.2rem) !important;
  }
  .blog-card-body {
    padding: 1.25rem;
  }
  .blog-card-title {
    font-size: 1.1rem;
  }
}

/* 9. CONTACT & ENQUIRY FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-card {
  background: var(--base-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  transition: border-color 0.25s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: var(--base-white);
}

.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 100, 170, 0.1);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-title {
  font-weight: 700;
  color: var(--deep-navy);
  font-size: 1.05rem;
}

.info-desc {
  font-size: 0.95rem;
  color: var(--slate-subtext);
}

.map-container {
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border);
  margin-top: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* 10. FOOTER */
.site-footer {
  background: #052C4F;
  color: var(--base-white);
  padding: 2.5rem 0 1rem 0; /* Reduced footer height from bottom */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr; /* 3 Columns Only */
  gap: 2.5rem;
  margin-bottom: 1.5rem; /* Reduced spacing */
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 60px;
  height: 60px;
}

.footer-brand-title {
  color: var(--base-white);
  font-size: 1.2rem;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-grid > div:nth-child(2) {
  text-align: center;
}

.footer-grid > div:nth-child(2) .footer-heading {
  text-align: center;
}

.footer-grid > div:nth-child(2) .footer-links {
  align-items: center;
  text-align: center;
}

.footer-heading {
  color: var(--base-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--teal-green);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--base-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-color: transparent;
}

.social-icon--fb:hover {
  background: #1877F2;
  color: #ffffff;
}

.social-icon--ig:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
  color: #ffffff;
}

.social-icon--wa:hover {
  background: #25D366;
  color: #ffffff;
}

.social-icon--gbp:hover {
  background: #4285F4;
  color: #ffffff;
}

.social-icon--yt:hover {
  background: #FF0000;
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-credit {
  color: rgba(255, 255, 255, 0.8);
}

.footer-credit a {
  color: var(--teal-accent);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    text-align: center !important;
  }

  .footer-logo-wrap {
    justify-content: center !important;
    margin: 0 auto 1rem auto !important;
  }

  .footer-desc {
    text-align: center !important;
  }

  .social-links {
    justify-content: center !important;
    margin: 1rem auto 0 auto !important;
  }

  .footer-links {
    align-items: center !important;
    text-align: center !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 768px) {
  /* Comprehensive Mobile Optimization */
  .site-header {
    box-shadow: 0 2px 10px rgba(8, 72, 127, 0.1);
  }
  
  .header-inner {
    height: 70px;
    padding: 0 0.5rem;
  }
  
  .header-logo-full {
    height: 48px;
    max-width: 220px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--card-border);
  }

  .hero-section {
    padding: 2.5rem 0 2rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .hero-subline {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-btn-call, .hero-btn-wa {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }

  .hero-visual-card {
    height: 240px;
    max-height: 240px;
  }

  .gbp-rating-box {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
    padding: 1.25rem 1rem;
  }

  .gbp-brand {
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  .gbp-rating-box div[style*="text-align: right"] {
    text-align: center !important;
  }

  .reviews-carousel-wrapper {
    padding: 0 0.25rem;
  }

  .gallery-carousel-wrapper {
    padding: 0;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .gallery-arrow-prev { left: 4px; }
  .gallery-arrow-next { right: 4px; }

  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* Prevents Safari Auto-Zoom */
    padding: 0.8rem;
  }

  .scroll-to-top-btn {
    right: 16px;
    bottom: 85px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 576px) {
  .header-inner {
    height: 62px;
  }

  .nav-menu {
    top: 62px;
    height: calc(100vh - 62px);
  }

  .header-logo-full {
    height: 40px;
    max-width: 180px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .page-hero-title {
    font-size: 2rem !important;
  }

  .page-hero-sub {
    font-size: 0.98rem !important;
  }
}


/* ==========================================================================
   SCROLL REVEAL & ENGAGING SECTION ANIMATIONS
   ========================================================================== */

/* Base Reveal Element Initial State */
.reveal-on-scroll,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Directional & Scale Variants */
.reveal-left {
  transform: translateX(-40px) translateY(0);
}

.reveal-right {
  transform: translateX(40px) translateY(0);
}

.reveal-scale {
  transform: scale(0.92) translateY(0);
}

/* Active State when element enters viewport */
.is-revealed,
.reveal-stagger.is-revealed > * {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* Crisp Pure White Phone Call Icon & Emoji Filter Styles */
.call-icon-svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
  vertical-align: -2px;
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Fallback for any text emoji phone icons in CTA buttons */
.btn-primary .phone-emoji,
.mobile-call-btn .phone-emoji,
.header-btn-desktop .phone-emoji,
.call-emoji-white {
  display: inline-block;
  filter: brightness(0) invert(1) !important;
}

.btn-primary:hover .call-icon-svg,
.mobile-call-btn:hover .call-icon-svg {
  transform: rotate(15deg) scale(1.15);
}

/* Automatic Stagger Delays for Multi-Card Grids */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.75s; }

/* Custom Manual Delay Classes */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }

/* Interactive Floating & Pulse Animations */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-animation {
  animation: floatGentle 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 100, 170, 0.3); }
  50% { box-shadow: 0 0 0 14px rgba(10, 100, 170, 0); }
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Subtle Hero Entrance Animation */
.hero-content {
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-visual-card {
  animation: heroImageIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Smooth Card Hover Transition Elevation */
.service-card, .doctor-card, .review-card, .faq-card, .blog-card, .contact-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-stagger > *,
  .hero-content,
  .hero-visual-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .float-animation,
  .pulse-glow {
    animation: none !important;
  }
}

