/* ==========================================================================
   MLP Home Pros - Woodland Park, CO
   Design system and site styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
    /* Palette. Warm cedar accent picked up from the log-home and composite
       decking work; deep green-cast ink keeps it from feeling like a generic
       blue template. All text pairings below meet WCAG AA. */
    --ink: #17211f;
    --ink-soft: #2b3a37;
    --muted: #5b6b66;
    --accent: #b8551a;          /* white text on this = 4.83:1 */
    --accent-dark: #8f3f10;     /* for accent text on light backgrounds */
    --accent-glow: rgba(184, 85, 26, 0.12);
    --forest: #1f4f3f;
    --bone: #f7f4ef;
    --sand: #ece5da;
    --line: #ded5c8;
    --white: #ffffff;
    --danger: #b3261e;
    --success: #1b6b45;

    /* Legacy aliases: admin.css, service.css, notifications.css and
       loading.css were written against the old variable names. Keeping them
       mapped here means the admin dashboard keeps working untouched. */
    --primary-color: var(--accent);
    --primary-dark: var(--accent-dark);
    --secondary-color: var(--forest);
    --text-dark: var(--ink);
    --text-light: var(--muted);
    --bg-light: var(--bone);
    --blue-light: var(--sand);
    --blue-medium: var(--line);

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /* Radii */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Elevation. Warm-tinted rather than grey so it sits on the bone bg. */
    --shadow-sm: 0 1px 2px rgba(23, 33, 31, 0.06), 0 1px 3px rgba(23, 33, 31, 0.08);
    --shadow: 0 2px 4px rgba(23, 33, 31, 0.06), 0 6px 16px rgba(23, 33, 31, 0.08);
    --shadow-lg: 0 8px 24px rgba(23, 33, 31, 0.12), 0 16px 48px rgba(23, 33, 31, 0.10);

    /* Type */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-h: 72px;
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

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

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Anchored sections must clear the sticky header. */
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bone);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

:target {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }

p { text-wrap: pretty; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: var(--space-3);
}

.lede {
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    color: var(--muted);
    max-width: 62ch;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
    padding-block: clamp(3.5rem, 8vw, var(--space-9));
}

.section--bone { background: var(--bone); }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }

.section--ink {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
}

.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--white); }

.section--ink .eyebrow { color: #e8a877; }

.section-header {
    max-width: 66ch;
    margin-bottom: clamp(2rem, 4vw, var(--space-7));
}

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

.section-header p {
    margin-top: var(--space-3);
    font-size: 1.0625rem;
    color: var(--muted);
}

.section--ink .section-header p { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.875rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition),
                box-shadow var(--transition);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    border-color: currentColor;
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

/* On photos and dark panels the outline button needs to be white. */
.btn-ghost-light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn-ghost-light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.btn-lg { padding: 1.0625rem 2.25rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 244, 239, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 9px;
    object-fit: cover;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    list-style: none;
}

.nav-list a {
    position: relative;
    padding-block: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { width: 100%; }

/* Header phone: the highest-intent action on a contractor site. */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition);
}

.header-phone:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.header-phone svg { width: 16px; height: 16px; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: background var(--transition);
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform var(--transition), top var(--transition);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }

.nav-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(520px, 78vh, 760px);
    padding-block: clamp(3rem, 8vw, 5.5rem);
    background: var(--ink);
    color: var(--white);
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

/* <picture> is inline by default, so it would not stretch to the absolute
   parent and the image's height:100% would have nothing to resolve against. */
.hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

/* Directional scrim: heavy enough on the left for AA-contrast text, while
   leaving the right side of the photo readable. */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg,
            rgba(12, 18, 17, 0.92) 0%,
            rgba(12, 18, 17, 0.78) 38%,
            rgba(12, 18, 17, 0.45) 68%,
            rgba(12, 18, 17, 0.35) 100%);
}

.hero-content { max-width: 40rem; }

.hero h1 { color: var(--white); }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.4375rem 0.9375rem;
    margin-bottom: var(--space-5);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ee7a8;
}

.hero p {
    margin-top: var(--space-5);
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 46ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    list-style: none;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.hero-points svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #6ee7a8;
}

/* --------------------------------------------------------------------------
   8. Trust bar
   -------------------------------------------------------------------------- */

.trustbar {
    background: var(--ink-soft);
    color: var(--white);
    padding-block: var(--space-5);
}

