/* custom.css v18.0 - Brentag Kenya Ltd - Professional Medical Equipment */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 5px 20px rgba(0,0,0,0.1);
    --transition-standard: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* CSS Reset with Modern Best Practices */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Typography and Accessibility */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'San Francisco', 'Ubuntu', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Professional Navigation - Clean & Minimal */
.navbar {
    box-shadow: var(--shadow-light);
    padding: 1rem 0;
    transition: var(--transition-standard);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 30px rgba(0,0,0,0.08);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark) !important;
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 12px;
    transition: var(--transition-standard);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* Professional Menu Items - Clean Text Only */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: var(--transition-standard);
    color: var(--text-dark) !important;
    position: relative;
    text-decoration: none;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure Products menu maintains consistent styling */
.navbar-nav .nav-link[href="products.html"] {
    background: transparent !important;
    border: none !important;
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link[href="products.html"]:hover,
.navbar-nav .nav-link[href="products.html"].active {
    color: var(--primary-color) !important;
    background: transparent !important;
}

/* Remove all button-like styles */
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Clean Hover Effect - Color Change Only */
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* Active State - Subtle Indicator */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Enhanced Burger Menu - Green to Blue Transition */
.navbar-toggler {
    border: 2px solid var(--success-color) !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.5rem 0.75rem;
    transition: var(--transition-standard);
}

.navbar-toggler:hover {
    border-color: var(--primary-color) !important;
    background: rgba(0, 102, 204, 0.05) !important;
}

.navbar-toggler:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25) !important;
    outline: none !important;
}

.navbar-toggler:not(.collapsed) {
    border-color: var(--primary-color) !important;
    background: rgba(0, 102, 204, 0.1) !important;
}

/* Burger Menu Icon Styling */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2328a745' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transition: var(--transition-standard);
    width: 1.5em;
    height: 1.5em;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230066cc' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230066cc' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile Menu Cleanup */
.navbar-collapse {
    background: transparent !important;
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
        border: none !important;
        background: transparent !important;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(0, 102, 204, 0.05) !important;
        border-radius: var(--border-radius);
    }
    
    .navbar-nav .nav-link.active {
        background: rgba(0, 102, 204, 0.1) !important;
        border-radius: var(--border-radius);
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        padding: 1rem;
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-medium);
        margin-top: 1rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0,0,0,0.05);
    }
}

/* Hero Sections - Professional Opacity Levels */
.hero-section {
    padding: 140px 0 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Home Page - DARKER Opacity (30%) for better contrast */
.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* 30% DARKER for home page */
    z-index: 1;
}

/* Other Pages - Standard Opacity (25%) */
.about-hero::before,
.products-hero::before,
.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25); /* 25% for other pages */
    z-index: 1;
}

/* Contact Page - Enhanced Typography */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25); /* 25% for contact page */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Enhanced Typography for Contact Hero */
.contact-hero .hero-content h1 {
    font-size: 4rem; /* Larger heading for contact page */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact-hero .hero-content .lead {
    font-size: 1.5rem; /* Larger subheading */
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.contact-hero .hero-content p {
    font-size: 1.2rem; /* Larger body text */
    line-height: 1.6;
}

.text-shadow {
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9); /* Stronger shadow for better contrast */
}

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

/* Specific Hero Backgrounds */
.home-hero {
    background-image: url('../images/hero-home.jpg');
}

.about-hero {
    background-image: url('../images/hero-about.jpg');
}

.products-hero {
    background-image: url('../images/hero-products.jpg');
}

.services-hero {
    background-image: url('../images/hero-services.jpg');
}

.contact-hero {
    background-image: url('../images/hero-contact.jpg');
}

/* Card System - Professional Enhancement */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-standard);
    overflow: hidden;
    background: white;
}

.product-card,
.service-card {
    transition: var(--transition-standard);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    height: 100%;
}

.product-card:hover,
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

/* Professional Button System */
.btn {
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition-standard);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), #003366);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: 2px solid transparent;
    font-weight: 600;
}

.btn-light:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Focus Management - Professional */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Remove focus from menu items specifically */
.navbar-nav .nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Responsive Design - Professional */
@media (max-width: 1200px) {
    .contact-hero .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 120px 0 80px;
        min-height: 60vh;
    }
    
    .contact-hero .hero-content h1 {
        font-size: 3rem;
    }
    
    .contact-hero .hero-content .lead {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px;
        min-height: 60vh;
        background-attachment: scroll;
    }
    
    .contact-hero .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .contact-hero .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .contact-hero .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .contact-hero .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .contact-hero .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: auto;
        min-width: 200px;
    }
}

/* High Contrast & Accessibility Support */
@media (prefers-contrast: high) {
    .navbar {
        background: white !important;
        border-bottom: 2px solid #000;
    }
    
    .navbar-nav .nav-link {
        font-weight: 600;
    }
    
    .home-hero::before {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .navbar-toggler {
        border-color: #000 !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .navbar-nav .nav-link {
        transition: none;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .btn,
    .product-card,
    .service-card {
        transition: none;
    }
    
    .navbar-toggler {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .navbar {
        background: white !important;
        border-bottom: 1px solid #000;
    }
    
    .navbar-nav .nav-link {
        color: #000 !important;
        background: transparent !important;
    }
    
    .hero-section {
        display: none !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
}

/* Loading Optimization */
.hero-section {
    background-color: #f8f9fa; /* Fallback color while image loads */
}

/* Performance Enhancements */
.navbar-nav .nav-link {
    will-change: color;
}

.hero-section::before {
    will-change: opacity;
}

.navbar-toggler {
    will-change: border-color, background-color;
}