/* ==========================================================================
   Theme 2 — Contact Us

   Every rule is scoped under .cu. The file this replaces styled generic names
   (.contact-form-wrapper, .map-wrapper, #map) that read like site-wide
   components but only ever applied here; the prefix keeps this page's design
   from leaking into anything that later reuses those words. It also hard-coded
   #f8f9fa / #ffffff, so the page ignored the store's colour theme entirely —
   everything here derives from the global tokens instead.

   The page carries its own hero rather than loading dynamic-hero.css, which a
   dozen other views share and which stands 55vh tall with a glass panel over
   it. Same decision the about page made.
   ========================================================================== */

.cu {
    --cu-ink: #22282e;
    --cu-body: #4a5560;
    --cu-muted: #7b8794;
    --cu-rule: #e3e7eb;
    --cu-tint: #f4f6f8;

    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    font-family: var(--font-family-body);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

/* The extra bottom padding is room for the channel cards, which are pulled up
   over the foot of the image below. */
.cu-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 420px;
    padding: 7rem 0 7.5rem;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.cu-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.45) 45%,
            rgba(0, 0, 0, 0.82) 100%);
}

.cu-hero__inner {
    position: relative;
    z-index: 1;
}

.cu-hero__eyebrow {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.cu-hero__title {
    margin: 0;
    max-width: 20ch;
    font-family: var(--font-family-headers);
    font-weight: var(--font-weight-bold);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.08;
    color: var(--color-white);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.cu-hero__subtitle {
    margin: 1.1rem 0 0;
    max-width: 52ch;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */

.cu-section {
    padding: 5rem 0;
}

.cu-band {
    background-color: var(--cu-tint);
    border-block: 1px solid var(--cu-rule);
}

.cu-eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.cu-title {
    margin: 0;
    padding-bottom: 1.1rem;
    position: relative;
    font-family: var(--font-family-headers);
    font-weight: var(--font-weight-bold);
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    color: var(--cu-ink);
}

.cu-title--sm {
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
}

.cu-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    background-color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   Channel cards

   Phone, email, address, today's hours — the four answers most visitors came
   for. They sit above the form because someone who wants to call should not
   have to read past a message form to find the number.
   -------------------------------------------------------------------------- */

.cu-channels-wrap {
    position: relative;
    z-index: 2;
    margin-top: -5rem;
}

.cu-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.cu-channel {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background-color: var(--color-white);
    border: 1px solid var(--cu-rule);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 24, 32, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Only the cards that go somewhere lift on hover; the hours card is a
   read-only panel and should not pretend to be a button. */
a.cu-channel:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(16, 24, 32, 0.13);
}

a.cu-channel {
    text-decoration: none;
}

.cu-channel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 1.05rem;
}

.cu-channel__label {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cu-muted);
}

.cu-channel__value {
    margin: 0;
    font-family: var(--font-family-headers);
    font-weight: var(--font-weight-bold);
    font-size: 1.12rem;
    line-height: 1.4;
    color: var(--cu-ink);
    overflow-wrap: anywhere;
}

.cu-channel__hint {
    margin: 0.55rem 0 0;
    font-size: 0.88rem;
    color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   Form + aside
   -------------------------------------------------------------------------- */

.cu-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.cu-panel {
    padding: 2.75rem;
    background-color: var(--color-white);
    border: 1px solid var(--cu-rule);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 32, 0.04);
}

.cu-panel__intro {
    margin: 0 0 2.25rem;
    max-width: 56ch;
    color: var(--cu-body);
    font-size: 1.02rem;
    line-height: 1.75;
}

/* The panel is the card, so the shared .ga-form styling — its own white
   background, shadow, padding and entrance animation — is unwound here rather
   than nesting one card inside another. */
.cu .ga-form {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}

/* Name and email share a row; anything marked --full spans both columns. The
   gap replaces .ga-form-group's own margin so the rows stay even. */
.cu-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
}

.cu .cu-fields .ga-form-group {
    margin-bottom: 0;
}

.cu-field--full {
    grid-column: 1 / -1;
}

.cu .ga-form-input {
    color: var(--cu-ink);
    font-family: var(--font-family-body);
}

.cu textarea.ga-form-input {
    min-height: 150px;
    resize: vertical;
}

.cu .ga-form-label {
    color: var(--cu-muted);
}

.cu-form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.25rem;
}

.cu-form__note {
    margin: 0;
    flex: 1 1 220px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--cu-muted);
}

.cu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius, 4px);
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-family: var(--font-family-body);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.cu-btn:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.cu-btn--ghost {
    background-color: transparent;
    border-color: var(--cu-rule);
    color: var(--cu-ink);
}

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

/* The Turnstile widget ships at a fixed 300px; give it room of its own rather
   than letting it sit against the button. */
.cu-turnstile {
    margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   Alerts

   Rendered above the form and focused on load, so a screen reader and a
   scrolled-down browser both land on the answer to "did that send?".
   -------------------------------------------------------------------------- */

.cu-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0 0 2rem;
    padding: 1.1rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.98rem;
    line-height: 1.6;
    scroll-margin-top: calc(var(--ch-header-height, 210px) + 1.5rem);
}

