﻿/* --- CSS Variables for Easy Theming --- */
:root {
    --primary-color: #2b5c46; 
    --secondary-color: #e67e22; 
    --text-dark: #333333;
    --text-light: #f4f4f9;
    --bg-light: #ffffff;
    --bg-offwhite: #f8f9fa;
    
    /* Updated Fonts */
    --font-main: 'Open Sans', sans-serif; /* Clean font for small reading */
    --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; /* Refined display font inspired by the wordmark */
}
/* --- Global Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-offwhite);
    line-height: 1.6;
}

/* --- Typography & Links --- */
a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

/* --- Navigation Header (Flexbox) --- */
.site-header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* --- Overlapping / Straddling Logo --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative; 
    z-index: 1002; /* Ensures the logo stays visually above the hero video overlay */
    max-width: 100%;
    min-width: 0;
}

.nav-logo-img {
    height: 150px; /* Increased significantly to serve as a strong anchor */
    width: auto;
    margin-right: 20px; /* Pushes the text slightly further away to let the larger logo breathe */
    margin-top: 5px; /* Pulls the logo up closer to the very top edge of the screen */
    margin-bottom: -75px; /* Maintains the exact 50/50 straddle over the video */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6)); /* Made the shadow slightly darker to help it pop against the video */
}

.nav-title-img {
    max-height: 90px; /* Keeps the wordmark contained inside the menu bar */
    width: auto;      /* Prevents the image from stretching or distorting */
    max-width: min(430px, 55vw);
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); /* Adds a very soft shadow to make it pop off the white background */
}
.text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.menu-toggle {
    display: none;
}

/* --- Hero Section with Background Video --- */
.hero {
    position: relative;
    color: var(--text-light);
    text-align: center;
    padding: 8rem 2rem; /* Increased padding slightly for a larger cinematic feel */
    overflow: hidden; /* Keeps the video from bleeding outside the section */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Ensures the video area is always reasonably tall */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1; /* Pushes the video to the very back */
    object-fit: cover; /* Forces the video to fill the space without stretching */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 92, 70, 0.6); /* Uses your primary green color with 60% transparency */
    z-index: 2; /* Sits between the video and the text */
}

.hero-content {
    position: relative;
    z-index: 3; /* Prings the text and button to the very front */
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Helps text pop off the screen */
}

.hero p {
    font-size: 1.2rem;
    margin: 0 auto 2rem auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
/* --- Content Wrapper & Grid Section --- */
.content-wrapper {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* THE MAGIC RESPONSIVE GRID */
.grid-container {
    display: grid;
    /* This automatically creates new columns if there is at least 300px of space, otherwise it stacks them */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    width: 100%;
    /* Replace background-color with actual images using background-image or an <img> tag */
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-link {
    display: inline-block;
    margin-top: 0.25rem;
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 0.7rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 3px 5px rgba(0,0,0,0.18);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.card-link:hover {
    background-color: #1f4433;
    color: var(--bg-light);
    transform: translateY(-2px);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.card-actions .card-link {
    margin-top: 0;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* --- Mobile Nav Media Query --- */
@media (max-width: 768px) {
    .nav-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        overflow: visible;
    }

    .logo {
        justify-content: flex-start;
        width: 100%;
    }

    .nav-logo-img {
        height: 86px;
        margin-right: 8px;
        margin-top: 0;
        margin-bottom: -28px;
        flex: 0 0 auto;
    }

    .nav-title-img {
        max-height: 58px;
        max-width: calc(100% - 98px);
    }

    .menu-toggle {
        align-self: center;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        background-color: var(--primary-color);
        border: 0;
        border-radius: 5px;
        box-shadow: 0 3px 5px rgba(0,0,0,0.18);
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 0 auto;
        background-color: var(--bg-light);
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
    }

    .main-nav.open {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding-top: 0.5rem;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 0.85rem 1rem;
        background-color: var(--bg-offwhite);
        border-top: 1px solid rgba(43, 92, 70, 0.14);
        color: var(--text-dark);
    }

    .main-nav a:hover,
    .main-nav a.active {
        background-color: rgba(43, 92, 70, 0.08);
    }
}
/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--secondary-color); /* Pulls that warm orange accent */
    color: var(--bg-light); /* Keeps the text bright white */
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4); /* Helps it stand out from the video */
}

.btn:hover {
    background-color: #d67118;
    color: var(--bg-light);
    transform: translateY(-2px); /* Gives it a nice little lift when clicked */
}
