/* The Canopy — design tokens (matched to Base44) */
:root {
    --canopy-cream: #FEF0DB;
    --canopy-deep: #914D30;
    --canopy-sage: #D6E1CB;
    --canopy-mauve: #CEAEAC;
    --font-heading: 'presti-text', Georgia, 'Times New Roman', serif;
    --font-body: 'source-sans-3', system-ui, sans-serif;
    --font-serif: var(--font-heading);
    --font-sans: var(--font-body);
    --container-max: 80rem;
    --container-gutter: clamp(1.5rem, 4vw, 3.5rem);
    --container: min(var(--container-max), calc(100% - (var(--container-gutter) * 2)));
    --section-y: clamp(6rem, 10vw, 9rem);
    --section-y-compact: clamp(6rem, 8vw, 8rem);
    --header-height: 5rem;
    --ease-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Typography scale */
    --text-eyebrow: 0.75rem;
    --text-body: 1.0625rem;
    --text-body-lg: clamp(1rem, 1.5vw, 1.125rem);
    --text-body-sm: 0.875rem;
    --text-body-xs: 0.75rem;
    --text-nav: 0.75rem;
    --text-btn: 0.75rem;
    --text-btn-sm: 0.6875rem;
    --tracking-eyebrow: 0.1em;
    --tracking-nav: 0.12em;
    --tracking-btn: 0.14em;
    --tracking-btn-sm: 0.1em;
    --leading-heading: 1.15;
    --leading-relaxed: 1.625;
    --leading-body: 1.75;
    --title-hero: clamp(1.5rem, 2.5vw, 2.4rem);
    --title-xl: clamp(2.25rem, 5vw, 4.5rem);
    --title-lg: clamp(2.25rem, 4vw, 3.75rem);
    --title-md: clamp(2.25rem, 3.5vw, 3rem);
    --title-sm: clamp(1.875rem, 3vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--leading-relaxed);
    color: var(--canopy-deep);
    background: var(--canopy-cream);
    -webkit-font-smoothing: antialiased;
}

/* Typography: presti-text = headings · source-sans-3 = content & subtitles */
h1, h2, h3, h4,
.canopy-section-title {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.15;
    margin: 0;
}

.canopy-prose,
.canopy-eyebrow,
.canopy-btn,
.canopy-hero__location,
.canopy-hero__subtitle,
.site-nav__link,
.site-header__brochure,
.site-footer__address,
.site-footer__nav-link,
.site-footer__contact a,
.site-footer__bottom,
.canopy-building__intro {
    font-family: var(--font-body);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: var(--container);
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Shared section utilities */
.canopy-eyebrow {
    font-size: var(--text-eyebrow);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    font-weight: 400;
}

.canopy-divider {
    width: 2rem;
    height: 1px;
    background: var(--canopy-mauve);
    margin: 0 0 2rem;
}

.canopy-divider--center {
    width: 3rem;
    margin-inline: auto;
}

.canopy-section-title {
    font-size: var(--title-lg);
    line-height: var(--leading-heading);
    margin: 0 0 1.5rem;
}

.canopy-section-title--xl {
    font-size: var(--title-xl);
    margin-bottom: 2rem;
}

.canopy-section-title--md {
    font-size: var(--title-md);
}

.canopy-section-title--sm {
    font-size: var(--title-sm);
    margin-bottom: 1.5rem;
}

.canopy-prose {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    font-weight: 400;
}

.canopy-prose p { margin: 0 0 1rem; }
.canopy-prose p:last-child { margin-bottom: 0; }

.canopy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: var(--text-btn);
    font-weight: 500;
    letter-spacing: var(--tracking-btn-sm);
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: opacity var(--ease-slow);
    cursor: pointer;
}

.canopy-btn:hover { opacity: 0.85; }

.canopy-btn--cream {
    background: rgba(254, 240, 219, 0.92);
    color: var(--canopy-deep);
}

