/* =====================================
   COMMON STYLES - SHARED ACROSS ALL PAGES
   Import this file before page-specific CSS
   ===================================== */

/* =====================================
   CSS VARIABLES (Custom Properties)
   Centralized design tokens for consistent theming
   Dark navy/blue theme matching header image
   ===================================== */
:root {
    /* Primary brand colors - dark navy/blue palette matching header_1.jpg */
    --primary-color: #0a2540;        /* Deep navy blue - main brand color */
    --secondary-color: #1e4976;      /* Medium navy for accents */
    --accent-color: #2C5F6F;         /* Darker teal for WCAG AA compliance (7.06:1 contrast) */
    
    /* Typography colors - light hierarchy for dark theme */
    --text-dark: #2c3e50;            /* Main body text for optimal readability */
    --text-light: #6c757d;           /* Secondary text, descriptions, captions */
    
    /* Background colors */
    --bg-light: #f8f9fa;             /* Light gray for alternating sections */
    --bg-white: #ffffff;             /* Pure white for cards and header */
    --bg-dark: #0a2540;              /* Dark navy for themed sections */
    
    /* Shadow variations - depth and elevation system */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);           /* Subtle shadow for cards */
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);           /* Medium shadow for elevated elements */
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);    /* Large shadow for popovers and hover states */
    
    /* Animation */
    --transition: all 0.3s ease;     /* Standard transition for smooth interactions */
    
    /* Typography - Google Fonts loaded in HTML head */
    --font-primary: 'Montserrat', sans-serif;  /* Headers, navigation, buttons */
    --font-secondary: 'Open Sans', sans-serif;  /* Body text, paragraphs */
}

/* =====================================
   GLOBAL RESETS & BASE STYLES
   Foundation styles for all pages
   ===================================== */

/* Universal box-sizing for predictable layouts */
html {
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
}

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

/* Body defaults - typography and scroll behavior */
body {
    font-family: var(--font-secondary);
    font-size: 16px;           /* Base font size for rem calculations */
    color: var(--text-dark);
    line-height: 1.6;          /* Optimal readability (1.5-1.8 recommended) */
    overflow-x: hidden;        /* Prevent horizontal scrollbar from animations */
    margin: 0;
    padding: 0;
    padding-top: 180px;        /* Add padding to account for absolute header height */
    background-color: #ffffff; /* Ensure white background, no gray gaps */
    width: 100%;
    max-width: 100vw;
}

/* Responsive images - prevent overflow and maintain aspect ratio */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Link defaults - remove underline, inherit color, add transition */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Remove list bullets by default */
ul {
    list-style: none;
}

/* =====================================
   SKIP NAVIGATION LINK - ACCESSIBILITY
   Hidden off-screen but accessible to keyboard users
   ===================================== */

/* Skip navigation link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    transition: top 0.3s ease;
}

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

/* Visible focus indicator for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* =====================================
   CONTAINER & LAYOUT UTILITIES
   Responsive width control and centering
   ===================================== */

/* Main content container - responsive width with max limit */
.container {
    max-width: 1400px;         /* Wider to accommodate navigation */
    margin: 0 auto;            /* Center horizontally */
    padding: 0 20px;           /* Side margins for mobile */
    width: 100%;
    box-sizing: border-box;
}

/* Mobile container adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* =====================================
   HEADER STYLES
   Modern sticky navigation with gradient background
   Enhanced visual depth and professional styling
   ===================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a7a8f 50%, var(--accent-color) 100%) !important;
    /* DRAMATIC 3D shadow effect */
    box-shadow: 
        0 12px 40px rgba(10, 37, 64, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(74, 144, 164, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 4px solid rgba(74, 144, 164, 0.5) !important;
}

/* 3D highlight on header top edge */
/* 3D highlight on header top edge */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent);
    pointer-events: none;
    z-index: 1;
}

/* Enhance shadow on scroll - added by JavaScript */
.header.scrolled {
    box-shadow: 
        0 10px 40px rgba(10, 37, 64, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Header content wrapper - modern centered layout with better spacing */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0;
    gap: 1.2rem;
    position: relative;
}

/* Logo section - enhanced with 3D modern styling */
.logo {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(248, 250, 252, 0.95));
    border-radius: 60px;
    /* 3D shadow effect */
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(10, 37, 64, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 164, 0.15);
    position: relative;
}

