/*
Theme Name: EVSWA Wind Recycling
Description: Custom theme for the Estancia Valley Wind Blade Recycling Facility.
Author: Earl Wyatt
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Montserrat:wght@800&display=swap');

:root {
    --primary-accent: #6B9071;
    --text-light: #E3EED4;
    --glass-bg: rgba(15, 42, 29, 0.4);
    --glass-border: rgba(174, 195, 176, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    background-color: #0F2A1D;
    overflow-x: hidden;
}

/* ... Paste the rest of your CSS from the <style> tag here ... */
/* --- GLOBAL TYPOGRAPHY RESTORE --- */
p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Ensure the very last paragraph in a container doesn't create unwanted extra space at the bottom */
p:last-child {
    margin-bottom: 0;
}

/* Restore spacing for lists generated in Gutenberg */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}


/* Image Background Layer (For interior pages) */
.layer-bg-image {
    position: absolute;
    top: -2%; left: -2%; width: 104%; height: 104%; 
    object-fit: cover; 
    z-index: 1;
    transition: transform 0.1s ease-out;
}

 /* --- GLOBAL STYLES --- */
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Montserrat:wght@800&display=swap');

        :root {
            /* NEW GREEN PALETTE */
            --primary-accent: #6B9071;
            --text-light: #E3EED4;
            --glass-bg: rgba(15, 42, 29, 0.4); /* #0F2A1D with 40% opacity */
            --glass-border: rgba(174, 195, 176, 0.25); /* #AEC3B0 with 25% opacity */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body, html {
            height: 100%;
            font-family: 'Inter', sans-serif;
            color: var(--text-light);
            background-color: #0F2A1D; /* Replaced dark grey with darkest green */
            overflow-x: hidden;
        }

        a {
            color: var(--text-light);
            text-decoration: none;
            transition: opacity 0.2s;
        }

        a:hover {
            opacity: 0.7;
			color:#5dd62c;
        }

        /* --- LAYERS --- */
        .wrapper {
            position: relative;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* 1. Video Background Layer */
        .layer-bg-video {
            position: absolute;
            top: -2%; left: -2%; width: 104%; height: 104%; 
            object-fit: cover; 
            z-index: 1;
            transition: transform 0.1s ease-out;
        }

        /* Dark Gradient Overlay - Now tinted with #0F2A1D */
        .layer-bg-overlay {
			position: absolute;
			top: -2%;
			left: -2%;
			width: 104%;
			height: 104%;
			background: linear-gradient(to bottom, rgba(15, 42, 29, 0.1) 0%, rgba(85, 42, 29, 0.25) 100%);
			z-index: 1;
			pointer-events: none;
			transition: transform 0.1s ease-out;
		}

        /* 2. Giant Typography Layer */
        .layer-text {
            position: absolute;
            top: 25%;
            width: 100%;
            text-align: center;
            font-family: 'Montserrat', sans-serif;
            font-size: clamp(4rem, 12vw, 15rem);
            font-weight: 800;
            line-height: 0.85;
            color: rgba(227, 238, 212, 0.85); /* #E3EED4 with 85% opacity */
            z-index: 2;
            pointer-events: none;
            transition: transform 0.1s ease-out;
            letter-spacing: -2px;
        }

        /* 3. UI Layer (Nav, Glass Card, Footer) */
        .layer-ui {
            position: relative;
            z-index: 3;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            padding: 2rem;
        }

        /* --- NAVIGATION --- */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 2rem;
        }

        .logo-container {
            flex-shrink: 0;
            padding-right: 2rem;
        }

        .logo-img {
            max-height: 60px;
            width: auto;
            display: block;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            font-size: 0.9rem;
        }

        .btn-primary {
            background-color: var(--primary-accent);
            color: #0F2A1D; /* Dark text for contrast against the medium green button */
            padding: 10px 24px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: background-color 0.2s;
        }
        
        .btn-primary:hover {
            background-color: #AEC3B0; /* Hover state uses the lighter green */
        }

        .top-tagline {
            text-align: center;
            font-size: 0.8rem;
            letter-spacing: 1px;
            opacity: 0.8;
            margin-bottom: auto;
            text-transform: uppercase;
            color: #AEC3B0; /* Subtle green for the tagline */
        }

        /* --- GLASSMORPHISM CARD --- */
        main {
            flex-grow: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 4rem 0;
        }

        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 2.5rem;
            width: 100%;
            max-width: 850px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 2rem;
            align-items: center;
        }

        .card-header {
            grid-column: 1 / -1;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 8px;
            opacity: 0.9;
            color: #AEC3B0;
        }

        .card-image {
            width: 100%;
            height: 340px;
            border-radius: 12px;
            object-fit: cover;
        }

        .card-content h2 {
            font-size: 2.1rem;
            margin-bottom: 1rem;
            line-height: 1.1;
        }

        .card-content p {
            font-size: 0.85rem;
            line-height: 1.6;
            opacity: 0.9;
            margin-bottom: 1rem;
        }

        .card-content .highlight {
            font-weight: 600;
            color: #fff; /* Keeping white here makes it pop nicely against the green */
            opacity: 1;
        }

        .card-buttons {
            grid-column: 1 / -1;
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 1rem;
        }

        .btn-glass {
            background: rgba(227, 238, 212, 0.85); /* #E3EED4 with opacity */
            color: #0F2A1D; /* Darkest green text */
            padding: 10px 20px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.85rem;
            border: none;
            cursor: pointer;
            transition: background 0.2s;
        }

        .btn-glass:hover {
            background: #fff;
        }

        .text-link {
            grid-column: 1 / -1;
            text-align: center;
            font-size: 0.9rem;
            text-decoration: underline;
            margin-top: 1rem;
            display: block;
            font-weight: 600;
            color: var(--text-light);
        }

        /* --- FOOTER --- */
        footer {
            display: grid;
            grid-template-columns: 1fr 2fr 2fr 1fr;
            gap: 2rem;
            font-size: 0.75rem;
            opacity: 0.8;
            border-top: 1px solid var(--glass-border);
            padding-top: 2rem;
        }

        .footer-map {
            width: 100px;
            height: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0.8;
        }

        .footer-links ul {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .bottom-bar {
            grid-column: 1 / -1;
            display: flex;
            justify-content: space-between;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid var(--glass-border);
        }

        /* --- RESPONSIVE DESIGN (MOBILE) --- */
        @media (max-width: 850px) {
            .layer-text {
                top: 15%;
            }

            .logo-container {
                padding-right: 0;
                margin-bottom: 1rem;
            }

            .logo-img {
                max-height: 50px;
            }

            header {
                flex-direction: column;
                align-items: center;
            }

            .nav-links {
                display: none; 
            }

            .glass-card {
                grid-template-columns: 1fr;
                padding: 1.5rem;
            }

            .card-image {
                height: 200px;
            }

            footer {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 500px) {
            footer {
                grid-template-columns: 1fr;
            }
            .bottom-bar {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
        }
		
		
		
		
		/* WordPress Menu Overrides */
			.header-menu-list {
				display: flex;
				gap: 2rem;
				list-style: none;
				margin: 0;
				padding: 0;
			}

			.footer-menu-list {
				list-style: none;
				margin: 0;
				padding: 0;
			}

			.footer-menu-list li {
				margin-bottom: 0.5rem;
			}
			
			
			
/* --- HOMEPAGE FEATURE GRID --- */

/* 1. Grid Container */
.homepage-feature-grid {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center; /* Centers the small boxes neatly */
    gap: 1.5rem; /* Slightly tighter gap for smaller boxes */
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* 2. Individual Feature Card */
.feature-card {
    background: rgba(240, 240, 240, .5);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem; /* Reduced from 2.5rem so it doesn't eat up the small width */
    flex: 0 1 220px; /* 0 = don't stretch, 1 = shrink if needed, 220px = base width */
    max-width: 220px; /* Hard cap on the size */
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 3. Icons */
.feature-icon {
    width: 32px; /* Scaled down from 48px to match the smaller box */
    height: 32px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

/* 4. Typography inside cards */
.feature-title {
    font-size: 1.1rem; /* Scaled down from 1.5rem */
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #476A30; 
    line-height: 1.2;
}

.feature-desc {
    font-size: 0.8rem; /* Scaled down text to fit the tight width */
    line-height: 1.5;
   /* color: #0F2A1D !important;  */
	color: whitesmoke;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

/* 5. Explore Link */
.feature-link {
    color: var(--primary-accent) !important;
    font-weight: 600;
    font-size: 0.85rem; /* Scaled down link */
    transition: color 0.2s;
    margin-top: auto; 
}

.feature-link:hover {
    color: #5dd62c !important;
}

/* RESPONSIVE FIXES */
@media (max-width: 850px) {
    .homepage-feature-grid {
        flex-direction: column;
        align-items: center; /* Center them on mobile */
    }
    .feature-card {
        width: 100%;
        max-width: 300px; /* Lets them breathe slightly more on tiny screens */
    }
}


/* --- METRICS STAT GRID --- */

.stat-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 3rem 0; /* Gives it breathing room above and below */
    width: 100%;
}

.stat-card {
    background: rgba(240, 240, 240, .5);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1 1 140px; /* Reduced from 200px so all 4 fit on one line */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stat-number {
    color: #476A30;  
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.stat-text {
    color: #333333; /* Dark gray for high readability */
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    margin: 0;
}

/* Responsive adjustments for the stat grid */
@media (max-width: 850px) {
    .stat-card {
        flex: 1 1 calc(50% - 1.5rem); /* Drops to 2-across on medium screens */
    }
}

@media (max-width: 500px) {
    .stat-card {
        flex: 1 1 100%; /* Drops to 1-across on tiny mobile screens */
    }
}

/* --- CTA BANNER --- */
.cta-banner {
    background: rgba(240, 240, 240, .5);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem; /* Gives space between the cards above it and this banner */
    width: 100%;
}

.cta-text {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 !important; /* Overrides the global paragraph margin so it centers perfectly */
}


.cta-text strong{    color: #476A30; }

.cta-button {
    background: transparent;
    border: 1px solid #C2C8C4; /* Soft grayish border to match the screenshot */
    color: #0F2A1D; /* Dark green text */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 8px; /* Slightly squared off corners compared to your primary buttons */
    text-decoration: none;
    white-space: nowrap; /* Ensures the button text doesn't wrap to two lines */
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        align-items: flex-start; /* Aligns text and button to the left on small screens */
        gap: 1.5rem;
    }
}


/* --- MOBILE HEADER OVERRIDE --- */
@media (max-width: 768px) {
    /* Stack the header elements */
    header {
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        height: auto; /* Overrides any fixed height */
    }
    
    /* Force the navigation to show and take full width */
    .nav-links {
        display: block !important; 
        width: 100%;
    }
    
    /* Stack the actual list items */
    .header-menu-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Make the button full-width for easy tapping */
    header .btn-primary {
        width: 100%;
        text-align: center;
        display: block;
    }
}