.canopy-btn--deep {
    background: var(--canopy-deep);
    color: var(--canopy-cream);
}

.canopy-btn--outline {
    border-color: rgba(254, 240, 219, 0.25);
    color: var(--canopy-cream);
    background: transparent;
}

.canopy-btn--mauve {
    background: var(--canopy-mauve);
    color: var(--canopy-deep);
}

/* Theme sections */
.canopy-section--cream { background: var(--canopy-cream); color: var(--canopy-deep); }
.canopy-section--deep { background: var(--canopy-deep); color: var(--canopy-cream); }
.canopy-section--sage { background: var(--canopy-sage); color: var(--canopy-deep); }
.canopy-section--mauve { background: var(--canopy-mauve); color: var(--canopy-deep); }

.canopy-section--cream .canopy-eyebrow { color: rgba(145, 77, 48, 0.55); }
.canopy-section--deep .canopy-eyebrow { color: var(--canopy-mauve); }
.canopy-section--sage .canopy-eyebrow,
.canopy-section--mauve .canopy-eyebrow { color: rgba(145, 77, 48, 0.55); }

.canopy-section--cream .canopy-section-title { color: var(--canopy-deep); }
.canopy-section--deep .canopy-section-title { color: var(--canopy-cream); }
.canopy-section--sage .canopy-section-title,
.canopy-section--mauve .canopy-section-title { color: var(--canopy-deep); }

.canopy-section--deep .canopy-prose { color: rgba(254, 240, 219, 0.75); }
.canopy-section--cream .canopy-prose,
.canopy-section--sage .canopy-prose,
.canopy-section--mauve .canopy-prose { color: var(--canopy-deep); }

/* Project intro: text-centered flows into image-text */
.canopy-text-centered.canopy-section--cream {
    padding-bottom: clamp(3rem, 6vw, 7rem);
}

.canopy-text-centered.canopy-section--cream + .canopy-image-text.canopy-section--cream {
    padding-top: 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background var(--ease-slow), border-color var(--ease-slow), backdrop-filter var(--ease-slow);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(254, 240, 219, 0.92);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(145, 77, 48, 0.15);
}

.site-header__inner {
    position: relative;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1.5rem;
}

.site-header__logo {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.site-header__logo-img {
    height: clamp(1.75rem, 4vw, 2.25rem);
    width: auto;
    object-fit: contain;
}

.site-header__logo-img--brown {
    display: none;
}

.site-header.is-scrolled .site-header__logo-img--light,
.site-header:not(.site-header--canopy) .site-header__logo-img--light {
    display: none;
}

.site-header.is-scrolled .site-header__logo-img--brown,
.site-header:not(.site-header--canopy) .site-header__logo-img--brown {
    display: block;
}

.site-header:not(.site-header--canopy) {
    background: rgba(254, 240, 219, 0.92);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(145, 77, 48, 0.15);
}

.site-header:not(.site-header--canopy) .site-nav__link {
    color: var(--canopy-deep);
}

.site-header:not(.site-header--canopy) .site-header__toggle-bar {
    background: var(--canopy-deep);
}

.site-header__site-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--canopy-cream);
}

.site-header.is-scrolled .site-header__site-name { color: var(--canopy-deep); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-header__brochure {
    display: none;
    font-size: var(--text-eyebrow);
    letter-spacing: var(--tracking-btn-sm);
    text-transform: uppercase;
    padding: 0.625rem 1.25rem;
    background: var(--canopy-deep);
    color: var(--canopy-cream);
    border-radius: 2px;
    transition: opacity var(--ease-slow);
}

.site-header:not(.is-scrolled) .site-header__brochure {
    background: var(--canopy-deep);
    color: var(--canopy-cream);
}

.site-header.is-scrolled .site-header__brochure {
    background: var(--canopy-deep);
    color: var(--canopy-cream);
}

.site-header__brochure:hover { opacity: 0.8; }

.site-header__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.site-header__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--canopy-cream);
    transition: background var(--ease-slow);
}

