/* ============================================
   AUSTINE PHARMACY & STORES - MAIN STYLESHEET
   ============================================ */

/* Color Palette Extracted from Brand Images - ELITE VERSION */
:root {
  /* From exterior image */
  --primary-red: #8B1A1A;        /* Deep red from signboard */
  --primary-red-light: #A82A2A;  /* Lighter red for gradients */
  --primary-red-dark: #6B0A0A;   /* Darker red for depth */
  --warm-beige: #E8D5C4;         /* Warm beige from wall */
  --warm-beige-light: #F5EBE0;   /* Lighter beige */
  --dusty-white: #F5F1ED;        /* Dusty white from grid bars */
  --soft-blue: #87CEEB;          /* Soft blue from sky */
  
  /* From interior store images */
  --pharmacy-green: #32CD32;     /* Lime green from shelf */
  --pharmacy-green-light: #50E650; /* Lighter green */
  --pharmacy-green-dark: #228B22;  /* Darker green */
  --shelf-blue: #4169E1;         /* Royal blue from shelf */
  --shelf-blue-light: #5C85FF;   /* Lighter blue */
  --shelf-blue-dark: #2E52C4;    /* Darker blue */
  --tile-grey: #2F2F2F;          /* Dark grey from floor tiles */
  --tile-grey-light: #4A4A4A;    /* Lighter grey */
  --soft-white: #FAFAFA;         /* Soft white from lights */
  
  /* From product shelves */
  --accent-yellow: #FFD700;      /* Yellow from medicine labels */
  --accent-red: #DC143C;         /* Red from medicine labels */
  --accent-green: #228B22;       /* Green from medicine labels */
  
  /* Premium gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-red), var(--pharmacy-green));
  --gradient-secondary: linear-gradient(135deg, var(--shelf-blue), var(--pharmacy-green));
  --gradient-premium: linear-gradient(135deg, var(--primary-red), var(--shelf-blue), var(--pharmacy-green));
  --gradient-overlay: linear-gradient(135deg, rgba(139, 26, 26, 0.9), rgba(50, 205, 50, 0.7));
  
  /* Additional utility colors */
  --text-dark: #1a1a1a;
  --text-light: #666;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-md: rgba(0, 0, 0, 0.12);
  --shadow-hover: rgba(0, 0, 0, 0.25);
  --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-elite: 0 30px 80px rgba(0, 0, 0, 0.2);
  
  /* Typography - Elite */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  
  /* Spacing - Ultra Compact */
  --spacing-xs: 0.2rem;
  --spacing-sm: 0.4rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  
  /* Border radius - Compact Health Theme */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  
  /* Transitions - Smooth & Fast */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Borders - Thinner Health Theme */
  --border-thin: 1px;
  --border-normal: 1.5px;
  --border-thick: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 0.9rem;
  background-color: var(--soft-white);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(50, 205, 50, 0.015) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 26, 26, 0.015) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Elite */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h1 { 
  font-size: 2rem; 
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

h2 { 
  font-size: 1.75rem; 
  color: var(--primary-red);
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

h2.section-title::after,
.section-title::after {
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
}

h3 { 
  font-size: 1.3rem; 
  color: var(--primary-red);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

h4 { 
  font-size: 1.1rem; 
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Global Image Responsive Styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   NAVIGATION BAR - ELITE
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 0 1px 15px var(--shadow-md);
  border-bottom: var(--border-thin) solid rgba(139, 26, 26, 0.1);
  z-index: 1000;
  transition: all var(--transition-fast);
  padding: 0.75rem 0;
  overflow: visible;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px var(--shadow-hover);
  padding: 0.5rem 0;
  border-bottom: var(--border-normal) solid var(--pharmacy-green);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: visible;
  min-height: 70px;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  text-decoration: none;
  height: 70px;
  overflow: visible;
  position: relative;
}

.logo:hover {
  transform: scale(1.03);
}

.logo-icon {
  width: 140px;
  height: 140px;
  max-width: 140px;
  max-height: 140px;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: all var(--transition-fast);
  filter: drop-shadow(0 2px 6px rgba(50, 205, 50, 0.3));
  animation: logoPulse 4s ease infinite;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: auto;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 1;
}

.logo:hover .logo-icon {
  transform: translateY(-50%) scale(1.05);
  filter: drop-shadow(0 3px 10px rgba(50, 205, 50, 0.5));
}

@keyframes logoPulse {
  0%, 100% { 
    transform: translateY(-50%) scale(1);
    filter: drop-shadow(0 2px 6px rgba(50, 205, 50, 0.3));
  }
  50% { 
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 3px 10px rgba(50, 205, 50, 0.5));
  }
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: all var(--transition-normal);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--transition-fast);
  box-shadow: 0 1px 4px rgba(50, 205, 50, 0.3);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  box-shadow: 0 2px 6px rgba(50, 205, 50, 0.5);
}

.nav-links a:hover {
  color: var(--primary-red);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--primary-red);
  font-weight: 600;
}

