/* OCF Lightning — neutral global primitives.
   Purpose: provide an OCF-safe starting point without a strong visual opinion. */

:root {
    --nav-height: var(--ocf-nav-height);
    --wp-admin-bar-offset: 0px;
    --wp-admin-bar-gap: 0px;

    --font-h1-size: var(--ocf-font-h1-size);
    --font-h2-size: var(--ocf-font-h2-size);
    --font-h3-size: var(--ocf-font-h3-size);
    --font-body-size: var(--ocf-font-body-size);
    --font-label-size: var(--ocf-font-small-size);
    --font-button-size: var(--ocf-font-button-size);
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --container-max: var(--ocf-container-width);
    --container-pad: var(--ocf-container-gutter);
    /* Link, accent font, and on-accent text follow the brand tokens so custom palettes carry through. */
    --ocf-link: var(--ocf-primary);
    --ocf-link-hover: var(--ocf-primary-hover);
    --ocf-dark-link: color-mix(in srgb, var(--ocf-primary) 50%, #fff);
    --ocf-dark-link-hover: var(--ocf-heading-alt);
    --ocf-secondary-contrast: var(--ocf-heading);
    --ocf-font-accent: var(--ocf-font-body);
    /* Light section surface: the editable alt background (cream band in the default palette). */
    --aspen-bg-alt: var(--ocf-bg-alt);
    --section-pad: var(--ocf-section-pad);
    --grid-gap: var(--ocf-grid-gap);

    --radius-sm: var(--ocf-radius-sm);
    --radius: var(--ocf-radius);
    --radius-lg: var(--ocf-radius-lg);
    --radius-full: var(--ocf-radius-full);

    --button-radius: var(--ocf-button-radius);
    --button-border-width: var(--ocf-button-border-width);
    --button-border-color: transparent;
    --button-shadow: var(--ocf-button-shadow);
    --button-shadow-hover: var(--ocf-button-shadow-hover);
    --button-transform-hover: translateY(calc(var(--ocf-grid-gap) * -0.03125));
    --button-letter-spacing: 0;
    --button-text-transform: none;

    --card-radius: var(--ocf-card-radius);
    --card-radius-lg: var(--ocf-card-radius-lg);
    --card-border-width: var(--ocf-card-border-width);
    --card-border-color: var(--ocf-border-light);
    --card-border-color-subtle: var(--ocf-border-light);
    --card-shadow: var(--ocf-card-shadow);
    --card-shadow-hover: var(--ocf-card-shadow-hover);
    --card-transform-hover: translateY(calc(var(--ocf-grid-gap) * -0.0625));

    --image-radius: var(--ocf-image-radius);
    --image-shadow: var(--ocf-image-shadow);
    --media-overlay-opacity: 0;
    --media-light-overlay-opacity: 0.72;
    --gradient-media-dark: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg-dark) 86%, transparent) 0%, color-mix(in srgb, var(--ocf-bg-dark) 68%, transparent) 44%, color-mix(in srgb, var(--ocf-bg-dark) 34%, transparent) 100%);
    --gradient-media-dark-reverse: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg-dark) 34%, transparent) 0%, color-mix(in srgb, var(--ocf-bg-dark) 68%, transparent) 56%, color-mix(in srgb, var(--ocf-bg-dark) 86%, transparent) 100%);
    --gradient-media-dark-even: linear-gradient(0deg, color-mix(in srgb, var(--ocf-bg-dark) 62%, transparent), color-mix(in srgb, var(--ocf-bg-dark) 62%, transparent));
    --gradient-media-light: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg) 88%, transparent) 0%, color-mix(in srgb, var(--ocf-bg) 70%, transparent) 46%, color-mix(in srgb, var(--ocf-bg) 30%, transparent) 100%);
    --gradient-media-light-reverse: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg) 30%, transparent) 0%, color-mix(in srgb, var(--ocf-bg) 70%, transparent) 54%, color-mix(in srgb, var(--ocf-bg) 88%, transparent) 100%);
    --gradient-media-light-even: linear-gradient(0deg, color-mix(in srgb, var(--ocf-bg) 72%, transparent), color-mix(in srgb, var(--ocf-bg) 72%, transparent));
    --gradient-media-light-transparent: linear-gradient(90deg, var(--ocf-bg) 0%, color-mix(in srgb, var(--ocf-bg) 98%, transparent) 34%, color-mix(in srgb, var(--ocf-bg) 58%, transparent) 56%, transparent 78%);
    --gradient-hero-dark: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg-dark) 94%, transparent) 0%, color-mix(in srgb, var(--ocf-bg-dark) 86%, transparent) 34%, color-mix(in srgb, var(--ocf-bg-dark) 58%, transparent) 58%, color-mix(in srgb, var(--ocf-bg-dark) 30%, transparent) 76%, color-mix(in srgb, var(--ocf-bg-dark) 12%, transparent) 100%), linear-gradient(180deg, color-mix(in srgb, var(--ocf-bg-dark) 32%, transparent) 0%, color-mix(in srgb, var(--ocf-bg-dark) 54%, transparent) 100%);
    --gradient-primary-fade: linear-gradient(90deg, color-mix(in srgb, var(--ocf-bg-dark) 82%, transparent) 0%, color-mix(in srgb, var(--ocf-bg-dark) 58%, transparent) 48%, color-mix(in srgb, var(--ocf-bg-dark) 32%, transparent) 66%, color-mix(in srgb, var(--ocf-bg-dark) 12%, transparent) 82%, transparent 100%), linear-gradient(90deg, color-mix(in srgb, var(--ocf-primary) 78%, transparent) 0%, color-mix(in srgb, var(--ocf-primary) 54%, transparent) 46%, color-mix(in srgb, var(--ocf-primary) 30%, transparent) 64%, color-mix(in srgb, var(--ocf-primary) 10%, transparent) 82%, transparent 100%);
    --gradient-primary: linear-gradient(135deg, var(--ocf-primary) 0%, var(--ocf-primary-hover) 100%);
    --gradient-primary-reverse: linear-gradient(135deg, var(--ocf-primary-hover) 0%, var(--ocf-primary) 100%);
    --gradient-primary-soft: linear-gradient(135deg, color-mix(in srgb, var(--ocf-primary) 16%, var(--ocf-bg)) 0%, var(--ocf-bg) 100%);
    --gradient-primary-soft-reverse: linear-gradient(135deg, var(--ocf-bg) 0%, color-mix(in srgb, var(--ocf-primary) 16%, var(--ocf-bg)) 100%);
    --gradient-primary-secondary: linear-gradient(135deg, var(--ocf-primary) 0%, var(--ocf-secondary, var(--ocf-primary-hover)) 100%);
    --gradient-secondary-primary: linear-gradient(135deg, var(--ocf-secondary, var(--ocf-primary-hover)) 0%, var(--ocf-primary) 100%);
    --gradient-dark-primary: linear-gradient(135deg, var(--ocf-bg-dark) 0%, color-mix(in srgb, var(--ocf-primary) 62%, var(--ocf-bg-dark)) 100%);
    --gradient-primary-dark: linear-gradient(135deg, color-mix(in srgb, var(--ocf-primary) 62%, var(--ocf-bg-dark)) 0%, var(--ocf-bg-dark) 100%);
    --gradient-surface: linear-gradient(180deg, var(--aspen-bg-alt) 0%, var(--ocf-bg) 100%);
    --gradient-surface-reverse: linear-gradient(180deg, var(--ocf-bg) 0%, var(--aspen-bg-alt) 100%);
    --ocf-primary-contrast: var(--ocf-primary-text);
    --ocf-label: var(--ocf-body);
    --ocf-label-alt: var(--ocf-body-alt);
    --ocf-dark-label: var(--ocf-dark-body);
    --ocf-control-accent: var(--ocf-primary);
    --ocf-control-contrast: var(--ocf-heading-alt);
    --duration: var(--ocf-motion-duration);
    --ease: ease;
}

