/* ==========================================================================
   JMS Drain Solutions - Core Stylesheet
   Design tokens, reset, typography, layout and reusable components.
   Responsive breakpoint overrides live in responsive.css.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
    /* Colour: deep navy/charcoal base + restrained industrial accent */
    --color-ink: #0b1520;
    --color-navy-900: #0e1c2b;
    --color-navy-800: #14283d;
    --color-navy-700: #1c3450;
    --color-navy-600: #274468;

    --color-surface: #ffffff;
    --color-surface-muted: #f3f6f8;
    --color-surface-alt: #eef2f5;
    --color-border: #dfe4e9;
    --color-border-strong: #c4ccd4;

    --color-text: #1b2530;
    --color-text-muted: #55636f;
    --color-text-faint: #63707a;
    --color-text-inverse: #f4f7fa;
    --color-text-inverse-muted: #aebccb;

    /* Accent tuned to pass WCAG AA (4.5:1) with white text at button/badge
       sizes - a lighter orange reads fine visually but fails contrast. */
    --color-accent: #c2410c;
    --color-accent-dark: #9a3412;
    --color-accent-light: #fdece0;

    --color-success: #1f8a4c;
    --color-success-light: #e8f6ee;
    --color-error: #c62828;
    --color-error-light: #fdecec;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --leading-tight: 1.15;
    --leading-snug: 1.35;
    --leading-normal: 1.6;

    /* Spacing scale */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    --space-2xl: clamp(3.5rem, 2.5rem + 4vw, 6rem);
    --space-3xl: clamp(5rem, 3.5rem + 6vw, 8rem);

    /* Layout */
    --container-width: 1240px;
    --container-padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
    --header-height: 76px;

    /* Radius & shadow */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(11, 21, 32, 0.06), 0 1px 3px rgba(11, 21, 32, 0.08);
    --shadow-md: 0 6px 16px rgba(11, 21, 32, 0.10);
    --shadow-lg: 0 16px 40px rgba(11, 21, 32, 0.16);

    --transition-fast: 150ms ease;
    --transition-base: 220ms ease;
}

/* -------------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-surface);
    line-height: var(--leading-normal);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
/* Safety-net default for the icon sprite: an <svg class="icon"> with no
   explicit width/height and no viewBox on the outer element falls back to
   the browser's ~300x150 replaced-element default if no CSS sizes it. Every
   specific context below (.btn .icon, .badge .icon, etc.) overrides this,
   but anywhere a new icon() call is added without a matching rule, this
   keeps it a sane inline size instead of rendering huge and broken. */
svg.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex-shrink: 0; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; }
:target { scroll-margin-top: calc(var(--header-height) + 16px); }

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

/* Visible focus states everywhere - never suppressed */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    background: var(--color-ink);
    color: var(--color-text-inverse);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    transition: top var(--transition-base);
}
.skip-link:focus { top: 1rem; }

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

/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
    color: var(--color-ink);
}
h1, .h1 { font-size: clamp(2.1rem, 1.7rem + 2vw, 3.4rem); }
h2, .h2 { font-size: clamp(1.7rem, 1.45rem + 1.3vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
h4, .h4 { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); font-weight: 700; }
p { color: var(--color-text-muted); }
p + p { margin-top: 1em; }
strong { font-weight: 700; color: var(--color-text); }
.lede {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
    line-height: var(--leading-snug);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}
.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: var(--space-xs);
}
.eyebrow.on-dark { color: #ffb27a; }
.eyebrow .icon { width: 1em; height: 1em; margin-right: 0.35em; }

/* -------------------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}
.container-narrow { max-width: 820px; }

main { display: block; }

.section { padding-block: var(--space-2xl); }
.section-sm { padding-block: var(--space-xl); }
.section-alt { background: var(--color-surface-muted); }
.section-dark { background: var(--color-navy-900); color: var(--color-text-inverse); }
.section-dark p { color: var(--color-text-inverse-muted); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-text-inverse); }

.section-header { max-width: 720px; margin-bottom: var(--space-xl); }
.section-header.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--space-lg); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }

/* -------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.98rem;
    border: 2px solid transparent;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
    min-height: 48px;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-secondary {
    background: transparent;
    border-color: currentColor;
    color: var(--color-ink);
}
.btn-secondary:hover { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.section-dark .btn-secondary { color: #fff; }
.section-dark .btn-secondary:hover { background: #fff; color: var(--color-ink); }
.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: #fff; color: var(--color-ink); border-color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; min-height: 40px; }

@media (hover: hover) {
    .btn:hover { transform: translateY(-1px); }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--color-accent-dark);
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform var(--transition-fast); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   6. Cards
   ------------------------------------------------------------------------- */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
@media (hover: hover) {
    .card.is-interactive:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-surface-alt); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-base); }