.site-header.is-scrolled .site-header__toggle-bar { background: var(--canopy-deep); }

.site-nav__list {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    font-family: var(--font-body);
    font-size: var(--text-nav);
    letter-spacing: var(--tracking-nav);
    text-transform: uppercase;
    color: rgba(254, 240, 219, 0.85);
    transition: opacity var(--ease-slow);
}

.site-header.is-scrolled .site-nav__link { color: var(--canopy-deep); }

.site-nav__link:hover { opacity: 0.65; }

@media (min-width: 900px) {
    .site-header__brochure { display: inline-flex; }

    .site-nav {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        background: transparent;
        padding: 0;
    }
}

@media (max-width: 899px) {
    .site-header__toggle { display: flex; }

    .site-header__toggle.is-active .site-header__toggle-bar:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .site-header__toggle.is-active .site-header__toggle-bar:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .site-header__toggle-bar {
        transition: transform 0.3s ease, background var(--ease-slow);
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 99;
        background: var(--canopy-deep);
        padding: calc(var(--header-height) + 3rem) var(--container-gutter) 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .site-nav__link {
        font-family: var(--font-heading);
        font-size: clamp(2rem, 8vw, 3rem);
        font-weight: 300;
        letter-spacing: 0.02em;
        text-transform: none;
        color: var(--canopy-cream);
        line-height: 1.1;
    }

    .site-header.is-scrolled .site-nav__link { color: var(--canopy-cream); }

    body.nav-open .site-header {
        background: transparent;
        border-bottom-color: transparent;
    }

    body.nav-open .site-header__toggle-bar { background: var(--canopy-cream); }
}

/* Footer */
.site-footer {
    padding: clamp(3rem, 6vw, 4rem) 0 2rem;
    background: var(--canopy-deep);
    color: var(--canopy-cream);
    border-top: 1px solid rgba(206, 174, 172, 0.2);
}

.site-footer__grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .site-footer__grid {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.site-footer__logo-link {
    display: inline-block;
    line-height: 0;
    margin-bottom: 1rem;
}

.site-footer__logo {
    height: clamp(1.75rem, 4vw, 2rem);
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
}

.site-footer__address {
    font-size: var(--text-eyebrow);
    color: var(--canopy-mauve);
    margin: 0;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}

.site-footer__nav-link {
    font-size: var(--text-eyebrow);
    letter-spacing: var(--tracking-btn-sm);
    text-transform: uppercase;
    color: rgba(254, 240, 219, 0.5);
    transition: opacity var(--ease-slow);
}

.site-footer__nav-link:hover { opacity: 0.75; }

.site-footer__contact {
    text-align: left;
}

@media (min-width: 768px) {
    .site-footer__contact { text-align: right; }
}

.site-footer__contact a {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    font-weight: 400;
    color: var(--canopy-cream);
    margin-bottom: 0.25rem;
}

.site-footer__contact a.email { color: var(--canopy-mauve); }

.site-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(206, 174, 172, 0.15);
    font-size: var(--text-eyebrow);
    color: rgba(254, 240, 219, 0.45);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
}

.site-main { min-height: 50vh; padding-top: 0; }

.not-found { padding: var(--section-y) 0; text-align: center; }

/* CF7 in Canopy contact block */
.canopy-contact .wpcf7 form { display: flex; flex-direction: column; gap: 2rem; }
.canopy-contact .wpcf7 label {
    display: block;
    font-size: var(--text-eyebrow);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--canopy-mauve);
    margin-bottom: 0.5rem;
}

.canopy-contact .wpcf7 input,
.canopy-contact .wpcf7 select,
.canopy-contact .wpcf7 textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(254, 240, 219, 0.3);
    padding: 0.75rem 0;
    color: var(--canopy-cream);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    outline: none;
}

.canopy-contact .wpcf7 textarea { resize: vertical; min-height: 6rem; }
.canopy-contact .wpcf7 select { cursor: pointer; }
.canopy-contact .wpcf7 input::placeholder,
.canopy-contact .wpcf7 textarea::placeholder { color: rgba(254, 240, 219, 0.4); }