/* Keep dark aliases effective when the OCF editor previews light tokens inline. */
html[data-theme="dark"] {
    color-scheme: dark;
    --ocf-bg: var(--ocf-dark-bg) !important;
    --ocf-bg-alt: var(--ocf-dark-bg-alt) !important;
    /* Aspen: dark bands re-derive from the dark page color; alt sections and cards keep them distinct. */
    --ocf-bg-dark: var(--ocf-dark-bg) !important;
    --ocf-heading: var(--ocf-dark-heading) !important;
    --ocf-body: var(--ocf-dark-body) !important;
    --ocf-label: var(--ocf-dark-body) !important;
    --ocf-border: var(--ocf-dark-border) !important;
    --ocf-border-light: var(--ocf-dark-border-light) !important;
    --ocf-heading-alt: var(--ocf-dark-heading) !important;
    --ocf-body-alt: var(--ocf-dark-body) !important;
    --ocf-label-alt: var(--ocf-dark-body) !important;
    --ocf-border-alt: var(--ocf-dark-border-light) !important;
    --ocf-link: var(--ocf-dark-link) !important;
    --ocf-link-hover: var(--ocf-dark-link-hover) !important;
    --ocf-error: var(--ocf-dark-error) !important;
    --ocf-success: var(--ocf-dark-success) !important;
    --ocf-warning: var(--ocf-dark-warning) !important;
    --ocf-control-accent: var(--ocf-dark-link) !important;
    --ocf-control-contrast: var(--ocf-dark-bg) !important;
    /* Secondary fills stay light in dark mode, so their text must stay dark. */
    --ocf-secondary-contrast: var(--ocf-dark-bg) !important;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}
[id] { scroll-margin-top: calc(var(--aspen-nav-row-height, var(--ocf-header-height)) + 1rem); }

