:root {
    --primary: #16A085;
    --primary-dark: #138B74;
    --secondary: #58C0AD;
    --light: #F8F9FA;
    --dark: #333333;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;

    /* Mobile-First Typography Scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */

    /* Mobile-First Spacing Scale */
    --spacing-xs: 0.25rem;      /* 4px */
    --spacing-sm: 0.5rem;       /* 8px */
    --spacing-md: 1rem;         /* 16px */
    --spacing-lg: 1.5rem;       /* 24px */
    --spacing-xl: 2rem;         /* 32px */
    --spacing-2xl: 2.5rem;      /* 40px */
    --spacing-3xl: 3rem;        /* 48px */
    --spacing-4xl: 4rem;        /* 64px */
    --spacing-5xl: 5rem;        /* 80px */

    /* Mobile-First Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: white;
    color: var(--dark);
    overflow-x: hidden;
    font-family: var(--font-primary);
    line-height: 1.6;
    font-weight: 400;
    /* NOTE: Header is fixed. Body top padding is dynamically set via JS in header to match header height. */
}

main {
    padding-top: var(--spacing-md); /* Mobile-first: 16px additional padding */
}

/* Responsive main padding */
@media (min-width: 768px) {
    main {
        padding-top: var(--spacing-lg); /* Desktop: 24px additional padding */
    }
}

/* Mobile-First Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
}

/* Mobile-first heading sizes */
h1 {
    font-size: var(--font-size-3xl); /* 30px on mobile */
    line-height: var(--line-height-tight);
}

h2 {
    font-size: var(--font-size-2xl); /* 24px on mobile */
    line-height: var(--line-height-tight);
}

h3 {
    font-size: var(--font-size-xl); /* 20px on mobile */
    line-height: var(--line-height-tight);
}

h4 {
    font-size: var(--font-size-lg); /* 18px on mobile */
    line-height: var(--line-height-normal);
}

h5 {
    font-size: var(--font-size-base); /* 16px on mobile */
    line-height: var(--line-height-normal);
}