@media (hover: hover) {
    .service-card.is-interactive:hover .service-card__media img { transform: scale(1.06); }
}
.service-card__media-icon {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: rgba(11, 21, 32, 0.72);
    backdrop-filter: blur(2px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card__media-icon .icon { width: 20px; height: 20px; }
.service-card__body .badge-emergency { position: relative; }
.service-card__icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0 var(--space-sm) var(--space-md);
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card__body { padding: var(--space-md); display: flex; flex-direction: column; flex-grow: 1; }
.service-card__body p { flex-grow: 1; }
.service-card__body h3 { margin-bottom: var(--space-2xs); }
.service-card .link-arrow { margin-top: var(--space-sm); }

.area-card { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-2xs); }
.area-card__meta { color: var(--color-text-faint); font-size: 0.9rem; }

.review-card { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.review-card__stars { display: flex; gap: 2px; color: var(--color-accent); }
.review-card__stars .icon { width: 18px; height: 18px; }
.review-card__stars .icon-star-empty { color: var(--color-border-strong); }
.review-card__quote { font-size: 1.5rem; color: var(--color-border-strong); line-height: 1; }
.review-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: var(--space-sm); border-top: 1px solid var(--color-border); }
.review-card__author { font-weight: 700; color: var(--color-text); }
.review-card__source { font-size: 0.85rem; color: var(--color-text-faint); }

.reviews-carousel { max-width: 640px; margin-inline: auto; }
.reviews-carousel__viewport { overflow: hidden; }
.reviews-carousel__track {
    display: flex;
    transition: transform 450ms ease;
}
@media (prefers-reduced-motion: reduce) {
    .reviews-carousel__track { transition: none; }
}
.reviews-carousel__slide {
    flex: 0 0 100%;
    min-width: 0;
}
.reviews-carousel__slide .review-card { height: 100%; }
.reviews-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: var(--space-lg);
}
.reviews-carousel__btn,
.reviews-carousel__pause {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface-alt);
    border: none;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.reviews-carousel__btn:hover,
.reviews-carousel__pause:hover { background: var(--color-ink); color: #fff; }
.reviews-carousel__prev .icon { transform: rotate(180deg); }
.reviews-carousel__dots { display: flex; align-items: center; gap: 0.5rem; }
.reviews-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: var(--color-border-strong);
    transition: width var(--transition-fast), background var(--transition-fast);
}
.reviews-carousel__dot[aria-current="true"] { width: 26px; background: var(--color-accent); }
.reviews-carousel__pause { margin-left: 0.5rem; }