body {
    margin: 0;
    padding-top: calc(var(--nav-height) + var(--wp-admin-bar-gap));
    max-width: 100%;
    overflow-x: clip;
    background: var(--ocf-bg);
    color: var(--ocf-body);
    font-family: var(--ocf-font-body), system-ui, sans-serif;
    font-size: var(--font-body-size);
    font-weight: var(--ocf-font-body-weight, var(--font-weight-medium));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.admin-bar {
    --wp-admin-bar-offset: 32px;
    margin-top: 0 !important;
}

img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.ocf-hero__form,
.ocf-simple-form,
.booking-wizard,
.hero-form-card,
.ocf-field,
.ocf-phone-combo,
.bw-phone-combo {
    min-width: 0;
    max-width: 100%;
}

.container-global {
    width: min(100% - (var(--container-pad) * 2), var(--container-max));
    margin-inline: auto;
}

.section-padding {
    padding-block: var(--section-pad);
}

.ocf-section {
    position: relative;
    background: var(--ocf-bg);
}

:where([data-ocf-field]) {
    color: var(--field-color, currentColor);
    font-family: var(--field-font-family, inherit);
    font-size: var(--field-font-size, inherit);
    font-weight: var(--field-font-weight, inherit);
    font-style: var(--field-font-style, inherit);
    text-decoration: var(--field-text-decoration, inherit);
}

.page-section--default { background: var(--ocf-bg); }
.page-section--alt { background: var(--aspen-bg-alt); }
.ocf-gradient--media-dark { background: var(--gradient-media-dark); }
.ocf-gradient--media-dark-reverse { background: var(--gradient-media-dark-reverse); }
.ocf-gradient--media-dark-even { background: var(--gradient-media-dark-even); }
.ocf-gradient--media-light { background: var(--gradient-media-light); }
.ocf-gradient--media-light-reverse { background: var(--gradient-media-light-reverse); }
.ocf-gradient--media-light-even { background: var(--gradient-media-light-even); }
.ocf-gradient--media-light-transparent { background: var(--gradient-media-light-transparent); }
.ocf-gradient--hero-dark { background: var(--gradient-hero-dark); }
.ocf-gradient--primary-fade { background: var(--gradient-primary-fade); }
.ocf-gradient--primary { background: var(--gradient-primary); }
.ocf-gradient--primary-reverse { background: var(--gradient-primary-reverse); }
.ocf-gradient--primary-soft { background: var(--gradient-primary-soft); }
.ocf-gradient--primary-soft-reverse { background: var(--gradient-primary-soft-reverse); }
.ocf-gradient--primary-secondary { background: var(--gradient-primary-secondary); }
.ocf-gradient--secondary-primary { background: var(--gradient-secondary-primary); }
.ocf-gradient--dark-primary { background: var(--gradient-dark-primary); }
.ocf-gradient--primary-dark { background: var(--gradient-primary-dark); }
.ocf-gradient--surface { background: var(--gradient-surface); }
.ocf-gradient--surface-reverse { background: var(--gradient-surface-reverse); }

.eyebrow {
    display: inline-flex;
    margin-bottom: var(--ocf-space-unit);
    color: var(--ocf-link);
    font-size: var(--ocf-font-eyebrow-size, var(--font-label-size));
    font-weight: var(--ocf-font-eyebrow-weight, var(--font-weight-bold));
    letter-spacing: 0;
    text-transform: uppercase;
}

.heading-1,
.heading-2,
.heading-3 {
    margin: 0;
    color: var(--ocf-heading);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-weight: var(--font-weight-bold);
    line-height: 1.08;
    letter-spacing: 0;
    text-wrap: balance;
}

.heading-1 {
    font-size: var(--font-h1-size);
    font-weight: var(--ocf-font-h1-weight, var(--font-weight-bold));
}

.heading-2 {
    font-size: var(--font-h2-size);
    font-weight: var(--ocf-font-h2-weight, var(--font-weight-bold));
}

.heading-3 {
    font-size: var(--font-h3-size);
    font-weight: var(--ocf-font-h3-weight, var(--font-weight-bold));
}

.text-body,
.prose,
.page-content-body {
    color: var(--ocf-body);
    font-size: var(--font-body-size);
    font-weight: var(--ocf-font-body-weight, var(--font-weight-medium));
}

.prose {
    max-width: 68ch;
}

.prose > * + *,
.page-content-body > * + * {
    margin-top: var(--ocf-space-unit);
}

.prose a[href]:not(.btn-primary):not(.btn-secondary),
.page-content-body a[href]:not(.btn-primary):not(.btn-secondary) {
    color: var(--ocf-link);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.prose a[href]:not(.btn-primary):not(.btn-secondary):hover,
.page-content-body a[href]:not(.btn-primary):not(.btn-secondary):hover {
    color: var(--ocf-link-hover);
}

.prose img,
.page-content-body img,
.wp-post-image {
    width: 100%;
    max-height: var(--ocf-content-image-max-height);
    object-fit: cover;
    border-radius: var(--image-radius);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-label {
    color: var(--ocf-label);
    font-size: var(--font-label-size);
    font-weight: var(--font-weight-semibold);
}

.btn-primary,
.btn-secondary,
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--ocf-space-unit) * 0.5);
    min-height: calc(var(--ocf-space-unit) * 2.75);
    border: var(--button-border-width) solid var(--button-border-color);
    border-radius: var(--button-radius);
    padding: calc(var(--ocf-space-unit) * 0.75) var(--ocf-space-unit);
    box-shadow: var(--button-shadow);
    font-size: var(--font-button-size);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    letter-spacing: var(--button-letter-spacing);
    text-transform: var(--button-text-transform);
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.btn-primary,
.nav-cta {
    background: var(--ocf-primary);
    border-color: transparent;
    color: var(--ocf-heading-alt);
}

.btn-primary:hover,
.nav-cta:hover {
    background: var(--ocf-primary-hover);
    box-shadow: var(--button-shadow-hover);
    transform: var(--button-transform-hover);
}

.btn-secondary {
    background: transparent;
    border: var(--card-border-width) solid currentColor;
    box-shadow: none;
    color: var(--ocf-heading);
}

.btn-secondary:hover {
    background: color-mix(in srgb, currentColor 8%, transparent);
    border-color: var(--ocf-primary);
    box-shadow: none;
    color: var(--ocf-link);
    transform: var(--button-transform-hover);
}

.btn-lg {
    min-height: calc(var(--ocf-space-unit) * 3);
    padding-inline: calc(var(--ocf-space-unit) * 1.25);
}

.btn-primary svg,
.btn-secondary svg,
.nav-cta svg {
    width: var(--ocf-space-unit);
    height: var(--ocf-space-unit);
    flex: 0 0 auto;
}

.ocf-card {
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: var(--card-radius);
    background: var(--ocf-bg);
    box-shadow: var(--card-shadow);
}

.ocf-honeypot,
.bw-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ocf-form-status {
    min-height: calc(var(--ocf-space-unit) * 1.25);
    color: var(--ocf-label);
    font-size: var(--font-label-size);
}

.page-content-narrow,
.not-found-panel {
    width: min(100%, var(--ocf-content-narrow-width));
    margin-inline: auto;
}

.ocf-standard-page {
    background: var(--ocf-bg);
}

.ocf-standard-page__content {
    width: min(100%, var(--ocf-content-width));
    max-width: none;
}

.page-featured-media {
    margin-bottom: calc(var(--ocf-space-unit) * 2);
}

.page-featured-media img,
.page-featured-media .wp-post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--image-radius);
    box-shadow: var(--image-shadow);
}