.cu-alert i {
    margin-top: 0.2rem;
}

.cu-alert--ok {
    background-color: #e8f6f0;
    border-color: #bfe4d5;
    color: #10664a;
}

.cu-alert--error {
    background-color: #fdecec;
    border-color: #f5c9c9;
    color: #97231f;
}

.cu-alert:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Aside
   -------------------------------------------------------------------------- */

/* The site header is position: fixed and never collapses, so the sticky column
   has to park below it. Its height changes with viewport width, so the number
   comes from the header itself via --ch-header-height (set in
   assets/js/theme-2/customer-header.js); the fallback is the measured desktop
   height for the moment before that script runs. */
.cu-aside {
    position: sticky;
    top: calc(var(--ch-header-height, 210px) + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cu-card {
    padding: 1.85rem;
    background-color: var(--cu-tint);
    border: 1px solid var(--cu-rule);
    border-radius: 14px;
}

.cu-card__title {
    margin: 0 0 1.25rem;
    font-family: var(--font-family-headers);
    font-weight: var(--font-weight-bold);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cu-ink);
}

.cu-hours {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.94rem;
}

.cu-hours li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.5rem 0;
    color: var(--cu-body);
}

.cu-hours li + li {
    border-top: 1px solid var(--cu-rule);
}

.cu-hours__day {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cu-hours__time {
    text-align: right;
    white-space: nowrap;
}

.cu-hours li.is-today {
    color: var(--cu-ink);
    font-weight: 600;
}

.cu-today-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-secondary);
}

/* Numbered without <ol>'s default marker, so the count sits in a coloured
   chip that lines up with the text beside it. */
.cu-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: cu-step;
}

.cu-steps li {
    position: relative;
    padding: 0 0 1.1rem 2.4rem;
    color: var(--cu-body);
    font-size: 0.94rem;
    line-height: 1.65;
    counter-increment: cu-step;
}

.cu-steps li:last-child {
    padding-bottom: 0;
}

.cu-steps li::before {
    content: counter(cu-step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 600;
}

.cu-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cu-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--cu-rule);
    border-radius: 50%;
    background-color: var(--color-white);
    color: var(--color-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.cu-social a:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */

.cu-map-head {
    margin-bottom: 2.25rem;
}

.cu-map-frame {
    position: relative;
    height: 460px;
    border: 1px solid var(--cu-rule);
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--cu-tint);
}

.cu-map-canvas {
    position: absolute;
    inset: 0;
}

/* The address and the directions button float over the map on desktop; below
   991px they drop underneath it, where they are not covering half the pin. */
.cu-map-card {
    position: absolute;
    left: 1.75rem;
    bottom: 1.75rem;
    z-index: 1;
    max-width: 340px;
    padding: 1.6rem;
    background-color: var(--color-white);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(16, 24, 32, 0.18);
}

.cu-map-card__title {
    margin: 0 0 0.6rem;
    font-family: var(--font-family-headers);
    font-weight: var(--font-weight-bold);
    font-size: 1.15rem;
    color: var(--cu-ink);
}

.cu-map-card__address {
    margin: 0 0 1.25rem;
    color: var(--cu-body);
    font-size: 0.96rem;
    line-height: 1.65;
}

/* Shown instead of the map when there is no Google Maps key configured. The
   old page printed "Map is currently unavailable" as loose text after the
   footer; the directions link works with or without a key. */
.cu-map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    color: var(--cu-body);
}

.cu-map-fallback i {
    font-size: 2.25rem;
    color: var(--color-secondary);
}

.cu-map-fallback p {
    margin: 0;
    max-width: 40ch;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Focus + motion
   -------------------------------------------------------------------------- */

.cu a:focus-visible,
.cu button:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

.cu-form__anchor {
    scroll-margin-top: calc(var(--ch-header-height, 210px) + 1.5rem);
}

@media (prefers-reduced-motion: reduce) {
    .cu *,
    .cu *::before,
    .cu *::after {
        transition-duration: 0.01ms !important;
    }

    a.cu-channel:hover,
    .cu-btn:hover,
    .cu-social a:hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .cu-section {
        padding: 3.5rem 0;
    }

    .cu-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cu-aside {
        position: static;
    }

    .cu-map-frame {
        height: auto;
    }

    .cu-map-canvas {
        position: static;
        height: 320px;
    }

    .cu-map-fallback {
        position: static;
        padding: 3rem 2rem;
    }

    .cu-map-card {
        position: static;
        max-width: none;
        box-shadow: none;
        border-top: 1px solid var(--cu-rule);
        border-radius: 0;
    }
}

@media (max-width: 767.98px) {
    .cu-hero {
        min-height: 340px;
        padding: 5.5rem 0 6rem;
    }

    .cu-channels-wrap {
        margin-top: -4rem;
    }

    .cu-fields {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cu-panel {
        padding: 1.75rem;
    }

    .cu-card {
        padding: 1.5rem;
    }

    .cu-form__foot .cu-btn {
        flex: 1 1 auto;
    }
}