.logo:hover {
    transform: translateY(-2px);
    /* Enhanced 3D lift */
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.18),
        0 4px 15px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(10, 37, 64, 0.15);
}

/* Logo image - brand icon with enhanced styling */
.logo-sitelogo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

/* Logo text container - centered and properly aligned */
.logo-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo text styling - bold and prominent with gradient, centered */
.logo h1,
.logo .logo-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: none;
    text-align: center;
    width: 100%;
}

/* Logo tagline (Doctor name) - elegant styling, centered with professional underline */
.logo .tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    color: var(--primary-color);
    margin-top: 0.8rem;
    padding-top: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-shadow: none;
    text-align: center;
    border-top: 2px solid var(--accent-color);
    display: inline-block;
    width: 100%;
}

/* =====================================
   NAVIGATION MENU
   Modern horizontal nav with glass effect
   Enhanced styling with hover animations
   ===================================== */

/* Navigation menu list - DRAMATIC 3D pill container */
.nav-menu {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(248, 250, 252, 0.95)) !important;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    /* DRAMATIC 3D shadow effect - creates strong depth */
    box-shadow: 
        0 12px 40px rgba(10, 37, 64, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(74, 144, 164, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.95),
        inset 0 -2px 4px rgba(10, 37, 64, 0.15) !important;
    max-width: 100%;
    overflow: visible !important;
    border: 2px solid rgba(74, 144, 164, 0.25) !important;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
}
}

/* 3D highlight on top edge */
.nav-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}

/* Hide scrollbars in nav menu */
.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Navigation links - modern 3D pill style with hover effects */
.nav-menu a,
.nav-menu > li:not(.mobile-menu-header) > a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    position: relative;
    padding: 10px 14px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap;
    background: transparent;
    border: 1px solid transparent;
    /* 3D depth effect */
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* Remove old underline animation */
.nav-menu a::after {
    display: none;
}

/* Hover effect - DRAMATIC 3D lift with bright gradient glow */
.nav-menu a:hover,
.nav-menu > li:not(.mobile-menu-header) > a:hover {
    background: linear-gradient(135deg, 
        rgba(74, 144, 164, 0.4), 
        rgba(104, 179, 200, 0.5)) !important;
    color: white !important;
    transform: translateY(-5px) scale(1.05) !important;
    /* DRAMATIC 3D shadow effect */
    box-shadow: 
        0 12px 35px rgba(74, 144, 164, 0.5),
        0 6px 15px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(74, 144, 164, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.7),
        inset 0 -2px 4px rgba(74, 144, 164, 0.3) !important;
    border-color: rgba(74, 144, 164, 0.6) !important;
    border-width: 2px !important;
    z-index: 10 !important;
    font-weight: 700 !important;
}

/* Active state - 3D pressed effect with gradient */
.nav-menu a.active,
.nav-menu > li:not(.mobile-menu-header) > a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    /* 3D pressed/inset effect */
    box-shadow: 
        0 4px 15px rgba(74, 144, 164, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 -1px 2px rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 164, 0.5);
    transform: translateY(1px);
    font-weight: 700;
}

/* Book Appointment Button now uses same style as all other menu items */
/* No special styling needed - inherits all styles from .nav-menu a */

/* Modern backdrop overlay - darker and more prominent */
.nav-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: -1;
}

.nav-menu.active::before {
    opacity: 1;
    visibility: visible;
}

