:root {
    --primary-color: #006633;
    /* Deep Emerald Green from original */
    --secondary-color: #004d26;
    /* Darker shade of primary */
    --accent-color: #FED852;
    /* Gold/Brass from original */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-unit);
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.grid {
    display: grid;
    gap: var(--spacing-unit);
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

/* Navigation */
nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 4rem 1rem;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Image Gallery */
.gallery {
    padding: 4rem 0;
    background-color: var(--white);
    text-align: center;
}

.gallery-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-grid img {
    height: 150px;
    width: auto;
    object-fit: contain;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
    background: #fff;
}

/* Partners */
.partners {
    padding: 2rem 0;
    text-align: center;
}

.partners-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    opacity: 0.7;
}

.partners-grid img {
    max-height: 50px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partners-grid img:hover {
    filter: grayscale(0%);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

footer a {
    color: #ccc;
    text-decoration: underline;
}

footer a:hover {
    color: var(--accent-color);
}

/* Contact Page specific */
.contact-section {
    padding: 4rem 0;
}

.contact-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 51, 0.2);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.submit-btn:hover:not(:disabled) {
    background-color: var(--secondary-color);
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* keep nav horizontal on mobile */
    nav ul {
        margin-top: 0.5rem;
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    nav a {
        /* Dynamic font size: scales between 1rem and 1.2rem based on viewport width */
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        padding: 0.5rem 0;
        white-space: nowrap;
        /* Prevent line breaks within items */
    }

    .hero h2 {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}