.trustbar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--space-4) var(--space-6);
}

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

.trust-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #e8a877;
}

.trust-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
}

.trust-item span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   9. Service cards
   -------------------------------------------------------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.service-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sand);
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-media img { transform: scale(1.04); }

.service-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(1.25rem, 2.5vw, 1.625rem);
}

.service-card h3 { margin-bottom: var(--space-2); }

.service-card-body > p {
    color: var(--muted);
    font-size: 0.9375rem;
    margin-bottom: var(--space-4);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    list-style: none;
}

.service-tags li {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-pill);
    background: var(--bone);
    border: 1px solid var(--line);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.service-card-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.service-card-more svg {
    width: 15px;
    height: 15px;
    transition: transform var(--transition);
}

.service-card:hover .service-card-more svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   10. Work gallery
   -------------------------------------------------------------------------- */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.gallery-filter {
    padding: 0.5rem 1.125rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition);
}

.gallery-filter:hover { border-color: var(--accent); color: var(--accent-dark); }

.gallery-filter[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

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

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 4 / 3;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
    cursor: zoom-in;
    text-align: left;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 2.25rem 0.875rem 0.75rem;
    background: linear-gradient(to top, rgba(12, 18, 17, 0.92), transparent);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
}

.gallery-item[hidden] { display: none; }

.gallery-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-5);
}

.gallery-more-wrap .btn[hidden] { display: none; }

.gallery-empty {
    padding: var(--space-6);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(10, 14, 13, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

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

.lightbox-figure {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: min(1100px, 100%);
    max-height: 100%;
}

.lightbox-figure img {
    max-height: min(72vh, 800px);
    width: auto;
    margin-inline: auto;
    border-radius: var(--radius);
    object-fit: contain;
}

.lightbox-figure figcaption {
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    font-size: 0.9375rem;
    max-width: 70ch;
    margin-inline: auto;
}

.lightbox-figure figcaption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--white);
    margin-bottom: var(--space-1);
}

.lightbox-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    /* Solid-ish fill so the control stays legible when a bright photo sits
       directly behind it. */
    background: rgba(23, 33, 31, 0.75);
    backdrop-filter: blur(6px);
    color: var(--white);
    cursor: pointer;
    transition: background var(--transition);
}

.lightbox-btn:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-btn svg { width: 22px; height: 22px; }

.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox-prev { left: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }

.lightbox-counter {
    position: absolute;
    bottom: clamp(1rem, 3vw, 2rem);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   11. Process steps
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: var(--space-5);
    counter-reset: step;
    list-style: none;
}

.step {
    position: relative;
    padding: var(--space-5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: var(--space-4);
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
}

.step h3 {
    font-size: 1.0625rem;
    margin-bottom: var(--space-2);
}

.step p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   12. About
   -------------------------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, var(--space-8));
    align-items: center;
}

.about-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about-media figcaption {
    padding: var(--space-3) var(--space-4);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8125rem;
}

.value-list {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-6);
    list-style: none;
}

.value-item {
    display: flex;
    gap: var(--space-4);
}

.value-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent);
}

.value-item h4 { margin-bottom: 2px; }

.value-item p {
    font-size: 0.9375rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Service area
   -------------------------------------------------------------------------- */

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(2rem, 4vw, var(--space-7));
    align-items: start;
}

.area-towns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-5);
    list-style: none;
}

.area-towns li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
    font-weight: 500;
}

.area-towns svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--accent);
}

.area-note {
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}

.area-note h3 { margin-bottom: var(--space-2); }
.area-note p { font-size: 0.9375rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */

.faq-list {
    max-width: 800px;
    margin-inline: auto;
    display: grid;
    gap: var(--space-3);
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item[open] { border-color: var(--accent); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '';
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    border-right: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--transition);
}

.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--muted);
    font-size: 0.9375rem;
}

.faq-answer p + p { margin-top: var(--space-3); }

html.faq-collapsed .faq-item--extra { display: none; }

.faq-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-5);
}

.faq-more-wrap .btn[hidden] { display: none; }

.references-block {
    max-width: 40rem;
    text-align: center;
    margin-inline: auto;
}

.references-block .lede {
    margin-inline: auto;
}

.references-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 4vw, var(--space-7));
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: var(--space-4);
}