/* Nav CTA Button */
.nav-cta {
  background: var(--gradient-primary);
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(50, 205, 50, 0.3);
  animation: healthPulse 3s ease infinite;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(50, 205, 50, 0.4);
  color: white !important;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-link-with-icon {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-icon {
  font-size: 0.7rem;
  transition: transform var(--transition-normal);
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 25px var(--shadow-hover);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1000;
  border: var(--border-normal) solid var(--pharmacy-green);
  list-style: none;
}

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

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.dropdown-menu a::before {
  content: '💊';
  margin-right: 0.5rem;
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

.dropdown-menu a:hover::before {
  transform: scale(1.2) rotate(15deg);
}

.dropdown-menu a:hover {
  background: var(--dusty-white);
  color: var(--primary-red);
  padding-left: 1.5rem;
  transform: translateX(5px);
}

.dropdown-menu a::after {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  z-index: 1001;
  position: relative;
  transition: all var(--transition-normal);
}

.mobile-menu-toggle:hover {
  background: var(--dusty-white);
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 75vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
  transform: scale(1);
  z-index: -1;
  animation: heroZoom 20s ease infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

/* ============================================
   HEALTH ANIMATIONS
   ============================================ */
@keyframes healthPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 3px 10px rgba(50, 205, 50, 0.3);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(50, 205, 50, 0.5);
  }
}

@keyframes heartbeat {
  0%, 100% { 
    transform: scale(1);
  }
  10%, 30% { 
    transform: scale(1.1);
  }
  20%, 40% { 
    transform: scale(1);
  }
  50% { 
    transform: scale(1.15);
  }
}

@keyframes pillRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes medicalGlow {
  0%, 100% { 
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.3);
  }
  50% { 
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.6), 0 0 30px rgba(50, 205, 50, 0.4);
  }
}

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

@keyframes crossPulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: scale(1.2);
  }
}

@keyframes stethoscope {
  0%, 100% { 
    transform: rotate(0deg);
  }
  25% { 
    transform: rotate(-10deg);
  }
  75% { 
    transform: rotate(10deg);
  }
}

@keyframes healthWave {
  0%, 100% { 
    transform: translateX(0) scaleY(1);
  }
  50% { 
    transform: translateX(5px) scaleY(1.1);
  }
}

/* Health Icon Animations */
.health-icon {
  display: inline-block;
  animation: healthFloat 3s ease infinite;
}

.health-icon.pulse {
  animation: healthPulse 2s ease infinite;
}

.health-icon.heartbeat {
  animation: heartbeat 1.5s ease infinite;
}

.health-icon.rotate {
  animation: pillRotate 4s linear infinite;
}

.health-icon.glow {
  animation: medicalGlow 2s ease infinite;
}

/* Overlay removed as requested */

.hero-content {
  text-align: center;
  color: white !important;
  z-index: 1;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem;
  max-width: 700px;
}

.hero-content * {
  color: white !important;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  color: white !important;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  animation: heroTitle 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: white !important;
}