/* Hamburger menu button - modern 3D styling */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(248, 250, 252, 0.95));
    border: 2px solid rgba(74, 144, 164, 0.2);
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(74, 144, 164, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.nav-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(74, 144, 164, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(74, 144, 164, 0.4);
}

.nav-toggle:active {
    transform: translateY(0) scale(0.98);
}

/* Hamburger menu lines - gradient colors with 3D effect */
.nav-toggle span {
    width: 28px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* =====================================
   RESPONSIVE DESIGN
   Mobile-first breakpoints
   ===================================== */

/* Tablet and larger screens (768px+) */
@media (min-width: 768px) {
    /* Keep centered layout on larger screens */
    .header-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1.2rem 0;
    }
    
    /* Logo centered for all pages */
    .logo {
        text-align: center;
        justify-content: center;
    }
    
    /* Navigation menu horizontal - 3D design */
    .nav-menu {
        flex-direction: row;
        gap: 0.3rem;
        flex-wrap: nowrap;
        position: static;
        height: auto;
        width: auto;
        max-width: none;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.98), 
            rgba(248, 250, 252, 0.95));
        padding: 0.8rem 2rem;
        border-radius: 50px;
        border-left: none;
        /* Enhanced 3D shadow effect */
        box-shadow: 
            0 8px 30px rgba(10, 37, 64, 0.15),
            0 4px 15px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            inset 0 -1px 0 rgba(10, 37, 64, 0.1);
        overflow: visible;
        border: 1px solid rgba(74, 144, 164, 0.15);
    }
    
    /* Hide mobile menu header on desktop */
    .mobile-menu-header {
        display: none !important;
    }
    
    /* Reset mobile menu link styles for desktop */
    .nav-menu > li:not(.mobile-menu-header) {
        padding: 0;
        margin-bottom: 0;
    }
    
    .nav-menu > li:not(.mobile-menu-header) > a {
        width: auto;
        padding: 10px 14px;
        background: transparent;
        border: 1px solid transparent;
        /* 3D depth effect */
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
        color: var(--text-dark);
        text-align: center;
    }
    
    .nav-menu > li:not(.mobile-menu-header) > a::before {
        display: none; /* Remove shine effect on desktop */
    }
    
    .nav-menu > li:not(.mobile-menu-header) > a:hover {
        background: linear-gradient(135deg, 
            rgba(74, 144, 164, 0.4), 
            rgba(104, 179, 200, 0.5)) !important;
        color: white !important;
        transform: translateY(-5px) scale(1.05) !important;
        /* DRAMATIC 3D shadow effect */
        box-shadow: 
            0 12px 35px rgba(74, 144, 164, 0.5),
            0 6px 15px rgba(0, 0, 0, 0.2),
            0 0 25px rgba(74, 144, 164, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.7),
            inset 0 -2px 4px rgba(74, 144, 164, 0.3) !important;
        border-color: rgba(74, 144, 164, 0.6) !important;
        border-width: 2px !important;
        font-weight: 700 !important;
        z-index: 10 !important;
    }
    
    .nav-menu > li:not(.mobile-menu-header) > a.active {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white;
        transform: translateY(1px);
        /* 3D pressed effect */
        box-shadow: 
            0 4px 15px rgba(74, 144, 164, 0.4),
            inset 0 2px 4px rgba(0, 0, 0, 0.2),
            inset 0 -1px 2px rgba(255, 255, 255, 0.1);
        border-color: rgba(74, 144, 164, 0.5);
        font-weight: 700;
    }
    
    .nav-menu > li:not(.mobile-menu-header) > a.btn-nav {
        margin-top: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white;
        border: 1px solid rgba(74, 144, 164, 0.3);
        /* 3D button effect */
        box-shadow: 
            0 6px 20px rgba(74, 144, 164, 0.35),
            inset 0 2px 4px rgba(0, 0, 0, 0.2),
            inset 0 -1px 2px rgba(255, 255, 255, 0.1);
        font-weight: 700;
    }
    
    .nav-menu > li:not(.mobile-menu-header) > a.btn-nav:hover {
        transform: translateY(-3px);
        /* Enhanced 3D lift */
        box-shadow: 
            0 8px 25px rgba(74, 144, 164, 0.5),
            inset 0 2px 4px rgba(0, 0, 0, 0.15),
            inset 0 -1px 2px rgba(255, 255, 255, 0.2);
    }
}

