/* ============================================================
   components.css — Navbar, Cards, Forms, Hero, Footer, Buttons
   Singheswar Hospital Website
   ============================================================ */

/* ============================================================
   NAVBAR / SITE HEADER
   ============================================================ */

/* ── Outer wrapper ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 4px 28px rgba(3, 105, 161, 0.13);
}

/*
 * 3-column layout: [LEFT: 1fr] [CENTER: auto] [RIGHT: 1fr]
 * 1fr on both sides = center column is always at the exact
 * mathematical middle of the navbar.
 */
.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--navbar-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

/* ═══════════════════════════════════════
   LEFT — Brand / Logo
   justify-self: start pins it to the left edge
═══════════════════════════════════════ */
.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.brand:hover,
.brand:focus {
  opacity: 0.82;
}

/* Free-standing logo — no circle, no crop, full image visible */
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

/* ═══════════════════════════════════════
   CENTER — Nav Links (auto column = shrinks to content)
═══════════════════════════════════════ */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

/* Sliding underline indicator */
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a:focus {
  color: var(--color-primary);
  background: var(--bg-secondary);
}

.nav-links > li > a:hover::after,
.nav-links > li > a:focus::after {
  width: 65%;
}

.nav-links > li > a.active,
.nav-links > li > a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-links > li > a.active::after,
.nav-links > li > a[aria-current="page"]::after {
  width: 65%;
}

/* ── Dropdown trigger ── */
.dropdown {
  position: relative;
}

.dropdown > button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  min-height: 44px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown > button:hover,
.dropdown.open > button {
  color: var(--color-primary);
  background: var(--bg-secondary);
}

.dropdown-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.dropdown.open > button .dropdown-chevron,
.dropdown:hover > button .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Enhanced chevron for services dropdown */
.services-dropdown-wrapper > button .dropdown-chevron {
  width: 12px;
  height: 12px;
}

/* ── Dropdown panel ── */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(3, 105, 161, 0.16);
  padding: 0.4rem;
  z-index: 200;
  list-style: none;
  animation: dropdownSlide 0.18s ease forwards;
}

@keyframes dropdownSlide {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
}

.dropdown-menu li a {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background: var(--bg-secondary);
  padding-left: 1.1rem;
}

.dropdown-menu-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.dropdown-menu-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dropdown.open .dropdown-menu {
  display: flex;
}

/* Desktop hover behavior - only on devices that support hover */
@media (min-width: 969px) and (hover: hover) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
}

/* ── Services dropdown — wider, icon layout ── */
.services-dropdown {
  min-width: 300px;
}

/* Mega menu for services */
.mega-menu {
  min-width: 350px;
  max-width: 400px;
}

/* Each item: icon on left, text on right */
.services-dropdown li a {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
}

.services-dropdown li a:hover,
.services-dropdown li a:focus {
  padding-left: 0.9rem; /* no indent shift — icon keeps alignment */
  background: var(--bg-secondary);
}

.dropdown-item-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.dropdown-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* "All Services" row — slightly highlighted */
.dropdown-item-all {
  background: rgba(3, 105, 161, 0.05);
  border-radius: var(--radius-sm);
}

.dropdown-item-all:hover,
.dropdown-item-all:focus {
  background: rgba(3, 105, 161, 0.1) !important;
}

.dropdown-item-all .dropdown-menu-title {
  color: var(--color-primary);
}

/* Thin divider between "All Services" and the categories */
.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.3rem 0.5rem;
}

/* ── Submenu functionality ── */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu-trigger {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, padding-left 0.15s ease;
  font-family: inherit;
  color: inherit;
}

.dropdown-submenu-trigger:hover,
.dropdown-submenu-trigger:focus,
.dropdown-submenu.open .dropdown-submenu-trigger {
  background: var(--bg-secondary);
  padding-left: 1.1rem;
}

.submenu-chevron {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.15s ease;
}

.dropdown-submenu.open .submenu-chevron,
.dropdown-submenu:hover .submenu-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

/* Submenu panel */
.submenu-panel {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(3, 105, 161, 0.16);
  padding: 0.4rem;
  z-index: 300;
  list-style: none;
  margin-left: 8px;
  animation: submenuSlide 0.18s ease forwards;
}