/* -------------------------------------------------------------------------
   7. Badges
   ------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--color-surface-alt);
    color: var(--color-text-muted);
    white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge-accent { background: var(--color-accent-light); color: var(--color-accent-dark); }
.badge-emergency { background: var(--color-error-light); color: var(--color-error); }
.badge-dark { background: rgba(255,255,255,0.12); color: #fff; }
.badge-placeholder { background: #fff4d6; color: #7a5900; border: 1px dashed #d8b64a; }

/* -------------------------------------------------------------------------
   8. Forms
   ------------------------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-md); }
.form-field label { font-weight: 700; font-size: 0.92rem; color: var(--color-text); }
.form-field .hint { font-size: 0.82rem; color: var(--color-text-faint); }
.form-field input,
.form-field select,
.form-field textarea {
    border: 1.5px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    background: #fff;
    font-size: 1rem;
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
    outline: none;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--color-error); }
.form-error-text { color: var(--color-error); font-size: 0.85rem; font-weight: 600; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; color: var(--color-text-muted); }
.form-checkbox input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.15rem; }
.form-status {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}
.form-status.success { background: var(--color-success-light); color: var(--color-success); }
.form-status.error { background: var(--color-error-light); color: var(--color-error); }
.form-status[hidden] { display: none; }
/* Honeypot field - hidden from sighted and keyboard users, still reachable by simple bots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   9. Header & navigation
   ------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 28, 43, 0.97);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background var(--transition-base);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    height: var(--header-height);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.1;
    flex-shrink: 0;
}
.brand__mark {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 1.1rem;
    flex-shrink: 0;
}
.brand__text span { display: block; font-size: 0.7rem; font-weight: 600; color: var(--color-text-inverse-muted); letter-spacing: 0.03em; }

.primary-nav { display: none; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(0.65rem, 0.2rem + 1vw, 1.5rem); }
.primary-nav a {
    color: var(--color-text-inverse-muted);
    font-weight: 600;
    font-size: clamp(0.85rem, 0.75rem + 0.25vw, 0.95rem);
    padding: 0.5rem 0.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: color var(--transition-fast);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; }
.primary-nav .icon.chev { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.nav-item.has-dropdown:hover .icon.chev,
.nav-item.has-dropdown:focus-within .icon.chev,
.nav-item.has-dropdown.is-open .icon.chev { transform: rotate(180deg); }

.nav-item.has-dropdown { position: relative; }
.mega-menu {
    position: absolute;
    /* Flush against the nav link (no margin gap) so the mouse never crosses
       "dead" space between the link and the panel while moving down into
       it - a gap here is what makes hover-based dropdowns disappear before
       you can reach them. The panel's own padding provides the visual
       breathing room instead. */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 90vw);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    padding-top: calc(var(--space-md) + var(--space-xs));
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem 1.5rem;
}
.nav-item.has-dropdown:hover .mega-menu,
.nav-item.has-dropdown:focus-within .mega-menu,
.nav-item.has-dropdown.is-open .mega-menu { display: grid; }
.mega-menu a {
    color: var(--color-text);
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.mega-menu a:hover { background: var(--color-surface-alt); color: var(--color-accent-dark); }
.mega-menu a .icon { width: 18px; height: 18px; color: var(--color-accent-dark); flex-shrink: 0; }
.mega-menu__footer {
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-border);
    margin-top: 0.4rem;
    padding-top: 0.6rem;
}
.mega-menu__footer a { color: var(--color-accent-dark); }

.header-ctas { display: none; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.header-call {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
}
.header-call .icon { width: 18px; height: 18px; color: var(--color-accent); }

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    color: #fff;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--color-accent);
    border-radius: var(--radius-sm);
    color: #fff;
}
.mobile-call .icon { width: 20px; height: 20px; }

/* Mobile nav drawer */
.mobile-nav {
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: var(--color-navy-900);
    z-index: 90;
    padding: var(--space-lg) var(--space-md) 7rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition-base);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav > .container > ul > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
/* Scoped to direct top-level links only (not .mobile-submenu or
   .mobile-nav-ctas <a> buttons) - a bare ".mobile-nav a" selector here
   used to catch the CTA buttons too and win over .btn's centering
   (higher specificity), pushing their icon and label to opposite edges. */
.mobile-nav > .container > ul > li > a {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-nav .submenu-toggle {
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.2rem;
    font-weight: 700;
    font-size: 1.1rem;
}
.mobile-nav .submenu-toggle .icon { width: 18px; height: 18px; transition: transform var(--transition-fast); }
.mobile-nav .submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-submenu { display: none; padding-left: 0.5rem; padding-bottom: 0.5rem; }
.mobile-submenu.is-open { display: block; }
.mobile-submenu a { display: block; font-size: 0.98rem; font-weight: 600; color: var(--color-text-inverse-muted); padding: 0.7rem 0.2rem; }
.mobile-nav-ctas { display: flex; flex-direction: column; gap: 0.75rem; margin-top: var(--space-lg); }

body.nav-open { overflow: hidden; }

/* Sticky mobile call bar */
.mobile-call-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-ink);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.6rem;
    gap: 0.6rem;
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
}
.mobile-call-bar .btn { min-height: 46px; }
body { padding-bottom: 0; }

