/*
 * main.css — Black Canyon Exteriors
 * Mobile-first, vanilla CSS, no preprocessor, no build step.
 * Requires: tokens.css loaded before this file.
 */

/* ── Reset ───────────────────────────────────────────────────────────────── */

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* ── Accessibility: skip link ────────────────────────────────────────────── */

.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: #ffffff;
    color: #1a1a1a;
    padding: var(--space-3) var(--space-6);
    font-weight: 700;
    font-size: var(--font-size-base);
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* ── Accessibility: sr-only ──────────────────────────────────────────────── */

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

/* ── Focus visible (keyboard only) ──────────────────────────────────────── */

:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Layout: container ───────────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

/* ── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: var(--space-4);
    color: var(--color-secondary);
}

h1 { font-size: var(--font-size-h1); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--font-size-h2); line-height: 1.15; }
h3 { font-size: var(--font-size-h3); line-height: 1.25; }
h4 { font-size: var(--font-size-base); font-weight: 700; line-height: 1.3; }

.section__intro,
.hero__tagline,
.hero__sub,
.lead {
    font-size: var(--font-size-lead);
    line-height: 1.55;
    color: var(--color-text-muted);
}

p {
    margin-top: 0;
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary-dark);
}

ul, ol {
    margin-top: 0;
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background var(--transition-smooth), color var(--transition-smooth),
                border-color var(--transition-smooth), box-shadow var(--transition-smooth),
                transform var(--transition-smooth);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn:active {
    transform: translateY(1px);
}

/* Primary — solid orange, white text, hover darkens */
.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(242, 101, 34, 0.15);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.10), 0 4px 10px rgba(242, 101, 34, 0.22);
}

/* Secondary — transparent w/ black border, turns orange on hover */
.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    text-decoration: none;
}

.btn:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

/* ── Site header ─────────────────────────────────────────────────────────── */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Thin orange rule inside the border — keeps brand color without
   the chunky 3px bar the original header used. */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--color-primary);
    pointer-events: none;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-3);
    min-height: 96px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__logo img,
.site-header__logo svg {
    height: 84px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: var(--space-2) var(--space-3);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--color-primary);
}

.site-nav a:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.site-header__cta {
    flex-shrink: 0;
}

/* ── Site footer ─────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--color-secondary);
    color: #c8c8c8;
    padding-block: var(--space-10) var(--space-8);
    margin-top: var(--space-16);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.site-footer__col-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}

.site-footer__nap {
    font-style: normal;
    line-height: 1.7;
}

.site-footer__nap a {
    color: var(--color-primary);
    text-decoration: none;
}

.site-footer__nap a:hover {
    text-decoration: underline;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__links li {
    margin-bottom: var(--space-2);
}

.site-footer__links a {
    color: #c8c8c8;
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.site-footer__links a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
}

.site-footer__links a:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.site-footer__bottom {
    border-top: 1px solid #333;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    font-size: var(--font-size-sm);
    color: #888;
    text-align: center;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-12) var(--space-16);
}

.hero__eyebrow {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.hero h1 {
    font-size: var(--font-size-2xl);
    color: var(--color-secondary);
    max-width: 38ch;
    margin-bottom: var(--space-4);
}

.hero__tagline {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    max-width: 55ch;
    margin-bottom: var(--space-8);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
}

/* ── Section layout ──────────────────────────────────────────────────────── */

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

.section--alt {
    background: var(--color-surface);
}

.section__header {
    margin-bottom: var(--space-10);
    max-width: 60ch;
}

.section__header--center {
    margin-inline: auto;
    text-align: center;
}

.section__header h2 {
    margin-bottom: var(--space-3);
}

.section__intro {
    max-width: 60ch;
    margin-bottom: 0;
}

/* ── Services grid ───────────────────────────────────────────────────────── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-8) var(--space-6);
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 48rem) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (min-width: 64rem) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

/* Imaged variant — when the card contains a full-bleed image at top,
   drop the padding/border-radius on the outer box and tighten the content. */
.service-card:has(> .feature-card__image-wrap) {
    padding: 0;
}

.service-card .feature-card__image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
}

.service-card .feature-card__image {
    aspect-ratio: 16 / 10;
    border-radius: 0;
    transition: transform var(--transition-smooth);
}

.service-card:has(.card-link-stretch):hover .feature-card__image {
    transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .service-card:hover .feature-card__image {
        transform: none;
    }
}

.service-card:has(> .feature-card__image-wrap) .service-card__name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    margin: 1.25rem 1.5rem 0.5rem;
}

.service-card:has(> .feature-card__image-wrap) .service-card__desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0 1.5rem 1rem;
    flex: 1;
}

.service-card:has(> .feature-card__image-wrap) .service-card__link {
    margin: 0 1.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

/* Non-imaged service-card — keep original inner spacing (team bios etc.) */
.service-card:not(:has(> .feature-card__image-wrap)) .service-card__name {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--color-secondary);
    margin-bottom: var(--space-2);
}

.service-card:not(:has(> .feature-card__image-wrap)) .service-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* ── Trust points ────────────────────────────────────────────────────────── */

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.trust-item__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(242, 101, 34, 0.25);
}

.trust-item__body strong {
    display: block;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-1);
}

/* ── CTA band ────────────────────────────────────────────────────────────── */

.cta-band {
    background: #0f0f0f;
    color: #f4f4f4;
    padding-block: var(--section-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle orange glow accent in the background for warmth */
.cta-band::before {
    content: "";
    position: absolute;
    inset: -25% -10% auto auto;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(242, 101, 34, 0.18) 0%, rgba(242, 101, 34, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.cta-band > * {
    position: relative;
    z-index: 1;
}

.cta-band h2 {
    color: #ffffff;
    margin-bottom: var(--space-3);
    max-width: 30ch;
    margin-inline: auto;
}

.cta-band p {
    font-size: var(--font-size-lead);
    color: rgba(255, 255, 255, 0.80);
    max-width: 48ch;
    margin: 0 auto var(--space-8);
}

/* Primary on dark — unchanged orange/white, just shadow weight adjusted */
.cta-band .btn-primary {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.30), 0 4px 12px rgba(242, 101, 34, 0.28);
}

.cta-band .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.40);
    background: transparent;
}

.cta-band .btn-secondary:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: transparent;
}

.cta-band .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.40);
    background: transparent;
}

.cta-band .btn-outline:hover {
    color: #0f0f0f;
    background: #ffffff;
    border-color: #ffffff;
}

/* ── Page header (interior pages) ───────────────────────────────────────── */

.page-header {
    background: #ffffff;
    color: #1a1a1a;
    padding-block: var(--space-10) var(--space-12);
}

.page-header h1 {
    color: #1a1a1a;
    margin-bottom: var(--space-3);
}

.page-header__sub {
    font-size: var(--font-size-lg);
    color: #ccc;
    margin-bottom: 0;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text);
    font-size: var(--font-size-sm);
}

.form-label .req {
    color: var(--color-error);
    margin-left: var(--space-1);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: #fff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

.form-control:focus-visible {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-focus);
}

.form-control[aria-invalid="true"] {
    border-color: var(--color-error);
}

textarea.form-control {
    resize: vertical;
    min-height: 8rem;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-10);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.form-error {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-error);
}

.form-hint {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Radio group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--font-size-base);
}

.radio-option input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.radio-option input[type="radio"]:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* Form error summary */
.error-summary {
    background: var(--color-error-bg);
    border: 2px solid var(--color-error);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-6);
    color: var(--color-error);
}

.error-summary p {
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.error-summary ul {
    margin: 0;
    padding-left: var(--space-6);
}

/* Honeypot — hidden from real users, always empty on submit */
.hp-trap {
    position: absolute;
    left: -9999px;
    top: auto;
    height: 1px;
    width: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Contact info block ──────────────────────────────────────────────────── */

.contact-info {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
}

.contact-info__item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    margin-bottom: var(--space-6);
}

.contact-info__item:last-child {
    margin-bottom: 0;
}

.contact-info__label {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: var(--space-1);
}

.contact-info__value {
    color: var(--color-text);
    margin: 0;
}

.contact-info__value a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
}

.contact-info__value a:hover {
    text-decoration: underline;
}

/* ── About page ──────────────────────────────────────────────────────────── */

.about-body {
    max-width: 68ch;
}

.about-services-list {
    columns: 2;
    column-gap: var(--space-8);
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-services-list li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    break-inside: avoid;
}

