/* ============================================
   Care4Family Medical Centre — Design System v2
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Primary Palette */
  --primary: #1a2080;
  --primary-light: #2C35A8;
  --primary-dark: #0e1250;
  --primary-gradient: linear-gradient(135deg, #1a2080 0%, #2C35A8 100%);
  --primary-gradient-h: linear-gradient(90deg, #1a2080 0%, #2C35A8 100%);

  /* Accent / CTA */
  --accent: #4f6ef7;
  --accent-light: #7b93f9;
  --accent-dark: #3451d1;
  --accent-gradient: linear-gradient(135deg, #3451d1 0%, #4f6ef7 100%);

  /* Teal highlight */
  --teal: #14b8a6;
  --teal-light: #5eead4;

  /* Upcoming */
  --upcoming: #f59e0b;
  --upcoming-light: #fde68a;
  --upcoming-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --light-gray: #E8EDF4;
  --medium-gray: #94A3B8;
  --dark-gray: #4B5563;
  --charcoal: #334155;
  --black: #0F172A;

  /* Spacing */
  --section-padding: 110px 0;
  --container-width: 1320px;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.13);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
  --shadow-glow: 0 0 40px rgba(26,32,128,0.3);
  --shadow-glow-accent: 0 0 30px rgba(79,110,247,0.35);

  /* Borders */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.65rem); }
h4 { font-size: clamp(1rem, 2vw, 1.2rem); }

p {
  font-size: 1.05rem;
  color: var(--dark-gray);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  background: rgba(26, 32, 128, 0.08);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(26, 32, 128, 0.12);
}

.section-title {
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  max-width: 660px;
  color: var(--dark-gray);
  font-size: 1.08rem;
  line-height: 1.85;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0));
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,32,128,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,32,128,0.4);
}

.btn-accent {
  background: var(--accent-gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(79,110,247,0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79,110,247,0.45);
}

.btn-glass {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-glass-white {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-glass-white:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--off-white);
}

.btn-upcoming {
  background: var(--upcoming-gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}

.btn-upcoming:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245,158,11,0.45);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
}

/* ---------- Header & Announcement Bar ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.announcement-bar {
  background: var(--primary-gradient);
  color: var(--white);
  text-align: center;
  padding: 11px 24px;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.announcement-bar a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 700;
  text-underline-offset: 2px;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

.announcement-bar .pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--teal-light);
  border-radius: 50%;
  margin-right: 10px;
  animation: pulse 1.5s infinite;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(94,234,212,0.6);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ---------- Navigation ---------- */
.navbar {
  position: relative;
  padding: 18px 0;
  transition: var(--transition-smooth);
  background: transparent;
  width: 100%;
  z-index: 1000;
}

.navbar.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
  padding: 12px 0;
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo-full {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo-full-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.navbar.scrolled .logo-full-img {
  filter: none;
}

.nav-brand:hover .nav-logo-full {
  transform: scale(1.03);
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--dark-gray);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.14);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
  background: rgba(26,32,128,0.08);
}

.nav-cta {
  padding: 10px 22px !important;
  background: var(--primary-gradient) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(26,32,128,0.3) !important;
  margin-left: 8px;
  border-radius: var(--radius-full) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26,32,128,0.4) !important;
  background: var(--primary-gradient) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 6px;
}

.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.navbar.scrolled .mobile-toggle span {
  background: var(--charcoal);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(4, 5, 20, 0.95) 0%,
    rgba(12, 15, 60, 0.84) 50%,
    rgba(4, 5, 20, 0.78) 100%
  );
  z-index: 2;
}

