/* ==========================================================================
   Summit Wash — Christmas Lighting Landing Page
   Loaded only on /christmas-lights/. Builds on main.css and reuses its
   brand variables, .btn, .badge, .section-* and .qf-* components.
   All new classes are prefixed `xq-` so nothing here can affect the
   pressure washing pages.
   ========================================================================== */

:root {
    /* Warm-white lighting accents — the only colours added to the brand set */
    --xq-warm:        #ffd9a6;
    --xq-warm-strong: #ffc87d;
    --xq-warm-soft:   #fff6e9;
    --xq-warm-line:   #f0dcc2;
    --xq-warm-text:   #8a5618;

    --xq-offwhite:    #faf8f4;
    --xq-navy-deep:   #081a30;
}

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

.xq-noscroll {
    overflow: hidden;
}

/* Clears the 70px sticky header when jumping to a section */
.xq-page [id] {
    scroll-margin-top: calc(var(--sw-header-h) + 1rem);
}

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

.xq-section-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.xq-section-cta--left {
    justify-content: flex-start;
    margin-top: 2rem;
}

.xq-section-note {
    max-width: 640px;
    margin: 2.5rem auto 0;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--sw-text-muted);
}

/* Warm variants of the existing .badge */
.xq-badge-warm {
    background: var(--xq-warm-soft);
    color: var(--xq-warm-text);
}

.xq-badge-warm-dark {
    background: rgba(255, 217, 166, 0.14);
    color: var(--xq-warm);
}

/* Primary CTA for dark backgrounds. Brand blue sits too close to the navy
   to read as a button there; warm white is both legible and on-palette. */
.xq-btn-warm {
    background: var(--xq-warm);
    border-color: var(--xq-warm);
    color: var(--sw-navy);
    box-shadow: 0 0 0 0 rgba(255, 217, 166, 0.45);
}

.xq-btn-warm:hover {
    background: var(--xq-warm-strong);
    border-color: var(--xq-warm-strong);
    color: var(--sw-navy);
    box-shadow: 0 0 24px -4px rgba(255, 200, 125, 0.55);
}

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

/* --------------------------------------------------------------------------
   2. Images and placeholders
   The wrapper owns the aspect ratio, so dropping in a real photograph
   later causes no layout shift.
   -------------------------------------------------------------------------- */
.xq-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--sw-radius);
    background: var(--sw-sky-dark);
}

.xq-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xq-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem;
    text-align: center;
    color: #5b7694;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.5) 0 10px,
            transparent 10px 20px
        ),
        linear-gradient(160deg, #e8eef6, #dce6f2);
    border: 1px dashed #b9c9dc;
    border-radius: inherit;
}

.xq-placeholder-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 22ch;
}

.xq-placeholder-file {
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #6b8099;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.15rem 0.45rem;
    border-radius: 0.25rem;
}

/* --------------------------------------------------------------------------
   3. Hero
   Photograph above the copy on mobile, beside it on desktop. Text is never
   laid over the image, so a busy nighttime shot cannot hurt readability.
   -------------------------------------------------------------------------- */
.xq-hero {
    background: linear-gradient(165deg, var(--sw-navy) 0%, var(--xq-navy-deep) 100%);
    color: var(--sw-white);
    padding-block: 1.25rem 2.5rem;
    overflow: hidden;
}

.xq-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Photo first on mobile, but kept to 16:9 so the headline and the primary
   CTA still land on the first screen of a 390x844 phone. */
.xq-hero-media {
    order: -1;
    aspect-ratio: 16 / 9 !important;
    box-shadow: var(--sw-shadow-md);
}

.xq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xq-warm);
    margin-bottom: 0.875rem;
}

.xq-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--xq-warm);
    box-shadow: 0 0 10px 2px rgba(255, 217, 166, 0.65);
}

.xq-hero-title {
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--sw-white);
}

.xq-hero-title-accent {
    color: var(--xq-warm);
}

.xq-hero-sub {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 46ch;
}

.xq-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 1.25rem;
}

.xq-hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.xq-hero-points svg {
    color: var(--xq-warm);
    flex-shrink: 0;
}

.xq-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.xq-hero-area {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.68);
}

/* --------------------------------------------------------------------------
   4. Section B — what's included
   -------------------------------------------------------------------------- */
.xq-included {
    background: var(--xq-offwhite);
}

.xq-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.xq-card {
    background: var(--sw-white);
    border: 1px solid var(--sw-border);
    border-top: 3px solid var(--xq-warm);
    border-radius: var(--sw-radius);
    padding: 1.75rem;
    box-shadow: var(--sw-shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.xq-card:hover {
    box-shadow: var(--sw-shadow-md);
    transform: translateY(-2px);
}

.xq-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--sw-radius-sm);
    background: var(--xq-warm-soft);
    color: var(--xq-warm-text);
    margin-bottom: 1rem;
}

.xq-card-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--sw-navy);
    margin-bottom: 0.5rem;
}

.xq-card-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--xq-warm-text);
    background: var(--xq-warm-soft);
    border-radius: var(--sw-radius-full);
    min-width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.xq-card-body {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--sw-text-muted);
}