.about-services-list li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-right: var(--space-2);
    vertical-align: middle;
}

/* ── 404 / error pages ───────────────────────────────────────────────────── */

.error-page {
    text-align: center;
    padding-block: var(--space-20);
}

.error-page__code {
    font-size: 5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-4);
}

.error-page h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

.error-page p {
    color: var(--color-text-muted);
    max-width: 45ch;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

/* ── Thank-you page ──────────────────────────────────────────────────────── */

.success-page {
    text-align: center;
    padding-block: var(--space-20);
}

.success-page__checkmark {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: var(--space-4);
    color: var(--color-success);
}

.success-page h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

.success-page p {
    color: var(--color-text-muted);
    max-width: 48ch;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}

/* ── Utility ─────────────────────────────────────────────────────────────── */

.text-muted  { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-8        { margin-top: var(--space-8); }
.mt-6        { margin-top: var(--space-6); }
.mb-0        { margin-bottom: 0; }

/* ── Responsive: ≥ 640px ─────────────────────────────────────────────────── */

@media (min-width: 40rem) {
    /* Fluid clamp() on h1/h2 handles scaling — no need to override here */

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ── Responsive: ≥ 768px ─────────────────────────────────────────────────── */

@media (min-width: 48rem) {
    .contact-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: var(--space-10);
        align-items: start;
    }
}

/* ── Responsive: ≥ 1024px ────────────────────────────────────────────────── */

@media (min-width: 64rem) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */

.breadcrumb {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.breadcrumb li + li::before {
    content: '\203A'; /* › */
    margin-right: var(--space-1);
    color: var(--color-border);
    font-weight: 400;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: underline;
}

.breadcrumb a:hover {
    color: var(--color-primary-dark);
}

/* ── Process steps ───────────────────────────────────────────────────────── */

.process-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-6);
}

.process-step {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
}

.process-step__number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-base);
    line-height: 1;
    box-shadow: 0 2px 6px rgba(242, 101, 34, 0.25);
}

.process-step__body {
    flex: 1;
    min-width: 0;
}

.process-step__title {
    display: block;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-2);
}

/* ── Scope list ──────────────────────────────────────────────────────────── */

.scope-list {
    list-style: disc;
    padding-left: var(--space-6);
    margin: 0;
}

.scope-list li {
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.scope-list li:last-child {
    margin-bottom: 0;
}

/* ── FAQ list ────────────────────────────────────────────────────────────── */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-5) var(--space-6);
    background: var(--color-bg);
}

.faq-item__question {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-base);
    display: block;
}

.faq-item__answer {
    color: var(--color-text);
    line-height: 1.65;
    margin: 0;
}

/* ── Hero compact + sub ──────────────────────────────────────────────────── */

.hero--compact {
    padding-block: var(--space-12) var(--space-16);
}

.hero h1,
.hero--image h1 {
    max-width: 22ch;
    margin-bottom: var(--space-4);
}

.hero__tagline {
    max-width: 52ch;
    margin-bottom: var(--space-6);
}

.hero__sub {
    font-size: var(--font-size-lead);
    font-weight: 500;
    color: var(--color-text-muted);
    max-width: 58ch;
    margin-bottom: var(--space-8);
}

.hero__actions {
    gap: var(--space-3);
}

/* ── Container narrow (prose) ────────────────────────────────────────────── */

.container--narrow {
    max-width: 42rem;
}

/* ── CTA band actions ────────────────────────────────────────────────────── */

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
}

/* ── Button outline variant ──────────────────────────────────────────────── */

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    border-color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--color-primary);
    text-decoration: none;
}

/* on non-orange backgrounds, outline uses primary color */
.section .btn-outline,
.page-header .btn-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.section .btn-outline:hover,
.page-header .btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* ── Service card enhancements ───────────────────────────────────────────── */

.service-card {
    position: relative;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

/* Hover only when the card contains an interactive affordance (link or button).
   This prevents non-interactive cards (e.g. team bios) from implying clickability. */
.service-card:has(a, button):hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Stretched-link pattern — lets a nested <a> cover the whole card so the
   entire tile is clickable while preserving document semantics. Any
   interactive child (e.g. buttons) must use position:relative + z-index:2
   to remain clickable above the stretched link. */
.card-link-stretch::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.service-card:has(.card-link-stretch):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.service-card:has(.card-link-stretch:focus-visible) {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: var(--radius-lg);
}

/* Hide the stretched link's own focus ring — card shows the ring instead */
.card-link-stretch:focus-visible {
    outline: none;
}

/* Any interactive child inside a stretched-link card (e.g. CTA button, chip link)
   must sit ABOVE the stretched link so clicks still route to them. */
.card-link-stretch ~ .btn,
.card-link-stretch ~ * .btn,
.card-link-stretch ~ a:not(.card-link-stretch),
.card-link-stretch ~ * a:not(.card-link-stretch),
.card-link-stretch ~ button,
.card-link-stretch ~ * button {
    position: relative;
    z-index: 2;
}

.service-card__note {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: var(--space-2);
    margin-bottom: var(--space-2);
}

.service-card__link {
    display: inline-block;
    margin-top: var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.service-card__link:hover {
    text-decoration: underline;
    color: var(--color-primary-dark);
}

/* ── Local proof box ─────────────────────────────────────────────────────── */

.local-proof {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: var(--space-6);
}

.local-proof p {
    margin-bottom: var(--space-3);
}

.local-proof p:last-child {
    margin-bottom: 0;
}

.local-proof__area {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-style: italic;
}

/* ── Deep-cluster nav (residential-deep.php, commercial-deep.php) ─────────── */

.cluster-nav {
    background: var(--color-surface);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-4) var(--space-6);
    margin: 0 0 var(--space-8);
    border-radius: var(--radius);
}

.cluster-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
}

.cluster-nav__list li {
    margin: 0;
}

.cluster-nav__link {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    font-size: var(--font-size-sm);
}

.cluster-nav__link:hover {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
}

.cluster-nav__link--active {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

/* ── Section with cluster footer (sibling links grid) ─────────────────────── */

.section--cluster-footer {
    background: var(--color-surface);
    padding: var(--space-12) 0;
    margin-top: var(--space-16);
    border-top: 1px solid var(--color-border);
}

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

/* Cluster-footer card-grid uses <a class="service-card"> anchor cards.
   Override the imaged-variant rules so these text-only tiles keep padding. */
.service-card-grid .service-card {
    padding: var(--space-5) var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth),
                transform var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-card);
}

.service-card-grid .service-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    color: var(--color-primary);
}

.service-card-grid .service-card__arrow {
    color: var(--color-primary);
    font-size: 1.25rem;
    transition: transform var(--transition-smooth);
}

.service-card-grid .service-card:hover .service-card__arrow {
    transform: translateX(3px);
}

.btn--large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
}

/* ── Contact map placeholder + section--alt + contact-info note ──────────── */

.section--alt {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.contact-map-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius);
    padding: var(--space-12);
    text-align: center;
    margin: var(--space-6) 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-map-placeholder__inner {
    max-width: 32rem;
}

.contact-map-placeholder__inner strong {
    display: block;
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
}

.contact-map-placeholder__sub {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin: 0;
}

.contact-info__note {
    display: block;
    margin-top: var(--space-1);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-style: italic;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Serving-region page ─────────────────────────────────────────────────── */

/* At-a-glance facts strip — single column mobile, multi-column ≥ 720px */
.region-facts {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.region-facts__item {
    display: contents;
}

.region-facts dt {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-1);
}

.region-facts dd {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-secondary);
    margin-inline-start: 0;
    margin: 0 0 var(--space-4);
}

@media (min-width: 45rem) {
    .region-facts {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: var(--space-6) var(--space-8);
        background: var(--color-surface);
    }

    .region-facts__item {
        display: block;
    }

    .region-facts dt {
        margin-bottom: var(--space-1);
    }

    .region-facts dd {
        margin-bottom: 0;
    }
}

