/* General Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Variables */
:root {
    --primary-dark-green: #0A3D2F;
    --secondary-gold: #B8860B;
    --accent-light-green: #3D8B6C;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA; /* Old light background */
    --bg-darker: #F1F3F5; /* NEW darker background */
    --white: #ffffff;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-light-green);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark-green);
}

/* ===== UPDATED "BLUEPRINT GRID" BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--bg-darker); /* CHANGED to darker gray */
    
    /* Grid lines are now fainter to look cleaner on the darker bg */
    background-image: 
        linear-gradient(rgba(10, 61, 47, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 61, 47, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
}
/* =========================================== */

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* We keep the slideDown animation for the header */
    animation: slideDown 0.5s ease-out; 
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 35px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-dark-green);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem 5rem;
    text-align: center;
    /* REMOVED old animation */
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--text-dark);
    margin-bottom: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero .highlight {
    color: var(--secondary-gold);
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: var(--primary-dark-green);
    color: var(--white);
    padding: 1.1rem 3rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(10, 61, 47, 0.3);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--accent-light-green);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(10, 61, 47, 0.4);
}

/* Sections General */
section {
    padding: 5rem 2rem;
}
.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-dark-green);
    margin-bottom: 3.5rem;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background-color: var(--bg-light); /* Kept this light for contrast */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.8rem;
    border-radius: 0;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    /* REMOVED old animation */
    border-left: 5px solid var(--secondary-gold);
    display: flex;
    flex-direction: column;
}

/* REMOVED old animation-delay rules */

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: var(--primary-dark-green);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    font-size: 2rem;
    color: var(--secondary-gold);
    box-shadow: 0 4px 10px rgba(10, 61, 47, 0.2);
    transition: transform 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-dark-green);
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    flex-grow: 1;
}


/* Contact Form */
.contact {
    background-color: var(--white);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3.5rem;
    border-radius: 0;
    box-shadow: var(--shadow-hover);
    border-top: 5px solid var(--primary-dark-green);
}

.form-group {
    margin-bottom: 1.8rem;
    /* REMOVED old animation */
}
/* REMOVED old animation-delay rules */


.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.1rem;
    border: 1px solid #DCE1E6;
    border-radius: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-dark-green);
    box-shadow: 0 0 0 3px rgba(10, 61, 47, 0.1);
    background-color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-dark-green);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(10, 61, 47, 0.25);
}

.submit-btn:hover {
    background: var(--accent-light-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 61, 47, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--primary-dark-green);
    color: var(--white);
    padding: 3.5rem 2rem;
    text-align: center;
    border-top: 5px solid var(--secondary-gold);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-gold);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.15rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 2rem;
    }
    .form-container {
        padding: 2.5rem;
    }
    footer {
        padding: 2.5rem 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: none;
    text-align: center;
    margin-top: 1.5rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-gold);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    display: none;
    background: var(--accent-light-green);
    color: white;
    padding: 1.2rem;
    border-radius: 0;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
}


/* Cookie Banner CSS */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-dark-green);
    color: var(--white);
    padding: 1.5rem 2rem;
    z-index: 2000;
    display: none;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    border-top: 3px solid var(--secondary-gold);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    display: flex;
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    color: var(--white);
    font-weight: 300;
}

.cookie-banner a {
    color: var(--secondary-gold);
    font-weight: 500;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--white);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    background: var(--secondary-gold);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    border-radius: 0;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: var(--white);
    color: var(--secondary-gold);
}

.cookie-btn-decline {
    background: transparent;
    border: 2px solid var(--secondary-gold);
    color: var(--secondary-gold);
}

.cookie-btn-decline:hover {
    background: var(--secondary-gold);
    color: var(--white);
}

@media (max-width: 768px) {
    .cookie-banner,
    .cookie-banner.show {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ===== NEW SCROLL-TRIGGERED TRANSITIONS ===== */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for service cards and form elements */
.service-card, .form-group {
    transition-delay: 0s; /* default */
}

/* Re-add staggered delays using transition-delay */
.service-card:nth-child(1), .form-group:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2), .form-group:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3), .form-group:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4), .form-group:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5), .form-group:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }
/* =========================================== */