/* Animated particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) { width: 300px; height: 300px; top: 10%; left: 60%; animation-delay: 0s; }
.particle:nth-child(2) { width: 200px; height: 200px; top: 50%; left: 75%; animation-delay: 1.5s; }
.particle:nth-child(3) { width: 150px; height: 150px; top: 70%; left: 50%; animation-delay: 3s; }
.particle:nth-child(4) { width: 80px; height: 80px; top: 30%; left: 80%; animation-delay: 4.5s; }
.particle:nth-child(5) { width: 120px; height: 120px; top: 80%; left: 85%; animation-delay: 2s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.06; }
  50% { transform: translateY(-30px) scale(1.05); opacity: 0.12; }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 740px;
  padding: 210px 0 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(94,234,212,0.7);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.5vw, 5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.hero h1 span {
  display: block;
  color: var(--white);
}

.hero-description {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 44px;
  max-width: 580px;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 44px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat {
  padding: 0 36px;
  text-align: center;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

/* Floating cards */
.hero-float {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  border: 1px solid rgba(255,255,255,0.14);
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float-1 {
  top: 28%;
  right: 7%;
  animation-delay: 0s;
}

.hero-float-2 {
  bottom: 22%;
  right: 14%;
  animation-delay: 2s;
}

.hero-float-3 {
  top: 58%;
  right: 4%;
  animation-delay: 4s;
}

.hero-float .float-icon {
  font-size: 1.6rem;
}

.hero-float .float-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  white-space: nowrap;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* ---------- Trust Strip ---------- */

/* ---------- New Patients Banner ---------- */
.new-patients-banner {
  background: var(--primary-gradient);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.new-patients-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.new-patients-banner::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79,110,247,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.new-patients-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.new-patients-icon {
  font-size: 3rem;
  flex-shrink: 0;
  animation: float 4s ease-in-out infinite;
}

.new-patients-text h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.new-patients-text p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

.new-patients-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ---------- About Section ---------- */
.about {
  padding: var(--section-padding);
  background: var(--off-white);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--teal));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

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

.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.04);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,32,128,0.15) 0%, transparent 50%);
  border-radius: var(--radius-lg);
}

.about-accent-card {
  position: absolute;
  bottom: -28px;
  right: -28px;
  background: var(--white);
  padding: 20px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  border: 1px solid var(--light-gray);
}

.about-accent-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.about-accent-text strong {
  display: block;
  font-size: 1rem;
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: 700;
}

.about-accent-text span {
  font-size: 0.82rem;
  color: var(--medium-gray);
}

.about-content .section-badge { margin-bottom: 20px; }
.about-content .section-title { margin-bottom: 22px; }
.about-content .section-subtitle { margin-bottom: 36px; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 40px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  border: 1px solid var(--light-gray);
}

.about-feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(26,32,128,0.15);
}

.about-feature-icon {
  width: 38px;
  height: 38px;
  background: rgba(26,32,128,0.07);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ---------- Doctor / Team Section ---------- */
.team {
  padding: var(--section-padding);
  background: var(--white);
}

.team .container {
  max-width: 1440px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  background: var(--off-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border: 1px solid var(--light-gray);
}

.doctor-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: rgba(26,32,128,0.1);
}

.doctor-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.doctor-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition-slow);
}

.doctor-card:hover .doctor-photo img {
  transform: scale(1.04);
}

.doctor-photo-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  border: 1px solid rgba(26,32,128,0.12);
}

.doctor-info {
  padding: 36px 40px;
}

.doctor-info h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.doctor-credentials {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.doctor-credentials::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
  flex-shrink: 0;
}

.doctor-bio {
  color: var(--dark-gray);
  line-height: 1.85;
  margin-bottom: 28px;
  font-size: 0.97rem;
}

.doctor-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doctor-specialty-tag {
  padding: 6px 16px;
  background: rgba(26,32,128,0.07);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid rgba(26,32,128,0.1);
}

/* ---------- Services Section ---------- */
.services {
  padding: var(--section-padding);
  background: var(--off-white);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition-smooth);
  border: 1px solid var(--light-gray);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card--pharmacy {
  border: 1.5px dashed rgba(245,158,11,0.4);
  background: linear-gradient(135deg, rgba(255,251,235,0.8) 0%, var(--white) 100%);
}

.service-card--pharmacy::before {
  background: var(--upcoming-gradient);
}

.service-card-upcoming-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--upcoming-gradient);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(26,32,128,0.07);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.service-card--pharmacy .service-icon {
  background: rgba(245,158,11,0.1);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-3deg);
  background: rgba(26,32,128,0.12);
}