.canopy-contact .wpcf7 .wpcf7-submit {
    align-self: flex-start;
    background: var(--canopy-mauve);
    color: var(--canopy-deep);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
}

.canopy-contact .wpcf7 .wpcf7-response-output {
    margin: 0;
    padding: 0;
    border: none;
    color: var(--canopy-mauve);
    font-size: 0.875rem;
}

.canopy-contact .wpcf7-not-valid-tip { color: var(--canopy-mauve); font-size: 0.75rem; }

.canopy-cf7-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .canopy-cf7-grid { grid-template-columns: 1fr; }
}

/*
 * HubSpot forms
 * V4 embeds render inside a cross-origin iframe (.hs-form-frame > iframe),
 * so parent CSS cannot style labels/inputs/buttons inside the form.
 * We style the outer card + iframe shell, and set --hsf-* variables for
 * HubSpot Developer / raw-HTML embeds (and any future parent→iframe theming).
 * Match field styling in the HubSpot form editor for full visual parity.
 */
.hubspot-form {
    --hubspot-card-bg: var(--canopy-cream);
    --hubspot-card-border: rgba(145, 77, 48, 0.22);
    --hubspot-input-bg: #fcf7f2;
    --hubspot-input-border: #d6ccbf;
    --hubspot-label: #8e8a84;
    --hubspot-asterisk: #b56a45;
    --hubspot-text: var(--canopy-deep);
    --hubspot-muted: rgba(145, 77, 48, 0.72);

    /* HubSpot Forms CSS variables (Developer embed / CMS; may not pierce iframe) */
    --hsf-global__font-family: var(--font-body);
    --hsf-global__font-size: 1rem;
    --hsf-global__color: var(--hubspot-text);
    --hsf-global-error__color: var(--canopy-deep);
    --hsf-row__horizontal-spacing: 1rem;
    --hsf-row__vertical-spacing: 1.35rem;
    --hsf-module__vertical-spacing: 1.5rem;
    --hsf-background__background-color: transparent;
    --hsf-background__padding: 0;
    --hsf-background__border-width: 0;
    --hsf-background__border-radius: 0;
    --hsf-field-label__font-family: var(--font-body);
    --hsf-field-label__font-size: var(--text-eyebrow);
    --hsf-field-label__color: var(--hubspot-label);
    --hsf-field-label-requiredindicator__color: var(--hubspot-asterisk);
    --hsf-field-description__color: var(--hubspot-muted);
    --hsf-field-footer__color: var(--hubspot-muted);
    --hsf-field-input__font-family: var(--font-body);
    --hsf-field-input__color: var(--hubspot-text);
    --hsf-field-input__background-color: var(--hubspot-input-bg);
    --hsf-field-input__placeholder-color: rgba(142, 138, 132, 0.7);
    --hsf-field-input__border-color: var(--hubspot-input-border);
    --hsf-field-input__border-width: 1px;
    --hsf-field-input__border-style: solid;
    --hsf-field-input__border-radius: 0;
    --hsf-field-input__padding: 0.85rem 1rem;
    --hsf-field-textarea__font-family: var(--font-body);
    --hsf-field-textarea__color: var(--hubspot-text);
    --hsf-field-textarea__background-color: var(--hubspot-input-bg);
    --hsf-field-textarea__placeholder-color: rgba(142, 138, 132, 0.7);
    --hsf-field-textarea__border-color: var(--hubspot-input-border);
    --hsf-field-textarea__border-width: 1px;
    --hsf-field-textarea__border-style: solid;
    --hsf-field-textarea__border-radius: 0;
    --hsf-field-textarea__padding: 0.85rem 1rem;
    --hsf-field-checkbox__background-color: #ffffff;
    --hsf-field-checkbox__border-color: var(--hubspot-input-border);
    --hsf-field-checkbox__border-width: 1px;
    --hsf-field-checkbox__border-style: solid;
    --hsf-field-checkbox__color: var(--hubspot-text);
    --hsf-field-radio__background-color: #ffffff;
    --hsf-field-radio__border-color: var(--hubspot-input-border);
    --hsf-field-radio__border-width: 1px;
    --hsf-field-radio__border-style: solid;
    --hsf-field-radio__color: var(--hubspot-text);
    --hsf-richtext__font-family: var(--font-body);
    --hsf-richtext__font-size: 0.8125rem;
    --hsf-richtext__color: var(--hubspot-muted);
    --hsf-button__font-family: var(--font-body);
    --hsf-button__font-size: var(--text-btn-sm);
    --hsf-button__color: var(--canopy-cream);
    --hsf-button__background-color: var(--canopy-deep);
    --hsf-button__border-radius: 0;
    --hsf-button__padding: 1rem 1.5rem;
    --hsf-button__box-shadow: none;
    --hsf-button__width: 100%;
    --hsf-button__font-weight: 500;
    --hsf-button--hover__background-color: #7a3f26;
    --hsf-button--hover__color: var(--canopy-cream);
}

