/* ==========================================================================
   MED PLY CLINIC - Core Design System & Stylesheet
   Color Palette: Medical Teal, Deep Blue, White, Soft Mint, Subtle Grey
   Typography: Poppins (Headings), Inter (Body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --teal-primary: #0d9488;
  --teal-hover: #0f766e;
  --teal-dark: #115e59;
  --teal-light: #ccfbf1;
  --teal-surface: #f0fdfa;

  --blue-primary: #0f2942;
  --blue-dark: #0a1b2d;
  --blue-accent: #0284c7;
  --blue-accent-hover: #0369a1;
  --blue-surface: #f0f7fd;
  
  --mint-soft: #e6f7f2;
  --mint-accent: #10b981;
  
  --white: #ffffff;
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-alt: #f1f5f9;
  
  /* Text & Border */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-focus: #0d9488;

  /* Status */
  --status-open: #059669;
  --warning-bg: #fffbeb;
  --warning-text: #b45309;
  --emergency-bg: #fee2e2;
  --emergency-border: #fca5a5;
  --emergency-text: #991b1b;

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 41, 66, 0.08), 0 4px 10px -4px rgba(15, 41, 66, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(15, 41, 66, 0.12), 0 8px 16px -6px rgba(15, 41, 66, 0.06);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--teal-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--blue-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw + 0.25rem, 1.65rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--teal-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background-color: var(--teal-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.btn-secondary {
  background-color: var(--blue-surface);
  color: var(--blue-primary);
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  color: var(--blue-dark);
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}

.btn-outline:hover {
  background-color: var(--teal-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--blue-primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: var(--blue-surface);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* --- Section Utilities --- */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-bg-light {
  background-color: var(--bg-surface);
}

.section-bg-blue {
  background-color: var(--blue-surface);
}

.section-bg-mint {
  background-color: var(--mint-soft);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}

.section-badge svg {
  width: 14px;
  height: 14px;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Top Info Bar --- */
.top-bar {
  background-color: var(--blue-primary);
  color: #cbd5e1;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
}

.top-bar-item a {
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.top-bar-item a:hover {
  color: #5eead4;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  color: #2dd4bf;
  flex-shrink: 0;
}

.top-bar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(5, 150, 105, 0.25);
  color: #6ee7b7;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Main Header & Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--teal-primary);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--teal-primary);
}

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

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

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--blue-primary);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* --- Mobile Drawer Menu --- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: var(--white);
  z-index: 1100;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
  overflow-y: auto;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-links {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link.active {
  color: var(--teal-primary);
  font-weight: 700;
}

.mobile-nav-footer {
  margin-top: auto;
  padding: 1.5rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
}

/* --- Floating WhatsApp Button (LEFT SIDE) --- */
.floating-whatsapp {
  position: fixed;
  left: 20px;
  bottom: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #25d366;
  color: var(--white);
  padding: 0.65rem 1rem 0.65rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  animation: wa-pulse 3s infinite;
}

.floating-whatsapp:hover {
  color: var(--white);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: currentColor;
}

.floating-whatsapp-text {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 640px) {
  .floating-whatsapp {
    left: 15px;
    bottom: 20px;
    padding: 0.75rem;
    border-radius: 50%;
  }
  .floating-whatsapp-text {
    display: none;
  }
}

/* --- Quick Contact Strip --- */
.quick-contact-bar {
  background-color: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.quick-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quick-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--teal-light);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-contact-icon svg {
  width: 22px;
  height: 22px;
}

.quick-contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
}

.quick-contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-top: 0.15rem;
  line-height: 1.3;
}

.quick-contact-value a {
  color: var(--blue-primary);
}

.quick-contact-value a:hover {
  color: var(--teal-primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 50%, #f0f7fd 100%);
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(var(--teal-light) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--teal-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #f59e0b;
}

.rating-stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.rating-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.rating-text span {
  color: var(--text-muted);
  font-weight: 400;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background-color: var(--white);
  border: 6px solid var(--white);
}

.hero-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-badge-floating {
  position: absolute;
  bottom: 25px;
  left: -20px;
  background-color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 250px;
  border-left: 4px solid var(--teal-primary);
}

.hero-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--mint-soft);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge-icon svg {
  width: 20px;
  height: 20px;
}

.hero-badge-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-primary);
  line-height: 1.3;
}

.hero-badge-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #99f6e4;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--blue-surface) 100%);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.08);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--blue-primary);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* --- Split Visual Section (About & Patient Care) --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.split-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.split-image-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.split-image-wrap:hover img {
  transform: scale(1.02);
}

.split-badge-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.split-content h2 {
  margin-bottom: 1.25rem;
}

.feature-check-list {
  margin: 1.75rem 0 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--mint-soft);
  color: var(--mint-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon svg {
  width: 14px;
  height: 14px;
}

/* --- Pharmacy Section Highlight --- */
.pharmacy-highlight {
  background: linear-gradient(135deg, #0f2942 0%, #1e3a5f 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 4rem 3.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.pharmacy-highlight::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.pharmacy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.pharmacy-content h2 {
  color: var(--white);
  margin-bottom: 1.2rem;
}

.pharmacy-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
}

.pharmacy-pills-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 2rem;
}

.pharmacy-pill {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pharmacy-pill svg {
  width: 16px;
  height: 16px;
  color: #2dd4bf;
}

.pharmacy-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

.pharmacy-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* --- Why Choose Us (4 Cards) --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.why-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: #99f6e4;
  box-shadow: var(--shadow-lg);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--teal-light);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal);
}

