/* --- RESET & BASE --- */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0; 
}

:root {

    /* COLORS */
    --color-bg: #FFFFFF;
    
    /* Footer Section */
    --color-footer-bg: #0F172A;
    --color-footer-bg-2: #1421429b;
    --color-footer-subheading: #7DD3FC;
    --color-footer-link: #F8FAFC;
    --color-footer-link-hover: #3B82F6;
    
    /* Hero Section (Color Background) */
    --color-hero-bg: #F0F9FF; 
    --color-heading: #1E293B;
    --color-hero-subtitle: #475569;

    /* Product Category Hero - Dark Blue */
    --color-category-hero-bg: #0F172A;
    --color-category-hero-heading: #F8FAFC;
    --color-category-hero-subtitle: #94A3B8;

    /* Product Detail Hero - Light Blue */
    --color-product-hero-bg: #E0F2FE;
    --color-product-hero-heading: #0C4A6E;
    --color-product-hero-subtitle: #075985;
    
    /* Strong Blue for section headings as requested */
    --color-heading-section: #183da5; 
    --color-heading-light: #FFFFFF;
    
    --color-subheading: #475569;
    --color-subheading-light: #F8FAFC;

    --color-text-dark: #334155;
    --color-text-light: #E2E8F0;

    /* ACCENTS: Using a vibrant blue that pops against white and navy */
    --color-accent: #3B82F6;
    --color-accent-light: #EFF6FF;
    
    --color-border: #E2E8F0;

    /* BUTTONS */
    --color-btn-bg-1: #2563EB;
    --color-btn-fg-1: #FFFFFF;
    --color-accent-hover: #1D4ED8;
    
    --color-btn-bg-2: #FFFFFF;
    --color-btn-fg-2: #1E293B;

    --color-btn-light-bg: #E0F2FE; /* Light Sky Blue */
    --color-btn-dark-text: #0C4A6E; /* Deep Blue for text */
    

    /* TYPOGRAPHY */
    --font-heading: "Inter", sans-serif;
    --font-body: "Inter", sans-serif;

    /* FONT WEIGHTS */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extra-bold: 800;

    /* LETTER SPACING */
    --ls-tightest: -0.045em;
    --ls-tighter: -0.03em;
    --ls-tight: -0.015em;
    --ls-normal: -0.005em;
    --ls-wide: 0.02em;

    /* FONT SIZES */
    --fs-h1: 2.8rem;
    --fs-h2: 2rem;
    --fs-h3: 1.125rem;
    --fs-h4: 1rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-extra-small: 0.75rem;
    --fs-ultra-small: 0.6rem

    /* LINE HEIGHTS */
    --lh-heading-tight: 1.08;
    --lh-heading: 1.15;
    --lh-subheading: 1.4;
    --lh-body: 1.8;

    /* SPACING */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    /* BORDER RADIUS */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* SHADOWS */
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.04);
    --shadow-md: 0 8px 24px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 20px 40px rgb(0 0 0 / 0.08);

    /* LAYOUT */
    --container-width: 1300px;
}

/* --- REUSABLE STYLES --- */
img, picture, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select { font: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: var(--lh-heading);
    color: var(--color-heading);
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

li { list-style-type: none; }

/* --- HEADER & DESKTOP NAV --- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

main { 
    margin-top: 80px;
    flex: 1 0 auto;
}

.nav-wrapper {
    max-width: var(--container-width);
    height: 80px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* UPDATED: Logo Image Styling */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 55px; /* Adjust height as needed to fit your logo design */
    width: auto;
    display: block;
}

.nav-box {
    display: flex;
    gap: 40px;
}

.nav-box a, .dropdown-trigger {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--color-text-dark);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: transparent;
    border: none;
}

.nav-box a:hover, .dropdown-trigger:hover {
    background-color: var(--color-hero-bg);
    color: var(--color-accent);
}

/* --- DROPDOWN (DESKTOP) --- */
.dropdown { position: relative; }

