﻿/* Professional Color Palette & Variables */
:root {
    --brand: #2E7D32; /* Primary Brand Green */
    --brand-dark: #1B5E20; /* Darker green for contrast/hover */
    --accent: #1A73E8;
    --muted: #6B7280; /* Neutral grey for secondary text */
    --text-dark: #1F2937; /* Very dark grey for main body text */
    --bg: #F4F6F9; /* Light background for separation from white cards */
    --card: #ffffff; /* Pure white for cards/sections */
    --container-width: 1200px;
    --radius: 10px;
    --shadow: 0 4px 12px rgba(31, 41, 55, 0.08), 0 1px 3px rgba(31, 41, 55, 0.04);
    --header-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    --compact-margin: 40px;
}

* {
    box-sizing: border-box
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--bg);
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 400
}

h1, h2, h3, h4, h5 {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    color: #5A6473; /* Lighter dark grey for headers */
    line-height: 1.2;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--brand-dark);
    }

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* Container for compact layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- LOGO SIZING --- */
.header {
    min-height: 130px !important;
    padding: 25px 0 !important;
    align-items: center;
}

    .header .container, .header-inner {
        height: auto !important;
    }

    .header .logo a img {
        width: 280px !important;
        max-width: none !important;
        height: auto !important;
        transition: width 0.3s ease;
    }

.footer-col img {
    width: 220px !important;
    height: auto !important;
    margin-bottom: 25px;
}

.header .logo {
    padding: 0 !important;
    margin: 0 !important;
}

    .header .logo a {
        display: inline-block;
        padding: 0;
    }


/* Header */
header {
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--header-shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.primary {
    display: flex;
    align-items: center;
    gap: 20px;
}

    nav.primary a:not(.btn) {
        color: var(--text-dark);
        font-weight: 600;
        font-size: 15px;
        padding: 5px 0;
        position: relative;
    }

        nav.primary a:not(.btn)::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--brand);
            transition: width 0.3s ease;
        }

        nav.primary a:not(.btn):hover::after {
            width: 100%;
        }

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    display: inline-block;
    text-align: center;
    border: none; /* ASP Button needs this */
    cursor: pointer;
}

    .btn:hover {
        transform: translateY(-1px);
    }

/* Button: Primary Green */
.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

    .btn-primary:hover {
        background: var(--brand-dark);
        box-shadow: 0 6px 14px rgba(46, 125, 50, 0.4);
        color: #000;
    }

/* Button: Outline (Used for the first header button) */
.btn-outline {
    border: 2px solid var(--brand);
    color: var(--brand);
    background: transparent;
}

    .btn-outline:hover {
        background: rgba(46, 125, 50, 0.05);
    }

/* --- PAGE HERO STYLING --- */

.page-hero-wrapper {
    position: relative;
    padding: 120px 0;
    color: white;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .page-hero-wrapper::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.65); /* Darker overlay for text contrast */
    }

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

    .page-hero-content h2 {
        font-size: 40px;
        color: #fff;
        margin-bottom: 10px;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    .page-hero-content .breadcrumb-wrap {
        margin-top: 20px;
    }

    .page-hero-content .breadcrumb {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        font-size: 14px;
    }

        .page-hero-content .breadcrumb li {
            color: rgba(255, 255, 255, 0.7);
        }

            .page-hero-content .breadcrumb li a {
                color: rgba(255, 255, 255, 0.9);
                text-decoration: underline;
            }

                .page-hero-content .breadcrumb li a.active {
                    color: #fff;
                    text-decoration: none;
                    font-weight: 600;
                }

/* Main Content Sections */
section.module {
    padding: 80px 0;
    background: var(--card); /* Default to white background */
}

.module.alt-bg {
    background: var(--bg); /* Use light grey background for separation */
}

.module .section-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

    .module .section-intro h2 {
        font-size: 40px;
        color: #5A6473;
        margin-bottom: 20px;
    }

    .module .section-intro p {
        font-size: 18px;
        color: var(--muted);
    }

/* Contact Info Block */
.call-to-contact {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

    .call-to-contact .row {
        display: flex;
        gap: 20px;
    }

    .call-to-contact h5 {
        color: var(--brand);
        font-size: 16px;
        margin-bottom: 10px;
        text-transform: uppercase;
        font-weight: 700;
    }

    .call-to-contact h4 {
        font-size: 24px;
        font-weight: 600;
        color: var(--text-dark);
    }

.mt-sm-25 {
    margin-top: 0; /* Reset for larger screens */
}


/* Form Styling */
.contact-form-wrap {
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card);
}

    .contact-form-wrap h5 {
        font-size: 28px;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 40px;
    }

/* FIX: Injecting minimal grid rules to ensure column classes work */
.row {
    display: flex;
    flex-wrap: wrap;
    /* Added negative margins to correctly handle column padding/gutters */
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4 {
    position: relative;
    width: 100%; /* Default to full width on mobile */
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%; /* 1/3 of the row width */
        max-width: 33.333333%;
    }
}

/* End FIX: Grid rules */

.contact-from-content .row {
    /* Removed flex and flex-wrap here, now using the global .row fix above */
    margin-bottom: 20px;
}

.form-input-item {
    margin-bottom: 25px;
}

    .form-input-item label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--muted);
        font-size: 14px;
    }

    /* Ensure all form controls are styled and sized correctly (including ASP.NET rendered elements) */
    .form-input-item input[type="text"],
    .form-input-item input[type="email"],
    .form-input-item input[type="datetime-local"],
    .form-input-item select,
    .form-input-item textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #d1d5db;
        border-radius: 5px;
        font-size: 16px;
        color: var(--text-dark);
        transition: border-color 0.3s;
        box-sizing: border-box;
    }

        .form-input-item input:focus,
        .form-input-item select:focus,
        .form-input-item textarea:focus {
            border-color: var(--brand);
            outline: none;
            box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
        }

    .form-input-item textarea {
        min-height: 100px;
        resize: vertical;
    }

    .form-input-item .btn {
        margin-top: 15px;
        width: 100%;
    }

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius);
    color: var(--text-dark);
    font-weight: 600;
    background: var(--bg);
    border: 1px solid #d1d5db;
}

/* --- FOOTER STYLING --- */

footer {
    padding: 50px 0;
    background: #C8CDD1; /* Medium grey footer */
    color: var(--text-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: #5A6473; /* Softer dark grey title */
    margin-bottom: 20px;
    font-size: 18px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

.footer-col p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none; /* remove default list style */
    padding: 0;
}

    .footer-links a {
        color: #525A65; /* Darker link color */
        font-size: 14px;
    }

        .footer-links a:hover {
            color: var(--brand);
        }

.social-links {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

    .social-links a i {
        font-size: 20px;
        color: #525A65;
    }

    .social-links a:hover i {
        color: var(--brand);
    }

/* Responsive Adjustments (Simplified for this file) */
@media(max-width:980px) {
    .header-inner nav.primary a:not(.btn):not(:nth-child(5)) {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col:first-child {
        grid-column: span 2;
    }
}

@media(max-width:768px) {
    .page-hero-wrapper {
        min-height: 350px;
        padding: 80px 0;
    }

    .page-hero-content h2 {
        font-size: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    /* Mobile Nav Fix */
    .header-inner nav.primary {
        gap: 10px;
    }

    .header .logo a img {
        width: 180px !important;
    }

    .contact-form-wrap {
        padding: 30px;
    }

    .call-to-contact .row {
        flex-direction: column;
    }

    .mt-sm-25 {
        margin-top: 25px;
    }
}