.hubspot-form .hs-form fieldset {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.hubspot-form .hs-form .hs-form-field {
    margin-bottom: 0;
}

.hubspot-form .hs-form .hs-form-field > label {
    display: block;
    font-size: var(--text-eyebrow);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--hubspot-label);
    margin-bottom: 0.5rem;
}

.hubspot-form .hs-form .hs-form-required {
    color: var(--hubspot-asterisk);
}

.hubspot-form .hs-form input[type="text"],
.hubspot-form .hs-form input[type="email"],
.hubspot-form .hs-form input[type="tel"],
.hubspot-form .hs-form select,
.hubspot-form .hs-form textarea {
    width: 100%;
    background: var(--hubspot-input-bg);
    border: 1px solid var(--hubspot-input-border);
    padding: 0.85rem 1rem;
    color: var(--hubspot-text);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    outline: none;
    border-radius: 0;
    box-shadow: none;
}

.hubspot-form .hs-form textarea {
    resize: vertical;
    min-height: 6rem;
}

.hubspot-form .hs-form input::placeholder,
.hubspot-form .hs-form textarea::placeholder {
    color: rgba(142, 138, 132, 0.7);
}

.hubspot-form .hs-form .hs-button,
.hubspot-form .hs-form input[type="submit"] {
    display: block;
    width: 100%;
    background: var(--canopy-deep);
    color: var(--canopy-cream);
    border: none;
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: var(--text-btn-sm);
    letter-spacing: var(--tracking-btn-sm);
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
}

.hubspot-form .hs-form .hs-button:hover,
.hubspot-form .hs-form input[type="submit"]:hover {
    background: #7a3f26;
}

.hubspot-form .hs-form .hs-error-msgs {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    color: var(--canopy-deep);
    font-size: 0.75rem;
}

.hubspot-form .hs-form .hs-richtext,
.hubspot-form .hs-form .legal-consent-container {
    color: var(--hubspot-muted);
    font-size: 0.8125rem;
}

.hubspot-form .hs-form .legal-consent-container {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hubspot-card-border);
}

.canopy-contact .hubspot-form .hs-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

/* Cream card shell — stands out on deep contact section / modal */
.hubspot-form--appointment,
.hubspot-form--brochure {
    background: var(--hubspot-card-bg);
    border: 1px solid var(--hubspot-card-border);
    color: var(--hubspot-text);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: 0;
    box-sizing: border-box;
}

.hubspot-form--appointment {
    min-height: 28rem;
}

.hubspot-form .hs-form-frame {
    width: 100%;
    min-height: 26rem;
}

.hubspot-form .hs-form-frame iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    border: 0;
    background: transparent;
}

.hubspot-form--brochure .hs-form-frame {
    min-height: 22rem;
}

.hubspot-form--brochure .hs-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