@keyframes heroTitle {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero .subtitle {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  font-weight: 300;
  letter-spacing: 0.01em;
  opacity: 0.95;
  color: white !important;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(50, 205, 50, 0.3), 0 4px 10px rgba(139, 26, 26, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  background: var(--gradient-secondary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(50, 205, 50, 0.4), 0 4px 8px rgba(139, 26, 26, 0.25);
}

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

.btn-secondary {
  background: transparent;
  color: white;
  border: var(--border-normal) solid white;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35);
  border-color: white;
}

/* ============================================
   ANIMATED SERVICES CARDS
   ============================================ */
.services-section {
  padding: 2rem 1rem;
  background: var(--dusty-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
}

h2.section-title,
.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  width: 100%;
  font-size: 1.5rem;
  color: var(--primary-red);
  line-height: 1.2;
}

.section-title h2 {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 0;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(50, 205, 50, 0.06), transparent);
  border-radius: 50%;
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 3px 12px var(--shadow-md), 0 1px 3px var(--shadow);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(15px);
  border: var(--border-normal) solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 248, 248, 1));
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  right: -1.5px;
  bottom: -1.5px;
  border-radius: var(--radius-md);
  background: linear-gradient(45deg, var(--pharmacy-green), var(--shelf-blue), var(--pharmacy-green));
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

.service-card:hover::before {
  opacity: 1;
  animation: borderGlow 3s ease infinite;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 25px var(--shadow-hover);
  background: white;
  border-color: var(--pharmacy-green);
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
  transition: transform var(--transition-normal);
}

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

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

.service-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ============================================
   PHARMACY FRONT SECTION
   ============================================ */
.pharmacy-front-section {
  padding: 2rem 1rem;
}

.pharmacy-front-section img:hover {
  transform: scale(1.05);
}

@media (max-width: 968px) {
  .pharmacy-front-section > .container > div[style*="grid-template-columns"] {
    display: block !important;
  }
  
  .pharmacy-front-section img {
    margin-top: 2rem;
  }
}

/* ============================================
   FEATURED PHOTO STRIP / CAROUSEL
   ============================================ */
.photo-strip {
  padding: 2rem 1rem;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  animation: slide 20s linear infinite;
  gap: 1rem;
}

.carousel-item {
  min-width: 220px;
  height: 170px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-normal) solid var(--pharmacy-green);
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-item:hover img {
  transform: scale(1.1);
}

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

/* ============================================
   QUICK HELP WIDGET
   ============================================ */
.quick-help-widget {
  position: fixed;
  bottom: 75px;
  left: 18px;
  z-index: 999;
}

.help-trigger {
  width: 40px;
  height: 40px;
  background: var(--pharmacy-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(50, 205, 50, 0.3);
  animation: pulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  font-size: 1rem;
  transition: all var(--transition-normal);
  padding: 8px;
  overflow: hidden;
}

.help-trigger-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform var(--transition-normal);
}

.help-trigger:hover .help-trigger-icon {
  transform: scale(1.1);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(50, 205, 50, 0.3); }
  50% { transform: scale(1.03); box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4); }
}

.help-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
}

.help-card {
  position: absolute;
  bottom: 50px;
  left: 0;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 5px 20px var(--shadow-hover);
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  border: var(--border-normal) solid var(--pharmacy-green);
}

.help-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.help-card p {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.help-card .btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.help-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================
   ANIMATED TABLES
   ============================================ */
.animated-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 3px 12px var(--shadow);
  font-size: 0.85rem;
}

.animated-table thead {
  background: linear-gradient(135deg, var(--primary-red), var(--pharmacy-green));
  color: white;
}