/* --------------------------------------------------------------------------
   5. Section C — gallery
   -------------------------------------------------------------------------- */
.xq-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.xq-gallery-featured .xq-media {
    box-shadow: var(--sw-shadow);
}

.xq-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.xq-lightbox-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    border-radius: var(--sw-radius);
    overflow: hidden;
}

.xq-lightbox-trigger:focus-visible {
    outline: 3px solid var(--sw-blue);
    outline-offset: 3px;
}

.xq-lightbox-trigger .xq-media {
    transition: transform 0.25s;
}

.xq-lightbox-trigger:hover .xq-media {
    transform: scale(1.02);
}

.xq-lightbox-hint {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--sw-white);
    background: rgba(12, 35, 64, 0.65);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s;
}

.xq-lightbox-trigger:hover .xq-lightbox-hint,
.xq-lightbox-trigger:focus-visible .xq-lightbox-hint {
    opacity: 1;
}

.xq-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(8, 26, 48, 0.92);
}

.xq-lightbox[hidden] {
    display: none;
}

.xq-lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: var(--sw-radius-sm);
    box-shadow: var(--sw-shadow-md);
}

.xq-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--sw-white);
    background: rgba(255, 255, 255, 0.12);
}

.xq-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   6. Section D — how it works
   -------------------------------------------------------------------------- */
.xq-steps-section {
    background: var(--xq-offwhite);
}

.xq-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    counter-reset: xq-step;
}

.xq-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.xq-step-num {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sw-white);
    background: var(--sw-navy);
    box-shadow: 0 0 0 4px var(--xq-warm-soft);
}

.xq-step-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--sw-navy);
    margin-bottom: 0.3rem;
}

.xq-step-body {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--sw-text-muted);
}

/* --------------------------------------------------------------------------
   7. Section E — why Summit Wash
   -------------------------------------------------------------------------- */
.xq-why {
    background: linear-gradient(170deg, var(--sw-navy) 0%, var(--xq-navy-deep) 100%);
}

.xq-title-light {
    color: var(--sw-white);
}

.xq-subtitle-light {
    color: rgba(255, 255, 255, 0.72);
}

.xq-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.xq-why-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.xq-why-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--sw-radius-sm);
    color: var(--xq-warm);
    background: rgba(255, 217, 166, 0.12);
    border: 1px solid rgba(255, 217, 166, 0.22);
}

.xq-why-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sw-white);
    margin-bottom: 0.25rem;
}

.xq-why-item-body {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   8. Section F — service area
   -------------------------------------------------------------------------- */
.xq-area-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.xq-area-text .badge {
    margin-bottom: 0.875rem;
}

.xq-area-text .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.xq-area-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--sw-text-muted);
    margin-bottom: 0.875rem;
    max-width: 52ch;
}

.xq-area-towns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.xq-area-towns li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--sw-navy);
    background: var(--xq-warm-soft);
    border: 1px solid var(--xq-warm-line);
    border-radius: var(--sw-radius-sm);
}

.xq-area-towns svg {
    color: var(--xq-warm-text);
    flex-shrink: 0;
}

.xq-area-towns-more {
    grid-column: 1 / -1;
    justify-content: center;
    font-weight: 500 !important;
    color: var(--sw-text-muted) !important;
    background: transparent !important;
    border-style: dashed !important;
}

/* --------------------------------------------------------------------------
   9. Section G — FAQ
   Native <details>/<summary>: keyboard accessible and works without JS.
   -------------------------------------------------------------------------- */
.xq-faq-section {
    background: var(--xq-offwhite);
}

.xq-faq {
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.xq-faq-item[open] {
    border-color: var(--xq-warm-line);
    box-shadow: var(--sw-shadow-sm);
}

.xq-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* 1rem block padding keeps the tap target comfortably over 44px */
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sw-navy);
    cursor: pointer;
    list-style: none;
}

.xq-faq-q::-webkit-details-marker {
    display: none;
}

.xq-faq-q:hover {
    background: var(--xq-warm-soft);
}

.xq-faq-q:focus-visible {
    outline: 3px solid var(--sw-blue);
    outline-offset: -3px;
}

.xq-faq-chevron {
    flex-shrink: 0;
    color: var(--xq-warm-text);
    transition: transform 0.2s;
}

.xq-faq-item[open] .xq-faq-chevron {
    transform: rotate(180deg);
}

.xq-faq-a {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--sw-text-muted);
}

.xq-faq-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--sw-text-muted);
}

/* --------------------------------------------------------------------------
   10. Quote form
   Reuses the .qf-* components from main.css, on a navy panel so the white
   form card is the brightest thing on the page.
   -------------------------------------------------------------------------- */
.xq-quote-section {
    background: linear-gradient(170deg, var(--sw-navy) 0%, var(--xq-navy-deep) 100%);
}

.xq-quote-section .section-title {
    color: var(--sw-white);
}

.xq-quote-section .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.xq-quote-section .xq-badge-warm {
    background: rgba(255, 217, 166, 0.14);
    color: var(--xq-warm);
}

.xq-form {
    border-top: 3px solid var(--xq-warm);
}

