/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: #222;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0;
    position: relative;
    flex-wrap: wrap;
}

header h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #228B22; /* A fresh green for your brand */
}

/* Navigation */
.primary-navigation {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    background: transparent;
}

.primary-navigation a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
    color: #228B22;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 28px;
    height: 3px;
    background: #222;
    border-radius: 2px;
    transition: all 0.3s;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Hamburger animation when open */
.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    nav {
        grid-column: span 2;
    }

    .primary-navigation {
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0;
        z-index: 1000;
        margin-block-start: 0;
        margin-block-end: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition:
            max-height 0.4s cubic-bezier(0.4, 1.3, 0.5, 1),
            opacity 0.3s ease,
            padding 0.3s;
        display: flex;
    }

    .primary-navigation[data-visible="true"] {
        padding: 2rem 0;
        max-height: 500px; /* Large enough for all links */
        opacity: 1;
        transition:
            max-height 0.4s cubic-bezier(0.4, 1.3, 0.5, 1),
            opacity 0.3s ease,
            padding 0.3s;
    }

    .primary-navigation a {
        color: #222;
    }

    .primary-navigation a:hover,
    .primary-navigation a:focus {
        color: #228B22;
    }

    header .container {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        justify-content: space-between;
        align-items: center;
    }

    header h1 {
        text-align: left;
    }
}

/* Hero Section */
.hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("https://images.unsplash.com/photo-1615094401770-713fecd4695a?w=1920&h=1440&fit=crop")
        center/cover no-repeat;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    min-height: 55vh;
    display: flex;
    align-items: center;
    background-attachment: scroll; /* We'll animate position with JS */
    background-position: center center;
    background-size: cover;
    overflow: hidden;
    will-change: background-position;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #228B22;
    color: #fff;
    text-decoration: none;
    border-radius: 32px;   /* Increased from 5px */
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

.hero .btn:hover {
    background: #145214;
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 40px 0;
        min-height: 64vh;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Services */
.services {
    padding: 40px 0 30px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.services h2 {
    text-align: center;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.15rem;
    color: #222;
    position: relative;
    background: none;
}

.services h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2.5px;
    background: #228B22;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    padding: 16px 0 0 0;
}

.card {
    background: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    border: none;
}

.service-icon {
    font-size: 2.2rem;
    color: #228B22;
    margin-bottom: 0.5rem;
    display: block;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card p {
    color: #555;
    font-size: 0.97rem;
    letter-spacing: 0.2px;
}

.services::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 40% 40%, #228b2233 60%, transparent 100%);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.services::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: -80px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 60% 60%, #14521433 60%, transparent 100%);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.services > .container {
    position: relative;
    z-index: 1;
}

/* Gallery */
.gallery {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.15rem;
    color: #222;
    position: relative;
    background: none;
}

.gallery h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2.5px;
    background: #228B22;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery::before {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 40% 60%, #228b2233 60%, transparent 100%);
    opacity: 0.13;
    z-index: 0;
    pointer-events: none;
}

.gallery > .container {
    position: relative;
    z-index: 1;
}

/* About */
.about {
    padding: 60px 0;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.about h2 {
    text-align: center;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.15rem;
    color: #222;
    position: relative;
    background: none;
}

.about h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2.5px;
    background: #228B22;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.about p {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member img:hover {
    transform: translateY(-5px);
}

.team-member h3 {
    color: #228B22;
}

.team-member p {
    color: #666;
    font-size: 0.9rem;
}

@media screen and (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about::before {
    content: "";
    position: absolute;
    top: 10%;
    right: -100px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 60% 30%, #228b2233 60%, transparent 100%);
    opacity: 0.13;
    z-index: 0;
    pointer-events: none;
}

.about > .container {
    position: relative;
    z-index: 1;
}

/* Contact */
.contact {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.contact h2 {
    text-align: center;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.15rem;
    color: #222;
    position: relative;
    background: none;
}

.contact h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2.5px;
    background: #228B22;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    padding: 10px;
    background: #228B22;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: #145214;
}

#form-status {
    text-align: center;
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
    #contact-form {
        width: 100%;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        width: 100%;
        margin-bottom: 15px;
    }
}

.contact::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 60% 40%, #228b2233 60%, transparent 100%);
    opacity: 0.13;
    z-index: 0;
    pointer-events: none;
}

.contact > .container {
    position: relative;
    z-index: 1;
}

/* Typography */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 16px;
    }
}

/* Footer */
footer {
    background: #228B22;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: 0.98rem;
    letter-spacing: 0.5px;
    border-top: 2px solid #e0e0e0;
}

a {
    color: #228B22;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #145214;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(.4,1.3,.5,1), transform 0.8s cubic-bezier(.4,1.3,.5,1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}