/* City notes — card list, 2-column grid ≥ 768px */
.city-notes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.city-notes li {
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.city-notes h3 {
    margin-block: 0 var(--space-2);
    font-size: var(--font-size-lg);
    color: var(--color-secondary);
}

.city-notes p {
    margin: 0;
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

@media (min-width: 48rem) {
    .city-notes {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-4);
    }
}

/* Services list — single column mobile, 2-column ≥ 720px */
.region-services {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.region-services li {
    line-height: 1.6;
    color: var(--color-text);
}

@media (min-width: 45rem) {
    .region-services {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3) var(--space-8);
    }
}

/* CTA section — reuse section--cta pattern (no background override needed;
   section--cta class applies padding only, caller sets background if needed) */
.section--cta {
    text-align: center;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
    margin-top: var(--space-6);
}

/* ── Projects gallery ────────────────────────────────────────────────────── */

/* Filter bar */

.project-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-filter a {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.project-filter a:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}

.project-filter a[aria-current="page"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.project-filter a:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* Projects grid */

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Project card */

.project-card {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.project-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.project-card:has(.card-link-stretch):hover {
    transform: translateY(-2px);
}

.project-card:has(.card-link-stretch:focus-visible) {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .project-card {
        transition: none;
    }
}

.project-card__thumb-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.project-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-fast);
}

.project-card:hover .project-card__thumb {
    transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
    .project-card:hover .project-card__thumb {
        transform: none;
    }
}

.project-card__body {
    padding: var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Chips */

.project-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
}

.chip {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 2rem;
    white-space: nowrap;
    line-height: 1.4;
}

.chip--service {
    background: rgba(242, 101, 34, 0.1);
    color: var(--color-primary-dark);
    border: 1px solid rgba(242, 101, 34, 0.25);
}

.chip--segment {
    background: var(--color-surface);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.chip--city {
    background: #f0f4f8;
    color: #4a607a;
    border: 1px solid #d0dce8;
}

/* Card title */

.project-card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--space-2);
    color: var(--color-secondary);
}

.project-card__title a {
    color: var(--color-secondary);
    text-decoration: none;
    display: block;
}

.project-card__title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.project-card__title a:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Card body text */

.project-card__summary {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--space-3);
}

.project-card__meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* Empty state */

.project-empty {
    padding-block: var(--space-12);
    color: var(--color-text-muted);
}

.project-empty p {
    margin-bottom: var(--space-3);
}

/* Project detail — hero image */

.project-detail__figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.project-detail__hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project detail — facts strip */

.project-detail__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-6);
    margin: 0;
    padding: var(--space-6) var(--space-8);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.project-detail__facts-item {
    display: contents;
}

.project-detail__facts dt {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
    margin: 0;
    grid-column: auto;
}

.project-detail__facts dd {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-secondary);
    margin-inline-start: 0;
    margin: 0 0 var(--space-4);
}

/* Project detail — materials aside */

.project-detail__materials {
    background: var(--color-surface);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: var(--space-6) var(--space-8);
}

.project-detail__materials h2 {
    font-size: var(--font-size-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-3);
}

/* Project detail — prose sections */

.project-detail__prose h2 {
    font-size: var(--font-size-xl);
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
}

.prose p {
    line-height: 1.6;
    max-width: 70ch;
    color: var(--color-text);
}

/* ── Projects gallery: responsive ≥ 768px ────────────────────────────────── */

@media (min-width: 48rem) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-detail__facts {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-2) var(--space-4);
    }

    .project-detail__facts dd {
        margin-bottom: 0;
    }
}

/* ── Projects gallery: responsive ≥ 1024px ───────────────────────────────── */

@media (min-width: 64rem) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Mega-menu nav ───────────────────────────────────────────────────────── */
/*
 * CSS-only dropdowns — aria-expanded remains 'false' in markup because CSS
 * cannot mutate HTML attributes. Keyboard users Tab through submenu links
 * naturally (each <a role="menuitem"> is focusable). :focus-within keeps the
 * dropdown open while keyboard focus is inside it.
 */

/* Mobile-first: items stack vertically; dropdowns always visible, indented */

.site-nav {
    flex-wrap: wrap;
}

.site-nav__item {
    position: relative;
}

/* Parent link: flex row to align caret */
.site-nav__item.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Caret glyph */
.site-nav__caret {
    font-size: 0.625rem;
    line-height: 1;
    margin-left: 0.125rem;
    display: inline-block;
    transition: transform var(--transition-fast);
}

/* Dropdown panel */
.site-nav__dropdown {
    display: block; /* always-visible stack on mobile */
    padding-left: var(--space-4);
    background: transparent;
}

.site-nav__dropdown a {
    display: block;
    padding: var(--space-2) var(--space-3);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.site-nav__dropdown a:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

.site-nav__dropdown a:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* CTA region: two buttons side-by-side, wrap on very narrow */
.site-header__cta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* btn-outline on non-orange backgrounds */
.site-header__cta .btn-outline {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.site-header__cta .btn-outline:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
    text-decoration: none;
}

.site-header__cta .btn-outline:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

/* Desktop: ≥ 900px — horizontal nav, hidden dropdowns, hover/focus-within reveal */

@media (min-width: 56.25rem) {

    .site-nav {
        flex-wrap: nowrap;
    }

    .site-nav__item {
        position: relative;
    }

    /* Hide dropdown initially on desktop */
    .site-nav__dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        min-width: 14rem;
        background: #ffffff;
        border: 1px solid var(--color-border);
        border-top: 3px solid var(--color-primary);
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        padding: var(--space-2) 0;
        z-index: 200;
    }

    /* Show on hover or keyboard focus within the li */
    .site-nav__item.has-dropdown:hover > .site-nav__dropdown,
    .site-nav__item.has-dropdown:focus-within > .site-nav__dropdown {
        display: block;
    }

    /* Rotate caret when open */
    .site-nav__item.has-dropdown:hover > a .site-nav__caret,
    .site-nav__item.has-dropdown:focus-within > a .site-nav__caret {
        transform: rotate(180deg);
    }

    .site-nav__dropdown a {
        display: block;
        width: 100%;
        padding: var(--space-2) var(--space-4);
        white-space: nowrap;
        border-radius: 0;
    }

    .site-nav__dropdown a:hover {
        background: var(--color-surface);
        color: var(--color-primary);
    }
}

/* ── 6-column footer grid ────────────────────────────────────────────────── */

/* Already has mobile: 1-col from base styles. Override the ≥ 640px rule: */
@media (min-width: 40rem) {
    .site-footer__grid {
        /* 3-column tablet override */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 64rem) {
    .site-footer__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Footer divider between Resources and Company links */
.site-footer__divider {
    border: none;
    border-top: 1px solid #333;
    margin: var(--space-4) 0;
}

/* Footer legal link row */
.site-footer__legal-links {
    margin-top: var(--space-2);
    font-size: var(--font-size-sm);
    color: #888;
}

.site-footer__legal-links a {
    color: #aaa;
    text-decoration: none;
}

.site-footer__legal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer__legal-links a:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* ── HTML Sitemap page ───────────────────────────────────────────────────── */

.sitemap-page {
    padding-block: var(--space-10) var(--space-16);
}

.sitemap-page__section {
    margin-bottom: var(--space-10);
}

.sitemap-page__section h2 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
    display: inline-block;
}

.sitemap-page__links {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 1;
    column-gap: var(--space-8);
}

.sitemap-page__links li {
    margin-bottom: var(--space-2);
    break-inside: avoid;
}

.sitemap-page__links a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.sitemap-page__links a:hover {
    text-decoration: underline;
    color: var(--color-primary-dark);
}

.sitemap-page__links a:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

@media (min-width: 37.5rem) {
    .sitemap-page__links {
        columns: 2;
    }
}

/* ── Breadcrumbs partial (new .breadcrumbs class) ────────────────────────── */
/*
 * The existing .breadcrumb selector (used inline on service templates) is
 * preserved above. This .breadcrumbs selector is for the shared partial.
 * Styles mirror .breadcrumb for visual consistency.
 */

.breadcrumbs {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Middle-dot separator between items via ::after on preceding li */
.breadcrumbs li + li::before {
    content: '\00B7'; /* · middle dot */
    margin-right: var(--space-1);
    color: var(--color-text-muted);
    font-weight: 400;
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: underline;
}

.breadcrumbs a:hover {
    color: var(--color-primary-dark);
}

.breadcrumbs a:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.breadcrumbs [aria-current="page"] {
    color: var(--color-text-muted);
}

/* ── Responsive images ───────────────────────────────────────────────────── */

/* Page hero — full-bleed image container with overlay support
   Mobile: 4/3 aspect ratio; desktop (≥ 45rem): 16/9 aspect ratio */

.page-hero {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    width: 100%;
}

.page-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Text-over-image overlay: dark gradient bottom-to-top. Strong at the
   foot (≈ 4.5:1 text contrast) fading to clear so the photograph
   remains visible in the upper half. */
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.20) 60%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

@media (min-width: 45rem) {
    .page-hero {
        aspect-ratio: 16 / 9;
    }
}

/* Section image — generic block-level inline content image */

.section-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg, 0.5rem);
    margin-block: var(--space-6, 1.5rem) 0;
    object-fit: cover;
}