h6 {
    font-size: var(--font-size-sm); /* 14px on mobile */
    line-height: var(--line-height-normal);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

/* Desktop typography scaling */
@media (min-width: 768px) {
    h1 {
        font-size: var(--font-size-5xl); /* 48px on desktop */
    }

    h2 {
        font-size: var(--font-size-4xl); /* 36px on desktop */
    }

    h3 {
        font-size: var(--font-size-2xl); /* 24px on desktop */
    }

    h4 {
        font-size: var(--font-size-xl); /* 20px on desktop */
    }
}

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

picture {
    display: block;
}

/* Mobile-First Container System */
.container {
    width: 100%;
    padding-right: var(--spacing-md); /* Mobile: 16px */
    padding-left: var(--spacing-md);  /* Mobile: 16px */
    margin-right: auto;
    margin-left: auto;
}

/* Enhanced mobile container for hero section */
@media (max-width: 767px) {
    .hero .container {
        padding-right: var(--spacing-lg); /* Mobile hero: 24px for better breathing room */
        padding-left: var(--spacing-lg);  /* Mobile hero: 24px for better breathing room */
    }
}

/* Progressive enhancement for larger containers */
@media (min-width: 768px) {
    .container {
        padding-right: var(--spacing-lg); /* Tablet: 24px */
        padding-left: var(--spacing-lg);  /* Tablet: 24px */
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* Allow clicks to pass through to header/nav */
    width: 100%;
    height: 100vh;
    z-index: 0;
    opacity: 0.8;
}

/* Ensure header sits above any absolute backgrounds */
#site-header { z-index: 50; }

/* Desktop submenu fixes: ensure dropdowns are clickable */
#site-header { overflow: visible; }
.submenu {
  top: 100%;
  left: 0;
  margin-top: 0 !important; /* remove hover gap that causes flicker */
  z-index: 1000; /* stay above page content */
}
@media (min-width: 1024px) {
  /* Ensure visibility when hovering parent group or focusing within submenu */
  .group:hover > .submenu,
  .submenu:focus-within {
    display: block !important;
  }
}

/* Header and Navigation - Mobile First */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 0.75rem 0; /* Mobile-first: smaller padding */
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.logo img {
    height: 35px; /* Mobile-first: smaller logo */
    width: auto;
    transition: var(--transition);
}

.site-header.scrolled .logo img {
    height: 30px; /* Mobile scrolled: even smaller */
    transition: height 0.3s ease;
}

/* Desktop Navigation - Hidden by default (mobile-first) */
.nav-menu {
    display: none; /* Mobile-first: hidden by default */
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

/* Show desktop navigation on larger screens */
@media (min-width: 992px) {
    .site-header {
        padding: 1.25rem 0; /* Larger padding on desktop */
    }

    .logo img {
        height: 45px; /* Larger logo on desktop */
    }

    .site-header.scrolled .logo img {
        height: 35px; /* Desktop scrolled size */
    }

    .nav-menu {
        display: flex; /* Show desktop navigation */
    }
}

.nav-link {
    position: relative;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    font-size: var(--font-size-sm); /* Mobile-first: 14px */
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Desktop navigation typography enhancement */
@media (min-width: 992px) {
    .nav-link {
        font-size: var(--font-size-lg) !important; /* Desktop: 18px - much more readable */
    }
}

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

/* Active navigation link styling */
.nav-link.active-nav {
    font-weight: 500;
    color: var(--primary);
    position: relative;
}

/* Add a subtle indicator under the active link */
.nav-link.active-nav::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(1);
}

/* Ensure active styling persists when header is scrolled */
.site-header.scrolled .nav-link.active-nav {
    font-weight: 500;
    color: var(--primary);
}

/* Ensure the indicator persists when scrolled */
.site-header.scrolled .nav-link.active-nav::after {
    background-color: var(--primary);
    transform: scaleX(1);
}

/* Hover effect for non-active links */
.nav-link:not(.active-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    transition: var(--transition);
    opacity: 0;
}

.nav-link:not(.active-nav):hover::after {
    width: 100%;
    opacity: 1;
}

/* Legacy active-nav class - keeping for backward compatibility */
.active-nav {
    color: var(--primary);
    font-weight: 500;
}

/* Legacy active-nav::after class - keeping for backward compatibility */
.active-nav::after {
    width: 100%;
    opacity: 1;
    height: 3px;
    background-color: var(--primary);
}

/* Old mobile toggle - Replaced by mobile-nav.css */
/*
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    color: var(--dark);
    position: relative;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}
*/

/* Buttons - Mobile First */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.625rem 1.25rem; /* Mobile-first: smaller padding */
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem; /* Mobile-first: smaller font size */
    line-height: 1.5;
}

  /* Larger buttons on desktop */
  @media (min-width: 768px) {
      .btn {
          padding: 0.75rem 1.5rem; /* Desktop: larger padding */
          font-size: 1rem; /* Desktop: larger font size */
      }
  }

  .btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.625rem 1.25rem; /* Ensure spacing even without .btn */
      border-radius: var(--border-radius);
      font-weight: 600;
      font-size: 0.95rem;
      line-height: 1.5;
      text-decoration: none;
      background-color: var(--primary);
      color: #ffffff;
      border: 1px solid transparent;
      box-shadow: 0 4px 6px rgba(22, 160, 133, 0.2);
      transition: var(--transition);
  }

  /* Responsive sizing for standalone .btn-primary */
  @media (min-width: 768px) {
      .btn-primary {
          padding: 0.75rem 1.5rem;
          font-size: 1rem;
      }
  }

  .btn-primary:hover {
      background-color: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(22, 160, 133, 0.3);
  }

  .btn-primary:focus,
  .btn-primary:focus-visible {
      outline: none;
      box-shadow: 0 0 0 4px rgba(22,160,133,0.25), 0 6px 12px rgba(22,160,133,0.3);
      transform: translateY(-1px);
  }

  .btn-primary:active {
      transform: translateY(0);
      box-shadow: 0 2px 6px rgba(22,160,133,0.2);
      background-color: var(--primary-dark);
  }

  .btn-outline {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.625rem 1.25rem;
      border-radius: var(--border-radius);
      font-weight: 600;
      font-size: 0.95rem;
      line-height: 1.5;
      text-decoration: none;
      background-color: transparent;
      color: var(--primary);
      border: 1px solid var(--primary);
      box-shadow: 0 4px 6px rgba(22, 160, 133, 0.08);
      transition: var(--transition);
  }

  .btn-outline:hover {
      background-color: var(--primary);
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 4px 10px rgba(22, 160, 133, 0.3);
  }

  .btn-outline:focus,
  .btn-outline:focus-visible {
      outline: none;
      box-shadow: 0 0 0 4px rgba(22,160,133,0.2), 0 6px 12px rgba(22,160,133,0.18);
      transform: translateY(-1px);
  }

  .btn-outline:active {
      transform: translateY(0);
      box-shadow: 0 2px 6px rgba(22,160,133,0.12);
  }

  .btn-outline[aria-disabled="true"], .btn-outline:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      pointer-events: none;
  }