/* Large screens (1200px+) - More spacing for navigation */
@media (min-width: 1200px) {
    .nav-menu {
        gap: 0.5rem;
        padding: 0.8rem 2.5rem;
    }
    
    .nav-menu a {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}

/* Mobile devices (max 768px) */
@media (max-width: 768px) {
    /* Header adjustments for mobile */
    .header {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    }
    
    .header-content {
        padding: 1rem 0;
        gap: 1rem;
    }
    
    /* Logo adjustments */
    .logo {
        padding: 0.4rem 1.2rem;
        border-radius: 50px;
    }
    
    .logo-sitelogo {
        width: 120px;
        height: 120px;
    }
    
    .logo h1,
    .logo .logo-title {
        font-size: clamp(2.2rem, 6vw, 3rem) !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }
    
    .logo .tagline {
        font-size: clamp(2.2rem, 6vw, 3rem) !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Show hamburger menu button - positioned below logo */
    .nav-toggle-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
        position: relative;
    }
    
    .nav-toggle {
        display: flex;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
    }
    
    /* Modern 3D slide-in sidebar menu - matches site colors - MORE VISIBLE */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(180deg, 
            var(--primary-color) 0%, 
            #1a4d6b 30%,
            var(--accent-color) 100%) !important;
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0;
        /* DRAMATIC 3D shadow effect - creates strong depth */
        box-shadow: 
            -12px 0 50px rgba(0, 0, 0, 0.5),
            -6px 0 30px rgba(10, 37, 64, 0.7),
            -2px 0 15px rgba(74, 144, 164, 0.4),
            inset -3px 0 15px rgba(255, 255, 255, 0.15) !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10001;
        gap: 0;
        align-items: stretch;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: visible;
        /* 3D perspective effect */
        transform-style: preserve-3d;
        border-left: 4px solid rgba(74, 144, 164, 0.7) !important;
    }
    
    /* Mobile menu header - modern design */
    .mobile-menu-header {
        display: none;
        padding: 1.5rem 1.5rem 1rem;
        background: linear-gradient(135deg, 
            rgba(10, 37, 64, 0.95), 
            rgba(26, 77, 107, 0.9));
        border-bottom: 2px solid rgba(74, 144, 164, 0.3);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        margin-bottom: 1rem;
    }
    
    @media (max-width: 768px) {
        .mobile-menu-header {
            display: block;
        }
    }
    
    .mobile-menu-logo {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: white;
    }
    
    .mobile-menu-logo img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        padding: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-menu-logo span {
        font-family: var(--font-primary);
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    /* Menu items container */
    .nav-menu > li:not(.mobile-menu-header) {
        padding: 0 1.5rem;
        margin-bottom: 0.75rem;
        overflow: visible;
    }
    
    .nav-menu > li:last-child {
        margin-bottom: 2rem;
    }
    
    /* Show menu when active - slides in from RIGHT with 3D effect */
    .nav-menu.active {
        right: 0;
        transform: translateX(0) perspective(1000px) rotateY(0deg);
    }
    
    /* Mobile nav links - modern 3D cards with gradient - MORE VISIBLE */
    .nav-menu > li:not(.mobile-menu-header) > a {
        width: 100%;
        text-align: left;
        padding: 16px 20px;
        border-radius: 14px;
        font-size: 1rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95) !important;
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.15), 
            rgba(255, 255, 255, 0.1)) !important;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.25) !important;
        /* DRAMATIC 3D depth effect */
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 2px 4px rgba(255, 255, 255, 0.3),
            inset 0 -1px 2px rgba(0, 0, 0, 0.1) !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative;
        overflow: hidden;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    /* Shine effect on hover */
    .nav-menu > li:not(.mobile-menu-header) > a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255, 255, 255, 0.2), 
            transparent);
        transition: left 0.5s ease;
    }
    
    .nav-menu > li:not(.mobile-menu-header) > a:hover::before {
        left: 100%;
    }
    
    /* Hover effect - VERY DRAMATIC highlight with bright glow */
    .nav-menu > li:not(.mobile-menu-header) > a:hover,
    .nav-menu > li:not(.mobile-menu-header) > a:focus,
    .nav-menu > li:not(.mobile-menu-header) > a:active {
        background: linear-gradient(135deg, 
            rgba(74, 144, 164, 0.8), 
            rgba(104, 179, 200, 0.7)) !important;
        color: white !important;
        transform: translateX(8px) scale(1.02) !important;
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.4),
            0 0 25px rgba(74, 144, 164, 0.7),
            0 0 15px rgba(104, 179, 200, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.5),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
        border-color: rgba(74, 144, 164, 1) !important;
        border-width: 2px !important;
        font-weight: 700 !important;
        z-index: 20 !important;
    }
    
    /* Touch feedback - active state for mobile taps */
    .nav-menu > li:not(.mobile-menu-header) > a:active {
        transform: translateX(6px) scale(1.01) !important;
        transition: all 0.1s ease !important;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(74, 144, 164, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.4),
            inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Active state - highlighted with gradient - MORE VISIBLE */
    .nav-menu > li:not(.mobile-menu-header) > a.active {
        background: linear-gradient(135deg, 
            rgba(74, 144, 164, 0.6), 
            rgba(104, 179, 200, 0.5)) !important;
        color: white !important;
        transform: translateX(8px) !important;
        box-shadow: 
            0 8px 25px rgba(74, 144, 164, 0.6),
            0 0 20px rgba(74, 144, 164, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.4),
            inset 0 -1px 2px rgba(0, 0, 0, 0.2) !important;
        border-color: rgba(74, 144, 164, 0.8) !important;
        border-width: 2px !important;
        font-weight: 700 !important;
    }
    
    /* Book Appointment button - special styling - MORE VISIBLE */
    .nav-menu > li:not(.mobile-menu-header) > a.btn-nav {
        margin-top: 1.5rem;
        text-align: center;
        padding: 18px 28px;
        background: linear-gradient(135deg, 
            rgba(74, 144, 164, 0.95), 
            rgba(104, 179, 200, 0.9)) !important;
        border: 3px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 
            0 8px 25px rgba(74, 144, 164, 0.5),
            0 0 15px rgba(74, 144, 164, 0.3),
            inset 0 3px 6px rgba(255, 255, 255, 0.3),
            inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: white !important;
    }
    
    .nav-menu > li:not(.mobile-menu-header) > a.btn-nav:hover,
    .nav-menu > li:not(.mobile-menu-header) > a.btn-nav:active {
        background: linear-gradient(135deg, 
            rgba(74, 144, 164, 1), 
            rgba(104, 179, 200, 0.95)) !important;
        transform: translateY(-4px) scale(1.05) !important;
        box-shadow: 
            0 12px 35px rgba(74, 144, 164, 0.7),
            0 0 25px rgba(74, 144, 164, 0.5),
            inset 0 3px 6px rgba(255, 255, 255, 0.4),
            inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
        border-color: rgba(255, 255, 255, 0.6) !important;
    }
}