/* Standalone photos: radius and shadow come from the global image tokens. */
.ocf-media {
    border-radius: var(--image-radius);
    box-shadow: var(--image-shadow);
    overflow: hidden;
}

.not-found-panel { text-align: center; }
.not-found-text { margin: var(--ocf-space-unit) auto calc(var(--ocf-space-unit) * 1.5); }
.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--ocf-space-unit) * 0.75);
}

.reveal,
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3 {
    opacity: 1;
    transform: none;
}

@media (max-width: 720px) {
    :root { --nav-height: var(--ocf-nav-height); }
    .container-global,
    .ocf-hero__grid,
    .ocf-hero__content,
    .ocf-hero__form {
        width: calc(100vw - (var(--container-pad) * 2));
        max-width: calc(100vw - (var(--container-pad) * 2));
    }
    .ocf-hero__headline {
        font-size: var(--field-font-size, var(--font-h1-size));
        max-width: 100%;
        overflow-wrap: break-word;
    }
    .ocf-hero__headline span {
        display: inline;
    }
    .ocf-hero__headline span:not(:last-child)::after {
        content: " ";
    }
    .ocf-about__headline,
    .ocf-cta__headline {
        font-size: var(--field-font-size, var(--font-h2-size));
    }
    .ocf-page-header__headline {
        font-size: var(--field-font-size, var(--font-h1-size));
        overflow-wrap: break-word;
    }
    .hero-form-card,
    .ocf-simple-form,
    .booking-wizard {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .ocf-phone-combo,
    .bw-phone-combo {
        display: grid;
        grid-template-columns: minmax(0, calc(var(--ocf-space-unit) * 7)) minmax(0, 1fr);
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar { --wp-admin-bar-offset: 46px; }
}


/* Shared typography, actions and content primitives for this site's OCF palette. */
p,h3,h4,figure { margin:0; }
body { line-height:var(--ocf-font-body-line); }
.heading-1 { line-height:var(--ocf-font-h1-line); }
.heading-2 { line-height:var(--ocf-font-h2-line); white-space:pre-line; }
.heading-3,h3 { font-family:var(--ocf-font-heading);font-size:var(--font-h3-size);font-weight:var(--ocf-font-h3-weight);line-height:1;color:var(--ocf-heading); }
.ocf-section-intro { margin-top:calc(var(--ocf-grid-gap) * 0.65); }
.ocf-actions { display:flex;align-items:center;gap:calc(var(--ocf-space-unit) * 1);flex-wrap:wrap; }
.prose { max-width:none; }
.prose p,.prose ul,.prose ol { margin:0 0 calc(var(--ocf-grid-gap) * 0.6); }
.prose h2 { font-family:var(--ocf-font-heading);font-size:var(--font-h2-size);font-weight:var(--ocf-font-h2-weight);line-height:var(--ocf-font-h2-line);color:var(--ocf-heading);margin:0 0 calc(var(--ocf-grid-gap) * 0.8); }
.prose h3 { margin:calc(var(--ocf-grid-gap) * 1.5) 0 calc(var(--ocf-grid-gap) * 0.65); }
.prose .ocf-content-image { margin:var(--ocf-grid-gap) 0;width:100%;aspect-ratio:792/450;object-fit:cover; }
.ocf-note { background:var(--aspen-bg-alt);padding:var(--ocf-grid-gap);margin-top:var(--ocf-grid-gap);border-radius:var(--card-radius); }
.ocf-note h3 { margin:0 0 calc(var(--ocf-grid-gap) * 0.5); }
.ocf-note p:last-child { margin-bottom:0; }
.ocf-feature-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ocf-grid-gap);margin-block:var(--ocf-grid-gap); }
.ocf-feature-grid h3 { font-size:var(--font-body-size);border-top:calc(var(--card-border-width) * 4) solid var(--ocf-primary);padding-top:calc(var(--ocf-grid-gap) * 0.5);margin-top:0; }
.ocf-feature-grid p { font-size:var(--ocf-font-small-size); }
.reveal { opacity:1;transform:none; }
@media(max-width:767px) { .ocf-feature-grid { grid-template-columns:1fr; }.ocf-actions { gap:calc(var(--ocf-space-unit) * 0.75); } }