.service-svg {
  transition: var(--transition-smooth);
}
.service-card:hover .service-svg {
  transform: scale(1.05);
}

/* Service Icon Colors */
.service-icon--blue { background: rgba(59, 130, 246, 0.1); }
.service-icon--blue .service-svg { color: #3b82f6; filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2)); }
.service-card:hover .service-icon--blue { background: rgba(59, 130, 246, 0.15); }

.service-icon--red { background: rgba(239, 68, 68, 0.1); }
.service-icon--red .service-svg { color: #ef4444; filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.2)); }
.service-card:hover .service-icon--red { background: rgba(239, 68, 68, 0.15); }

.service-icon--teal { background: rgba(20, 184, 166, 0.1); }
.service-icon--teal .service-svg { color: #14b8a6; filter: drop-shadow(0 2px 4px rgba(20, 184, 166, 0.2)); }
.service-card:hover .service-icon--teal { background: rgba(20, 184, 166, 0.15); }

.service-icon--purple { background: rgba(168, 85, 247, 0.1); }
.service-icon--purple .service-svg { color: #a855f7; filter: drop-shadow(0 2px 4px rgba(168, 85, 247, 0.2)); }
.service-card:hover .service-icon--purple { background: rgba(168, 85, 247, 0.15); }

.service-icon--pink { background: rgba(236, 72, 153, 0.1); }
.service-icon--pink .service-svg { color: #ec4899; filter: drop-shadow(0 2px 4px rgba(236, 72, 153, 0.2)); }
.service-card:hover .service-icon--pink { background: rgba(236, 72, 153, 0.15); }

.service-icon--orange { background: rgba(245, 158, 11, 0.1); }
.service-icon--orange .service-svg { color: #f59e0b; filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.2)); }
.service-card:hover .service-icon--orange { background: rgba(245, 158, 11, 0.15); }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--black);
  letter-spacing: -0.2px;
}

.service-card ul {
  margin-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card ul li {
  font-size: 0.875rem;
  color: var(--dark-gray);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}

.service-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.service-card--pharmacy ul li::before {
  color: var(--upcoming);
}

/* ---------- Locations Section ---------- */
.locations {
  padding: var(--section-padding);
  background: var(--white);
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.location-card {
  border-radius: var(--radius-xl);
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid var(--light-gray);
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.location-card--active {
  background: var(--off-white);
}

.location-card--upcoming {
  background: linear-gradient(145deg, #fffbeb 0%, #fef9e7 100%);
  border: 1.5px solid rgba(245,158,11,0.25);
}

.location-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.location-icon {
  font-size: 2.4rem;
}

.location-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.location-status--active {
  background: rgba(16,185,129,0.1);
  color: #065F46;
  border: 1px solid rgba(16,185,129,0.2);
}

.location-status--upcoming {
  background: rgba(245,158,11,0.12);
  color: #92400e;
  border: 1px solid rgba(245,158,11,0.25);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.location-status--active .status-dot {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16,185,129,0.5);
}

.location-status--upcoming .status-dot {
  background: var(--upcoming);
  box-shadow: 0 0 6px rgba(245,158,11,0.5);
  animation-delay: 0.3s;
}

.location-card h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.location-type {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--medium-gray);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.location-address,
.location-hours {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.location-address svg,
.location-hours svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.location-card--upcoming .location-address svg {
  color: var(--upcoming);
}

.location-address span {
  font-size: 0.98rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.location-hours > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-hours span {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.location-hours strong {
  font-weight: 700;
  color: var(--charcoal);
}

.location-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.location-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: var(--transition-fast);
}

.location-contact-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26,32,128,0.04);
}

.location-contact-link svg {
  color: var(--primary);
}

.location-upcoming-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.upcoming-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--charcoal);
  font-weight: 500;
}

.upcoming-feature svg {
  color: #10b981;
  flex-shrink: 0;
}

.location-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

/* ---------- Contact Section ---------- */
.contact {
  padding: var(--section-padding);
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  padding: 52px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -25%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-info-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79,110,247,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.contact-info-subtitle {
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-item-icon--upcoming {
  background: rgba(245,158,11,0.25);
  border-color: rgba(245,158,11,0.3);
}

.contact-item-content h4 {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coming-soon-tag {
  background: rgba(245,158,11,0.25);
  color: var(--upcoming-light);
  font-size: 0.68rem;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245,158,11,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item-content p,
.contact-item-content a {
  color: rgba(255,255,255,0.9);
  font-size: 0.97rem;
  line-height: 1.6;
}

.contact-item-content a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-item--upcoming .contact-item-content p {
  color: rgba(255,255,255,0.8);
  font-style: italic;
}

.contact-hours {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 2;
}

.contact-hours h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hours-table {
  display: grid;
  gap: 10px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  padding: 2px 0;
}

.hours-row strong {
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

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

.contact-form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.contact-form-subtitle {
  color: var(--dark-gray);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

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

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--off-white);
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,32,128,0.07);
  background: var(--white);
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus),
.form-group select:hover:not(:focus) {
  border-color: var(--medium-gray);
}

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

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

/* ---------- Map Section ---------- */
.map-section {
  height: 420px;
  position: relative;
  background: var(--light-gray);
}

.map-overlay-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.map-overlay-label svg {
  color: var(--primary);
}

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

/* ---------- Footer ---------- */
.footer {
  background: #080b1e;
  color: rgba(255,255,255,0.6);
  padding: 90px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(26,32,128,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 56px;
  padding-bottom: 64px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand .nav-brand-name {
  color: var(--white);
  font-size: 1.45rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-quick a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
}

.footer-contact-quick a:hover {
  color: var(--primary-light);
}

.footer-column h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-coming-soon {
  background: rgba(245,158,11,0.2);
  color: var(--upcoming);
  font-size: 0.65rem;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245,158,11,0.25);
  letter-spacing: 0.5px;
  font-family: var(--font-body);
}

.footer-column a {
  display: block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition-fast);
}

.footer-column a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer-address {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-upcoming-desc {
  font-size: 0.82rem;
  color: rgba(245,158,11,0.7);
  margin-bottom: 14px;
  font-style: italic;
}

.footer-notify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--upcoming) !important;
  font-weight: 600;
  border-bottom: 1px solid rgba(245,158,11,0.3);
  padding-bottom: 2px;
  transition: var(--transition-fast);
}

.footer-notify-link:hover {
  color: var(--upcoming-light) !important;
  border-color: var(--upcoming-light);
  transform: none !important;
}

.footer-bottom {
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom-tagline {
  color: rgba(255,255,255,0.25);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--teal-light);
  text-decoration: underline;
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* ---------- Animations (Scroll Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 1024px) {
  .about-grid,
  .contact-grid,
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .doctor-card {
    flex-direction: row;
  }

  .doctor-photo {
    width: 280px;
    flex-shrink: 0;
  }

  .doctor-photo img {
    height: 100%;
  }

  .hero-float {
    display: none;
  }

  .hero-stats {
    gap: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  .navbar .container {
    justify-content: center;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-toggle {
    display: none !important;
  }

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

  .hero-content {
    padding: 240px 0 72px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat {
    padding: 0 16px;
    flex: 1;
    min-width: 80px;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .new-patients-content {
    flex-direction: column;
    text-align: center;
  }

  .new-patients-actions {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .about-accent-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 36px 28px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .doctor-card {
    flex-direction: column;
  }

  .doctor-photo {
    width: 100%;
  }

  .doctor-photo img {
    height: 280px;
    object-fit: cover;
    object-position: top center;
  }

  .trust-items {
    gap: 0;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .trust-items::-webkit-scrollbar { display: none; }

  .location-card {
    padding: 32px 28px;
  }

  .map-overlay-label {
    font-size: 0.78rem;
    padding: 8px 16px;
    top: 12px;
    white-space: normal;
    text-align: center;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
    letter-spacing: -0.5px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 7px 14px;
    gap: 8px;
    display: inline-flex;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .hero-content {
    padding: 250px 0 64px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .doctor-info {
    padding: 28px 24px;
  }
}