/* Contact list (footer) */
.contact-list { margin-top: 0.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-icon { width: 2rem; height: 2rem; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); color: var(--primary); flex-shrink: 0; }
.contact-text { color: #d1d5db; /* slate-300 on dark bg */ }
.contact-link { color: #e5e7eb; text-decoration: none; border-bottom: 1px solid transparent; }
.contact-link:hover { color: #ffffff; border-bottom-color: rgba(255,255,255,0.35); }
.contact-icon i { color: var(--primary); }

/* CTA section */
.cta-section { padding-top: 3rem; padding-bottom: 3rem; }
.cta-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.cta-actions { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }
.cta-actions .btn { min-width: 180px; }
.cta-card .flex.justify-center.gap-4 { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .cta-card .flex.justify-center.gap-4 { flex-direction: row; } }
.cta-card .flex.justify-center.gap-4 .btn { min-width: 180px; }
@media (max-width: 640px) { .cta-actions .btn { width: 100%; } .cta-card { padding: 1.25rem; } }
@media (max-width: 640px) { .cta-card .flex.justify-center.gap-4 .btn { width: 100%; } }

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    padding: 0 1rem; /* Mobile-first: smaller padding */
}

/* Mobile-specific hero adjustments for Samsung A52 and similar devices */
@media (max-width: 767px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        position: relative;
    }

    /* Add a subtle mobile background pattern */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-image: url('../images/dogsick1-768.jpg');
        background-image: image-set(
            url('../images/dogsick1-768.avif') type('image/avif') 1x,
            url('../images/dogsick1-1280.avif') type('image/avif') 2x,
            url('../images/dogsick1-768.webp') type('image/webp') 1x,
            url('../images/dogsick1-1280.webp') type('image/webp') 2x,
            url('../images/dogsick1-768.jpg') type('image/jpeg') 1x,
            url('../images/dogsick1-1280.jpg') type('image/jpeg') 2x
        );
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top right;
        opacity: 0.32;
        z-index: 0;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 0 1.5rem;
        position: relative;
        z-index: 2;
    }

    /* Hide the desktop background image on mobile */
    .hero .absolute {
        display: none !important;
    }

    /* Mobile-optimized typography */
    .hero h1 {
        font-size: 2rem !important; /* 32px - much better for mobile */
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        color: var(--dark) !important;
    }

    .hero p {
        font-size: 1rem !important; /* 16px - optimal for mobile reading */
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        color: var(--gray) !important;
    }

    /* Mobile button adjustments */
    .hero .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-width: 140px;
        margin: 0.25rem;
    }

    .hero .flex {
        justify-content: center;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    /* Stack buttons vertically on very small screens like Samsung A52 */
    @media (max-width: 400px) {
        .hero .btn {
            width: 100%;
            max-width: 280px;
        }

        .hero h1 {
            font-size: 1.75rem !important; /* 28px - even smaller for very small screens */
        }

        .hero-content {
            padding: 0 1rem !important; /* Tighter padding on small screens */
        }
    }

    /* Samsung A52 specific optimizations (360px width) */
    @media (max-width: 375px) {
        .hero {
            padding: 1.5rem 0 !important;
            min-height: 90vh !important; /* Slightly shorter to fit better */
        }

        .hero h1 {
            font-size: 1.6rem !important; /* 25.6px - perfect for Samsung A52 */
            margin-bottom: 0.75rem !important;
        }

        .hero p {
            font-size: 0.9rem !important; /* 14.4px - better readability on small screens */
            margin-bottom: 1.5rem !important;
            max-width: 95% !important;
        }

        .hero .btn {
            padding: 0.65rem 1.25rem !important;
            font-size: 0.9rem !important;
        }
    }
}