.dropdown-icon { transition: transform 0.3s ease; }

.dropdown-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0; 
    z-index: 100;
    overflow: hidden;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 0;
}

.dropdown-links svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

@media (min-width: 451px) {
    .dropdown:hover .dropdown-links { display: block; }
    .dropdown:hover .dropdown-icon { transform: rotate(180deg); }
}

/* --- MOBILE ELEMENTS --- */
.mobile-menu-btn, .sidebar-header, .mobile-logo { display: none; }

.mobile-menu-btn {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* --- MOBILE MEDIA QUERY --- */
@media (max-width: 450px) {
    main { 
        margin-top: 70px; 
    }
    
    .nav-wrapper { 
        justify-content: center; 
        height: 70px; 
    }

    /* UPDATED: Central logo on mobile bar */
    .logo img {
        height: 35px; 
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-bg);
        z-index: 2000;
        padding: 20px;
        display: flex;
        flex-direction: column;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

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

    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        margin-bottom: var(--spacing-xl);
        padding-bottom: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
    }

    .close-menu-btn {
        position: absolute;
        left: 0;
        background: none;
        border: none;
    }

    /* UPDATED: Sidebar logo sizing */
    .mobile-logo {
        display: flex;
        justify-content: center;
    }

    .mobile-logo img {
        height: 40px;
        width: auto;
    }

    .nav-box {
        flex-direction: column;
        gap: 0;
    }

    .nav-box li { width: 100%; }

    .nav-box a, 
    .dropdown-trigger {
        width: 100%;
        padding: 15px 10px;
        font-size: var(--fs-body);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-links {
        display: none;
        width: 100%;
        background-color: transparent;
        border: none;
        margin: 0;
        padding: 0;
    }

    .dropdown-links li a {
        padding: 12px 10px 12px 30px;
        font-size: var(--fs-small);
        color: var(--color-text);
        background-color: #fafafa;
        border-bottom: 1px solid #eeeeee;
    }

    .dropdown-links li:last-child a {
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown.active .dropdown-links { 
        display: block; 
    }
    
    .dropdown.active .dropdown-icon { 
        transform: rotate(180deg); 
        color: var(--color-accent);
    }
}


/* ------------ FOOTER STYLES (MIDNIGHT BLUE THEME) ------------ */

.footer {
    /* Deep Corporate Navy */
    background-color: #0f172a; 
    color: #cbd5e1; /* Soft Slate text */
    padding: var(--spacing-xxl) 0 0 0;
    margin-top: 0;
    /* Brand Blue top border */
    border-top: 4px solid var(--color-accent);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr; 
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xxl);
}

/* Footer About Section */
.footer-about {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #94a3b8; /* Lighter slate for readability */
    max-width: 300px;
    text-align: justify;
}

.footer-about strong {
    color: #ffffff;
    letter-spacing: 0.05em;
}

.footer-heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    /* Ice Blue links */
    color: #94a3b8; 
    font-size: var(--fs-small);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-accent); /* Vivid Blue on hover */
    transform: translateX(8px);
}

/* Contact List Styling */
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-label {
    /* Cyan-Blue Labels */
    color: var(--color-accent); 
    font-size: 0.65rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.contact-info {
    color: #f1f5f9; /* Near-white for high contrast on dark bg */
    font-size: 0.85rem;
    line-height: 1.5;
    transition: color 0.2s ease;
    text-align: left;
    text-decoration: none;
}

.footer-contact a.contact-info:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Bottom Bar */
.footer-bottom {
    /* Darker than the main footer for a clean finish */
    background-color: #020617; 
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: var(--fw-semibold);
}

/* --- FOOTER RESPONSIVENESS --- */

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 450px) {
    .footer {
        padding-top: var(--spacing-xl);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: var(--spacing-xl);
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-about {
        margin: 0 auto;
        text-align: center;
    }

    .footer-contact li {
        align-items: center;
    }
    
    .contact-info {
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-links a:hover {
        transform: none;
    }
}