/* -------------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--color-ink); color: var(--color-text-inverse-muted); }
.site-footer p { color: var(--color-text-inverse-muted); }
.site-footer a { color: var(--color-text-inverse-muted); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; }
.footer-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; padding-block: var(--space-2xl) var(--space-lg); }
.footer-col h4 { color: #fff; margin-bottom: var(--space-sm); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: var(--space-sm); display: flex; align-items: center; gap: 0.6rem; }
.footer-address { font-style: normal; line-height: 1.7; }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-sm); }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social .icon { width: 18px; height: 18px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-block: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: 0.85rem;
}
.footer-bottom ul { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   11. Hero
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(155deg, var(--color-navy-900) 0%, var(--color-navy-700) 100%);
    color: #fff;
    padding-block: clamp(3rem, 2.2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 5rem);
    overflow: hidden;
}
.hero__grid { display: grid; gap: var(--space-xl); align-items: center; grid-template-columns: 1fr; }
.hero h1 { color: #fff; margin-bottom: var(--space-md); }
.hero .lede { color: var(--color-text-inverse-muted); margin-bottom: var(--space-lg); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: var(--space-lg); }
.hero__trustline { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.88rem; color: var(--color-text-inverse-muted); font-weight: 600; }
.hero__trustline strong { color: #fff; }

/* -------------------------------------------------------------------------
   12. Trust bar
   ------------------------------------------------------------------------- */
.trust-bar { background: var(--color-surface-muted); border-bottom: 1px solid var(--color-border); }
.trust-bar__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); padding-block: var(--space-md); }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.92rem; color: var(--color-text); }
.trust-item .icon { width: 22px; height: 22px; color: var(--color-accent-dark); flex-shrink: 0; }

/* -------------------------------------------------------------------------
   13. Process timeline
   ------------------------------------------------------------------------- */
.timeline { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-md); margin-top: var(--space-xl); }
.timeline-step {
    flex: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    position: relative;
    text-align: center;
}
.timeline-step__num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--color-navy-900);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    margin: 0 auto var(--space-sm);
}
.timeline-connector { display: flex; align-items: center; justify-content: center; width: 100%; height: 32px; color: var(--color-accent); flex-shrink: 0; }
.timeline-connector .icon { width: 26px; height: 26px; transform: rotate(90deg); }

/* -------------------------------------------------------------------------
   14. Split sections (domestic/commercial)
   ------------------------------------------------------------------------- */
.split-block { border-radius: var(--radius-lg); padding: var(--space-xl); display: flex; flex-direction: column; height: 100%; }
.split-block--light { background: var(--color-surface-muted); border: 1px solid var(--color-border); }
.split-block--dark { background: var(--color-navy-900); color: #fff; }
.split-block--dark p { color: var(--color-text-inverse-muted); }
.split-block--dark h2, .split-block--dark h3, .split-block--dark h4 { color: #fff; }
.split-block ul { margin: var(--space-md) 0; display: flex; flex-direction: column; gap: 0.6rem; }
.split-block li { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 600; }
.split-block li .icon { width: 18px; height: 18px; margin-top: 0.2rem; color: var(--color-accent); flex-shrink: 0; }
.split-block .btn { margin-top: auto; align-self: flex-start; }

/* -------------------------------------------------------------------------
   15. Breadcrumbs
   ------------------------------------------------------------------------- */
.breadcrumbs { padding-block: var(--space-sm); font-size: 0.85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 0.4rem; color: var(--color-text-faint); }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--color-border-strong); }
.breadcrumbs a { color: var(--color-text-muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--color-accent-dark); }

/* Dark-hero variant: sits inside a .hero section instead of as a separate
   white strip above it, avoiding a jarring dark/white/dark band at the
   top of the page. */