/* Brochure modal */
.hubspot-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.hubspot-modal[hidden] {
    display: none;
}

.hubspot-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 6, 0.72);
}

.hubspot-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 36rem);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    background: var(--canopy-cream);
    color: var(--canopy-deep);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border: 1px solid var(--hubspot-card-border, #e5ddd2);
    border-radius: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.hubspot-modal__dialog .hubspot-form--brochure {
    /* Modal is already cream — drop nested border so card reads as one surface */
    margin-top: 0.25rem;
    border: none;
    padding: 0;
}

.hubspot-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    color: var(--canopy-deep);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
}

.hubspot-modal__close:hover {
    opacity: 1;
}

.hubspot-modal__eyebrow {
    margin-bottom: 0.75rem;
    color: rgba(145, 77, 48, 0.65);
}

.hubspot-modal__title {
    margin: 0 0 1.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--canopy-deep);
}

body.hubspot-modal-open {
    overflow: hidden;
}

/* Thank-you pages */
.canopy-thankyou {
    padding: calc(var(--section-y) + 4rem) 0 var(--section-y);
    min-height: 60vh;
}

.canopy-thankyou__inner {
    max-width: 40rem;
}

.canopy-thankyou__download,
.canopy-thankyou__back {
    margin-top: 2rem;
}

.canopy-thankyou .canopy-section-title {
    margin-bottom: 1rem;
}

/* Scroll reveal */
.js-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Frontend block edit (logged-in editors) */
.agency-block-edit-wrap {
    position: relative;
}

.agency-block-edit {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--canopy-deep);
    box-shadow: 0 2px 8px rgba(145, 77, 48, 0.18);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.agency-block-edit-wrap:hover .agency-block-edit,
.agency-block-edit:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.agency-block-edit:hover,
.agency-block-edit:focus-visible {
    background: #fff;
    color: var(--canopy-deep);
}

.agency-block-edit__icon {
    display: block;
}

@media (max-width: 782px) {
    .agency-block-edit {
        opacity: 1;
        transform: none;
    }
}

/* ── Beautiful Cookie Consent (Canopy brand) ───────────────────────── */

.cm,
.cm.cm--box {
    font-family: var(--font-body) !important;
    color: var(--canopy-deep) !important;
    background: var(--canopy-cream) !important;
    border: 1px solid rgba(145, 77, 48, 0.18) !important;
    border-radius: 2px !important;
    box-shadow: 0 18px 48px rgba(145, 77, 48, 0.16) !important;
    max-width: min(28rem, calc(100vw - 2rem)) !important;
    padding: 0 !important;
    overflow: hidden;
}

.cm__body {
    padding: 1.5rem 1.5rem 1.25rem !important;
}

.cm__texts {
    margin: 0 0 1.25rem !important;
}

.cm__title {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.35rem, 3vw, 1.65rem) !important;
    font-weight: 300 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    color: var(--canopy-deep) !important;
    margin: 0 0 0.75rem !important;
}

.cm__desc {
    font-family: var(--font-body) !important;
    font-size: var(--text-body-sm) !important;
    font-weight: 400 !important;
    line-height: var(--leading-relaxed, 1.6) !important;
    color: rgba(145, 77, 48, 0.82) !important;
    margin: 0 !important;
}

.cm__btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin: 0 !important;
}

.cm__btn-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}

.cm__btn {
    flex: 1 1 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-height: 2.875rem !important;
    height: 2.875rem !important;
    margin: 0 !important;
    padding: 0 1.25rem !important;
    font-family: var(--font-body) !important;
    font-size: var(--text-btn) !important;
    font-weight: 500 !important;
    letter-spacing: var(--tracking-btn-sm, 0.08em) !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    border-radius: 2px !important;
    border: 1px solid transparent !important;
    background: var(--canopy-deep) !important;
    color: var(--canopy-cream) !important;
    box-shadow: none !important;
    transition: opacity 0.35s ease, background-color 0.35s ease, color 0.35s ease !important;
    cursor: pointer !important;
}