/* Feature card — image slot and wrap
   Do NOT add layout rules here; only the image-specific rules.
   The wrap enforces the 4/3 slot; the image fills it. */

.feature-card__image-wrap {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.feature-card__image {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--radius-lg, 0.5rem) var(--radius-lg, 0.5rem) 0 0;
}

/* Gallery — auto-fill grid of images */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4, 1rem);
}

.gallery__item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg, 0.5rem);
    position: relative;
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Gallery hover zoom — only when reduced-motion is acceptable */

@media (prefers-reduced-motion: no-preference) {
    .gallery__image {
        transition: transform 0.3s ease;
    }

    .gallery__item:hover .gallery__image {
        transform: scale(1.03);
    }
}

/* Explicit reduced-motion reset for gallery — belt-and-suspenders alongside
   the global block above, and mirrors the pattern used for .project-card */

@media (prefers-reduced-motion: reduce) {
    .gallery__image {
        transition-duration: 0.01ms;
    }

    .gallery__item:hover .gallery__image {
        transform: none;
    }
}

/* Lazy-loading placeholder — background colour while native loading=lazy
   image is still fetching. Apply alongside the HTML loading="lazy" attribute. */

.img-lazy {
    background-color: var(--color-surface, #f3f3f3);
}

/* Responsive overrides — narrow viewports (≤ 35rem / 560px) */

@media (max-width: 35rem) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .page-hero {
        aspect-ratio: 4 / 3;
    }
}

/* ── Hero image variant ──────────────────────────────────────────────────── */

/*
 * .hero--image
 * Turns the hero section into a full-bleed background-image hero.
 * The background-image (set inline via PHP) must be a gradient+url() pair
 * so the gradient overlay is baked in. No separate overlay element needed.
 * Example inline style:
 *   background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url('/assets/img/...');
 */
.hero--image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 380px;
    color: #ffffff;
    border-bottom: none;
}

/* Ensure .container content sits above the gradient overlay */
.hero--image .container {
    position: relative;
    z-index: 1;
}

/* Override default colour rules so text is readable on dark background */
.hero--image .hero__eyebrow {
    color: var(--color-primary);
}

.hero--image h1,
.hero--image .hero h1 {
    color: #ffffff;
}

.hero--image .hero__tagline {
    color: rgba(255, 255, 255, 0.9);
}

.hero--image .hero__sub {
    color: rgba(255, 255, 255, 0.85);
}

/* Compact + image variant — shorter minimum height */
.hero--compact.hero--image {
    min-height: 280px;
}

@media (min-width: 40rem) {
    .hero--image {
        min-height: 480px;
    }

    .hero--compact.hero--image {
        min-height: 360px;
    }
}

/* ── Work gallery ────────────────────────────────────────────────────────── */

.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ── Section gallery heading centred ────────────────────────────────────── */

.section--gallery {
    padding-block: var(--space-12);
}

.section--gallery h2 {
    text-align: center;
    margin-bottom: var(--space-8);
}

/* ── Process layout — 2-col split ───────────────────────────────────────── */