/* 16px minimum stops iOS Safari zooming in when a field is focused */
.xq-form input[type="text"],
.xq-form input[type="tel"],
.xq-form input[type="email"],
.xq-form textarea,
.xq-form .xq-select {
    font-size: 1rem;
    padding: 0.8rem 0.9rem;
    min-height: 48px;
}

.xq-select {
    width: 100%;
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-sm);
    font-family: var(--sw-font);
    color: var(--sw-text);
    background-color: var(--sw-white);
    /* Chevron, inlined to avoid an extra request */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem !important;
    appearance: none;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.xq-select:focus {
    border-color: var(--sw-blue);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

/* This legend is a full question rather than a two-word label, so it is
   pulled out of the fieldset's border notch (a floated legend stops being
   the "rendered legend") and laid out as a normal block. Otherwise it wraps
   across the top border on narrow screens. */
.xq-form .qf-services {
    padding-top: 1.25rem;
}

.xq-form .qf-services legend {
    float: left;
    width: 100%;
    padding-inline: 0;
    margin-bottom: 0.25rem;
}

/* Roomier checkboxes — these are thumb targets, not mouse targets */
.xq-form .qf-checkbox {
    min-height: 44px;
    align-items: center;
}

.xq-form input[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.xq-field-err {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #b91c1c;
}

.xq-field-err[hidden] {
    display: none;
}

.xq-field-hint {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--sw-text-muted);
}

.xq-submit-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
}

.xq-submit {
    justify-content: center;
    width: 100%;
    min-height: 52px;
    font-size: 1.0625rem;
}

.xq-submit:disabled,
.xq-submit.is-sending {
    opacity: 0.65;
    cursor: wait;
}

.xq-submit-note {
    text-align: center;
    max-width: 44ch;
    margin-inline: auto;
}

.xq-notice {
    background: var(--sw-white);
}

/* Honeypot: out of sight, out of the tab order, out of the a11y tree.
   Not display:none — some bots skip hidden fields. */
.xq-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. Sticky mobile CTA
   Revealed past the hero, hidden again over the form so it never covers
   the fields it points at.
   -------------------------------------------------------------------------- */
.xq-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(8, 26, 48, 0.94);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.xq-sticky-cta[hidden] {
    display: none;
}

.xq-sticky-cta.is-visible {
    transform: translateY(0);
}

.xq-sticky-cta .btn {
    min-height: 50px;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
    .xq-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .xq-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .xq-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xq-area-towns {
        grid-template-columns: repeat(2, 1fr);
    }

    .xq-submit-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .xq-submit {
        width: auto;
        min-width: 15rem;
    }

    .xq-submit-note {
        text-align: left;
        margin-inline: 0;
    }
}

@media (min-width: 900px) {
    .xq-hero {
        padding-block: 4rem 4.5rem;
    }

    .xq-hero-sub {
        margin-top: 1.125rem;
        font-size: 1.0625rem;
        line-height: 1.65;
    }

    .xq-hero-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: center;
        gap: 3.5rem;
    }

    .xq-hero-media {
        order: 0;           /* back beside the copy */
        aspect-ratio: 4 / 3 !important;
    }

    /* Six tracks so the five cards sit three-up, then two centred */
    .xq-cards {
        grid-template-columns: repeat(6, 1fr);
    }

    .xq-cards > .xq-card {
        grid-column: span 2;
    }

    .xq-cards > :nth-child(4) {
        grid-column: 2 / span 2;
    }

    .xq-cards > :nth-child(5) {
        grid-column: 4 / span 2;
    }

    .xq-steps {
        grid-template-columns: repeat(4, 1fr);
    }

    .xq-step {
        flex-direction: column;
        gap: 0.875rem;
    }

    .xq-area-inner {
        grid-template-columns: 1.25fr 1fr;
        gap: 4rem;
    }

    /* Featured photo beside a 2x2 of supporting shots */
    .xq-gallery {
        display: grid;
        grid-template-columns: 1.7fr 1fr;
        align-items: stretch;
    }

    .xq-gallery-grid {
        grid-template-rows: 1fr 1fr;
    }

    .xq-gallery-grid li,
    .xq-gallery-grid .xq-lightbox-trigger {
        height: 100%;
    }

    .xq-gallery-grid .xq-media {
        height: 100%;
        aspect-ratio: auto !important;
    }

    /* Sticky bar is a mobile affordance; desktop has the CTAs in view */
    .xq-sticky-cta {
        display: none !important;
    }
}

@media (min-width: 1100px) {
    .xq-why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --------------------------------------------------------------------------
   13. Reduced motion
   main.css sets scroll-behavior: smooth globally; turn it off here along
   with every transition this page adds.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .xq-card,
    .xq-card:hover,
    .xq-lightbox-trigger .xq-media,
    .xq-lightbox-trigger:hover .xq-media,
    .xq-faq-chevron,
    .xq-sticky-cta,
    .xq-lightbox-hint {
        transition: none;
        transform: none;
    }

    .xq-faq-item[open] .xq-faq-chevron {
        transform: rotate(180deg);
    }
}
