/* Import Landing Variables for Consistency */
:root {
    --primary: #414141;
    --gold: #D4AF37;
    --gold-deep: #b38b47;
    --gold-light: #f1d38e;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f1d38e 50%, #b38b47 100%);
    --bg-white: #ffffff;
    --slate: #f8fafc;
    --text-main: #1a1a1a;
    --text-muted: #64748b;
    --radius: 16px; /* Matches landing.css */
    --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Reveal Animation (Shared Logic) */
.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ================= NAVIGATION (Matches Landing) ================= */
.nav {
    position: fixed;
    width: 100%; top: 0; left: 0;
    padding: 30px 8%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.nav.shrink {
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo { display: flex; align-items: center; text-decoration: none; font-weight: 700; color: var(--primary); font-family: 'Poppins'; }
.logo-icon { width: 35px; margin-right: 12px; }

.nav-actions a {
    margin-left: 30px; text-decoration: none;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    color: var(--text-main); transition: 0.3s;
}
.nav-actions a:hover { color: var(--gold); }

/* ================= REFINED LUXURY BUTTONS ================= */
.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f1d38e 50%, #b38b47 100%);
    color: white !important;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.5);
    filter: brightness(1.05);
}

.btn-outline {
    border: 1.5px solid var(--primary);
    padding: 12px 30px;
    border-radius: 4px;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}


/* ================= PAGE CONTENT ================= */
section { padding: 120px 8% 80px; }

h1 {
    font-family: 'Poppins';
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.global-warming-container, .carbon-footprint-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.global-warming-image img, .carbon-footprint-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: var(--transition);
}

.global-warming-image img:hover { transform: scale(1.02); }

/* Benefits List */
.benefits-impact-list { list-style: none; }
.benefits-impact-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
}
.benefits-impact-list li strong { color: var(--text-main); margin-right: 5px; }

/* ================= CARBON BARS ================= */
.carbon-bars { margin-top: 30px; }
.bar-item { margin-bottom: 25px; }
.bar-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--primary); }

.bar {
    width: 100%;
    height: 10px;
    background: #eef2f6;
    border-radius: 20px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0; /* Animated by JS */
    background: var(--gold-gradient);
    border-radius: 20px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= IMPACT CARDS ================= */
.impact-cards { background: var(--slate); }
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.impact-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.impact-card h2 { letter-spacing: 1px; font-size: 1.25rem; color: var(--primary); margin-bottom: 15px; }
.impact-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
    border-color: var(--gold-light);
}

/* ================= LIGHTBOX & OVERLAY ================= */
#ei-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.9);
    display: none; align-items: center; justify-content: center;
    z-index: 2000; padding: 40px;
}
#ei-lightbox.show { display: flex; }
#ei-lightbox-img { max-height: 90vh; max-width: 90vw; border-radius: 8px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }

/* ================= PERFECTLY CENTERED OVERLAY (LANDING STYLE) ================= */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff; /* Pure white luxury look */
    display: flex;
    align-items: center;     /* Vertical Center */
    justify-content: center; /* Horizontal Center */
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.overlay-content {
    display: flex;
    flex-direction: column; /* Stacks logo on top of text */
    align-items: center;    /* Ensures both children are centered horizontally */
    text-align: center;
}

.loading-logo {
    width: 110px;           
    height: auto;
    margin-bottom: 30px;    /* Generous space between logo and label */
    filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.2));
    animation: breathe 2s infinite ease-in-out;
}

.overlay-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #D4AF37;         /* Matches your gold accent */
    text-transform: uppercase;
    letter-spacing: 12px;
    
    /* THE FIX: text-indent offsets the extra spacing on the last letter 
       to ensure the text is mathematically centered */
    text-indent: 12px; 
    white-space: nowrap;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
}
/* ================= FOOTER (Matches Landing) ================= */
.site-footer {
    padding: 60px 8% 40px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.site-footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ================= MOBILE MENU ENGINE ================= */
@media (max-width: 900px) {
    .nav { padding: 15px 5%; }

    .nav-toggle { 
        display: flex !important; 
        flex-direction: column;
        gap: 5px;
        z-index: 2000; 
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary);
        transition: 0.3s;
    }

/* THE SLIDE DOWN MENU */
.nav-actions {
    /* Change display: flex to display: flex !important */
    display: flex !important; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    padding: 40px 0;
    z-index: 1500;
    
    /* This keeps it hidden until .active is added */
    transform: translateY(-100%); 
    opacity: 0;
    visibility: hidden; /* Added this */
    
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    pointer-events: none;
}

.nav-actions.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important; /* Forces it to show */
    pointer-events: auto !important;
}

    .nav-actions a {
/* This hides them initially for the 'slide up' effect */
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
/* THE FIX IS THESE THREE LINES */
        margin: 15px 0 !important; /* Forces vertical spacing and removes side margins */
        margin-left: 0 !important;  /* Explicitly kills the desktop 30px margin */
        width: auto;               /* Allows the button to wrap its text */
        max-width: 280px;
        text-align: center;
    }

/* This ensures the links actually fade in when the menu opens */
.nav-actions.active a {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.2s; /* Optional: gives a nice staggered feel */
    justify-content: center;
    align-items: center;
}

    /* HAMBURGER TO 'X' ANIMATION */
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* LAYOUT ADJUSTMENTS */
    .global-warming-container, .carbon-footprint-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    section { padding: 80px 5%; }
}