.office-hero {
    position: relative;
    display: grid;
    align-items: center;
    isolation: isolate;
    min-height: 510px;
    padding: 130px 0 55px;
    color: white;
    background: #072c26;
}

.office-hero-image,
.office-hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.office-hero-image {
    object-fit: cover;
    object-position: 50% 42%;
}

.office-hero::after {
    content: "";
    background: linear-gradient(90deg, rgba(7, 44, 38, .98), rgba(7, 44, 38, .82) 53%, rgba(7, 44, 38, .48));
}

.office-hero h1 {
    max-width: 16ch;
    color: white;
    font-size: clamp(2.15rem, 6vw, 4.25rem);
    line-height: 1.13;
}

.office-location {
    margin-bottom: .8rem;
    color: #ead18a;
    font-weight: 600;
}

.office-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.6rem;
}

.office-hero-links a,
.office-tools a {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    padding: .7rem 1rem;
    border-radius: .45rem;
    font-weight: 600;
}

.office-hero-primary { background: #e2c476; color: #072c26; }
.office-hero-primary:hover { background: #f3d994; }
.office-hero-secondary { color: white; border: 1px solid rgba(255, 255, 255, .6); }
.office-hero-secondary:hover { background: rgba(255, 255, 255, .12); }

.office-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin: 0;
    padding: 1.1rem 1rem;
    background: #f5f1e8;
    color: #133b33;
}

.office-quote img { object-fit: cover; border-radius: 50%; }
.office-quote figcaption { font-size: .8rem; }

.office-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: .75rem;
}

.office-tools a {
    display: flex;
    height: 100%;
    background: white;
    border: 1px solid #c8d0cc;
    color: #133b33;
}

.office-tools a:hover { background: #f2f5f1; border-color: #133b33; }
.office-tools i { color: #775b16; }
.office-contact { scroll-margin-top: 95px; }
.office-form-card { padding: clamp(1.1rem, 5vw, 2rem); min-width: 0; }
.office-directions { color: #ead18a; font-size: .9rem; text-decoration: underline; }

#contactForm label,
.tab-content label {
    display: block;
    margin: 0 0 .35rem;
    color: #244e45;
    font-size: .9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

#contactForm input:not([type="hidden"]),
#contactForm select,
#contactForm textarea {
    width: 100%;
    min-height: 44px;
    padding: .6rem .75rem;
    border: 1px solid #849c94;
    border-radius: .4rem;
    color: #102f28;
    background: #fbfaf7;
    font-size: 1rem;
}

.office-help {
    margin-top: .45rem;
    color: #435b54;
    font-size: .875rem;
    line-height: 1.55;
}

.office-text-button { color: #153e33; font-weight: 700; text-decoration: underline; }
.office-dialog {
    width: min(44rem, 100% - 2rem);
    max-height: 85dvh;
    padding: 0;
    color: #102f28;
    background: white;
    border: 0;
    border-radius: .9rem;
}

.office-dialog::backdrop { background: rgba(7, 44, 38, .72); }
.office-dialog #legal-modal-content { min-height: 0; padding: clamp(1rem, 5vw, 2rem); }
.office-dialog button:focus-visible { outline-color: #ead18a !important; }

#form-status:empty, .calculator-error:empty { margin: 0; padding: 0; border: 0; }
#form-status:not(:empty), .calculator-error:not(:empty) { padding: .6rem .8rem; border-radius: .4rem; }
#form-status[data-status="error"], .calculator-error:not(:empty) { color: #8c271c; background: #fff1ee; }
#form-status[data-status="success"] { color: #245138; background: #e9f5ec; }
#form-status[data-status="pending"] { color: #244e45; background: #f2f5f1; }

.calculator-nav { scroll-margin-top: 90px; }

.calculator-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .625rem;
}

.calculator-tabs .tab-btn {
    min-height: 44px;
    padding: .55rem .65rem;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .calculator-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 32rem;
        margin-inline: auto;
    }

    .calculator-tabs .tab-btn { grid-column: span 2; }
    .calculator-tabs .tab-btn:last-child { grid-column: 2 / span 2; }
}

.calculator-breakdown { white-space: pre-line; color: #244e45; font-size: .875rem; }
.calculator-note { margin-bottom: 1.2rem; }
.tab-content .calculator-checkbox { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.2rem; }
.calculator-checkbox input { accent-color: #136251; width: 1.15rem; height: 1.15rem; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #237a66 !important;
    outline-offset: 3px;
}

#navbar :focus-visible,
.office-hero :focus-visible,
.office-contact a:focus-visible { outline-color: #ead18a !important; }


@media (max-width: 767px) {
    .office-hero { min-height: 390px; padding-top: 110px; }
    .office-hero::after { background: linear-gradient(90deg, rgba(7, 44, 38, .96), rgba(7, 44, 38, .68)); }
    .office-contact { padding-bottom: 5rem; }
    .tab-content { padding: 1.1rem; }
    #acc-widget { top: auto !important; bottom: 4rem; transform: none !important; }
    body { padding-bottom: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