.animated-table th {
  padding: 0.65rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.animated-table tbody tr {
  background: white;
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(12px);
}

.animated-table tbody tr.visible {
  opacity: 1;
  transform: translateY(0);
}

.animated-table tbody tr:nth-child(even) {
  background: var(--dusty-white);
}

.animated-table tbody tr:hover {
  background: var(--warm-beige);
  transform: translateX(2px);
  border-left: var(--border-normal) solid var(--pharmacy-green);
}

.animated-table td {
  padding: 0.6rem;
  border-bottom: var(--border-thin) solid #ddd;
  font-size: 0.85rem;
}

.animated-table tbody tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-available {
  background: var(--pharmacy-green);
  color: white;
}

.status-request {
  background: var(--accent-yellow);
  color: var(--text-dark);
}

/* ============================================
   ANIMATED BORDERS
   ============================================ */
@keyframes borderGlow {
  0%, 100% { 
    opacity: 0.7;
    filter: blur(3px);
  }
  50% { 
    opacity: 0.9;
    filter: blur(1px);
  }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-border {
  position: relative;
  border-radius: 10px;
  padding: 2rem;
  background: white;
}

.animated-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 10px;
  background: linear-gradient(45deg, var(--warm-beige), var(--pharmacy-green), var(--warm-beige));
  background-size: 200% 200%;
  z-index: -1;
  animation: gradientMove 3s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.animated-border:hover::before {
  opacity: 1;
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
  border: var(--border-thin) solid rgba(255, 255, 255, 0.5);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--transition-slow);
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
  border-color: rgba(50, 205, 50, 0.3);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-25px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in-right {
  opacity: 0;
  transform: translateX(25px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stagger-delay-1 { transition-delay: 0.08s; }
.stagger-delay-2 { transition-delay: 0.15s; }
.stagger-delay-3 { transition-delay: 0.22s; }
.stagger-delay-4 { transition-delay: 0.3s; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 550px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: var(--border-normal) solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pharmacy-green);
  box-shadow: 0 0 0 2px rgba(50, 205, 50, 0.1);
}

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

.floating-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  color: var(--text-light);
  transition: all var(--transition-fast);
  pointer-events: none;
  font-size: 0.9rem;
}

.form-group input:focus + .floating-label,
.form-group input:not(:placeholder-shown) + .floating-label,
.form-group textarea:focus + .floating-label,
.form-group textarea:not(:placeholder-shown) + .floating-label {
  top: -0.4rem;
  left: 0.5rem;
  font-size: 0.75rem;
  color: var(--pharmacy-green);
  background: white;
  padding: 0 0.4rem;
}

/* ============================================
   BRANCH CARDS (FLIP CARDS)
   ============================================ */
.branch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.branch-card {
  perspective: 800px;
  height: 220px;
}

.branch-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
  transform-style: preserve-3d;
}

.branch-card:hover .branch-card-inner {
  transform: rotateY(180deg);
}

.branch-card-front,
.branch-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 3px 12px var(--shadow-md);
  border: var(--border-normal) solid var(--pharmacy-green);
}

.branch-card-front {
  background: linear-gradient(135deg, var(--warm-beige-light), white);
  box-shadow: var(--shadow-premium);
}

.branch-card-front:hover {
  box-shadow: var(--shadow-elite);
}

.branch-card-back {
  background: var(--gradient-premium);
  color: white;
  transform: rotateY(180deg);
  box-shadow: var(--shadow-elite);
}