/* Larger hero content padding on desktop */
@media (min-width: 768px) {
    .hero-content {
        padding: 0 2rem; /* Desktop: larger padding */
    }
}

.highlight {
    color: var(--primary);
}


/* Footer brand NP green utility (avoids reliance on Tailwind arbitrary values) */
.brand-np-green { color: var(--primary) !important; }

/* Utility classes to replace inline styles */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.delay-200 { transition-delay: .2s !important; }
.delay-300 { transition-delay: .3s !important; }
.delay-400 { transition-delay: .4s !important; }
.delay-600 { transition-delay: .6s !important; }

/* Mobile menu utility classes - Tailwind-like utilities for mobile menu functionality */
/* Note: Only apply .hidden to mobile menu specifically to avoid conflicts with Tailwind responsive classes */
#mobile-menu.hidden { display: none !important; }
.opacity-0 { opacity: 0 !important; }
.opacity-100 { opacity: 1 !important; }
.translate-y-0 { transform: translateY(0) !important; }
.-translate-y-2 { transform: translateY(-0.5rem) !important; }
.transform { transform: translateY(0); }
.transition-all { transition: all 0.3s ease !important; }
.duration-300 { transition-duration: 0.3s !important; }

/* Home hero background image (replaces previous inline style) */
.bg-hero-sickdog {
    background-color: #f8fafc;
    background-image: url('../images/dogsick1-1280.jpg');
    background-image: image-set(
        url('../images/dogsick1-1280.avif') type('image/avif') 1x,
        url('../images/dogsick1-1920.avif') type('image/avif') 2x,
        url('../images/dogsick1-1280.webp') type('image/webp') 1x,
        url('../images/dogsick1-1920.webp') type('image/webp') 2x,
        url('../images/dogsick1-1280.jpg') type('image/jpeg') 1x,
        url('../images/dogsick1-1920.jpg') type('image/jpeg') 2x
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Preserve the angled edge from previous inline clip-path */
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

@media (max-width: 768px) {
    .bg-hero-sickdog {
        background-image: url('../images/dogsick1-768.jpg');
        background-image: image-set(
            url('../images/dogsick1-768.avif') type('image/avif') 1x,
            url('../images/dogsick1-1280.avif') type('image/avif') 2x,
            url('../images/dogsick1-768.webp') type('image/webp') 1x,
            url('../images/dogsick1-1280.webp') type('image/webp') 2x,
            url('../images/dogsick1-768.jpg') type('image/jpeg') 1x,
            url('../images/dogsick1-1280.jpg') type('image/jpeg') 2x
        );
    }
}
/* Light background utility to replace inline background-color */
.bg-light { background-color: var(--light) !important; }



.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 1.5rem; /* Mobile-first: smaller padding */
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.counter-container {
    text-align: center;
    padding: 2rem 0; /* Mobile-first: smaller padding */
    background-color: var(--light);
}

.counter {
    font-size: 2.5rem; /* Mobile-first: smaller font size */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.counter-title {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.9rem; /* Mobile-first: smaller font size */
}

/* Larger styles for desktop */
@media (min-width: 768px) {
    .card {
        padding: 2rem; /* Desktop: larger padding */
    }

    .counter-container {
        padding: 3rem 0; /* Desktop: larger padding */
    }

    .counter {
        font-size: 3rem; /* Desktop: larger font size */
    }

    .counter-title {
        font-size: 1rem; /* Desktop: larger font size */
    }
}

.testimonial {
    padding: var(--spacing-lg); /* Mobile-first: 24px */
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-lg); /* Mobile-first: 24px */
    position: relative;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.testimonial-text::before {
    content: '"';
    font-size: var(--font-size-4xl); /* Mobile-first: 36px */
    color: var(--light-gray);
    position: absolute;
    top: -var(--spacing-md);
    left: -var(--spacing-md);
}

/* Desktop testimonial adjustments */
@media (min-width: 768px) {
    .testimonial {
        padding: var(--spacing-xl); /* Desktop: 32px */
    }

    .testimonial-text::before {
        font-size: var(--font-size-5xl); /* Desktop: 48px */
        top: -var(--spacing-lg);
        left: -var(--spacing-lg);
    }
}

.medication-card {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.page-header {
    padding: var(--spacing-4xl) 0; /* Mobile-first: 64px */
    background-color: var(--light);
    position: relative;
    margin-top: var(--spacing-md);
}

/* Minimal padding for inner pages */
.page-header-no-padding {
    padding: var(--spacing-md) 0; /* Mobile-first: 16px */
    background-color: var(--light);
    position: relative;
    margin-top: 0;
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md); /* Mobile-first: 8px 16px */
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    margin-bottom: var(--spacing-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

/* Desktop page header adjustments */
@media (min-width: 768px) {
    .page-header {
        padding: var(--spacing-5xl) 0; /* Desktop: 80px */
    }

    .form-control {
        padding: var(--spacing-md) var(--spacing-lg); /* Desktop: 16px 24px */
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.2);
}

/* Form Validation Styles */
.form-control.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.form-control.valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.form-control.valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.success-message {
    color: #28a745;
    padding: 1rem;
    margin-top: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Old Mobile Navigation - Replaced by mobile-nav.css */
/* Keeping this commented for reference */
/*
@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block !important;
        padding: 0.5rem;
        margin-right: -0.5rem;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        flex-direction: column;
        z-index: 1001;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.125rem;
        width: 100%;
        display: block;
        padding: 0.5rem 0;
    }

    .nav-link::after {
        bottom: 0;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        pointer-events: none;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.menu-open {
        overflow: hidden;
    }
}
*/

/* ===== Mobile-First Utility Classes ===== */

/* Typography Utilities */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

/* Spacing Utilities */
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.py-xs { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
.py-sm { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Section Spacing */
.section-spacing {
    padding: var(--spacing-3xl) 0; /* Mobile: 48px */
}

@media (min-width: 768px) {
    .section-spacing {
        padding: var(--spacing-5xl) 0; /* Desktop: 80px */
    }
}

/* ===== Accessibility ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: var(--spacing-sm);
    z-index: 100;
    transition: top 0.3s;
    font-size: var(--font-size-sm);
}

.skip-link:focus {
    top: 0;
}

/* Example Style for Active Navigation Link */
.nav-link.active-nav,
.nav-link-mobile.active-nav /* Add if you want mobile active state too */ {
    color: var(--primary); /* Use your primary color */
    font-weight: 600; /* Example: make it bolder */
    /* Optional: Add an underline or other indicator */
    border-bottom: 2px solid var(--primary);
}

/* Ensure desktop hover doesn't override active state color */
.nav-link.active-nav:hover {
     color: var(--primary);
}
/* Ensure mobile hover doesn't override active state color */
.nav-link-mobile.active-nav:hover {
     color: var(--primary);
}


/* Team section styles moved from our-pharmacists.html */
.team-icon { width: 60px; height: 60px; background-color: rgba(22,160,133,0.1); border-radius: 50%; display:flex; align-items:center; justify-content:center; margin-right: 20px; color: var(--primary); font-size: 24px; }
.team-member-card { transition: transform .3s ease, box-shadow .3s ease; }
.team-member-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.team-member-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .3s ease; }
.team-member-photo:hover { transform: scale(1.05); }
.specialty-badge { display:inline-block; background-color: rgba(22,160,133,0.1); color: var(--primary); font-size: .75rem; padding: .25rem .75rem; border-radius: 9999px; margin-right: .5rem; margin-bottom: .5rem; }