/* Small mobile devices (max 480px) */
@media (max-width: 480px) {
    /* Logo refinements */
    .logo {
        gap: 0.8rem;
        padding: 0.3rem 1rem;
    }
    
    .logo-sitelogo {
        width: 110px;
        height: 110px;
    }
    
    .logo h1,
    .logo .logo-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }
    
    .logo .tagline {
        font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }
    
    .nav-toggle {
        padding: 10px;
    }
    
    .nav-toggle span {
        width: 24px;
        height: 2.5px;
    }
    
    .nav-toggle {
        padding: 10px;
        border-radius: 10px;
    }
    
    /* Narrower mobile menu - slides from RIGHT */
    .nav-menu {
        width: 90%;
        max-width: 300px;
        padding: 4.5rem 1rem 2rem;
        right: -100%;
    }
    
    .nav-menu > li:not(.mobile-menu-header) > a {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .nav-menu > li:not(.mobile-menu-header) > a.btn-nav {
        padding: 16px 24px;
    }
    
    .mobile-menu-header {
        padding: 1.2rem 1rem 0.8rem;
    }
    
    .mobile-menu-logo img {
        width: 45px;
        height: 45px;
    }
    
    .mobile-menu-logo span {
        font-size: 1.3rem;
    }
}

/* =====================================
   FOOTER STYLES
   Dark navy footer matching header theme
   Multi-column grid layout
   ===================================== */
.footer {
    background: var(--bg-dark);   /* Dark navy matching header_1.jpg */
    color: #ecf0f1;               /* Light text for contrast */
    padding: 3rem 0 1rem;
}

/* Footer columns grid - auto-adjusts to available space */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-col p,
.footer-col a {
    color: #bdc3c7;           /* Muted gray */
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Footer links hover - change to accent color */
.footer-col a:hover {
    color: var(--accent-color);
}

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

/* =====================================
   SOCIAL MEDIA LINKS
   Professional icon buttons with images
   ===================================== */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Social icon styling with images and text */
.social-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-decoration: none;
    color: #e8e8e8;
    font-size: 0.9rem;
}

/* Icon images */
.social-icon img {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

/* Hover effect - enhanced background and slight lift */
.social-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: white;
}

/* Text labels */
.social-icon span {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Legacy SVG support for backward compatibility */
.social-links svg {
    width: 20px;
    height: 20px;
}

/* Footer copyright section */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
}

/* =====================================
   PAGE HEADER
   Common gradient header for all pages
   ===================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Responsive page header */
@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}