.process-layout {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

.process-layout img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

@media (min-width: 48rem) {
    .process-layout {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

/* ── Scope layout — 2-col split ─────────────────────────────────────────── */

.scope-layout {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

.scope-layout img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

@media (min-width: 48rem) {
    .scope-layout {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

/* ── Cluster footer layout — 2-col split ─────────────────────────────────── */

.cluster-footer-layout {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

.cluster-footer-layout img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

@media (min-width: 48rem) {
    .cluster-footer-layout {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

/* ── Images-features: card thumbs, inline figures, figure rows ──────────── */

/* Base rules so stretched-link pattern positions correctly */
.guide-card,
.resource-card {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.guide-card:hover,
.resource-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.guide-card:has(.card-link-stretch):hover,
.resource-card:has(.card-link-stretch):hover {
    transform: translateY(-2px);
}

.guide-card:has(.card-link-stretch:focus-visible),
.resource-card:has(.card-link-stretch:focus-visible) {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.guide-card__title,
.resource-card__title {
    font-size: var(--font-size-lg);
    line-height: 1.25;
    margin-bottom: var(--space-2);
    color: var(--color-secondary);
}

.guide-card__title a,
.resource-card__title a {
    color: var(--color-secondary);
    text-decoration: none;
}

.guide-card__title a:hover,
.resource-card__title a:hover {
    color: var(--color-primary);
}

.guide-card__subtitle,
.resource-card__excerpt {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex: 1;
}

.guide-card__audience,
.resource-card__badges {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-3);
}

.resource-card__category,
.resource-card__audience,
.guide-card__audience {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2rem;
    background: rgba(242, 101, 34, 0.1);
    color: var(--color-primary-dark);
    border: 1px solid rgba(242, 101, 34, 0.25);
}

.guide-card__bullets {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.guide-card__bullets li {
    margin-bottom: var(--space-1);
}

.guide-card__meta,
.resource-card__meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.guide-card__cta,
.resource-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

.card-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.guide-card__thumb,
.resource-card__thumb,
.card-thumb {
    display: block;
    width: calc(100% + (var(--space-6, 1.5rem) * 2));
    margin: calc(var(--space-6, 1.5rem) * -1) calc(var(--space-6, 1.5rem) * -1) var(--space-5, 1.25rem);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-top-left-radius: var(--radius-lg, 0.5rem);
    border-top-right-radius: var(--radius-lg, 0.5rem);
    background: var(--color-surface, #f3f3f3);
}

.guide-card__thumb img,
.resource-card__thumb img,
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.inline-figure {
    margin: var(--space-10, 2.5rem) 0;
    border-radius: var(--radius-lg, 0.5rem);
    overflow: hidden;
    background: var(--color-surface, #f3f3f3);
}

.inline-figure img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 45rem) {
    .inline-figure img {
        aspect-ratio: 16 / 9;
    }
}

.figure-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4, 1rem);
    margin: var(--space-8, 2rem) 0;
}

.figure-row__item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg, 0.5rem);
    background: var(--color-surface, #f3f3f3);
}

.figure-row__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.team-member__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg, 0.5rem);
    margin-bottom: var(--space-4, 1rem);
    display: block;
    background: var(--color-surface, #f3f3f3);
}

.thanks-page__thumb {
    max-width: 280px;
    margin: 0 auto var(--space-6, 1.5rem);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg, 0.5rem);
    background: var(--color-surface, #f3f3f3);
}

.thanks-page__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Home above-the-fold hero ────────────────────────────────────────────
 *
 * Compact split-layout hero for the home page. Designed to fit within 40vh
 * on mobile (390×844) and 50vh on desktop (1366×768) without scroll. The
 * split grid is text+CTAs on the left and hero image on the right at
 * ≥48rem; on narrow viewports the image is hidden so H1, lead, CTAs, and
 * the 4-item trust row all fit above the fold.
 */

.hero-atf {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    min-height: 40vh;
    max-height: 40vh;
    padding-block: var(--space-3);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-atf__container {
    width: 100%;
}

.hero-atf__split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: center;
    margin-bottom: var(--space-3);
}

.hero-atf__title {
    font-size: 1.5rem;
    line-height: 1.15;
    color: var(--color-secondary);
    margin: 0 0 var(--space-2);
    max-width: 18ch;
}

.hero-atf__lead {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-3);
    max-width: 52ch;
}

.hero-atf__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.hero-atf__actions .btn {
    padding: var(--space-2) var(--space-4);
    font-size: 0.9375rem;
    line-height: 1.3;
}

.hero-atf__cta-primary {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    font-weight: 600;
}

.hero-atf__cta-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #ffffff;
}

.hero-atf__cta-secondary {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    background: transparent;
}

.hero-atf__cta-secondary:hover {
    background: var(--color-secondary);
    color: #ffffff;
    border-color: var(--color-secondary);
}

.hero-atf__media {
    display: none;
}

.hero-atf__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-1) var(--space-3);
    font-size: 0.8125rem;
    color: var(--color-text);
}

.hero-atf__trust li {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    line-height: 1.3;
    font-weight: 600;
}

.hero-atf__trust li::before {
    content: "\2713";
    color: var(--color-primary);
    font-weight: 900;
    font-size: 0.875rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Desktop ≥ 48rem: restore split layout, relax height, show image */
@media (min-width: 48rem) {
    .hero-atf {
        min-height: 50vh;
        max-height: 50vh;
        padding-block: var(--space-4);
    }

    .hero-atf__split {
        grid-template-columns: 1.15fr 1fr;
        gap: var(--space-8);
        margin-bottom: var(--space-4);
    }

    .hero-atf__title {
        font-size: 2.25rem;
        max-width: 22ch;
    }

    .hero-atf__lead {
        font-size: 1.0625rem;
        margin-bottom: var(--space-4);
    }

    .hero-atf__actions .btn {
        padding: var(--space-3) var(--space-6);
        font-size: 1rem;
    }

    .hero-atf__media {
        display: block;
        overflow: hidden;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-card);
        max-height: 300px;
    }

    .hero-atf__media img {
        width: 100%;
        height: 100%;
        max-height: 300px;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .hero-atf__trust {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-2) var(--space-4);
        font-size: 0.875rem;
        border-top: 1px solid var(--color-border);
        padding-top: var(--space-3);
    }
}

/* Wider desktop ≥ 64rem: slightly larger headline */
@media (min-width: 64rem) {
    .hero-atf__title {
        font-size: 2.5rem;
    }
}

/* Short viewports (e.g. 1366×768): clamp headline/image so ATF never scrolls */
@media (max-height: 800px) and (min-width: 48rem) {
    .hero-atf__title {
        font-size: 2rem;
    }

    .hero-atf__lead {
        font-size: 1rem;
        margin-bottom: var(--space-4);
    }

    .hero-atf__media,
    .hero-atf__media img {
        max-height: 240px;
    }
}

/* ── Home "What we do" — segment triad (Commercial / Residential / Emergency)
 *
 * Sits immediately below .hero-atf. Single column on mobile, 3-up on
 * ≥40rem. Deliberately simple cards — orange top rule mirrors the
 * existing .service-card pattern for visual consistency.
 */

.atf-wedo {
    padding-block: var(--space-8) var(--space-6);
    background: var(--color-bg);
}

.atf-wedo__heading {
    text-align: center;
    font-size: var(--font-size-xl);
    margin: 0 0 var(--space-6);
    color: var(--color-secondary);
}

.atf-wedo__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.atf-wedo__card {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth),
                transform var(--transition-smooth);
}

.atf-wedo__card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.atf-wedo__card:has(.card-link-stretch:focus-visible) {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.atf-wedo__card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0;
    color: var(--color-secondary);
}

.atf-wedo__card-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.55;
    flex: 1;
}

.atf-wedo__card-link {
    margin-top: var(--space-2);
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    text-decoration: none;
    align-self: flex-start;
}

.atf-wedo__card-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.atf-wedo__card-link:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

@media (min-width: 40rem) {
    .atf-wedo__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Before & After (pavement service pages) ──────────────────────────────
 *
 * Two side-by-side figures with a labeled badge on each. On mobile the two
 * images stack vertically; on ≥ 48rem viewports they sit side-by-side with a
 * subtle vertical rule between them to reinforce the comparison metaphor.
 */

.before-after-section h2 {
    text-align: center;
    margin-bottom: var(--space-4);
}

.before-after-lead {
    max-width: 48rem;
    margin: 0 auto var(--space-10);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    line-height: 1.55;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.before-after__item {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background-color: var(--color-surface);
}

.before-after__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.before-after__label {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    line-height: 1.4;
}

.before-after__badge {
    display: inline-block;
    margin-right: var(--space-3);
    padding: 0.15rem 0.6rem;
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    vertical-align: 2px;
}

.before-after__item--before .before-after__badge {
    background-color: var(--color-secondary);
}

.before-after__item--after .before-after__badge {
    background-color: var(--color-primary);
}

/* Side-by-side on tablet + desktop */
@media (min-width: 48rem) {
    .before-after {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

/* ══════════════════════════════════════════════════════════════════════════
 *  UX REDESIGN COMPONENT LAYER (911it pattern → BCE)
 *  Added: 2026-04-24
 *  See: docs/911it-pattern-analysis.md + docs/bce-redesign-plan.md
 *  Additive — existing styles above are untouched.
 * ══════════════════════════════════════════════════════════════════════ */

/* ── Angular-pill button (signature shape vocabulary) ───────────────────── */
.btn-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    background: var(--color-primary);
    color: #fff;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
    transition: transform var(--transition-smooth), filter var(--transition-smooth), background-color var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}
.btn-pill:hover,
.btn-pill:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
}
.btn-pill:focus-visible {
    outline: 3px solid rgba(242, 101, 34, 0.45);
    outline-offset: 3px;
}

.btn-pill--outline {
    background: #fff;
    color: var(--color-secondary);
    box-shadow: inset 0 0 0 2px var(--color-secondary);
}
.btn-pill--outline:hover {
    background: var(--color-secondary);
    color: #fff;
}

.btn-pill--ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}
.btn-pill--ghost:hover {
    background: #fff;
    color: var(--color-secondary);
}

.btn-pill--square { clip-path: none; border-radius: 999px; }

/* ── Two-tone accent span inside headings ───────────────────────────────── */
.accent { color: var(--color-primary); }

/* ── Hero (60/40 split) ─────────────────────────────────────────────────── */
.hero-split {
    background: var(--color-surface);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
    overflow: hidden;
}
.hero-split__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}
.hero-split__card {
    background: #fff;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
}
.hero-split__h1 {
    font-size: var(--font-size-h1-xl);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}
.hero-split__sub {
    font-size: var(--font-size-body-lg);
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 1.75rem;
    max-width: 44ch;
}
.hero-split__cta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.hero-split__media {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-card);
}
.hero-split__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-split__media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 28%;
    height: 100%;
    background: var(--color-primary);
    clip-path: polygon(100% 0, 100% 100%, 40% 100%, 0 0);
    opacity: 0.85;
    mix-blend-mode: multiply;
    pointer-events: none;
}
@media (min-width: 62rem) {
    .hero-split__grid { grid-template-columns: 60% 40%; }
}

/* ── Guide-download band ────────────────────────────────────────────────── */
.guide-band {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0;
    background: var(--color-bg);
}
.guide-band__card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
}
.guide-band__cover {
    justify-self: center;
    width: clamp(80px, 15vw, 120px);
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--color-primary) 0%, #B8410A 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    color: #fff;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1.3;
    box-shadow: var(--shadow-card);
}
.guide-band__copy h2 {
    font-size: clamp(1.25rem, 2.25vw, 1.6rem);
    line-height: 1.2;
    margin: 0 0 0.5rem;
    font-weight: 800;
}
.guide-band__copy p {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin: 0;
}
.guide-band__cta { justify-self: start; }
@media (min-width: 48rem) {
    .guide-band__card {
        grid-template-columns: auto 1fr auto;
        gap: var(--space-8);
    }
    .guide-band__cta { justify-self: end; }
}

/* ── Trust cards row (3 small cards) ────────────────────────────────────── */
.trust-cards { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.trust-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
.trust-cards__item {
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--color-border);
}
.trust-cards__icon {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto 0.75rem;
    color: var(--color-primary);
}
.trust-cards__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
@media (min-width: 48rem) {
    .trust-cards__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}

/* ── Stats band (orange full-bleed, 2×3 icons) ──────────────────────────── */
.stats-band {
    background: var(--color-primary);
    color: #fff;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    position: relative;
}
.stats-band__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-4);
    text-align: center;
}
.stats-band__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.stats-band__icon {
    width: 2.5rem;
    height: 2.5rem;
    stroke-width: 1.5;
}
.stats-band__label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin: 0;
}
@media (min-width: 48rem) {
    .stats-band__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
}