.branch-card h3 {
  color: var(--primary-red);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.branch-card-back h3 {
  color: white;
  font-size: 1.25rem;
}

.branch-info {
  margin: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.branch-info::before {
  content: "📍";
  font-size: 1rem;
}

/* WhatsApp Widget Removed */

/* ============================================
   HEALTH TIPS WIDGET
   ============================================ */
.health-tips-widget {
  position: fixed;
  bottom: 125px;
  left: 18px;
  z-index: 998;
}

.health-tips-trigger {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.health-tips-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
}

.health-tips-card {
  position: absolute;
  bottom: 50px;
  left: 0;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 5px 20px var(--shadow-hover);
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  border: var(--border-normal) solid #FFD700;
}

.health-tips-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.health-tips-card h4 {
  color: var(--primary-red);
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.health-tip-text {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  min-height: 35px;
}

.health-tip-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.tip-nav-btn {
  background: var(--pharmacy-green);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.tip-nav-btn:hover {
  background: var(--pharmacy-green-dark);
  transform: scale(1.1);
}

.tip-counter {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ============================================
   PRESCRIPTION REMINDER WIDGET
   ============================================ */
.prescription-reminder-widget {
  position: fixed;
  bottom: 175px;
  left: 18px;
  z-index: 997;
}

.reminder-trigger {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4169E1, #5C85FF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(65, 105, 225, 0.4);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.reminder-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(65, 105, 225, 0.6);
}

.reminder-card {
  position: absolute;
  bottom: 50px;
  left: 0;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 5px 20px var(--shadow-hover);
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  border: var(--border-normal) solid #4169E1;
}

.reminder-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reminder-card h4 {
  color: var(--primary-red);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.reminder-card p {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.reminder-card .btn {
  width: 100%;
  padding: 0.4rem;
  font-size: 0.75rem;
}

/* ============================================
   HEALTH CALCULATOR WIDGET
   ============================================ */
.health-calculator-widget {
  position: fixed;
  bottom: 225px;
  left: 18px;
  z-index: 996;
}

.calculator-trigger {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #DC143C, #FF6347);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(220, 20, 60, 0.4);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.calculator-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(220, 20, 60, 0.6);
}

.calculator-card {
  position: absolute;
  bottom: 50px;
  left: 0;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 5px 20px var(--shadow-hover);
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  border: var(--border-normal) solid #DC143C;
}

.calculator-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.calculator-card h4 {
  color: var(--primary-red);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.calculator-card p {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.calculator-card .btn {
  width: 100%;
  padding: 0.4rem;
  font-size: 0.75rem;
}

/* ============================================
   FLOATING HEALTH ANIMATIONS
   ============================================ */
.floating-health-animations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-health-icon {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.15;
  animation: floatHealth 20s infinite ease-in-out;
  pointer-events: none;
}

.floating-health-icon:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  font-size: 1.2rem;
}

.floating-health-icon:nth-child(2) {
  top: 20%;
  left: 85%;
  animation-delay: 2s;
  font-size: 1.8rem;
}

.floating-health-icon:nth-child(3) {
  top: 40%;
  left: 10%;
  animation-delay: 4s;
  font-size: 1.4rem;
}

.floating-health-icon:nth-child(4) {
  top: 60%;
  left: 90%;
  animation-delay: 6s;
  font-size: 1.6rem;
}

.floating-health-icon:nth-child(5) {
  top: 75%;
  left: 15%;
  animation-delay: 8s;
  font-size: 1.3rem;
}

.floating-health-icon:nth-child(6) {
  top: 30%;
  left: 70%;
  animation-delay: 10s;
  font-size: 1.5rem;
}

.floating-health-icon:nth-child(7) {
  top: 80%;
  left: 60%;
  animation-delay: 12s;
  font-size: 1.7rem;
}

.floating-health-icon:nth-child(8) {
  top: 50%;
  left: 40%;
  animation-delay: 14s;
  font-size: 1.1rem;
}

.floating-health-icon:nth-child(9) {
  top: 15%;
  left: 50%;
  animation-delay: 16s;
  font-size: 1.6rem;
}

.floating-health-icon:nth-child(10) {
  top: 65%;
  left: 30%;
  animation-delay: 18s;
  font-size: 1.4rem;
}

@keyframes floatHealth {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.1;
  }
  25% {
    transform: translate(30px, -50px) rotate(90deg);
    opacity: 0.2;
  }
  50% {
    transform: translate(-20px, -100px) rotate(180deg);
    opacity: 0.15;
  }
  75% {
    transform: translate(-40px, -30px) rotate(270deg);
    opacity: 0.2;
  }
}

/* Individual icon animations */
.floating-health-icon.pill {
  animation: floatHealth 25s infinite ease-in-out, pillRotate 8s infinite linear;
}

.floating-health-icon.heart {
  animation: floatHealth 22s infinite ease-in-out, heartbeat 2s infinite ease;
}

.floating-health-icon.cross {
  animation: floatHealth 18s infinite ease-in-out, crossPulse 3s infinite ease;
}

.floating-health-icon.stethoscope {
  animation: floatHealth 20s infinite ease-in-out, stethoscope 4s infinite ease;
}

.floating-health-icon.leaf {
  animation: floatHealth 24s infinite ease-in-out, healthFloat 3s infinite ease;
}

/* More floating icons for variety */
.floating-health-icon:hover {
  opacity: 0.3;
  transform: scale(1.2);
}

/* Responsive - Hide on mobile */
@media (max-width: 768px) {
  .floating-health-animations {
    display: none;
  }
}

/* ============================================
   COOKIE CONSENT POPUP
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.98));
  backdrop-filter: blur(20px) saturate(180%);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 3px solid var(--pharmacy-green);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent.hide {
  transform: translateY(100%);
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: healthFloat 3s ease infinite;
}

.cookie-text {
  flex: 1;
}

.cookie-text h4 {
  color: var(--primary-red);
  font-size: 1rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-text p {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: var(--pharmacy-green);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.cookie-text a:hover {
  color: var(--pharmacy-green-dark);
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 3px 10px rgba(50, 205, 50, 0.3);
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(50, 205, 50, 0.4);
}

.cookie-btn-decline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-light);
}

.cookie-btn-decline:hover {
  background: var(--dusty-white);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .cookie-text h4 {
    justify-content: center;
  }
}

/* ============================================
   CALL NOW FIXED BAR (MOBILE)
   ============================================ */
.call-now-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-red);
  color: white;
  padding: 0.65rem;
  text-align: center;
  z-index: 997;
  display: none;
  box-shadow: 0 -3px 10px var(--shadow-hover);
}

.call-now-bar a {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */
.testimonial-slider {
  padding: 2rem 1rem;
  background: var(--warm-beige);
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-item {
  min-width: 100%;
  padding: 1.25rem 1rem;
  background: white;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 3px 12px var(--shadow-md);
  position: relative;
  border: var(--border-normal) solid transparent;
  background: linear-gradient(white, white) padding-box,
              var(--gradient-primary) border-box;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-red);
  font-size: 0.9rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.testimonial-nav button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testimonial-nav button.active {
  background: var(--pharmacy-green);
  transform: scale(1.2);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
  padding: 2rem 1rem;
  background: white;
}

.faq-item {
  background: white;
  border: var(--border-normal) solid var(--dusty-white);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--pharmacy-green);
  box-shadow: 0 3px 10px rgba(50, 205, 50, 0.2);
}

.faq-question {
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-red);
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.faq-question:hover {
  background: var(--dusty-white);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-content {
  padding: 0 0.75rem 0.75rem;
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-section {
  padding: 2rem;
  background: var(--dusty-white);
}

.search-bar-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--pharmacy-green);
  box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.1);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.2rem;
}

/* ============================================
   MODAL (PRODUCT FINDER)
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
  border: var(--border-thick) solid transparent;
  background-clip: padding-box;
  box-shadow: 0 10px 35px var(--shadow-hover);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: all var(--transition-fast);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--primary-red);
  background: var(--dusty-white);
  transform: rotate(90deg);
}

/* ============================================
   INFO CARDS (WITH COUNTERS)
   ============================================ */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.info-card {
  background: var(--gradient-premium);
  color: white;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 6px 20px var(--shadow-hover);
  transform: translateY(15px);
  opacity: 0;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.info-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 35px rgba(50, 205, 50, 0.3);
}

.info-card .number {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.info-card .label {
  font-size: 0.85rem;
  opacity: 0.95;
  font-weight: 500;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding: 1.5rem 0;
  max-width: 750px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--pharmacy-green);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  padding-right: 50%;
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: 50%;
  text-align: left;
}

.timeline-content {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px var(--shadow);
  border: var(--border-normal) solid var(--pharmacy-green);
  position: relative;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.85rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--primary-red);
  border: 4px solid var(--pharmacy-green);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* ============================================
   SUGGESTION BOXES / WIDGETS
   ============================================ */
.suggestion-box {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 5px 20px var(--shadow);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.suggestion-box:hover {
  border-color: var(--pharmacy-green);
  transform: translateY(-5px);
}

.pharmacist-card {
  background: linear-gradient(135deg, var(--warm-beige), white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--pharmacy-green);
  transition: all 0.3s ease;
}

.pharmacist-card:hover {
  animation: shake 0.5s ease;
  box-shadow: 0 10px 40px rgba(50, 205, 50, 0.3);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px) rotate(-5deg); }
  75% { transform: translateX(10px) rotate(5deg); }
}

.pharmacist-card .ring-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: ringPulse 2s ease infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(135deg, var(--tile-grey), var(--tile-grey-light));
  color: white;
  padding: 2rem 1rem 0.75rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-section h3 {
  color: var(--pharmacy-green);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.footer-section p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: var(--pharmacy-green);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-icon:hover {
  background: var(--gradient-primary);
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 8px 20px rgba(50, 205, 50, 0.5);
  border: 2px solid var(--pharmacy-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   SECTIONS PADDING
   ============================================ */
.section {
  padding: 2rem 1rem;
}

.section-light {
  background: white;
}

.section-beige {
  background: var(--warm-beige);
}

.section-dusty {
  background: var(--dusty-white);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.highlight {
  background: linear-gradient(120deg, var(--accent-yellow) 0%, var(--accent-yellow) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.2em;
  background-position: 0 88%;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .logo {
    height: 60px;
    overflow: visible;
  }
  
  .logo-icon {
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
    transform: translateY(-50%);
  }
  
  .logo:hover .logo-icon {
    transform: translateY(-50%) scale(1.05);
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--dusty-white);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    width: 100%;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    height: 70vh;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

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

  .btn {
    width: 100%;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item::before {
    left: 20px;
  }

  .call-now-bar {
    display: block;
  }

  .quick-help-widget {
    bottom: 80px;
  }

  .health-tips-widget,
  .prescription-reminder-widget,
  .health-calculator-widget {
    display: none;
  }

  .health-tips-card,
  .reminder-card,
  .calculator-card,
  .help-card {
    width: 200px;
    left: -10px;
  }

  .quick-help-widget,
  .health-tips-widget,
  .prescription-reminder-widget,
  .health-calculator-widget {
    left: 10px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1rem; }
  body { font-size: 0.85rem; }
  p { font-size: 0.85rem; }

  /* About page responsive */
  section > div[style*="grid-template-columns"] {
    display: block !important;
  }

  .branch-cards {
    grid-template-columns: 1fr;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .help-card {
    width: 250px;
    right: 10px;
  }

  .carousel-item {
    min-width: 200px;
    height: 160px;
  }

  .services-grid {
    gap: 1rem;
  }

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

  h2.section-title,
  .section-title {
    font-size: 1.35rem;
  }

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

  .info-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .branch-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card,
  .testimonial-item,
  .faq-item {
    padding: 1rem;
  }

  /* Mobile Image Optimizations */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .pharmacy-front-section img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
  }

  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  html {
    overflow-x: hidden;
  }

  /* Mobile Container Optimizations */
  .section {
    padding: 1.5rem 0.75rem;
  }

  .services-section,
  .pharmacy-front-section,
  .photo-strip,
  .testimonial-slider,
  .faq-section {
    padding: 1.5rem 0.75rem;
  }

  /* Mobile Grid Optimizations */
  .pharmacy-front-section > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .pharmacy-front-section > .container > div[style*="grid-template-columns"] > div:first-child {
    order: 2;
  }

  .pharmacy-front-section > .container > div[style*="grid-template-columns"] > div:last-child {
    order: 1;
  }

  /* Mobile Store Features Grid */
  .pharmacy-front-section > .container > div[style*="grid-template-columns: repeat"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
  }

  /* Mobile Hero Optimizations */
  .hero-content {
    padding: 0.75rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  /* Mobile Button Optimizations */
  .hero-buttons {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.65rem 1.15rem;
    font-size: 0.9rem;
  }

  /* Mobile Card Optimizations */
  .service-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .glass-card {
    padding: 1rem;
  }

  /* Mobile Modal Optimizations */
  .modal-content {
    max-width: 95%;
    padding: 1rem;
    margin: 1rem;
  }

  /* Mobile Widget Optimizations */
  .help-card {
    width: calc(100vw - 2rem);
    max-width: 280px;
    right: 1rem;
    bottom: 70px;
  }

  .quick-help-widget {
    bottom: 70px;
    right: 1rem;
  }


  /* Mobile Footer Optimizations */
  .footer {
    padding: 1.5rem 0.75rem 0.5rem;
  }

  .footer-section {
    margin-bottom: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .footer-section p,
  .footer-section li {
    font-size: 0.8rem;
  }

  /* Mobile Table Optimizations */
  .animated-table {
    font-size: 0.75rem;
    margin: 1rem 0;
  }

  .animated-table th,
  .animated-table td {
    padding: 0.5rem 0.4rem;
  }

  /* Mobile Form Optimizations */
  .contact-form {
    max-width: 100%;
  }

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

  /* Mobile Search Optimizations */
  .search-bar-container {
    padding: 0.75rem;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
  }
}

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

/* Ripple Effect for Buttons */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Fix for about page layout */
.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 968px) {
  .about-content-grid {
    grid-template-columns: 1fr;
  }
}

