/* =========================================
   1. DESIGN SYSTEM VARIABLES
   ========================================= */
:root {
    --primary-green: #2E4A3F;
    --accent-rust: #D26640;
    --bg-cream: #F7F3EE;
    --text-charcoal: #2C2C2C;
    --text-muted: #666666;
    --white: #ffffff;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --container-width: 1200px;
    --section-padding: 80px 0;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --hover-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* =========================================
   2. GLOBAL RESETS
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* =========================================
   3. UTILITY CLASSES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-rust);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #b55230;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(210, 102, 64, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   4. NAVIGATION STYLES
   ========================================= */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 110px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img { height: 110px; width: auto; display: block; }

.nav-list { display: flex; gap: 30px; align-items: center; }

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-charcoal);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-rust);
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-link.btn-nav {
    padding: 10px 20px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 4px;
}
.nav-link.btn-nav:hover { background: var(--accent-rust); }
.nav-link.btn-nav::after { display: none; }

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.bar {
    display: block; width: 25px; height: 3px; margin: 5px auto;
    background-color: var(--primary-green); transition: all 0.3s ease-in-out;
}

/* =========================================
   5. HERO SECTION (Zoom Animation)
   ========================================= */
/* Animation Definition */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* =========================================
   6. FEATURES GRID (Fixing the Layout)
   ========================================= */
.features-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

/* Default Grid (Safe for all pages) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
}

/* SPECIAL: Forces 4 columns ONLY on Home Page */
.feature-grid.home-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-cream);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover { transform: translateY(-10px); box-shadow: var(--hover-shadow); }

.icon-box { font-size: 2.5rem; color: var(--accent-rust); margin-bottom: 20px; }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card p { font-size: 0.95rem; color: var(--text-muted); }

/* =========================================
   7. TIMELINE & PRODUCT STYLES
   ========================================= */
.timeline-section {
    background-color: var(--bg-cream);
    padding: var(--section-padding);
    text-align: center;
}

.timeline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

.timeline-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    width: 300px;
    box-shadow: var(--card-shadow);
    position: relative;
    border-top: 4px solid var(--accent-rust);
}

/* Product Page Styles */
.product-category {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.product-category.reversed { flex-direction: row-reverse; }

.cat-text { flex: 1; }
.cat-image { flex: 1; }

.cat-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    display: block;
}

/* Tables */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--white);
    box-shadow: var(--card-shadow);
}

.specs-table th, .specs-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: 600;
}

/* =========================================
   8. NEW BANNER STYLES (HOK Style)
   ========================================= */
.page-banner {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 60px;
    overflow: hidden;
}

/* Home Page Specific Height */
/* REPLACE THE H1 and P RULES IN SECTION 10 WITH THIS: */

.page-banner.home-hero h1 {
    font-family: 'Montserrat', sans-serif; /* Forces the bold brand font */
    color: #ffffff;           /* Pure White */
    font-size: 3.5rem;        /* Big and readable */
    font-weight: 700;         /* Bold weight */
    text-transform: uppercase; 
    letter-spacing: 1px;

    text-shadow: 0 4px 10px rgba(0,0,0,0.6); /* Shadow for contrast against the field */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-banner.home-hero p {
    font-family: 'Roboto', sans-serif; /* Clean reading font */
    color: #f8f8f8;           /* Slightly softer white */
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 800px;         /* Prevents text from stretching too wide */
    margin: 0 auto;           /* Centers the text block */
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}


.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* This allows inline styles in HTML to work */
    background-image: inherit; 
    background-size: cover;
    background-position: center;
    z-index: 0;
    /* Applies Zoom to ALL banners */
    animation: slowZoom 20s infinite alternate;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.banner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.banner-content {
    background: rgba(255, 255, 255, 0.90);
    padding: 40px 50px;
    max-width: 600px;
    margin-right: 0;
    border-left: 6px solid var(--accent-rust);
    border-radius: 4px 0 0 4px;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.15);
    text-align: right;
}

.banner-content h1 {
    color: var(--accent-rust);
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: none;
    line-height: 1.1;
    margin-bottom: 10px;
}
.banner-content p { color: var(--text-charcoal); font-weight: 500; font-size: 1.1rem; }


/* =========================================
   9. RESPONSIVE RULES (Mobile/Tablet)
   ========================================= */
@media (max-width: 1200px) {
    .feature-grid.home-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed; right: -100%; top: 110px;
        flex-direction: column; background-color: var(--white);
        width: 100%; transition: 0.3s; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-list.active { right: 0; }
    .hamburger { display: block; }
    
    .product-category, .product-category.reversed { flex-direction: column; }
    
    .page-banner { height: 350px; justify-content: center; }
    .banner-container { justify-content: center; padding: 0 20px; }
    .banner-content {
        text-align: center; border-left: none; border-bottom: 4px solid var(--accent-rust);
        border-radius: 4px; padding: 30px;
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    .feature-grid, .feature-grid.home-grid { grid-template-columns: 1fr; }
}

/* =========================================
   10. FINAL OVERRIDE: HOME PAGE "OG" STYLE
   ========================================= */

/* 1. Center the content for Home Page ONLY */
.page-banner.home-hero {
    justify-content: center; /* Moves everything to the middle */
    align-items: center;
}

.page-banner.home-hero .banner-container {
    justify-content: center; /* Ensures the container is centered */
    width: 100%;
}

/* 2. Remove the White Box styling */
.page-banner.home-hero .banner-content {
    background: transparent; /* Makes box invisible */
    box-shadow: none;        /* Removes shadow */
    border: none;            /* Removes orange border */
    text-align: center;      /* Centers the text */
    max-width: 900px;        /* Allows text to spread out */
    padding: 0;
    margin: 0 auto;
}

/* 3. Make Text Big & White (Cinematic Look) */
.page-banner.home-hero h1 {
    color: var(--white);
    font-size: 3.5rem;       /* Big Impact Font */
    text-shadow: 0 4px 20px rgba(0,0,0,0.6); /* Strong shadow to read over image */
    margin-bottom: 25px;
}

.page-banner.home-hero p {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* =========================================
   11. FOOTER STYLES (Extreme Left & Slim)
   ========================================= */
.main-footer {
    background-color: var(--primary-green);
    color: var(--white);
    /* Very slim padding to reduce height */
    padding: 15px 0;
}

/* UPDATE THIS SPECIFIC RULE IN SECTION 11 */

.main-footer .container.footer-grid {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
    display: grid;
    /* FIX: Use specific widths to prevent gaps */
    /* 1. Logo (Fit content) | 2. Info (280px) | 3. Links (150px) | 4. Contact (Rest) */
    grid-template-columns: auto 280px 150px auto; 
    gap: 40px; /* Consistent spacing between columns */
    align-items: start;
    justify-content: start; /* Packs everything to the left */
}


/* Ensure the logo fits nicely */
.footer-logo img {
    display: block;
    max-width: 180px; /* Adjust width if needed */
    height: auto;
    /* Shifting it up slightly to align with text */
    margin-top: -5px; 
}

/* Header styles */
.footer-col h3 {
    color: var(--accent-rust);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Text styles */
.footer-col p, .footer-col ul li a {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
    color: #e0e0e0;
}

/* Links hover */
.footer-col a:hover {
    color: var(--accent-rust);
}

/* Responsive: Stack on mobile */
@media (max-width: 900px) {
    .main-footer .container.footer-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        text-align: center;
        padding: 30px 20px; /* More padding on mobile */
    }
    .footer-logo img {
        margin: 0 auto 20px auto; /* Center logo on mobile */
    }
}
 