/* ── Pain-point split (photo LEFT / agitation RIGHT) ────────────────────── */
.pain-split {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: #fff;
}
.pain-split__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}
.pain-split__media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-card);
}
.pain-split__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pain-split__copy h2 {
    font-size: var(--font-size-h2-xl);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
}
.pain-split__lead {
    font-size: var(--font-size-body-lg);
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
}
.pain-split__risks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.pain-split__risks li {
    display: flex;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.55;
}
.pain-split__risks li::before {
    content: "›";
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.35;
    flex-shrink: 0;
}
.pain-split__risks li strong { color: var(--color-text); }
@media (min-width: 62rem) {
    .pain-split__grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

/* ── Inline CTA band ────────────────────────────────────────────────────── */
.inline-cta {
    background: var(--color-surface);
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}
.inline-cta__title {
    font-size: clamp(1.4rem, 2.75vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 0.5rem;
}
.inline-cta__sub {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
    max-width: 52ch;
    margin-inline: auto;
}
.inline-cta__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ── Benefits split (text LEFT / photo RIGHT, numbered list) ────────────── */
.benefits-split {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: #fff;
}
.benefits-split__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}
.benefits-split__copy h2 {
    font-size: var(--font-size-h2-xl);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
}
.benefits-split__lead {
    font-size: var(--font-size-body-lg);
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
}
.benefits-split__list {
    list-style: none;
    counter-reset: bce-benefits;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.benefits-split__list li {
    counter-increment: bce-benefits;
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 0.85rem;
    align-items: start;
}
.benefits-split__list li::before {
    content: counter(bce-benefits) ")";
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}
.benefits-split__list li strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}
.benefits-split__list li p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}
.benefits-split__media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-card);
}
.benefits-split__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 62rem) {
    .benefits-split__grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

/* ── Service-area map section ───────────────────────────────────────────── */
.service-map {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--color-surface);
}
.service-map__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}
.service-map__copy h2 {
    font-size: var(--font-size-h2-xl);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 1rem;
}
.service-map__copy p {
    font-size: var(--font-size-body-lg);
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
}
.service-map__cities {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.service-map__cities li {
    padding: 0.3rem 0.7rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.service-map__svg {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    aspect-ratio: 4 / 5;
    position: relative;
}
.service-map__svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
@media (min-width: 62rem) {
    .service-map__grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

/* ── Contact band (closing, near-black) ─────────────────────────────────── */
.contact-band {
    background: var(--color-onyx);
    color: #fff;
    padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
}
.contact-band__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}
.contact-band__copy h2 {
    font-size: var(--font-size-h2-xl);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 1rem;
    color: #fff;
}
.contact-band__copy h2 .accent { color: var(--color-primary); }
.contact-band__lead {
    font-size: var(--font-size-body-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 1.5rem;
}
.contact-band__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.contact-band__meta li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.97rem;
    line-height: 1.45;
}
.contact-band__meta li strong {
    color: var(--color-primary);
    min-width: 5.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}
.contact-band__meta a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.contact-band__meta a:hover { border-bottom-color: var(--color-primary); }
.contact-band__map {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}
.contact-band__map strong {
    color: var(--color-primary);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.contact-band__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius-xl);
    display: block;
}
@media (min-width: 62rem) {
    .contact-band__grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}

/* ── Sticky mobile CTA (fixed bottom, mobile only) ──────────────────────── */
.sticky-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
}
.sticky-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.95rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #fff;
}
.sticky-mobile-cta__call  { background: var(--color-secondary); }
.sticky-mobile-cta__quote { background: var(--color-primary); }
@media (max-width: 45rem) {
    .sticky-mobile-cta { display: grid; }
    body { padding-bottom: 3.75rem; }
}

/* ── FAQ accordion (native details/summary) ─────────────────────────────── */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-accordion details {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 0;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.faq-accordion details[open] {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(242, 101, 34, 0.12);
}
.faq-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    transition: transform var(--transition-smooth);
    flex-shrink: 0;
}
.faq-accordion details[open] summary::after { content: "−"; }
.faq-accordion .faq-accordion__body {
    padding: 0 1.25rem 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}
.faq-accordion .faq-accordion__body > :first-child { margin-top: 0; }
.faq-accordion .faq-accordion__body > :last-child  { margin-bottom: 0; }

/* ── Service grid (redesign refinement — hover accent bar) ──────────────── */
.service-grid-911 .service-card {
    position: relative;
    overflow: hidden;
}
.service-grid-911 .service-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms ease;
}
.service-grid-911 .service-card:hover::after,
.service-grid-911 .service-card:focus-within::after {
    transform: scaleX(1);
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .btn-pill,
    .service-grid-911 .service-card::after,
    .faq-accordion summary::after {
        transition: none;
    }
    .btn-pill:hover { transform: none; }
}



/* ── Redesign section UL resets — prevent native list markers leaking through ─ */
.trust-cards__grid,
.stats-band__grid,
.services-grid,
.service-map__cities,
.contact-band__meta,
.pain-split__risks,
.benefits-split__list,
.testimonials-grid,
.testimonials-grid--compact {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}


/* Landing page → quick-modal CTA spacing */
.form-card__quick-cta {
    display: inline-flex;
    width: 100%;
    margin: 0.6rem 0 1.25rem;
    text-align: center;
}
.form-card__quick-cta + form,
.form-card__quick-cta + .form-error-summary + form {
    border-top: 1px dashed var(--color-border);
    padding-top: 1.25rem;
}

/* ══════════════════════════════════════════════════════════════════════════
 *  GUIDE-DOWNLOAD MODAL
 *  Site-wide popup that intercepts every [data-guide-modal-trigger].
 *  Polished card with cover thumbnail (left) + form (right) on desktop;
 *  stacked on mobile. Hydrated by /assets/js/guide-modal.js.
 * ══════════════════════════════════════════════════════════════════════ */

.guide-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}
.guide-modal[hidden] {
    display: none !important;
}
.guide-modal--open {
    opacity: 1;
    pointer-events: auto;
}

/* Body lock when the modal is open */
body.guide-modal-open {
    overflow: hidden;
}

.guide-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.guide-modal__panel {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: var(--color-bg);
    border-radius: var(--radius-2xl);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(8px) scale(0.985);
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.25, 1);
}
.guide-modal--open .guide-modal__panel {
    transform: translateY(0) scale(1);
}

.guide-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    color: var(--color-secondary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background-color 140ms ease, transform 140ms ease;
}
.guide-modal__close:hover,
.guide-modal__close:focus-visible {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}
.guide-modal__close:focus-visible {
    outline: 3px solid rgba(242, 101, 34, 0.45);
    outline-offset: 2px;
}

/* ── View containers ───────────────────────────────────────────────────── */
.guide-modal__view {
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

/* Form view = 2-column on desktop, stacked on mobile */
.guide-modal__view--form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}
@media (min-width: 720px) {
    .guide-modal__view--form {
        grid-template-columns: 220px 1fr;
        gap: var(--space-8);
        align-items: stretch;
    }
}

/* ── Cover panel ────────────────────────────────────────────────────────── */
.guide-modal__cover {
    position: relative;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guide-modal__cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-align: center;
    padding: 1rem;
}
.guide-modal__cover-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}
.guide-modal__cover-label {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}
.guide-modal__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Body / form ────────────────────────────────────────────────────────── */
.guide-modal__body {
    display: flex;
    flex-direction: column;
}

.guide-modal__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.guide-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--color-secondary);
}

.guide-modal__sub {
    margin: 0 0 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.guide-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Honeypot — visually hidden but in the DOM for bots */
.guide-modal__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.guide-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.guide-modal__field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
}
.guide-modal__field input {
    /* 16px font-size prevents iOS zoom-on-focus */
    font-size: 16px;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.guide-modal__field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.18);
}
.guide-modal__field input.guide-modal__input--error,
.guide-modal__field input[aria-invalid="true"] {
    border-color: var(--color-error);
    background: var(--color-error-bg);
}

.guide-modal__error {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--color-error);
}

.guide-modal__submit {
    margin-top: 0.4rem;
    width: 100%;
    /* Override btn-pill default — modal uses square pill, not angular clip */
}
.guide-modal__submit:disabled,
.guide-modal__submit--loading {
    opacity: 0.7;
    cursor: progress;
}
.guide-modal__submit--loading .guide-modal__spinner {
    display: inline-block;
}
.guide-modal__spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: guide-modal-spin 0.7s linear infinite;
    margin-left: 0.4rem;
    vertical-align: -2px;
}
@keyframes guide-modal-spin {
    to { transform: rotate(360deg); }
}