.contact-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-card svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent);
}

.contact-card h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-1);
}

.contact-card a,
.contact-card p {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.contact-card a:hover { color: var(--accent-dark); }

.contact-card small {
    display: block;
    margin-top: 2px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--muted);
}

/* Form */
.quote-form {
    padding: clamp(1.5rem, 3vw, var(--space-6));
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

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

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

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.form-group .optional {
    font-weight: 400;
    color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8125rem 0.9375rem;
    background: var(--bone);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition),
                background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #93a09b; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

.form-hint {
    display: block;
    margin-top: var(--space-1);
    font-size: 0.75rem;
    color: var(--muted);
}

.form-error {
    display: none;
    margin-top: var(--space-1);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--danger);
}

.form-error.is-visible { display: block; }

.form-footnote {
    margin-top: var(--space-4);
    font-size: 0.8125rem;
    color: var(--muted);
    text-align: center;
}

/* Image upload */
.upload-area {
    padding: var(--space-5);
    background: var(--bone);
    border: 2px dashed var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.upload-area:hover,
.upload-area.is-dragover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.upload-placeholder svg {
    width: 30px;
    height: 30px;
    margin: 0 auto var(--space-2);
    color: var(--muted);
}

.upload-placeholder p {
    font-size: 0.9375rem;
    font-weight: 500;
}

.upload-placeholder small {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--muted);
}

.upload-link {
    color: var(--accent-dark);
    text-decoration: underline;
}

.upload-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.upload-previews:empty { display: none; }

.upload-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
}

.upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(10, 14, 13, 0.75);
    color: var(--white);
    font-size: 0.9375rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition);
}

.upload-remove:hover { background: var(--danger); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding-block: var(--space-8) var(--space-5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(1.75rem, 4vw, var(--space-7));
    padding-bottom: var(--space-7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h3,
.site-footer h4 { color: var(--white); }

.site-footer h4 {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: var(--space-4);
    color: var(--white);
    text-decoration: none;
}

.footer-brand .brand-mark { width: 40px; height: 40px; }

.footer-grid p { font-size: 0.9375rem; }

.footer-grid ul {
    display: grid;
    gap: var(--space-2);
    list-style: none;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-grid a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact {
    display: grid;
    gap: var(--space-3);
    list-style: none;
}

.footer-contact strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-5);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.55); }

/* --------------------------------------------------------------------------
   17. Sticky mobile call bar
   -------------------------------------------------------------------------- */

.callbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 90;
    display: none;
    gap: 1px;
    background: var(--line);
    box-shadow: 0 -4px 16px rgba(23, 33, 31, 0.16);
    padding-bottom: env(safe-area-inset-bottom);
}

.callbar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
}

.callbar svg { width: 17px; height: 17px; }

.callbar-call { background: var(--accent); color: var(--white); }
.callbar-quote { background: var(--white); color: var(--ink); }

/* --------------------------------------------------------------------------
   18. Utilities and accessibility
   -------------------------------------------------------------------------- */

.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;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: 300;
    padding: var(--space-3) var(--space-4);
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
}

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

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

/* Scroll-reveal: only applied once JS confirms support, so content is never
   stranded invisible if the script fails to load. */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

body.no-scroll { overflow: hidden; }

@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;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .btn:hover,
    .service-card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid,
    .about-grid { grid-template-columns: 1fr; }

    .about-media { order: -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-4) clamp(1rem, 4vw, 2rem) var(--space-6);
        background: var(--bone);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition), transform var(--transition),
                    visibility var(--transition);
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-list a {
        display: block;
        padding: var(--space-4) 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.0625rem;
    }

    .nav-list a::after { display: none; }

    .header-phone {
        justify-content: center;
        margin-top: var(--space-5);
        padding-block: 0.875rem;
    }

    /* Leave room for the fixed call bar. */
    body { padding-bottom: 68px; }
    .callbar { display: flex; }
}

@media (max-width: 620px) {
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .hero-points {
        flex-direction: column;
        gap: var(--space-2);
    }

    .lightbox-prev { left: var(--space-2); }
    .lightbox-next { right: var(--space-2); }

    .btn { width: 100%; }
    .hero-actions { flex-direction: column; align-items: stretch; }
}

@media print {
    .site-header,
    .callbar,
    .lightbox,
    .hero-actions,
    .quote-form { display: none; }
}