/* Shared logo sizing; use Lightning's standard placeholder asset when unset. */
.ocf-brand-image { max-width:100%;width:var(--ocf-logo-width);height:var(--ocf-logo-height);object-fit:contain; }

/* ─── Aspen surfaces ───
 * Every Aspen surface derives from the OCF tokens, so a customer's palette recolors the whole site:
 * - cream (hero, page banners, alternate sections): the editable alt background, --ocf-bg-alt;
 * - sage (service areas, values band, pull quotes): a light primary tint of the page color;
 * - band (hero band, trust strip, CTA fallback): a deep shade of the primary (primary mixed into the heading color), so
 *   it follows the brand and white text stays readable (Bennett, 10-31: the old heading-gray band ignored the brand);
 * - footer: the heading color pressed toward black.
 * Dark mode re-derives charcoal and the footer from the dark page color, so no band turns light.
 */
:root {
    --aspen-base: var(--ocf-heading);
    --aspen-sage: color-mix(in srgb, var(--ocf-primary) 21%, var(--ocf-bg));
    --aspen-sage-line: color-mix(in srgb, var(--ocf-primary) 40%, var(--ocf-bg));
    --aspen-charcoal: color-mix(in srgb, var(--ocf-primary) 62%, var(--aspen-base));
    --aspen-charcoal-deep: color-mix(in srgb, var(--ocf-primary) 52%, var(--aspen-base));
    --aspen-charcoal-glow: color-mix(in srgb, var(--ocf-primary) 16%, transparent);
    --aspen-band: linear-gradient(180deg, var(--aspen-charcoal) 0%, var(--aspen-charcoal-deep) 100%);
    --aspen-band-glow: radial-gradient(1000px 700px at 100% 0%, var(--aspen-charcoal-glow), transparent 65%);
    --aspen-footer: color-mix(in srgb, var(--aspen-base) 90%, #000);
    /* Accent on dark bands (ticks, footer icons, labels): a light tint of the primary. */
    --aspen-accent: color-mix(in srgb, var(--ocf-primary) 52%, #fff);
    --aspen-on-dark: var(--ocf-heading-alt);
    --aspen-on-dark-muted: var(--ocf-body-alt);
    /* Soft shadows: blurred, low-opacity, from the dark base (never the light dark-mode heading). */
    --aspen-shadow: color-mix(in srgb, var(--aspen-base) 13%, transparent);
    --aspen-shadow-strong: color-mix(in srgb, var(--aspen-base) 18%, transparent);
    /* Floating cards (sidebar card, request form, hero rating): a faint lift; the hairline border does most of the work
     * (Bennett, 10-31: 30/60 and then 10/28 at 8% both read too dark). */
    --aspen-float-shadow: 0 4px 16px color-mix(in srgb, var(--aspen-base) 5%, transparent);
    /* Roof-peak dividers: the height of the shallow triangle on banners and the CTA peak. */
    --aspen-roof: 72px;
    --aspen-gap-lg: clamp(44px, 31px + 3.43vw, 80px);
    --aspen-split-gap: clamp(44px, 18px + 5.4vw, 96px);
    --aspen-label-size: var(--ocf-font-button-size);
}

@supports (color: oklch(from red l c h)) {
    :root { --aspen-accent: oklch(from var(--ocf-primary) calc(l + 0.24) c h); }
}

html[data-theme="dark"] {
    --aspen-base: #000;
    --aspen-charcoal: color-mix(in srgb, var(--ocf-dark-bg-alt) 86%, #fff);
    --aspen-charcoal-deep: color-mix(in srgb, var(--ocf-dark-bg-alt) 92%, #fff);
    --aspen-footer: color-mix(in srgb, var(--ocf-dark-bg) 70%, #000);
    --aspen-shadow: color-mix(in srgb, #000 40%, transparent);
    --aspen-shadow-strong: color-mix(in srgb, #000 52%, transparent);
    --aspen-float-shadow: 0 4px 16px color-mix(in srgb, #000 20%, transparent);
    --aspen-on-dark-muted: var(--ocf-dark-body);
}

@media (max-width: 1023px) { :root { --aspen-roof: 48px; } }
@media (max-width: 640px) { :root { --aspen-roof: 28px; } }

.aspen-cream { background: var(--aspen-bg-alt); }
.aspen-sage { background: var(--aspen-sage); }
.aspen-charcoal { background: var(--aspen-band-glow), var(--aspen-band); }

/* Roof-peak dividers. .aspen-roof: a shallow triangle rising from a banner's bottom edge, filled with the next
 * section's surface (--aspen-roof-fill). .aspen-peak: the top edge of the CTA band peaks up at the center, the two
 * shoulders filled with the previous section's surface. */
.aspen-roof,
.aspen-peak {
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--aspen-roof);
    background: var(--aspen-roof-fill, var(--ocf-bg));
    pointer-events: none;
}

.aspen-roof { bottom: -1px; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.aspen-peak { top: -1px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 0, 0 100%); }
.aspen-roof-fill--cream { --aspen-roof-fill: var(--aspen-bg-alt); }
.aspen-roof-fill--sage { --aspen-roof-fill: var(--aspen-sage); }

/* Pull quotes in long-form content: sage panel with a primary rule, display type. */
.prose blockquote,
.ocf-longform blockquote {
    margin: calc(var(--ocf-grid-gap) * 0.3) 0;
    padding: clamp(26px, 23.8px + 0.76vw, 34px) clamp(24px, 20.3px + 1.14vw, 36px);
    border-left: 6px solid var(--ocf-primary);
    border-radius: var(--card-radius);
    background: var(--aspen-sage);
    color: var(--ocf-heading);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: clamp(34px, 29.5px + 1.14vw, 46px);
    line-height: 1;
    text-transform: uppercase;
}

.prose blockquote p,
.ocf-longform blockquote p { margin: 0; }
.prose blockquote cite,
.ocf-longform blockquote cite {
    display: block;
    margin-top: 14px;
    color: var(--ocf-primary-hover);
    font-family: var(--ocf-font-body), system-ui, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.12em;
    line-height: 1.4;
}

/* Long-form reading type (blog posts, detail content): display h2/h3, roomy body, a larger lead paragraph
 * (.ocf-longform--lead) and ordered lists as numbered rows. */
.ocf-longform { line-height: 1.7; }
.ocf-longform p,
.ocf-longform ul,
.ocf-longform ol { margin: 0 0 calc(var(--ocf-space-unit) * 1); }
.ocf-longform li + li { margin-top: calc(var(--ocf-space-unit) * 0.375); }
.ocf-longform h2 { margin: calc(var(--ocf-grid-gap) * 1.6) 0 calc(var(--ocf-grid-gap) * 0.8); }
.ocf-longform h3 { margin: clamp(36px, 33px + 0.76vw, 44px) 0 18px; font-size: clamp(32px, 29.8px + 0.57vw, 38px); }
.ocf-longform hr { margin: calc(var(--ocf-grid-gap) * 1.5) 0; border: 0; border-top: var(--card-border-width) solid var(--ocf-border-light); }
.ocf-longform > :first-child,
.ocf-longform > :first-child > :first-child { margin-top: 0; }

.ocf-longform--lead h2 + p,
.ocf-longform--lead > p:first-child,
.ocf-longform--lead > :first-child > p:first-child {
    color: var(--ocf-body);
    font-size: calc(var(--font-body-size) * 1.111);
    line-height: 1.6;
}

.ocf-longform ol {
    counter-reset: aspen-step;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: var(--card-border-width) solid var(--ocf-border-light);
}

.ocf-longform ol > li {
    counter-increment: aspen-step;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 20px 0;
    border-bottom: var(--card-border-width) solid var(--ocf-border-light);
    color: var(--ocf-heading);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

.ocf-longform ol > li::before {
    content: counter(aspen-step, decimal-leading-zero);
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--ocf-primary);
    color: var(--ocf-primary-contrast);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: 26px;
    line-height: 1;
}

/* Image rule: standalone photos use .ocf-media (image radius + shadow tokens); photos inside cards are clipped by the
 * card, which uses the card tokens. */
.ocf-journal-feature,
.ocf-location-card {
    overflow: hidden;
    border: var(--card-border-width) solid var(--ocf-border-light);
    border-radius: var(--card-radius);
    background: var(--ocf-bg);
}

/* Card hover: photo cards zoom their image; boxed cards lift onto the soft shadow. */
.ocf-svc-card-img { transition: transform calc(var(--duration) * 2.5) var(--ease); }
.ocf-svc-card:hover .ocf-svc-card-img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
    .ocf-svc-card-img { transition: none; }
    .ocf-svc-card:hover .ocf-svc-card-img { transform: none; }
}

/* Focus: one consistent keyboard ring; the light accent on dark bands. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--ocf-control-accent);
    outline-offset: 3px;
}

[data-ocf-tone="dark"],
.ocf-footer { --ocf-control-accent: var(--aspen-accent); }

/* ─── Aspen motion ───
 * Enabled by the aspen-motion class (set in header.php before first paint; skipped in the OCF editor and for reduced motion).
 * Hero and page banner play a short entrance; below-the-fold sections fade up as they scroll in,
 * headings first, then cards staggered by --aspen-reveal-delay from assets/main.js.
 */
:root {
    --aspen-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --aspen-reveal-duration: 640ms;
}

@keyframes aspen-rise {
    from { opacity: 0; transform: translate3d(0, 18px, 0); }
}

@keyframes aspen-fade {
    from { opacity: 0; }
}

.aspen-motion .ocf-hero__content > *,
.aspen-motion .ocf-page-header__content > * {
    animation: aspen-rise var(--aspen-reveal-duration) var(--aspen-ease-out) both;
}

.aspen-motion .ocf-hero__content > :nth-child(2),
.aspen-motion .ocf-page-header__content > :nth-child(2) { animation-delay: 90ms; }
.aspen-motion .ocf-hero__content > :nth-child(3),
.aspen-motion .ocf-page-header__content > :nth-child(3) { animation-delay: 180ms; }
.aspen-motion .ocf-hero__content > :nth-child(n+4),
.aspen-motion .ocf-page-header__content > :nth-child(n+4) { animation-delay: 260ms; }

.aspen-motion .ocf-hero__media {
    animation: aspen-fade calc(var(--aspen-reveal-duration) * 1.4) var(--aspen-ease-out) both;
    animation-delay: 200ms;
}

.aspen-motion .aspen-reveal-item {
    transition: opacity var(--aspen-reveal-duration) var(--aspen-ease-out), transform var(--aspen-reveal-duration) var(--aspen-ease-out);
    transition-delay: var(--aspen-reveal-delay, 0ms);
}

.aspen-motion .aspen-reveal:not(.is-visible) .aspen-reveal-item {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
}

/* Quick variant: short, near-static fade for dense sections (service areas). */
.aspen-motion .aspen-reveal--quick .aspen-reveal-item { transition-duration: 280ms; }
.aspen-motion .aspen-reveal--quick:not(.is-visible) .aspen-reveal-item { transform: translate3d(0, 6px, 0); }

.aspen-motion .ocf-faq-disclosure[open] > div { animation: aspen-rise 320ms var(--aspen-ease-out) both; }

/* Long single words (German compounds such as "Sturmschadenbeseitigung") must wrap instead of clipping in cards,
 * buttons, and narrow columns; German also gets automatic hyphenation. */
h1, h2, h3, h4, h5, h6,
.btn-primary, .btn-secondary, .nav-cta, .ocf-text-link,
.bw-service-row-label, .dropdown-item, .eyebrow {
    overflow-wrap: break-word;
}
:lang(de) :is(h1, h2, h3, h4, h5, h6, .bw-service-row-label, .dropdown-item) { hyphens: auto; }

/* ─── Aspen type and actions ───
 * Tall condensed display headings (Bebas Neue in the default palette, set in capitals so a customer's heading font
 * keeps the look), a friendly body face (Outfit), display-type eyebrows in the primary color, 4px buttons with an
 * arrow, and text links with an arrow. Fonts and colors come from the tokens.
 */
.heading-1,
.heading-2,
.heading-3,
h1, h2, h3, h4,
.prose h2 {
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    letter-spacing: 0.008em;
    text-transform: uppercase;
}

.heading-1,
.heading-2,
.prose h2 { line-height: var(--ocf-font-h2-line); }
.heading-3, h3 { line-height: 1; }

.eyebrow {
    display: block;
    margin: 0 0 14px;
    color: var(--ocf-primary);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: var(--ocf-font-eyebrow-size);
    font-weight: var(--ocf-font-eyebrow-weight);
    letter-spacing: 0.085em;
    line-height: 1;
    text-transform: uppercase;
}

/* Eyebrows on light tinted surfaces use the deeper primary for contrast. */
.aspen-sage .eyebrow { color: var(--ocf-primary-hover); }
[data-ocf-tone="dark"] .eyebrow { color: var(--aspen-accent); }
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .aspen-sage .eyebrow { color: var(--ocf-dark-link); }

/* Section headings: .ocf-section-heading puts the copy left and an action right (services, reviews);
 * .aspen-heading--center centers eyebrow, heading and intro. */
.ocf-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: clamp(32px, 23.3px + 2.29vw, 56px);
}

.ocf-section-heading .heading-2 { max-width: var(--ocf-section-heading-width); }
.ocf-section-heading .ocf-section-intro { max-width: 640px; }

.ocf-section-heading.aspen-heading--center {
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
}

.aspen-heading--center .heading-2 { max-width: 1000px; }
.aspen-heading--center .ocf-section-intro { margin: 18px auto 0; }

@media (max-width: 1023px) {
    .ocf-section-heading:not(.aspen-heading--center) { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.ocf-lede { font-size: calc(var(--font-body-size) * 1.111); line-height: 1.6; }

/* Buttons: primary fill (deeper primary on hover), an ink outline button, and a light outline on dark bands. */
.btn-primary,
.btn-secondary,
.btn-dark,
.nav-cta,
.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 30px;
    border: var(--button-border-width) solid transparent;
    border-radius: var(--button-radius);
    box-shadow: none;
    font-family: var(--ocf-font-body), system-ui, sans-serif;
    font-size: var(--aspen-label-size);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
    transform: none;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.btn-primary,
.nav-cta,
.form-submit-btn,
[data-ocf-tone="dark"] .btn-primary {
    background: var(--ocf-primary);
    border-color: var(--ocf-primary);
    color: var(--ocf-primary-contrast);
}

.btn-primary:hover,
.nav-cta:hover,
.form-submit-btn:hover,
[data-ocf-tone="dark"] .btn-primary:hover {
    background: var(--ocf-primary-hover);
    border-color: var(--ocf-primary-hover);
    color: var(--ocf-primary-contrast);
    box-shadow: none;
    transform: none;
}

.btn-secondary,
.btn-dark {
    background: transparent;
    border-color: var(--ocf-heading);
    color: var(--ocf-heading);
}

.btn-secondary:hover,
.btn-dark:hover {
    background: color-mix(in srgb, var(--ocf-heading) 6%, transparent);
    border-color: var(--ocf-heading);
    color: var(--ocf-heading);
    box-shadow: none;
    transform: none;
}

[data-ocf-tone="dark"] .btn-secondary,
[data-ocf-tone="dark"] .btn-dark {
    border-color: color-mix(in srgb, var(--aspen-on-dark) 75%, transparent);
    color: var(--aspen-on-dark);
}

[data-ocf-tone="dark"] .btn-secondary:hover,
[data-ocf-tone="dark"] .btn-dark:hover {
    background: color-mix(in srgb, var(--aspen-on-dark) 10%, transparent);
    border-color: var(--aspen-on-dark);
    color: var(--aspen-on-dark);
}

.btn-sm { min-height: 48px; padding: 0 22px; font-size: calc(var(--aspen-label-size) * 0.94); }
.btn-primary svg,
.btn-secondary svg,
.btn-dark svg,
.nav-cta svg,
.form-submit-btn svg { width: 18px; height: 18px; flex: none; }
.aspen-arrow-icon { transition: transform var(--duration) var(--ease); }
a:hover > .aspen-arrow-icon,
button:hover > .aspen-arrow-icon,
.ocf-svc-card:hover .aspen-arrow-icon { transform: translateX(3px); }

/* Text links: primary, semibold, with a trailing arrow. */
.ocf-text-link,
.ocf-areas-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ocf-link);
    font-family: var(--ocf-font-body), system-ui, sans-serif;
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    text-transform: none;
}

.ocf-text-link:hover { color: var(--ocf-link-hover); text-decoration: none; }
.ocf-text-link svg { width: 16px; height: 16px; flex: none; }
.ocf-text-link span[aria-hidden="true"] { display: inline-block; transition: transform var(--duration) var(--ease); }
.ocf-text-link:hover span[aria-hidden="true"] { transform: translateX(3px); }

/* Small uppercase meta label (blog categories, gallery captions, values). */
.aspen-meta {
    display: block;
    color: var(--ocf-primary);
    font-family: var(--ocf-font-body), system-ui, sans-serif;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

html[data-theme="dark"] .aspen-meta { color: var(--ocf-dark-link); }

/* Square primary badge: ticks, numbers, contact icons. */
.aspen-tick,
.aspen-num {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--ocf-primary);
    color: var(--ocf-primary-contrast);
}

.aspen-num { width: 48px; height: 48px; font-family: var(--ocf-font-heading), system-ui, sans-serif; font-size: 26px; line-height: 1; }
.aspen-tick svg { width: 22px; height: 22px; }

/* Check list: primary tick + heading-colored label (about, hero fallbacks). */
.aspen-checks { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.aspen-checks li { display: flex; align-items: center; gap: 12px; color: var(--ocf-heading); font-weight: var(--font-weight-medium); }
.aspen-checks svg { flex: none; width: 22px; height: 22px; color: var(--ocf-primary); }
.prose ul.aspen-checks { margin: 28px 0 0; }

/* Rating stars: the primary color. */
.aspen-stars { display: inline-flex; gap: 3px; color: var(--ocf-primary); }
.aspen-stars svg { width: 20px; height: 20px; fill: currentColor; }
.aspen-stars .is-empty { opacity: 0.3; }

/* Photo with a sage block offset behind it (home about, about page). */
.aspen-offset-photo { position: relative; height: var(--ocf-about-image-height); }
.aspen-offset-photo::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 85%;
    height: calc(100% - 100px);
    border-radius: var(--image-radius);
    background: var(--aspen-sage-line);
}
.aspen-offset-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 89%;
    height: calc(100% - 60px);
    border-radius: var(--image-radius);
    object-fit: cover;
}

@media (max-width: 1023px) { .aspen-offset-photo { height: 480px; } }
@media (max-width: 640px) { .aspen-offset-photo { height: var(--ocf-about-image-height-mobile); } .aspen-offset-photo img { width: 88%; } }

/* Mobile: full-width stacked actions. */
@media (max-width: 640px) {
    .ocf-actions:not(.aspen-actions--inline) { flex-direction: column; align-items: stretch; gap: 12px; }
    .ocf-actions:not(.aspen-actions--inline) > .btn-primary,
    .ocf-actions:not(.aspen-actions--inline) > .btn-secondary { width: 100%; }
}