@keyframes submenuSlide {
  from { opacity: 0; transform: translateX(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Desktop hover behavior - only on devices that support hover */
@media (min-width: 969px) and (hover: hover) {
  .dropdown-submenu:hover .submenu-panel,
  .dropdown-submenu.open .submenu-panel {
    display: flex;
  }
}

/* Mobile and touch devices - only show on open class */
@media (max-width: 968px), (hover: none) {
  .dropdown-submenu.open .submenu-panel {
    display: flex;
  }
}

/* Prevent submenu from going off-screen on right edge */
@media (min-width: 969px) {
  .dropdown-submenu:last-child .submenu-panel,
  .dropdown-submenu:nth-last-child(2) .submenu-panel {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 8px;
  }
}

.submenu-panel li a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.submenu-panel li a:hover,
.submenu-panel li a:focus {
  background: var(--bg-secondary);
  padding-left: 1rem;
  color: var(--color-primary);
}

/* ═══════════════════════════════════════
   RIGHT — Controls
   justify-self: end pins it to the right edge
═══════════════════════════════════════ */
.nav-controls {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* Theme & Language toggle pills */
#theme-toggle,
#lang-toggle {
  cursor: pointer;
  border: 1.5px solid var(--color-border);
  background: transparent;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: inherit;
  min-width: 40px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

#theme-toggle:hover,
#lang-toggle:hover {
  background: var(--bg-secondary);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.06);
}

/* Book Appointment CTA */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--gradient-button);
  color: #ffffff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 22px;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(3, 105, 161, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nav-cta-btn:hover,
.nav-cta-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.42);
  opacity: 0.92;
  color: #ffffff !important;
}

/* ═══════════════════════════════════════
   Hamburger (mobile only)
═══════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: 1.5px solid var(--color-border);
  background: transparent;
  padding: 8px;
  border-radius: var(--radius-sm);
  min-width: 44px;
  min-height: 44px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hamburger:hover {
  background: var(--bg-secondary);
  border-color: var(--color-primary);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

/* ── Mobile-only controls row — hidden on desktop ── */
.nav-mobile-controls {
  display: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

/* ── Tight tablet (969–1200px) ── */
@media (min-width: 969px) and (max-width: 1200px) {
  .navbar {
    padding: 0 1.25rem;
    gap: 0.75rem;
  }

  .nav-links > li > a,
  .dropdown > button {
    padding: 0.5rem 0.55rem;
    font-size: 0.82rem;
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-logo {
    height: 46px;
  }

  .nav-cta-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }

  #theme-toggle,
  #lang-toggle {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    min-width: 38px;
  }
}