.breadcrumbs.on-dark { padding-block: 0 var(--space-md); }
.breadcrumbs.on-dark li { color: var(--color-text-inverse-muted); }
.breadcrumbs.on-dark li:not(:last-child)::after { color: rgba(255, 255, 255, 0.3); }
.breadcrumbs.on-dark a { color: var(--color-text-inverse-muted); }
.breadcrumbs.on-dark a:hover { color: #fff; }
.breadcrumbs.on-dark span[aria-current="page"] { color: #fff; }

/* -------------------------------------------------------------------------
   16. FAQ accordion
   ------------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    background: none;
    border: none;
    text-align: left;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--color-text);
}
.faq-question .icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition-fast); color: var(--color-accent-dark); }
.faq-question[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-answer { display: none; padding-bottom: var(--space-md); max-width: 70ch; }
.faq-answer.is-open { display: block; }

/* -------------------------------------------------------------------------
   17. CTA band
   ------------------------------------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: var(--space-lg); }
.cta-band .btn-primary { background: #fff; color: var(--color-accent-dark); }
.cta-band .btn-primary:hover { background: var(--color-ink); color: #fff; }

/* -------------------------------------------------------------------------
   18. Placeholder image blocks
   ------------------------------------------------------------------------- */
.placeholder-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: repeating-linear-gradient(135deg, var(--color-surface-alt), var(--color-surface-alt) 12px, var(--color-surface-muted) 12px, var(--color-surface-muted) 24px);
    border: 1.5px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-text-faint);
    overflow: hidden;
    padding: var(--space-md);
}
.placeholder-img .icon { width: 28px; height: 28px; margin-bottom: 0.5rem; }
.placeholder-img span { font-size: 0.85rem; font-weight: 600; max-width: 28ch; }
.placeholder-img[data-aspect="16-9"] { aspect-ratio: 16 / 9; }
.placeholder-img[data-aspect="4-3"] { aspect-ratio: 4 / 3; }
.placeholder-img[data-aspect="1-1"] { aspect-ratio: 1 / 1; }
.placeholder-img[data-aspect="3-2"] { aspect-ratio: 3 / 2; }
.placeholder-img[data-aspect="21-9"] { aspect-ratio: 21 / 9; }

.service-hero-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* -------------------------------------------------------------------------
   19. Misc components
   ------------------------------------------------------------------------- */
.divider { height: 1px; background: var(--color-border); border: none; margin: var(--space-lg) 0; }

.icon-list { display: flex; flex-direction: column; gap: 0.7rem; }
.icon-list li { display: flex; align-items: flex-start; gap: 0.7rem; }
.icon-list .icon { width: 20px; height: 20px; color: var(--color-success); margin-top: 0.15rem; flex-shrink: 0; }

.step-list { counter-reset: step; display: flex; flex-direction: column; gap: var(--space-md); }
.step-list li {
    counter-increment: step;
    display: flex;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}
.step-list li:last-child { border-bottom: none; padding-bottom: 0; }
.step-list li::before {
    content: counter(step);
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-navy-900);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.pill-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-nav a { padding: 0.5rem 1rem; border-radius: var(--radius-full); background: var(--color-surface-alt); font-weight: 700; font-size: 0.88rem; color: var(--color-text-muted); }
.pill-nav a[aria-current="page"] { background: var(--color-ink); color: #fff; }

.sector-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.sector-item { display: flex; align-items: center; gap: 0.7rem; padding: var(--space-md); background: rgba(255,255,255,0.06); border-radius: var(--radius-md); font-weight: 700; }
.sector-item .icon { width: 24px; height: 24px; color: #ffb27a; flex-shrink: 0; }

.notice-box {
    border: 1.5px dashed var(--color-border-strong);
    background: var(--color-surface-muted);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: 0.92rem;
    color: var(--color-text-muted);
}
.notice-box strong { display: block; margin-bottom: 0.3rem; color: var(--color-text); }

.value-list { display: flex; flex-direction: column; gap: var(--space-md); }
.value-list__item { display: flex; gap: var(--space-md); }
.value-list__icon {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
    display: flex; align-items: center; justify-content: center;
}
.value-list__icon .icon { width: 22px; height: 22px; }

address { font-style: normal; }
