@font-face {
    font-family: "Advent Pro";
    src: url("../fonts/AdventPro-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --max-w: 1100px;
    --accent: #2c7a3a;
    --accent-link: #5c5c5c;
    --text: #222;
    --muted: #666;
    --base-size: clamp(16px, 1.4vw + 0.5rem, 22px);
    --nav-gap: clamp(0px, 1.9vw - 6px, 24px);
    --neutral-font: system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: "Advent Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    font-size: var(--base-size);
    line-height: 1.45;
    background: #fff;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.site-header {
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.1rem;
    padding: .5rem 0;
    text-align: center;
}

.logo {
    max-width: 125px;
    height: auto;
    display: block;
}

.site-branding {
    margin-top: 0;
}

.site-title {
    font-size: 1.45rem;
    margin: 0;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.section-title {
    margin-top: 1.5rem;
    font-size: 1.6rem;
}

.main-nav ul {
    display: flex;
    gap: var(--nav-gap);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1.05rem;
    padding: .35rem .5rem;
    border-radius: 4px;
}

.main-nav a:hover {
    color: var(--accent);
    background: rgba(44, 122, 58, 0.05);
}

li.current-page a {
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
}

li.current-page a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 4%;
    width: 92%;
    height: 1px;
    background-color: rgba(195, 195, 195, 0.75);
    border-radius: 5px;
}

.hero {
    padding: 1.8rem 0 0;
}

.hero-heading {
    font-size: 2.1rem;
    margin: 0;
    font-weight: 700;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 1rem 0;
}

.service {
    border: 1px solid #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
}

.service-img {
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    background: #fff;
}

.service-img img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

.service h3 {
    font-size: 1.5rem;
    margin: .25rem 0;
    line-height: 1.15;
}

.service p {
    margin: 0;
    color: var(--muted);
}

p {
    margin: .35rem 0;
}

p a {
    color: var(--text);
    text-decoration: underline;
}

p a:hover {
    color: var(--accent-link);
}

h1,
h2,
h3,
h4 {
    margin: .25rem 0;
}

.site-footer {
    border-top: 1px solid #eee;
    margin-top: 1.5rem;
    padding: .4rem 0;
    background: #fafafa;
}

.footer-text {
    margin: 0;
    text-align: center;
    font-size: .7rem;
    color: var(--muted);
    font-family: var(--neutral-font);
}

.footer-text a {
    color: inherit;
    text-decoration: underline;

}

.break-if-needed {
    display: inline;
    white-space: normal;
}

.neutral-section {
    font-family: var(--neutral-font);
    font-size: 0.75rem;
}

.policy-section {
    margin-top: 1.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f5f5f5;
}

.policy-section:last-child {
    border-bottom: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    margin-top: 1.6rem;
}

.contact-form .form-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.contact-form .form-row label {
    width: 150px;
    min-width: 120px;
    line-height: 1.5;
}

.contact-form .form-row input,
.contact-form .form-row textarea {
    flex: 1;
    padding: 0.5rem;
    box-sizing: border-box;
}

.contact-form .form-row textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-form .submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-form .submit-row input[type="submit"] {
    flex: 0 0 auto;
    width: auto;
    padding: 0.4rem 0.55rem;
    cursor: pointer;
    font-size: 0.75rem;
}

.contact-form .required-text {
    color: var(--muted);
}

@media (max-width: 1024px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .main-nav ul {
        justify-content: flex-start;
    }

    .contact-form {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .contact-form .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: .5rem;
    }

    .contact-form .form-row label {
        width: 100%;
        min-width: 0;
        display: block;
        margin: 0;
        font-weight: 600;
    }

    .contact-form .form-row input,
    .contact-form .form-row textarea {
        width: 100%;
        padding: .75rem;
    }

    .contact-form .form-row textarea {
        height: 160px;
    }

    .contact-form .submit-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .contact-form .submit-row input[type="submit"] {
        padding: .3rem .6rem;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .contact-form .required-text {
        color: var(--muted);
    }
}

@media (max-width: 768px) {
    .service-img {
        display: block;
        height: auto;
        max-height: none;
        margin-bottom: 0.6rem;
    }

    .service-img img {
        width: 100%;
        max-height: 320px;
        width: auto;
        display: block;
        margin: 0 auto;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .about {
        display: none;
    }
}