* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base accessibility and mobile navigation classes */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Hide mobile elements by default */
.close-panel,
#mobile-nav-title {
    display: none;
}

body {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    background: linear-gradient(135deg, #197813 0%, #197813 100%);
    color: #333;
    line-height: 1.6;
}

.header {
    background: #197813;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.logo h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 350px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 2rem;
}

/* Hamburger button (hidden on desktop) */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-box {
    width: 36px;
    height: 22px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 36px;
    height: 4px;
    background-color: #fff;
    border-radius: 4px;
    position: absolute;
    left: 0;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.hamburger-inner { top: 9px; }
.hamburger-inner::before { content: '' ; top: -9px; }
.hamburger-inner::after  { content: '' ; top: 9px; }

/* Main nav container for mobile toggle */
.main-nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    color: #ffd700;
}

nav a.active {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.hero {
    background: linear-gradient(rgba(25, 120, 19, 0.8), rgba(25, 120, 19, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23197813" width="1200" height="600"/><path fill="%23197813" d="M0 300 Q 300 250 600 300 T 1200 300 V 600 H 0 Z"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    margin-top: 106px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.cta-button {
    background: #ffffff;
    color: #197813;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.cta-button:hover {
    background: #145f0f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.services {
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #ffd700;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #197813 0%, #197813 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #197813;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #555;
    line-height: 1.8;
}

.features {
    background: linear-gradient(135deg, #197813 0%, #197813 100%);
    color: #fff;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item h4 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cta-section {
    background: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #197813;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.footer {
    background: #197813;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.footer p {
    opacity: 0.8;
}

.about-section {
    background: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.team-photo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #197813 0%, #197813 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffd700;
    border: 4px solid #ffd700;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: #197813;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: #ffd700;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.team-member p {
    color: #555;
    line-height: 1.8;
    text-align: left;
}

.help-section {
    background: linear-gradient(135deg, #197813 0%, #197813 100%);
    color: #fff;
}

.help-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffd700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    background: #ffd700;
    color: #197813;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.help-contact {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.help-contact a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.help-contact a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff6b6b;
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    /* make header-content relative so hamburger can be absolutely positioned */
    /* keep header items in a row on mobile so hamburger sits to the right of the logo */
    .header-content {
        position: relative;
        width: 100%;
        align-items: center;
        flex-direction: row; /* keep logo left and hamburger right */
        justify-content: space-between;
        padding: 0 1rem;
    }

    /* show hamburger and place it inline on the right (no overlap) */
    .hamburger {
        display: block;
        position: relative;
        right: auto;
        top: auto;
        margin-left: auto;
        z-index: 1200;
    }

    /* mobile nav: full-screen overlay that slides down */
    /* overlay backdrop */
    .main-nav {
        position: fixed;
        inset: 0; /* left:0; right:0; top:0; bottom:0 */
        display: block;
        background: rgba(0,0,0,0.35);
        transform: translateX(100%); /* hidden by default (off-screen to right) */
        transition: transform 0.32s ease-in-out;
        z-index: 1300; /* above header and hamburger */
        pointer-events: none; /* disable clicks when closed */
    }

    /* panel that slides in from the right */
    .nav-panel {
        position: absolute;
        right: 0;
        top: 0;
        height: 100vh;
        /* narrower panel for a slimmer mobile menu */
        width: min(84vw, 250px);
        background: #fff;
        color: #222;
        box-shadow: -8px 0 30px rgba(0,0,0,0.25);
        transform: translateX(0); /* panel sits at right inside the overlay */
        display: flex;
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        gap: 1.5rem;
    }

    /* when nav is open (body class), show overlay and slide panel in */
    body.nav-open .main-nav {
        transform: translateX(0);
        pointer-events: auto; /* allow interactions */
    }

    /* animate hamburger into an X when nav open */
    body.nav-open .hamburger-inner {
        transform: rotate(45deg);
        top: 9px;
    }
    body.nav-open .hamburger-inner::before {
        transform: rotate(-90deg);
        top: 0;
    }
    body.nav-open .hamburger-inner::after {
        opacity: 0;
    }

    /* shrink the logo on small screens to avoid overlap with controls */
    .logo-icon {
        width: 160px;
        height: 60px;
    }

    /* close button inside the panel */
    .close-panel {
        display: inline-grid !important;
        background: transparent;
        border: 2px solid #0b6b3a;
        color: #0b6b3a;
        width: 48px;
        height: 48px;
        border-radius: 6px;
        font-size: 22px;
        line-height: 1;
        place-items: center;
        margin-left: auto;
        cursor: pointer;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 0.5rem;
    }

    .nav-links a {
        color: #197813;
        text-decoration: none;
        font-size: 1.4rem;
        font-weight: 600;
    }

    /* End of mobile nav styles */

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
}