/* --- Variables & Reset --- */
:root {
    --primary-blue: #0E3A5D; /* Navy Blue */
    --secondary-green: #7EBC89; /* Sage Green */
    --accent-silver: #f4f4f4;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.bg-light { background-color: var(--accent-silver); }
.bg-blue-dark { background-color: var(--primary-blue); color: var(--white); }
.text-center { text-align: center; }
.text-white { color: var(--white); }

.section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-green);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-green);
    color: var(--white);
    border: 2px solid var(--secondary-green);
}

/* Ensure the primary button stays visible and looks professional on hover */
.btn-primary:hover {
    background: var(--primary-blue); /* Switches to the dark navy from the logo */
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px); /* Adds a subtle "lift" effect */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-sm:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* --- Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Specific override for the Logo Text only */
.logo span {
    color: cyan; /* Replace this hex code with your desired color */
}

.nav-logo-img {
    height: 40px; /* Adjust based on actual logo */
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-blue);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--secondary-green); }

.btn-nav {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* --- Hero --- */
.hero {
    height: 90vh;
    background: url('/Images/HeroSection.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); /* Adds a subtle shadow to pop the text */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(14, 58, 93, 0.2), rgba(126, 188, 137, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;       /* Takes full width of the container */
    max-width: 1200px; /* Matches your navbar width */
}

/* This restricts the text/buttons to the left side only */
.hero-content h1, 
.hero-content p, 
.hero-content ul, 
.hero-content .hero-buttons {
    max-width: 50%; /* Occupies only left half. Change to 60% if you need more space */
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero-tagline { font-size: 1.2rem; margin-bottom: 20px; font-weight: 300; }

.hero-bullets { margin-bottom: 30px; }
.hero-bullets li { margin-bottom: 10px; font-size: 1.1rem; }
.hero-bullets i { color: var(--secondary-green); margin-right: 10px; }

/* --- About Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover { transform: translateY(-10px); }
.about-card i { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 20px; }
.about-card h3 { margin-bottom: 15px; color: var(--primary-blue); }

/* --- Products --- */
.filter-container { margin-bottom: 40px; }

.filter-btn {
    padding: 8px 20px;
    margin: 0 5px;
    border: none;
    background: #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* --- Product Image Styling --- */
.p-img-box {
    width: 100%;
    height: 180px; /* Fixed height keeps all cards the same size */
    background: #fdfdfd; /* Very light grey background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.p-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* IMPORTANT: This ensures the whole pack is visible and not cut off */
    transition: transform 0.3s ease;
}

/* Optional: Slight zoom on hover */
.product-card:hover .p-img-box img {
    transform: scale(1.05);
}

.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

.p-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}
.p-header.green { background: var(--secondary-green); }
.p-header.pink {background: pink}

.p-body { padding: 20px; }
.p-body h4 { color: var(--primary-blue); font-size: 1.2rem; margin-bottom: 10px; }
.p-body p { margin-bottom: 8px; font-size: 0.95rem; color: var(--text-light); }

/* --- Quality --- */
.quality-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.quality-text { flex: 1; min-width: 300px; }
.quality-icons { flex: 1; display: flex; gap: 20px; justify-content: center; }
.q-icon-box { text-align: center; }
.q-icon-box i { font-size: 3rem; color: var(--secondary-green); margin-bottom: 10px; display: block; }

/* --- Why Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.feature-card:hover { background: var(--white); color: var(--primary-blue); }
.feature-card i { font-size: 2rem; margin-bottom: 15px; }

/* --- Commitments --- */
.commitment-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.commit-item { text-align: center; }
.circle-check {
    width: 60px; height: 60px;
    background: var(--secondary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

/* --- Downloads --- */
.download-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: var(--white);
    border: 2px dashed var(--primary-blue);
    border-radius: 10px;
    width: 200px;
    transition: var(--transition);
}

.download-card:hover { background: #eaf4ff; border-style: solid; }
.download-card i { font-size: 2.5rem; color: #d32f2f; margin-bottom: 15px; } /* Red for PDF */
.download-card span { font-weight: 600; color: var(--primary-blue); margin-bottom: 5px; }

/* --- Contact Section (Responsive Layout Logic) --- */
.contact-wrapper {
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.contact-info, .contact-form-box { flex: 1; }

.info-item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.info-item i { color: var(--secondary-green); font-size: 1.2rem; margin-right: 15px; margin-top: 5px; }
.map-box { margin-top: 20px; border-radius: 10px; overflow: hidden; }

.contact-form-box {
    background: var(--white);
    padding: 30px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    border-top: 5px solid var(--primary-blue);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}
.full-width { width: 100%; }

/* --- Footer --- */
footer {
    background: #0a2a44;
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in-up { animation: fadeInUp 1s ease-out; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }
    .nav-links.nav-active { display: flex; }

    .hero-content h1 { font-size: 2.2rem; }
    
    /* Specific Mobile Requirement: Form ABOVE Info */
    .contact-wrapper { flex-direction: column-reverse; }
    
    .quality-wrapper { flex-direction: column; }

    /* FIX: Reset Hero Text width for Mobile */
    .hero-content {
        max-width: 100%; /* Ensure container is full width */
    }

    .hero-content h1, 
    .hero-content p, 
    .hero-content ul, 
    .hero-content .hero-buttons {
        max-width: 100%; /* Let text span the whole screen again */
        text-align: center; /* Optional: Looks better centered on mobile */
        margin-left: auto;  /* Centers the block */
        margin-right: auto; /* Centers the block */
    }

    /* Optional: Make the background image darker on mobile so text pops */
    .hero {
        /* This shifts the background image to show the RIGHT side */
        /* Change 'right' to 'left' if you actually wanted to see the other side! */
        background-position: right center; 
    }

    .hero-buttons {
        display: flex;
        flex-direction: column; /* Stacks buttons vertically */
        align-items: center;    /* Centers them */
        gap: 15px;              /* Adds the perfect "little space" between them */
    }

    .hero-buttons .btn-outline {
        margin-left: 0;         /* Removes the desktop-only side margin */
    }
    
    /* Re-add a slight overlay ONLY for mobile if text is hard to read */
    .hero::before {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); /* Darken background for mobile readability */
        z-index: 1;
    }
}