.why-card:hover .why-icon {
  transform: rotate(5deg) scale(1.1);
}

.why-icon svg {
  width: 32px;
  height: 32px;
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--blue-primary);
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Google Reviews & Rating Card --- */
.reviews-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.reviews-badge-google {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-bottom: 1.25rem;
}

.reviews-badge-google svg {
  width: 24px;
  height: 24px;
}

.reviews-score {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.reviews-score span {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-light);
}

.reviews-stars-lg {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: #f59e0b;
  margin-bottom: 0.75rem;
}

.reviews-stars-lg svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.reviews-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.reviews-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* --- Facebook Community Box --- */
.facebook-box {
  background: linear-gradient(135deg, #1877f2 0%, #0d5cb6 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.25);
  margin-top: 3.5rem;
}

.facebook-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.facebook-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--white);
  color: #1877f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.facebook-icon-wrap svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.facebook-content h3 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.facebook-content p {
  color: #e0e7ff;
  font-size: 0.95rem;
}

/* --- Medical Team Page --- */
.team-hero-notice {
  background-color: var(--blue-surface);
  border-left: 4px solid var(--teal-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 3rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #99f6e4;
}

.team-image-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.team-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-content {
  padding: 1.75rem;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--teal-primary);
  margin-bottom: 0.35rem;
  display: block;
}

.team-name {
  font-size: 1.25rem;
  color: var(--blue-primary);
  margin-bottom: 0.65rem;
}

.team-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Gallery Page & Lightbox --- */
.gallery-filter-wrap {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.gallery-filter-btn {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}

.gallery-filter-btn.active {
  background-color: var(--teal-primary);
  border-color: var(--teal-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-surface);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 41, 66, 0.85) 0%, rgba(15, 41, 66, 0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.gallery-item-category {
  font-size: 0.8rem;
  color: #99f6e4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 27, 45, 0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  color: var(--white);
  margin-top: 1rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-tile {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.contact-tile:hover {
  border-color: #99f6e4;
}

.contact-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--teal-light);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-tile-icon svg {
  width: 24px;
  height: 24px;
}

.contact-tile-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-tile-detail {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-primary);
  line-height: 1.4;
}

.contact-tile-detail a {
  color: var(--blue-primary);
}

.contact-tile-detail a:hover {
  color: var(--teal-primary);
}

.contact-action-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Form */
.contact-form-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: #fafbfc;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--teal-primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

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

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: none;
}

.form-alert.success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.form-alert.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* Map Embed */
.map-section {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  height: 420px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Emergency Notice Box --- */
.emergency-banner {
  background-color: #fff1f2;
  border-left: 5px solid #e11d48;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #881337;
  margin: 3rem 0;
}

.emergency-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffe4e6;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emergency-icon svg {
  width: 20px;
  height: 20px;
}

.emergency-text {
  font-size: 0.92rem;
  line-height: 1.5;
}

.emergency-text strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

/* --- Site Footer --- */
.site-footer {
  background-color: var(--blue-primary);
  color: #cbd5e1;
  padding-top: 5rem;
  border-top: 4px solid var(--teal-primary);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 46px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background-color: #1877f2;
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-title {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--teal-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-link:hover {
  color: #2dd4bf;
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #94a3b8;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: #2dd4bf;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: #2dd4bf;
}

.footer-emergency-note {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0 1.5rem;
  font-size: 0.88rem;
  color: #fca5a5;
  line-height: 1.6;
}

.footer-emergency-note strong {
  color: #fecaca;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  padding: 1.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: #64748b;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #2dd4bf;
}

/* --- Page Header Banner (Subpages) --- */
.page-hero {
  background: linear-gradient(135deg, #0f2942 0%, #1e3a5f 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  position: relative;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: #cbd5e1;
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
}

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 1.25rem;
}

.breadcrumb-nav a {
  color: #cbd5e1;
}

.breadcrumb-nav a:hover {
  color: #2dd4bf;
}

.breadcrumb-nav span {
  color: #64748b;
}

/* --- Privacy Policy Content --- */
.legal-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 880px;
  margin: 0 auto;
}

.legal-card h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-card h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-card p, .legal-card ul {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1.25rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    order: -1;
  }
  .hero-image-wrap img {
    height: 380px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .quick-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pharmacy-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 768px) {
  .top-bar-list {
    gap: 0.85rem;
  }
  .top-bar-item:nth-child(2),
  .top-bar-item:nth-child(4) {
    display: none; /* Hide address and email in top bar on small screens to avoid clutter */
  }
  .nav-menu, .nav-cta-wrap .btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .quick-contact-grid {
    grid-template-columns: 1fr;
  }
  .facebook-box {
    flex-direction: column;
    text-align: center;
    padding: 2.25rem 1.75rem;
  }
  .facebook-content {
    flex-direction: column;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .reviews-card {
    padding: 2.25rem 1.5rem;
  }
  .reviews-score {
    font-size: 3rem;
  }
  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }
  .pharmacy-highlight {
    padding: 2.5rem 1.75rem;
  }
  .legal-card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero-badge-floating {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
