:root {
    --green: #264712;
    --brown: #5D2E18;
--accent: #B5532A;
--accent-hover: #9A4522;
    --bg: #faf9f6;
    --bg-alt: #f4f1ea;
    --text: #2b2a26;
    --off-white: #f4f1ea;
    --off-white-bright: #fffdf8;
    --off-white-dim: #d9d6cf;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 18px;
    line-height: 1;
    background: var(--bg);
    color: var(--text);
    margin: 0;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.02em;
}

h1, h2 {
    color: var(--green);
}

a {
    color: var(--green);
    text-decoration: underline;
}

/*------------------------------------*/
/* Header */

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 10px;
}

.header_cont1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.logo img {
    height: 5.5rem;
    width: auto;
    display: block;
}

.green_text_logo,
.wave_text_logo {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 50pt;
    line-height: 0.9;
}

.green_text_logo {
    color: var(--green);
}

.wave_text_logo {
    color: var(--brown);
}

.upper_text {
    display: flex;
    line-height: 1;
}

.lower_text {
    font-family: 'Oswald', sans-serif;
    font-size: 15pt;
    letter-spacing: 17px;
    margin: 0 0 0 3px;
    line-height: 1;
}


.title_link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}




/* Phone bar */
.top_bar {
    background: var(--green);
    text-align: right;
    padding: 6px 7%;
}

.top_bar a {
    color: var(--off-white-bright);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    display: inline-block;
    padding: 6px 0;
}

.top_bar a:hover {
    text-decoration: underline;
}

.cta_button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.cta_button:focus-visible,
.top_bar a:focus-visible {
    outline: 3px solid var(--off-white-bright);
    outline-offset: 3px;
}

/* Gold accent button: use on one or two key actions, like "Get a Free Quote" */
.cta_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 24px;
    border: 2px solid var(--accent);
    border-radius: 7px;
    background: var(--accent);
    color: var(--off-white-bright);
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
}

/* Button group + "or" */
.cta_group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.cta_or {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--off-white-bright);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Outlined "Call Us" button: light text on the dark hero */
.cta_button--secondary {
    background: var(--off-white-bright);
    border-color: var(--off-white-bright);
    color: var(--green);
}

.cta_button--secondary:hover {
    background: var(--off-white);
    border-color: var(--off-white);
}

/*------------------------------------*/
/* Sections */

.section_inner {
    width: 55%;
    margin: 0 auto;
}

/* Hero: full width, 40% of viewport height, image behind the text */
.hero {
    min-height: 70vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url("images/midascode-new-england-style-house-2826065.jpg") center / cover no-repeat;
    color: var(--off-white);
    display: flex;
    align-items: center;
}

/* Headings inside the hero need to stay light, not brand green */
.hero h1 {
    color: var(--off-white-bright);
}

.hero h1,
.hero p {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Plain section: same layout, no image */
.section {
    padding: 3rem 0;
}

/* Alternating backgrounds (hero counts as the first section) */
.section:nth-of-type(even) {
    background: var(--bg-alt);
}

/*------------------------------------*/
/* Service cards */

.service_cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.service_card {
    padding: 32px 24px;
    border-radius: 16px;
    color: var(--off-white);
    line-height: 1.5;
    background-image: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0) 45%,
        rgba(0, 0, 0, 0.18) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.10),
        0 8px 20px rgba(0, 0, 0, 0.14);
}

.service_card h3 {
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--off-white-bright);
    text-align: center;
}

.service_card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 1.05rem;
    color: var(--off-white-bright);
}

.service_card li {
    margin-bottom: 6px;
}

.service_card--lawn {
    background-color: var(--green);
}

.service_card--trimming {
    background-color: var(--brown);
}

.service_card--irrigation {
    background-color: #3F3D36;
}

.service_card--seasonal {
    background-color: #7A5A14;
}


/*------------------------------------*/
/* Footer */

.footer {
    background: var(--green);
    color: var(--off-white);
    line-height: 1.5;
}

.footer_inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 3rem 0 2rem;
}

.footer h3 {
    margin: 0 0 12px;
    color: var(--off-white-bright);
    font-size: 1.2rem;
}

.footer p {
    margin: 0 0 8px;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: var(--off-white-bright);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer a:focus-visible {
    outline: 3px solid var(--off-white-bright);
    outline-offset: 3px;
}

.footer_bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 16px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--off-white-dim);
}

.footer_bottom p {
    margin: 0;
}

/*------------------------------------*/
/* Contact form */

.form_intro {
    max-width: 60ch;
    line-height: 1.5;
    margin: 0 0 2rem;
}

.contact_form {
    max-width: 680px;
    line-height: 1.5;
}

.form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form_field {
    margin-bottom: 20px;
}

.form_field label,
.form_fieldset legend {
    display: block;
    margin-bottom: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--green);
}

.form_optional {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.9rem;
    letter-spacing: 0;
    color: #6b6a63;
}

.form_field input[type="text"],
.form_field input[type="tel"],
.form_field input[type="email"],
.form_field select,
.form_field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 2px solid var(--off-white-dim);
    border-radius: 7px;
    background: var(--off-white-bright);
    color: var(--text);
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
}

.form_field textarea {
    resize: vertical;
}

.form_field input:focus-visible,
.form_field select:focus-visible,
.form_field textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--green);
}

.form_fieldset {
    border: 0;
    padding: 0;
    margin-inline: 0;
}

.form_checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
}

.form_field .form_check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--text);
    cursor: pointer;
}

.form_check input {
    width: 20px;
    height: 20px;
    accent-color: var(--green);
}

.form_actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

button.cta_button {
    cursor: pointer;
}

.form_or {
    font-size: 1rem;
}

/* Spam trap: hidden from people */
.form_trap {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}





/*------------------------------------*/
/* Mobile */

@media (max-width: 768px) {

    .cta_group {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

    .section_inner {
        width: 90%;
    }

    .section {
        padding: 2rem 0;
    }

    .hero {
        min-height: 50vh;
        padding: 2rem 0;
    }

    h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2.1rem); }

    .header_cont1 {
        flex-direction: column;
        text-align: center;
    }

    .green_text_logo,
    .wave_text_logo {
        font-size: clamp(32pt, 11vw, 50pt);
    }

    .lower_text {
        font-size: clamp(11pt, 3.5vw, 15pt);
        letter-spacing: 0.35em;
    }

    .service_cards {
        grid-template-columns: 1fr;
    }
     
    .top_bar {
        text-align: center;
    }

        .footer_inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0 1.5rem;
    }

        .form_row,
    .form_checks {
        grid-template-columns: 1fr;
    }

    .form_actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}