.cm__btn + .cm__btn,
.cm__btn[data-role="necessary"],
.cm__btn[data-role="show"],
.cm__btn--secondary {
    margin: 0 !important;
    margin-top: 0 !important;
}

#cc-main .cm__btn + .cm__btn,
#cc-main .cm__btn-group .cm__btn + .cm__btn,
#cc-main .cm__btn[data-role="necessary"] {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
}

#cc-main .cm__btn-group {
    gap: 0.5rem !important;
}

#cc-main .cm__btn-group .cm__btn + .cm__btn {
    margin-left: 0 !important;
}

.cm__btn span {
    display: inline-block !important;
    line-height: 1 !important;
}

.cm__btn:hover,
.cm__btn:focus-visible {
    opacity: 0.88 !important;
}

.cm__btn--secondary,
.cm__btn[data-role="show"],
.cm__btn[data-role="necessary"] {
    background: transparent !important;
    color: var(--canopy-deep) !important;
    border-color: rgba(145, 77, 48, 0.35) !important;
}

.cm__btn--secondary:hover,
.cm__btn[data-role="show"]:hover,
.cm__btn[data-role="necessary"]:hover,
.cm__btn--secondary:focus-visible,
.cm__btn[data-role="show"]:focus-visible,
.cm__btn[data-role="necessary"]:focus-visible {
    background: rgba(145, 77, 48, 0.08) !important;
    opacity: 1 !important;
}

.cm__btn[data-role="all"] {
    background: var(--canopy-deep) !important;
    color: var(--canopy-cream) !important;
    border-color: var(--canopy-deep) !important;
}

.cm__footer {
    margin: 0 !important;
    padding: 0.85rem 1.5rem !important;
    background: rgba(145, 77, 48, 0.06) !important;
    border-top: 1px solid rgba(145, 77, 48, 0.12) !important;
}

.cm__links,
.cm__link-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem 1.25rem !important;
}

.cm__links a,
.cm__link-group a {
    font-family: var(--font-body) !important;
    font-size: var(--text-body-xs) !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: rgba(145, 77, 48, 0.7) !important;
    border-bottom: 1px solid transparent !important;
}

.cm__links a:hover,
.cm__link-group a:hover {
    color: var(--canopy-deep) !important;
    border-bottom-color: rgba(145, 77, 48, 0.45) !important;
}

/* Preferences / detail modal if shown */
.pm,
.pm__body,
.pm--box {
    font-family: var(--font-body) !important;
    color: var(--canopy-deep) !important;
    background: var(--canopy-cream) !important;
    border: 1px solid rgba(145, 77, 48, 0.18) !important;
    border-radius: 2px !important;
    box-shadow: 0 24px 64px rgba(145, 77, 48, 0.18) !important;
}

.pm__title,
.pm__section-title {
    font-family: var(--font-heading) !important;
    font-weight: 300 !important;
    color: var(--canopy-deep) !important;
}

.pm__btn,
.pm__btn[data-role="save"],
.pm__btn[data-role="accept"] {
    font-family: var(--font-body) !important;
    font-size: var(--text-btn) !important;
    letter-spacing: var(--tracking-btn-sm, 0.08em) !important;
    text-transform: uppercase !important;
    border-radius: 2px !important;
    background: var(--canopy-deep) !important;
    color: var(--canopy-cream) !important;
    border: 1px solid var(--canopy-deep) !important;
}

.pm__btn--secondary,
.pm__btn[data-role="close"] {
    background: transparent !important;
    color: var(--canopy-deep) !important;
    border-color: rgba(145, 77, 48, 0.35) !important;
}

@media (max-width: 480px) {
    .cm,
    .cm.cm--box {
        max-width: calc(100vw - 1.25rem) !important;
    }

    .cm__btn-group {
        flex-direction: column !important;
    }

    .cm__btn {
        width: 100% !important;
    }
}