/* ── Mobile (≤968px) ── */
@media (max-width: 968px) {

  /* Switch navbar to simple flex: logo left, hamburger right */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    gap: 0;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Hide desktop nav links and desktop controls */
  .nav-links,
  .nav-controls {
    display: none;
  }

  /* ── Open drawer ── */
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--navbar-height));
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border-top: 3px solid var(--color-primary);
    padding: 0;
    gap: 0;
    box-shadow: 0 12px 40px rgba(3, 105, 161, 0.18);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: mobileMenuIn 0.22s ease forwards;
  }

  @keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Nav link rows */
  .nav-links > li > a {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.25rem;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 0;
    border-bottom: 1px solid rgba(3, 105, 161, 0.07);
  }

  .nav-links > li > a::after {
    display: none;
  }

  .nav-links > li > a:hover,
  .nav-links > li > a:focus {
    background: var(--bg-secondary);
    color: var(--color-primary);
    padding-left: 1.6rem;
  }

  /* Dropdown trigger */
  .dropdown > button {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--text-primary);
    justify-content: space-between;
    border-radius: 0;
    border-bottom: 1px solid rgba(3, 105, 161, 0.07);
    min-height: 52px;
  }

  .dropdown > button:hover,
  .dropdown.open > button {
    background: var(--bg-secondary);
    color: var(--color-primary);
  }

  /* Dropdown sub-menu (inline, indented) */
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: rgba(3, 105, 161, 0.04);
    backdrop-filter: none;
    animation: none;
    margin: 0;
  }

  .dropdown-menu li a {
    padding: 0.75rem 1.25rem 0.75rem 2rem;
    border-bottom: 1px solid rgba(3, 105, 161, 0.05);
  }

  .dropdown-menu li a:hover {
    padding-left: 2.4rem;
    background: rgba(3, 105, 161, 0.08);
  }

  /* Services dropdown on mobile — keep icon layout but tighten */
  .services-dropdown li a {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem 0.75rem 1.5rem;
  }

  .services-dropdown li a:hover {
    padding-left: 1.75rem;
  }

  .dropdown-item-icon {
    font-size: 1.1rem;
  }

  .dropdown-divider {
    margin: 0.2rem 1rem;
  }

  .dropdown-menu-title {
    font-size: 0.9rem;
  }

  .dropdown-menu-desc {
    font-size: 0.73rem;
  }

  /* Mobile submenu handling */
  .dropdown-submenu-trigger {
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    justify-content: space-between;
    border-radius: 0;
    border-bottom: 1px solid rgba(3, 105, 161, 0.05);
    gap: 0.6rem;
  }

  .dropdown-submenu-trigger:hover,
  .dropdown-submenu.open .dropdown-submenu-trigger {
    background: rgba(3, 105, 161, 0.08);
    padding-left: 1.75rem;
    color: var(--color-primary);
  }

  .submenu-panel {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: rgba(3, 105, 161, 0.06);
    backdrop-filter: none;
    animation: none;
    margin: 0;
    min-width: auto;
    /* Mobile accordion animation */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .dropdown-submenu.open .submenu-panel {
    max-height: 500px;
    opacity: 1;
  }

  .submenu-panel li a {
    padding: 0.6rem 1.25rem 0.6rem 2.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(3, 105, 161, 0.03);
  }

  .submenu-panel li a:hover {
    padding-left: 2.8rem;
    background: rgba(3, 105, 161, 0.1);
  }

  /* Mobile submenu toggle button */
  .mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 1.5rem;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    border-bottom: 1px solid rgba(3, 105, 161, 0.05);
  }

  .mobile-submenu-toggle:hover {
    background: rgba(3, 105, 161, 0.08);
    color: var(--color-primary);
  }

  /* Improve mobile menu scrolling and navigation */
  .nav-links.open {
    padding-bottom: 2rem;
  }

  /* Add scroll indicator for mobile menu */
  .nav-links.open::after {
    content: "Scroll up ↑ to see all menu items";
    display: block;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(3, 105, 161, 0.05);
    text-align: center;
    border-top: 1px solid rgba(3, 105, 161, 0.1);
    position: sticky;
    bottom: 0;
    z-index: 10;
  }

  .mobile-submenu-toggle .submenu-chevron {
    transform: rotate(90deg);
    transition: transform 0.25s ease;
  }

  .dropdown-submenu.open .mobile-submenu-toggle .submenu-chevron {
    transform: rotate(270deg);
  }

  /* Improve mobile menu scrolling */
  .nav-links.open {
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Better touch targets on mobile */
  .dropdown-submenu-trigger,
  .submenu-panel li a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Smooth animations for mobile submenus */
  .submenu-panel {
    transition: max-height 0.3s ease, opacity 0.2s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }

  .dropdown-submenu.open .submenu-panel {
    max-height: 500px;
    opacity: 1;
  }

  /* ── Mobile controls row (theme + lang + book) ── */
  .nav-mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-top: 2px solid rgba(3, 105, 161, 0.1);
    margin-top: 0.25rem;
    flex-wrap: wrap;
  }

  /* Theme & Language buttons in mobile drawer */
  .mobile-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    border: 1.5px solid var(--color-border);
    background: transparent;
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-family: inherit;
    min-height: 40px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .mobile-ctrl-btn:hover {
    background: var(--bg-secondary);
    color: var(--color-primary);
    border-color: var(--color-primary);
  }

  .mobile-ctrl-btn span {
    font-size: 0.82rem;
  }

  /* Book Appointment in mobile drawer — full width */
  .mobile-cta {
    flex: 1;
    min-width: 160px;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding-top: var(--navbar-height);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

.btn-cta {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color var(--transition-base), color var(--transition-base),
    transform var(--transition-fast), box-shadow var(--transition-base);
  box-shadow: var(--shadow-md);
}

.btn-cta:hover,
.btn-cta:focus {
  background: var(--color-pale-blue);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── Page Hero / Banner ── */
.page-hero {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
  padding-top: calc(var(--space-xl) + var(--navbar-height));
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */

.service-card {
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid rgba(3, 105, 161, 0.15);
  cursor: pointer;
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-card a {
  display: block;
  margin-top: var(--space-md);
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.service-card a:hover {
  color: var(--color-primary);
}

/* ============================================================
   DOCTOR CARDS
   ============================================================ */

.doctor-card {
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid rgba(3, 105, 161, 0.15);
  text-align: center;
}

.doctor-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--color-secondary);
}

.doctor-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.doctor-specialty {
  font-size: 0.95rem;
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.doctor-quals {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================================
   GALLERY
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(3, 105, 161, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-base);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

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

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

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lightbox-controls button {
  position: absolute;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.lightbox-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form-container {
  max-width: 600px;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid rgba(3, 105, 161, 0.15);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(3, 105, 161, 0.3);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
}

.field-error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 4px;
  display: block;
}

.btn-submit {
  background: var(--gradient-button);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: opacity var(--transition-base), transform var(--transition-fast),
    box-shadow var(--transition-base);
  min-height: 44px;
  min-width: 44px;
}

.btn-submit:hover,
.btn-submit:focus {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: left;
}

.site-footer a {
  color: var(--color-pale-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--color-white);
}

.site-footer p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

@media (max-width: 767px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ============================================================
   FLOATING BUTTONS — WhatsApp & Scroll-to-Top
   ============================================================ */

.whatsapp-btn,
.scroll-top-btn {
  position: fixed;
  right: 20px;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
  text-decoration: none;
}

.whatsapp-btn:hover,
.scroll-top-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.whatsapp-btn {
  bottom: 20px;
  background: var(--color-whatsapp);
  color: var(--color-white);
}

.scroll-top-btn {
  bottom: 82px;
  background: var(--gradient-button);
  color: var(--color-white);
  border: none;
  font-size: 1.2rem;
}
