/* ==========================================================================
   CSS Variables (Based on Letterhead Color Scheme)
   ========================================================================== */
:root {
    --primary-green: #155d36;     /* Dark green from letterhead footer/header lines */
    --secondary-green: #2fa155;   /* Lighter vibrant green accent */
    --light-green: #e9f5ed;       /* Very soft green background tint */
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --transition-speed: 0.3s;
    --shadow-light: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 20px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

body {
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light-green {
    background-color: var(--light-green);
}

.bg-dark-green {
    background-color: var(--primary-green);
    color: var(--text-light);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.bg-dark-green h2, .bg-dark-green p {
    color: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title p {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--text-light);
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--secondary-green);
    color: var(--text-light);
    border-color: var(--secondary-green);
    transform: translateY(-3px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: auto;
    transition: transform var(--transition-speed) ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-green);
    transition: width var(--transition-speed) ease;
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

/* Dropdown styling */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-white);
    min-width: 160px;
    box-shadow: var(--shadow-hover);
    z-index: 1;
    border-top: 3px solid var(--secondary-green);
    border-radius: 0 0 5px 5px;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    display: block;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(21, 93, 54, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border-bottom: 4px solid var(--secondary-green);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed) ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-card img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Strict 16:9 ratio requirement */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-info {
    padding: 25px;
    position: relative;
    z-index: 2;
    background: var(--bg-white);
}

/* ==========================================================================
   Info Section
   ========================================================================== */
.info-content-box {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    border-left: 6px solid var(--primary-green);
}

.info-content-box p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   Lead Form Section
   ========================================================================== */
.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.custom-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
}

.input-group {
    margin-bottom: 20px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 5px rgba(47, 161, 85, 0.3);
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #0d3b22; /* Even darker green for footer base */
    color: var(--light-green);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes logo white if it's transparent PNG */
}

.site-footer h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-green);
}

.site-footer ul li {
    margin-bottom: 12px;
}

.site-footer a:hover {
    color: var(--secondary-green);
    padding-left: 5px;
}

.contact-col p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg-white);
        padding: 20px 0;
        box-shadow: var(--shadow-hover);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        display: none;
        padding-left: 20px;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}