:root {
    --blue: #24384a;
    --blue-dark: #1b2a37;
    --warm: #f7f4ee;
    --gray: #e7e7e4;
    --slate: #5e6770;
    --gold: #b38a45;
    --charcoal: #222222;
    --white: #ffffff;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 18px 40px rgba(25, 39, 52, 0.08);
    --max: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Source Sans 3", sans-serif;
    color: var(--charcoal);
    background: linear-gradient(180deg, #fbfaf7 0%, #f3efe7 100%);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: var(--white);
    padding: 0.75rem 1rem;
    z-index: 99;
}

.site-shell {
    min-height: 100vh;
}

.topbar,
.site-nav,
.hero,
.page-hero,
.section,
.cta-banner,
.contact-strip,
.site-footer {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    color: var(--slate);
}

.topbar p {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(247, 244, 238, 0.94);
    border-bottom: 1px solid rgba(36, 56, 74, 0.08);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--charcoal);
}

.brand > span:last-child {
    min-width: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo,
.footer-logo {
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand strong,
h1,
h2,
h3 {
    font-family: "Manrope", sans-serif;
}

.brand small {
    display: block;
    color: var(--slate);
}

.brand-logo {
    width: clamp(10rem, 20vw, 14rem);
    max-height: 3.75rem;
}

.nav-toggle {
    border: 1px solid rgba(36, 56, 74, 0.16);
    background: var(--white);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font: inherit;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% - 0.25rem);
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    gap: 0.8rem;
}

.nav-links.open {
    display: flex;
}

.nav-links a {
    font-weight: 700;
}

.nav-links a.active {
    color: var(--gold);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button-primary {
    background: var(--blue);
    color: var(--white);
}

.button-secondary {
    background: transparent;
    color: var(--blue);
    border-color: rgba(36, 56, 74, 0.16);
}

.hero,
.page-hero-grid,
.split-content,
.two-up,
.footer-grid,
.estimate-layout {
    display: grid;
    gap: 1.5rem;
}

.hero {
    padding: 3rem 0 2rem;
    align-items: center;
}

.hero-copy,
.page-hero,
.info-card,
.service-card,
.cta-banner,
.contact-strip,
.prose-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(36, 56, 74, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 2rem;
}

.hero-media img,
.panel-image,
.service-card img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.page-hero {
    margin-top: 2rem;
    padding: 2rem;
}

.page-hero-grid {
    margin-top: 2rem;
    align-items: center;
}

.page-hero-grid > div:first-child {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(36, 56, 74, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

h2 {
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    line-height: 1.15;
    margin: 0 0 0.8rem;
}

h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

p {
    margin-top: 0;
}

.eyebrow {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--gold);
}

.hero-text {
    font-size: 1.12rem;
    max-width: 38rem;
}

.hero-actions,
.cta-actions,
.contact-strip-actions,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.section {
    padding: 2rem 0;
}

.section-soft {
    padding: 1rem 0 2rem;
}

.section-heading {
    margin-bottom: 1.2rem;
}

.card-grid {
    display: grid;
    gap: 1.2rem;
}

.service-card,
.info-card,
.prose-card {
    overflow: hidden;
}

.service-card-body,
.info-card,
.prose-card {
    padding: 1.25rem;
}

.chip {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(179, 138, 69, 0.14);
    color: var(--blue);
    font-weight: 700;
    font-size: 0.85rem;
}

.feature-list,
.check-list,
.footer-list {
    margin: 0;
    padding-left: 1.1rem;
}

.text-link,
.section-link a {
    font-weight: 700;
}

.cta-banner,
.contact-strip {
    margin: 2rem auto;
    padding: 1.5rem;
}

.site-form {
    display: grid;
    gap: 1rem;
}

.field-grid {
    display: grid;
    gap: 1rem;
}

.site-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

.site-form input,
.site-form select,
.site-form textarea {
    width: 100%;
    border: 1px solid rgba(36, 56, 74, 0.15);
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 0.9rem 1rem;
    font: inherit;
}

.site-form textarea {
    resize: vertical;
}

.honey-field {
    position: absolute;
    left: -9999px;
}

.form-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
}

.form-alert.success {
    background: rgba(95, 125, 78, 0.14);
    color: #34542b;
}

.form-alert.error {
    background: rgba(160, 61, 43, 0.12);
    color: #7a2d1b;
}

.contact-details p,
.meta-line {
    color: var(--slate);
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0 3rem;
    color: var(--warm);
    background: linear-gradient(180deg, var(--blue-dark), var(--blue));
    width: 100%;
}

.footer-grid,
.footer-bottom {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
}

.footer-grid {
    padding: 2rem 0;
}

.site-footer h2,
.site-footer h3,
.site-footer a,
.site-footer p {
    color: var(--warm);
}

.footer-logo {
    width: min(100%, 14rem);
    max-height: 4.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.6rem;
    border-radius: 14px;
    background: rgba(251, 250, 247, 0.98);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(247, 244, 238, 0.2);
}

@media (min-width: 760px) {
    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .hero,
    .page-hero-grid,
    .split-content,
    .two-up,
    .footer-grid,
    .estimate-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 759px) {
    .brand {
        align-items: flex-start;
    }

    .brand-logo {
        width: clamp(8.5rem, 34vw, 11rem);
        max-height: 3.25rem;
    }

    .brand strong {
        font-size: 0.98rem;
    }

    .brand small {
        font-size: 0.85rem;
    }
}

@media (min-width: 1040px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}
