:root {
    color-scheme: light;
    --ink: #172a24;
    --muted: #465a51;
    --green: #26533c;
    --green-dark: #173d2c;
    --paper: #f7f6f0;
    --line: #dce4dc;
}

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

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

.page-width {
    width: min(1120px, calc(100% - 64px));
    margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--line); }

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    padding-block: 12px;
}

.wordmark {
    display: inline-grid;
    gap: 4px;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
}

.wordmark strong {
    font: 600 31px/0.95 Georgia, serif;
    letter-spacing: -0.055em;
}

.wordmark span {
    font-size: 10px;
    font-weight: 730;
    line-height: 1.1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.header-links { display: flex; gap: clamp(18px, 3vw, 36px); }
.header-links a { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.header-links a:hover { text-decoration: underline; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 8px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.button:hover { background: var(--green-dark); color: #fff; }
.phone { font-size: 14px; white-space: nowrap; }

.hero {
    background: var(--paper);
    padding: clamp(52px, 7vw, 99px) 0;
    text-align: center;
}

.hero .page-width { max-width: 860px; }

h1, h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

h1 { font-size: clamp(40px, 6vw, 77px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.1; }
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
p { margin: 0 0 16px; color: var(--muted); }

.hero .intro {
    max-width: 590px;
    margin: 22px auto 24px;
    font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-actions > a:not(.button) { font-weight: 650; }
.hero .location { margin: 20px 0 0; font-size: 14px; }

.section {
    padding-block: clamp(46px, 6vw, 80px);
    scroll-margin-top: 24px;
}

.section > .page-width > h2 { margin-bottom: 24px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.service {
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.service p, .about-copy p:last-child, .site-footer p { margin: 0; }
.about { background: #edf2ed; }

.about-layout, .contact-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.45fr);
    gap: clamp(26px, 7vw, 94px);
}

.about-copy > p + h3 { margin-top: 22px; }
.contact-details h3 { margin-top: 17px; }
.contact-details address { font-style: normal; }
.contact-details p { margin-top: 12px; }

form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 5px; min-width: 0; font-size: 14px; font-weight: 600; }

.field input, .field textarea {
    width: 100%;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #aebeb4;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: 16px/1.4 system-ui, sans-serif;
}

.field textarea { min-height: 104px; resize: vertical; }
form .button { justify-self: start; }

.testimonials { margin-top: 28px; }
.testimonials summary { cursor: pointer; color: var(--green); font-weight: 650; }
.testimonials figure { margin: 18px 0 0; padding-left: 16px; border-left: 2px solid #bdcabe; }
.testimonials blockquote { margin: 0 0 6px; color: var(--muted); }
.testimonials figcaption { font-size: 14px; }

.site-footer { padding: 22px 0; border-top: 1px solid var(--line); font-size: 14px; }
.site-footer .page-width { display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: space-between; }

.confirmation {
    margin: 20px auto;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #edf2ed;
}

@media (max-width: 650px) {
    .page-width { width: calc(100% - 40px); }
    .masthead { min-height: 70px; gap: 12px; }
    .wordmark strong { font-size: 28px; }
    .phone { padding: 7px 12px; font-size: 13px; }
    .header-links { display: none; }
    .hero .intro { margin-top: 18px; }
    .hero-actions { gap: 10px 16px; }
    .services-grid, .about-layout, .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .page-width { width: calc(100% - 32px); }
    .form-row { grid-template-columns: 1fr; }
}

/* Office address in the site header */
.masthead-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-address {
    margin: 0;
    font-weight: 700;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.35;
}

.header-address span { display: block; }

@media (max-width: 850px) {
    .masthead {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 7px clamp(10px, 2vw, 18px);
    }

    .masthead-contact { display: contents; }
    .masthead-contact .phone { grid-column: 3; grid-row: 1; }

    .header-address {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .header-address span { display: inline; }
    .header-address span + span::before { content: ", "; }
}

/* Office photograph behind the welcome message */
.hero {
    background-image:
        linear-gradient(90deg, rgba(248, 246, 238, 0.76) 0%, rgba(248, 246, 238, 0.55) 56%, rgba(248, 246, 238, 0.08) 100%),
        url("../images/park-east-hero-office.webp");
    background-position: center 59%;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 650px) {
    .hero {
        background-image:
            linear-gradient(90deg, rgba(248, 246, 238, 0.93), rgba(248, 246, 238, 0.74)),
            url("../images/park-east-hero-office.webp");
        background-position: 76% center;
    }
}