.guide-modal__privacy {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* ── Success view ───────────────────────────────────────────────────────── */
.guide-modal__view--success,
.guide-modal__view--error {
    text-align: center;
    padding-block: clamp(2rem, 5vw, 3rem);
}

.guide-modal__success-icon {
    margin: 0 auto 1rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-success-bg);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.guide-modal__error-icon {
    margin: 0 auto 1rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-error-bg);
    color: var(--color-error);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
}

.guide-modal__error-msg {
    margin: 0 0 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.guide-modal__error-msg a {
    color: var(--color-primary);
    text-decoration: underline;
}

.guide-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .guide-modal,
    .guide-modal__panel,
    .guide-modal__close {
        transition: none;
    }
    .guide-modal__spinner {
        animation: none;
    }
}

/* ── Real PDF cover thumbnail (replaces placeholder block when available) ── */
.guide-band__cover--photo {
    background: transparent !important;
    padding: 0 !important;
    width: 160px;
    aspect-ratio: 8.5 / 11;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    flex-shrink: 0;
}
.guide-band__cover--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (min-width: 62rem) {
    .guide-band__cover--photo { width: 220px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE-RESPONSIVE OVERHAUL — additive rules only
   Appended 2026-04-28 to fix mobile layout issues across all public pages.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1.1 Container overflow / padding ────────────────────────────────────── */
html, body { overflow-x: hidden; }
@media (max-width: 47.9375rem) {
    .container { padding-inline: clamp(1rem, 4vw, 1.5rem); }
}

/* ── 1.2 Hero-split CTA buttons stack at < 480px ─────────────────────────── */
@media (max-width: 30rem) {
    .hero-split__cta { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .hero-split__cta .btn-pill { width: 100%; justify-content: center; }
}

/* ── 1.3 Hero-atf actions stack + trust-row smaller font at < 480px ─────── */
@media (max-width: 30rem) {
    .hero-atf__actions { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .hero-atf__actions .btn-pill { width: 100%; justify-content: center; }
    .hero-atf__trust { font-size: 0.8rem; gap: 0.5rem; }
    .hero-atf__trust-item { font-size: 0.8rem; }
}

/* ── 1.4 Service-grid: 1-col at < 480px, 2-col at 480–768px ─────────────── */
@media (max-width: 30rem) {
    .services-grid { grid-template-columns: 1fr !important; gap: var(--space-6); }
}
@media (min-width: 30rem) and (max-width: 47.9375rem) {
    .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── 1.6 Stats-band: 1-col at < 360px, smaller icon/label at < 480px ────── */
@media (max-width: 22.5rem) {
    .stats-band__grid { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 30rem) {
    .stats-band__icon { width: 2rem; height: 2rem; }
    .stats-band__label { font-size: 0.875rem; }
}

/* ── 1.7 Media max-height caps on mobile for split sections ──────────────── */
@media (max-width: 61.9375rem) {
    .pain-split__media,
    .benefits-split__media { max-height: 320px; }
    .pain-split__media img,
    .benefits-split__media img { object-fit: cover; height: 100%; }
    .contact-band__map { aspect-ratio: 4 / 3; max-height: 280px; }
    .service-map__svg { max-height: 360px; }
}

/* ── 1.8 Inline-CTA buttons stack on narrow ─────────────────────────────── */
@media (max-width: 30rem) {
    .inline-cta__actions { flex-direction: column; gap: 0.5rem; width: 100%; }
    .inline-cta__actions .btn-pill { width: 100%; justify-content: center; }
}

/* ── 1.9 Guide-band scales on mobile ─────────────────────────────────────── */
@media (max-width: 47.9375rem) {
    .guide-band__cover--photo { width: 96px; }
    .guide-band__cover { width: 96px; font-size: 0.55rem; }
    .guide-band__copy h2 { font-size: 1.125rem; }
    .guide-band__cta { justify-self: stretch; width: 100%; }
    .guide-band__cta .btn-pill { width: 100%; justify-content: center; }
}

/* ── 1.10 Footer: 2-col at 480–768px, 3-col at 768–1024px ───────────────── */
@media (min-width: 30rem) and (max-width: 47.9375rem) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (min-width: 48rem) and (max-width: 63.9375rem) {
    .site-footer__grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── 1.11 Sticky-mobile CTA: show below 768px, hide at 768px+ ───────────── */
@media (max-width: 47.9375rem) {
    .sticky-mobile-cta { display: grid !important; }
    body { padding-bottom: 3.75rem; }
}
@media (min-width: 48rem) {
    .sticky-mobile-cta { display: none !important; }
    body { padding-bottom: 0; }
}

/* ── 1.12 Form inputs: 16px on mobile to prevent iOS zoom-on-focus ───────── */
@media (max-width: 47.9375rem) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    input[type="password"],
    input[type="date"],
    input[type="time"],
    select,
    textarea,
    .form-control {
        font-size: 16px !important;
    }
}

/* ── 1.13 Touch targets: 44×44px min on interactive surfaces ─────────────── */
@media (max-width: 47.9375rem) {
    .site-nav a,
    .site-footer__links a,
    .site-footer__nap a,
    .site-footer__legal-links a,
    .breadcrumb a,
    .breadcrumbs a,
    .btn,
    .btn-pill,
    .service-card__link,
    .service-card-grid .service-card,
    .atf-wedo__card-link,
    .sticky-mobile-cta a,
    .faq-accordion summary {
        min-height: 44px;
    }
    .btn, .btn-pill { padding-block: 0.875rem; }
    .site-nav a,
    .site-footer__links a {
        display: flex;
        align-items: center;
    }
}

/* ── 1.14 Guide-modal: full-screen on mobile ─────────────────────────────── */
@media (max-width: 47.9375rem) {
    .guide-modal { padding: 0; align-items: stretch; }
    .guide-modal__panel {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        overflow-y: auto;
    }
    .guide-modal__close {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        width: 2.75rem;
        height: 2.75rem;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .guide-modal__view { padding-block: 4rem 2rem; }
}

/* ── 1.15 Image overflow safety ──────────────────────────────────────────── */
img, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }

/* ── 1.16 Visibility utilities ───────────────────────────────────────────── */
.hide-mobile { display: initial; }
.hide-desktop { display: none; }
@media (max-width: 47.9375rem) {
    .hide-mobile { display: none !important; }
    .hide-desktop { display: initial !important; }
}

/* ── Mobile hamburger button + slide-in drawer nav ──────────────────────── */

.site-header__hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: var(--radius, 4px);
    cursor: pointer;
    color: var(--color-secondary, #000);
    -webkit-tap-highlight-color: transparent;
}
.site-header__hamburger:hover {
    border-color: var(--color-border, #ddd);
}
.site-header__hamburger:focus-visible {
    outline: 3px solid var(--color-focus, #F26522);
    outline-offset: 2px;
}

.site-header__hamburger-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
}
.site-header__hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-secondary, #000);
    border-radius: 1px;
    transition: transform 200ms ease, opacity 150ms ease;
    transform-origin: center;
}

/* Animated X when open */
.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Drawer container — hidden by default */
.site-header__drawer {
    display: none;
}

.site-header__drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 998;
}

.site-header__drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.25, 1);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Open states */
.site-header__drawer[data-state="open"] .site-header__drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}
.site-header__drawer[data-state="open"] .site-header__drawer-panel {
    transform: translateX(0);
}

.site-header__drawer-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    color: var(--color-secondary, #000);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.site-header__drawer-close:hover {
    background: rgba(0, 0, 0, 0.12);
}
.site-header__drawer-close:focus-visible {
    outline: 3px solid var(--color-focus, #F26522);
    outline-offset: 2px;
}

.site-header__drawer-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border, #ddd);
}
.site-header__drawer-cta .btn {
    width: 100%;
    justify-content: center;
}

/* Scroll lock applied via JS */
body.site-nav-open { overflow: hidden; }

/* ── Mobile (≤ 768px): show hamburger, use drawer, hide desktop nav ───────── */
@media (max-width: 47.9375rem) {
    .site-header__hamburger { display: inline-flex; }
    .site-header__drawer { display: block; }
    .site-header__cta--desktop { display: none !important; }
    .site-header__inner { gap: 0.5rem; min-height: 72px; }
    .site-header__logo img,
    .site-header__logo svg { height: 56px; }

    /* Drawer-internal nav: vertical layout */
    .site-header__drawer-panel .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        width: 100%;
    }
    .site-header__drawer-panel .site-nav__item { width: 100%; }
    .site-header__drawer-panel .site-nav a {
        padding: 0.875rem 0.75rem;
        font-size: 1rem;
        min-height: 44px;
    }
    .site-header__drawer-panel .site-nav__item.has-dropdown > a {
        font-weight: 700;
        border-bottom: 1px solid var(--color-border, #ddd);
        margin-bottom: 0.25rem;
    }
    .site-header__drawer-panel .site-nav__caret { display: none; }
    .site-header__drawer-panel .site-nav__dropdown {
        display: block;
        position: static;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0 0 0.75rem 0.75rem;
    }
    .site-header__drawer-panel .site-nav__dropdown a {
        padding: 0.625rem 0.75rem;
        font-size: 0.95rem;
        color: var(--color-text-muted, #555);
        min-height: 40px;
    }
    .site-header__drawer-panel .site-nav__dropdown a:hover {
        color: var(--color-primary, #F26522);
        background: var(--color-surface, #f7f7f7);
    }
}

/* ── Desktop (≥ 768px): hide drawer + hamburger, restore desktop nav ───────── */
@media (min-width: 48rem) {
    .site-header__drawer { display: none !important; }
    .site-header__hamburger { display: none !important; }
}

/* ── Reduced motion: disable drawer slide transition ────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .site-header__drawer-panel { transition: none; }
    .site-header__drawer-backdrop { transition: none; }
    .site-header__hamburger-icon span { transition: none; }
}

/* ── Mobile footer accordion (<48rem) ───────────────────────────────────── */
@media (max-width: 47.9375rem) {
    .site-footer {
        padding-block: var(--space-8) var(--space-6);
        margin-top: var(--space-12);
    }
    .site-footer__grid {
        gap: 0;
    }
    /* Each column becomes collapsible — NAP (first child) stays open */
    .site-footer__grid > div + div {
        border-top: 1px solid #2a2a2a;
    }
    .site-footer__grid > div + div > .site-footer__col-title {
        cursor: pointer;
        position: relative;
        padding: 0.875rem 2rem 0.875rem 0;
        margin-bottom: 0;
        user-select: none;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .site-footer__grid > div + div > .site-footer__col-title::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        font-weight: 400;
        color: var(--color-primary);
        line-height: 1;
        transition: transform 180ms ease;
    }
    .site-footer__grid > div + div.is-expanded > .site-footer__col-title::after {
        content: '−';
    }
    /* Hide list/content of non-NAP cols by default */
    .site-footer__grid > div + div > ul,
    .site-footer__grid > div + div > address,
    .site-footer__grid > div + div > p:not(.site-footer__col-title) {
        display: none;
        padding-bottom: 0.875rem;
    }
    .site-footer__grid > div + div.is-expanded > ul,
    .site-footer__grid > div + div.is-expanded > address,
    .site-footer__grid > div + div.is-expanded > p:not(.site-footer__col-title) {
        display: block;
    }
    /* Sticky-mobile-cta clearance */
    .site-footer {
        padding-bottom: calc(var(--space-6) + 76px);
    }
}

/* ── Inline desktop nav vs mobile drawer: clean separation ──────────────── */
.site-header__nav-desktop { display: none; }

@media (min-width: 48rem) {
    .site-header__nav-desktop { display: block; flex: 1; }
    .site-header__nav-desktop .site-nav {
        display: flex;
        gap: var(--space-2);
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: flex-end;
    }
    .site-header__nav-desktop .site-nav__item { position: relative; }
    .site-header__nav-desktop .site-nav a {
        display: inline-block;
        padding: var(--space-2) var(--space-3);
        color: #1a1a1a;
        text-decoration: none;
        font-weight: 600;
        font-size: var(--font-size-sm);
    }
    .site-header__nav-desktop .site-nav a:hover { color: var(--color-primary); }
    .site-header__nav-desktop .site-nav a[aria-current="page"] { color: var(--color-primary); }
    .site-header__nav-desktop .site-nav__caret {
        display: inline-block; margin-left: 0.25rem; font-size: 0.75em;
    }
    .site-header__nav-desktop .site-nav__dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        min-width: 14rem;
        background: #fff;
        border: 1px solid var(--color-border, #ddd);
        border-radius: var(--radius-lg, 8px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 0.5rem 0;
        z-index: 50;
    }
    .site-header__nav-desktop .site-nav__item:hover > .site-nav__dropdown,
    .site-header__nav-desktop .site-nav__item:focus-within > .site-nav__dropdown {
        display: block;
    }
    .site-header__nav-desktop .site-nav__dropdown a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        font-weight: 500;
        color: #333;
    }
    .site-header__nav-desktop .site-nav__dropdown a:hover {
        background: var(--color-surface, #f7f7f7);
        color: var(--color-primary);
    }

    /* Hide mobile drawer entirely on desktop (overrides earlier rules) */
    .site-header__drawer { display: none !important; }
    .site-header__hamburger { display: none !important; }
}

/* On mobile, ensure desktop CTA region is hidden and inline nav is hidden */
@media (max-width: 47.9375rem) {
    .site-header__nav-desktop { display: none !important; }
    .site-header__cta--desktop { display: none !important; }
    /* Defensive: drawer panel must be off-screen until [data-state="open"] */
    .site-header__drawer-panel { transform: translateX(100%); }
    .site-header__drawer[data-state="open"] .site-header__drawer-panel { transform: translateX(0); }
}

/* ── SIMPLE, BULLETPROOF MOBILE NAV (CSS-only, replaces old drawer) ─────── */

/* Hide checkbox + nuke old drawer styles */
.mnav-toggle { position: absolute; left: -9999px; opacity: 0; }
.site-header__hamburger,
.site-header__drawer { display: none !important; }

/* Hamburger button (mobile only) */
.mnav-burger {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    margin-left: auto;
    z-index: 1001;
}
.mnav-burger span {
    display: block;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Backdrop + panel (closed by default) */
.mnav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 998;
    cursor: pointer;
}
.mnav-panel {
    position: fixed;
    top: 0; right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 220ms ease;
    z-index: 999;
    overflow-y: auto;
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

/* When checkbox is checked, drawer opens */
.mnav-toggle:checked ~ .mnav-backdrop { display: block; }
.mnav-toggle:checked ~ .mnav-panel { transform: translateX(0); }

/* Hamburger transforms to X when open */
.mnav-toggle:checked ~ .container .mnav-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mnav-toggle:checked ~ .container .mnav-burger span:nth-child(2) {
    opacity: 0;
}
.mnav-toggle:checked ~ .container .mnav-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Close X */
.mnav-close {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    color: #000;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
}
.mnav-close:hover { background: rgba(0,0,0,0.12); }

.mnav-logo img { display: block; max-height: 48px; margin-bottom: 0.5rem; }

.mnav-panel nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.mnav-panel details {
    border-bottom: 1px solid #eee;
}
.mnav-panel summary {
    padding: 0.875rem 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: #000;
}
.mnav-panel summary::after {
    content: '+';
    position: absolute;
    right: 0.5rem;
    font-size: 1.25rem;
    color: var(--color-primary, #F26522);
    font-weight: 400;
}
.mnav-panel details[open] summary::after { content: '−'; }
.mnav-panel summary::-webkit-details-marker { display: none; }

.mnav-panel details a,
.mnav-panel .mnav-link {
    display: block;
    padding: 0.625rem 1rem;
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
}
.mnav-panel .mnav-link {
    padding: 0.875rem 0.5rem;
    font-weight: 700;
    color: #000;
    border-bottom: 1px solid #eee;
}
.mnav-panel details a:hover,
.mnav-panel .mnav-link:hover {
    background: #faf6f3;
    color: var(--color-primary, #F26522);
}

.mnav-call {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--color-primary, #F26522);
    color: #fff !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none !important;
    border-radius: 8px;
}

/* MOBILE: show hamburger + drawer; hide desktop nav */
@media (max-width: 47.9375rem) {
    .mnav-burger { display: flex; }
    .mnav-panel  { display: flex; }
    .site-header__nav-desktop { display: none !important; }
    .site-header__cta--desktop { display: none !important; }
}

/* DESKTOP: hide hamburger + drawer entirely */
@media (min-width: 48rem) {
    .mnav-burger,
    .mnav-backdrop,
    .mnav-panel,
    .mnav-toggle { display: none !important; }
}

/* Body lock when drawer open */
body:has(.mnav-toggle:checked) {
    overflow: hidden;
}
