/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    /*background: linear-gradient(to bottom, #97ADC1, #C1CDD8, #E1E6EB); /* Gradient from top to bottom #e1e5ebd2*/
    background: linear-gradient(to bottom, #97a6c1c5,#c1c9d8da,#c1c9d8da,#e1e5ebd2);
    background-attachment: fixed; /* Keep gradient fixed while content scrolls - smooth transition throughout entire page */
    min-height: 100vh; /* Ensure gradient covers full viewport height */
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.header-content {
    width: 100%;
    padding: 0.4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #007bff;
}

.nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* Desktop Products Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
}

.nav-chevron {
    font-size: 0.6em;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1001;
    padding: 0.4rem 0;
    border: 1px solid #e9ecef;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

/* Invisible bridge between toggle and menu to prevent hover gap */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: 0;
    right: 0;
    height: 0.6rem;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover:not(.disabled) {
    background-color: #f0f7ff;
    color: #007bff;
}

.nav-dropdown-item.active {
    color: #007bff;
    background-color: #f0f7ff;
}

.nav-dropdown-item.disabled {
    color: #adb5bd;
    cursor: default;
}

.badge-coming-soon {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #e9ecef;
    color: #6c757d;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    margin-left: 0.25rem;
    vertical-align: middle;
}

/* Mobile Products Accordion */
.mobile-nav-group {
    display: flex;
    flex-direction: column;
}

.mobile-nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.mobile-chevron {
    font-size: 0.6em;
    transition: transform 0.2s ease;
}

.mobile-nav-group-toggle.open .mobile-chevron {
    transform: rotate(180deg);
}

.mobile-nav-subitems {
    display: none;
    flex-direction: column;
    background: #f8f9fa;
}

.mobile-nav-subitems.open {
    display: flex;
}

.mobile-nav-subitem {
    padding-left: 2.5rem !important;
    font-size: 0.9rem !important;
    border-bottom: 1px solid #e9ecef;
}

.mobile-nav-subitem.disabled {
    color: #adb5bd;
    cursor: default;
    pointer-events: none;
}

/* Hamburger Menu Button (Hidden on Desktop) */
.hamburger-menu {
    display: none; /* Hidden by default (desktop) */
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 0.75rem; /* Add space from right edge */
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: #9999999c;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu (Hidden by Default) */
.mobile-nav {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: auto;
    width: auto;
    white-space: nowrap;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 1000;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease, color 0.3s ease, border-left 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.mobile-nav-link.active {
    color: #007bff;
    background-color: #f0f7ff;
    border-left: 3px solid #007bff;
}

/* Main Content */
.main {
    padding: 2rem 0;
    flex: 1; /* Allow main to grow and push footer to bottom */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Styles */
.footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    margin-top: 0; /* No margin needed, flexbox handles positioning */
}

.footer-content {
    max-width: 100%;        /* Use full width on desktop */
    margin: 0;              /* Remove centering margin */
    padding: 0 3.75rem;     /* Increased left/right buffer (triple previous) */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-link:hover {
    color: #007bff;
}

.footer-link.active {
    color: #007bff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.footer-right {
    text-align: right;
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-right p {
    margin: 0.25rem 0;
}

.footer-right p:first-child {
    font-weight: 500; /* Match font-weight of footer links */
}

/* Mobile Header Styles */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 1rem; /* Reduce padding */
        flex-wrap: nowrap; /* Prevent wrapping */
        position: relative; /* For absolute positioning of mobile menu */
    }
    
    .logo-img {
        height: 55px; /* Slightly larger logo on mobile */
        width: auto;
    }
    
    /* Hide regular navigation on mobile */
    .nav {
        display: none !important;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    .nav-link {
        font-size: 0.9rem; /* Reduce from 1.1rem */
        padding: 0.25rem 0; /* Add small vertical padding for touch */
    }
    
    .main {
        padding: 1rem 0; /* Reduce from 2rem */
    }
    
    .container {
        padding: 0 1rem; /* Reduce from 2rem */
    }
    
    .footer {
        padding: 1.5rem 0; /* Increase vertical padding */
    }
    
    .footer-content {
        flex-direction: row; /* Keep side-by-side, not column */
        align-items: flex-start; /* Align to top */
        gap: 1rem; /* Reduce gap between left and right */
        padding: 0 1rem; /* Reduce horizontal padding */
        flex-wrap: wrap; /* Allow wrapping if screen is too small */
    }
    
    .footer-left {
        flex-direction: column; /* Stack links vertically */
        gap: 0.75rem; /* Reduce gap from 2rem */
        flex: 1; /* Take available space */
        min-width: 150px; /* Minimum width */
    }
    
    .footer-link {
        font-size: 0.9rem; /* Slightly smaller for mobile */
    }
    
    .footer-right {
        text-align: right; /* Keep right aligned */
        font-size: 0.8rem; /* Smaller font for mobile */
        flex: 1; /* Take available space */
        min-width: 150px; /* Minimum width */
    }
    
    .footer-right p {
        margin: 0.25rem 0; /* Keep spacing */
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 0.75rem; /* Even smaller padding */
    }
    
    .logo-img {
        height: 55px; /* Slightly larger logo on very small phones */
    }
    
    .nav-link {
        font-size: 0.85rem; /* Smaller text */
    }
    
    .main {
        padding: 0.75rem 0;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .footer-content {
        padding: 0 0.75rem;
        gap: 0.75rem; /* Even smaller gap on very small screens */
    }
    
    .footer-left {
        gap: 0.5rem; /* Smaller gap between links */
        min-width: 120px; /* Smaller minimum width */
    }
    
    .footer-link {
        font-size: 0.85rem; /* Smaller text */
    }
    
    .footer-right {
        font-size: 0.75rem; /* Smaller text */
        min-width: 120px; /* Smaller minimum width */
    }
}