/* --- 1. GLOBAL RESET & BASE STYLES (Always at the top) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    padding-top: 104px; /* Matches header height (100px) + border (4px) */
}

/* --- 2. DESKTOP HEADER STYLES --- */
.main-header {
    background-color: #c00000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; 
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-bottom: 4px solid white;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80px; 
    width: auto;
    margin: 0 20px;
    display: block;
}

.nav-menu, .nav-menu ul {
    display: flex;
    height: 100%;
    list-style: none;
}

.nav-menu a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    font-weight: 700;
    color: white;
    transition: all 0.2s ease-in-out;
}

.nav-menu a:hover {
    background-color: white;
    color: #c00000;
}

/* --- 3. HAMBURGER ICON (Hidden on Desktop) --- */
.menu-toggle {
    display: none; /* This makes it stay hidden on desktop */
    cursor: pointer;
    align-self: center;
    margin-right: 20px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease;
}

/* --- 4. ANIMATIONS FOR THE "X" --- */
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- 5. MOBILE STYLES (Always at the very bottom) --- */
@media screen and (max-width: 768px) {
    /* 1. Show the Hamburger */
    .menu-toggle {
        display: block;
        z-index: 1001; /* Keep it above the sidebar */
    }
/*new code test*/
.nav-menu a:active, 
.nav-menu a:focus {
    background-color: white !important;
    color: #c00000 !important;
}
/*new code ends */

    /* 2. Turn the Nav into a Sidebar */
    .nav-menu {
        display: flex;             /* Bring it back to life */
        position: fixed;
        top: 0;
        right: -100%;             /* Hide it way off to the right */
        width: 250px;             /* Width of your vertical menu */
        height: 100vh;            /* Full height of the screen */
        background-color: #c00000; /* Deep Red to match your theme */
        flex-direction: column;
        padding-top: 100px;       /* Start links below the header area */
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    /* 3. The "Show Me" state */
    .nav-menu.active {
        right: 0; /* Slide it in to the edge of the screen */
    }

    .nav-menu ul {
        flex-direction: column;
        height: auto;
    }

    .nav-menu a {
        height: 60px;   /* Fixed height for touch-friendly buttons */
        width: 100%;
        justify-content: center; /* Center text in the sidebar */
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Subtle divider */
    }
}
/* --- ABOUT US SECTION --- */
.about-section {
    padding: 80px 20px;
    background-color: #f9f9f9; /* Light background to contrast with footer */
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #333;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.about-title {
    color: #660000; /* Your Wine Red theme */
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.intro-text {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
}

.quality-highlights {
    border-left: 4px solid #1d4d7d; /* Dark Blue from your footer */
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
}

.certifications {
    background: #f1f4f8;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 15px;
}

.directors-box {
    margin-top: 40px;
    padding: 30px;
    background: #660000;
    color: white;
    border-radius: 8px;
}

.directors-box h3 {
    margin-top: 0;
    color: #FFD700; /* Gold for a premium feel */
}

.company-promise {
    text-align: center;
    margin-top: 40px;
    font-size: 20px;
    font-weight: 600;
    color: #1d4d7d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-container {
        padding: 25px;
    }
    
    .about-title {
        font-size: 28px;
    }
}

/* --- HERO SECTION --- */
.contact-hero {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    z-index: 2;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 48px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin: 0;
}

/* --- CONTACT DETAILS --- */
.contact-details-section {
    padding: 80px 20px;
    background-color: #fcfcfc;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid #660000; /* Your Wine Red */
}

.company-title {
    color: #1d4d7d; /* Your Dark Blue */
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 800;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-item .icon {
    font-size: 20px;
}

.info-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.brand-promise {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #660000;
}

/* --- MAP STYLING --- */
.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 350px;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.map-btn {
    background: #660000;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.map-btn:hover {
    background: #1d4d7d;
    transform: scale(1.05);
}

/* --- MOBILE VIEW --- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-hero {
        height: 300px;
    }
    
    .hero-overlay h1 {
        font-size: 32px;
    }
}