/* --- Global Variables & Reset --- */
:root {
    --navy: #0A2540;
    --orange: #F29F05;
    --white: #ffffff;
    --light-grey: #f4f6f8;
    --text-dark: #2d3748;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); line-height: 1.6; overflow-x: hidden; background: var(--white); }

/* --- Utility Classes --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; display: flex; flex-direction: column; justify-content: center; min-height: 80vh; }
.bg-light { background-color: var(--light-grey); }
.bg-navy { background-color: var(--navy); }
.text-white { color: var(--white) !important; }
.text-orange { color: var(--orange) !important; }
.text-center { text-align: center; margin-bottom: 50px; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }
h2 { font-size: 42px; color: var(--navy); margin-bottom: 25px; }
p { font-size: 18px; margin-bottom: 20px; }

/* --- Buttons --- */
.btn { padding: 14px 35px; font-weight: 600; text-decoration: none; border-radius: 4px; display: inline-block; transition: var(--transition); letter-spacing: 0.5px; }
.btn-primary { background: var(--orange); color: var(--navy); border: 2px solid var(--orange); }
.btn-primary:hover { background: transparent; color: var(--orange); transform: translateY(-3px); }

/* --- Header Logo & Text --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Controls the space between the arrow and the word */
    text-decoration: none;
}

.brand-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1.5px;
}
/* --- Header --- */
header { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: var(--white); 
    z-index: 1000; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease-in-out; /* Adds the smooth slide */
}

/* This class hides the nav when scrolling down */
.nav-hidden {
    transform: translateY(-100%);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 15px 40px; }
/* --- Header Logo --- */
.nav-logo { 
    height: 60px; /* Cranked up from 70px. You can adjust this number up or down until it looks perfect! */
    width: auto; 

}
nav ul { list-style: none; display: flex; gap: 30px; }
nav a { text-decoration: none; color: var(--navy); font-weight: 600; transition: var(--transition); }
nav a:hover { color: var(--orange); }

/* --- Hero --- */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); z-index: 0; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(10,37,64,0.8) 0%, rgba(10,37,64,0.4) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); max-width: 800px; }
.hero-content h1 { font-size: 60px; margin-bottom: 20px; }

/* --- Layouts & Slideshows --- */
.split-layout { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.split-left { flex: 0 0 55%; }
.split-right { flex: 0 0 40%; }
.slideshow { position: relative; width: 100%; height: 550px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.slideshow img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.slideshow img.active { opacity: 1; }

/* --- Products Section --- */
#products {
    min-height: auto; 
    padding-top: 80px;
    padding-bottom: 80px;
}
.products-grid { align-items: flex-start !important; }
.product-column { flex: 1; text-align: center; }

/* Fixed alignment and size for the product blocks */
.product-column h3 {
    min-height: 85px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}
.divider-orange { width: 3px; background: var(--orange); margin: 0 30px; border-radius: 2px; }
.product-slideshow-container { position: relative; border-radius: 12px; overflow: hidden; }

/* Wider, proportional images on desktop */
/* Forces the images to stretch horizontally and caps the height so they look wide */
.product-slideshow {
    width: 100% !important;  /* Forces the box to take up all horizontal space available */
    max-width: 650px;        /* Stops it right before it touches the edges of the screen */
    height: 400px !important; /* Reduces the height so the image becomes a wide rectangle, not a tall one */
    margin: 0 auto; 
}

.ghost-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,37,64,0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); z-index: 2; }
.product-slideshow-container:hover .ghost-overlay { opacity: 1; backdrop-filter: blur(4px); }

/* --- Expansion --- */
.map-bg { position: relative; background: url('Map.png') center/cover no-repeat; background-attachment: fixed; color: var(--white); padding: 180px 0; }
.map-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10,37,64,0.75); z-index: 1; }
.expansion-content { position: relative; z-index: 2; text-align: right; }
.expansion-content h2 { color: var(--white); font-size: 54px; }
.stats-grid { display: flex; justify-content: flex-end; gap: 60px; margin-top: 40px; }
.stat-item { text-align: center; }
.counter { font-size: 72px; font-weight: 800; color: var(--orange); display: block; line-height: 1; margin-bottom: 10px; }
.stat-item p { font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* --- Financials --- */
.chart-container { 
    position: relative;
    width: 100%; 
    max-width: 800px; 
    background: var(--white); 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    overflow: hidden; 
    box-sizing: border-box;
    min-height: 350px; /* Locks the box height so the canvas doesn't freak out */
}

/* --- Sustainability --- */
.sustain-bg { position: relative; background: url('nature.jpg') center/cover no-repeat; color: var(--white); padding: 180px 0; }
.sustain-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(34, 139, 34, 0.85); z-index: 1; }
.sustain-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.sustain-content h2 { color: var(--white); }

/* --- Footer --- */
footer { background: var(--navy); color: var(--white); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
/* --- Footer Logo --- */
.footer-logo { 
    height: 130px; /* Bumped up from 80px */  
    margin-left: 40px;
}
.footer-col h4 { margin-bottom: 25px; font-size: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #cbd5e0; text-decoration: none; transition: var(--transition); }
.footer-col ul a:hover { color: var(--orange); padding-left: 5px; }

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    .split-layout { flex-direction: column; gap: 40px; text-align: center; }
    .split-left, .split-right { flex: 0 0 100%; width: 100%; }
    .expansion-content { text-align: center; }
    .stats-grid { justify-content: center; flex-wrap: wrap; gap: 30px; }
    .divider-orange { width: 100%; height: 3px; margin: 40px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; padding: 15px 20px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero-content h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    .slideshow { height: 350px; } 
    /* Shrinks the product images when they stack on phones */
    .product-slideshow { 
        height: 350px !important; 
        width: 100% !important; 
        max-width: 100% !important;
        margin: 0 !important;
    }
    .section { padding: 80px 0; min-height: auto; }
    .map-bg, .sustain-bg { padding: 100px 0; }
    .counter { font-size: 50px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    /* Mobile Financials Fixes */
    .chart-container { padding: 15px; } 
    #financials .split-right { text-align: center; padding: 0 10px; } 
    #revenueChart { width: 100% !important; height: auto !important; } 
}
