/**
 * Phase 6 - dual-line homepage (split hero, collection rows, footer CTA).
 */

/* ─── Split hero ─────────────────────────────────────────── */

.home-split-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: var(--header-offset);
}

.home-split-hero__inner {
    width: 100%;
}

.home-split-hero__dots {
    display: none;
}

.home-split-hero__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 22rem;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(0.75rem, 1.5vw, 1.25rem) clamp(1.75rem, 3vw, 2.5rem);
    overflow: hidden;
}

.home-split-hero__panel--city {
    background: radial-gradient(120% 110% at 30% 10%, #F4EADD, #E7DACB);
    color: #2A2018;
}

.home-split-hero__panel--race {
    background: radial-gradient(120% 110% at 70% 10%, var(--bc-decision-stroke), var(--bc-decision));
    color: var(--bc-decision-text);
}

.home-split-hero__eyebrow {
    display: inline-block;
    width: max-content;
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.375rem 0.8125rem;
    border-radius: var(--bc-radius-pill, 999px);
}

.home-split-hero__panel--city .home-split-hero__eyebrow,
.home-split-hero__panel--race .home-split-hero__eyebrow {
    color: var(--bc-ink);
    background: var(--bc-clay);
}

.home-split-hero__title {
    margin: 1.125rem 0 0;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.375rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.015em;
}

.home-split-hero__body {
    margin: 1rem 0 0;
    max-width: 21.25rem;
    font-size: 1rem;
    line-height: 1.55;
}

.home-split-hero__panel--city .home-split-hero__body {
    color: #5A4F47;
}

.home-split-hero__panel--race .home-split-hero__body {
    color: var(--bc-decision-meta);
}

.home-split-hero__cta {
    display: inline-block;
    width: max-content;
    margin-top: 1.625rem;
    padding: 0.875rem 1.625rem;
    border-radius: var(--bc-radius-pill, 999px);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 140ms ease, transform 140ms ease;
}

.home-split-hero__panel--city .home-split-hero__cta {
    background: var(--bc-decision);
    color: var(--bc-decision-text);
}

.home-split-hero__panel--race .home-split-hero__cta {
    background: var(--bc-clay);
    color: var(--bc-decision-cta-text);
}

.home-split-hero__panel--city .home-split-hero__cta:is(:link, :visited, :hover) {
    color: var(--bc-decision-text);
}

.home-split-hero__panel--race .home-split-hero__cta:is(:link, :visited, :hover) {
    color: var(--bc-decision-cta-text);
}

.home-split-hero__panel--city .home-split-hero__cta:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.home-split-hero__panel--race .home-split-hero__cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.home-split-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.625rem;
}

.home-split-hero__actions .home-split-hero__cta {
    margin-top: 0;
}

.home-split-hero__cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    min-height: 2.75rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 140ms ease;
}

.home-split-hero__panel--city .home-split-hero__cta-secondary {
    color: #5A4F47;
}

.home-split-hero__panel--city .home-split-hero__cta-secondary:is(:link, :visited) {
    color: #5A4F47;
}

.home-split-hero__panel--city .home-split-hero__cta-secondary:hover,
.home-split-hero__panel--city .home-split-hero__cta-secondary:focus-visible {
    color: var(--bc-text-clay-deep);
    opacity: 0.88;
}

.home-split-hero__panel--race .home-split-hero__cta-secondary {
    color: var(--bc-decision-meta);
}

.home-split-hero__panel--race .home-split-hero__cta-secondary:is(:link, :visited) {
    color: var(--bc-decision-meta);
}

.home-split-hero__panel--race .home-split-hero__cta-secondary:hover,
.home-split-hero__panel--race .home-split-hero__cta-secondary:focus-visible {
    color: var(--bc-decision-text);
    opacity: 0.92;
}

.home-split-hero__poster {
    width: 100%;
    max-width: 20rem;
    margin-top: 1.25rem;
    align-self: center;
    pointer-events: none;
}

.home-split-hero__poster picture,
.home-split-hero__poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    object-position: center;
}

.home-split-hero__panel--city .home-split-hero__poster picture,
.home-split-hero__panel--city .home-split-hero__poster img {
    box-shadow: 0 24px 44px rgba(40, 28, 18, 0.28);
}

.home-split-hero__panel--race .home-split-hero__poster picture,
.home-split-hero__panel--race .home-split-hero__poster img {
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.4);
}

@media (min-width: 820px) {
    .home-split-hero {
        background: linear-gradient(
            to right,
            #E7DACB 0 50%,
            var(--bc-decision) 50% 100%
        );
        min-height: 28rem;
    }

    .home-split-hero__track {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .home-split-hero__panel {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: clamp(0.75rem, 2vw, 1.5rem);
        flex: 1 1 50%;
        min-height: 28rem;
        min-width: 0;
        padding: clamp(1.25rem, 2vw, 1.75rem) clamp(0.75rem, 1.5vw, 1.25rem);
    }

    .home-split-hero__copy {
        flex: 1 1 auto;
        min-width: 0;
    }

    .home-split-hero__poster {
        flex: 0 1 46%;
        width: auto;
        max-width: none;
        margin-top: 0;
        align-self: center;
    }
}

@media (max-width: 819px) {
    .home-split-hero {
        display: block;
        overflow: hidden;
    }

    .home-split-hero__inner.container {
        max-width: none;
        padding-inline: 0;
    }

    .home-split-hero__track {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 clamp(0.75rem, 4vw, 1.25rem);
        scroll-padding-inline: clamp(0.75rem, 4vw, 1.25rem);
    }

    .home-split-hero__track::-webkit-scrollbar {
        display: none;
    }

    .home-split-hero__copy {
        display: contents;
    }

    .home-split-hero__panel {
        flex: 0 0 min(82vw, calc(100% - 2.75rem));
        scroll-snap-align: start;
        scroll-snap-stop: always;
        border-radius: 1rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 7rem);
        gap: 0.75rem 0.875rem;
        align-items: start;
        min-height: 0;
        padding: 1rem 1rem 1.125rem;
    }

    .home-split-hero__panel--city {
        padding-bottom: 1rem;
    }

    .home-split-hero__eyebrow {
        grid-column: 1 / -1;
    }

    .home-split-hero__title {
        grid-column: 1;
        grid-row: 2;
        margin-top: 0.75rem;
        font-size: clamp(1.625rem, 7.5vw, 2.125rem);
        max-width: none;
        line-height: 0.95;
    }

    .home-split-hero__body {
        grid-column: 1;
        grid-row: 3;
        margin-top: 0.5rem;
        max-width: none;
        font-size: 0.875rem;
        line-height: 1.45;
    }

    .home-split-hero__actions {
        grid-column: 1 / -1;
        grid-row: 4;
        margin-top: 0.75rem;
        width: 100%;
    }

    .home-split-hero__cta {
        width: 100%;
        text-align: center;
    }

    .home-split-hero__poster {
        grid-column: 2;
        grid-row: 2 / 4;
        max-width: 7rem;
        width: 100%;
        margin-top: 0;
        align-self: center;
        justify-self: end;
    }

    .home-split-hero__dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.125rem;
        padding: 0.5rem 0 0.125rem;
    }

    .home-split-hero__dot {
        position: relative;
        width: 2rem;
        height: 2rem;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .home-split-hero__dot::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0.5rem;
        height: 0.5rem;
        margin: -0.25rem 0 0 -0.25rem;
        border-radius: 50%;
        background: var(--bc-border-strong, #DCCABD);
    }

    .home-split-hero__dot[aria-current="true"]::after {
        background: var(--bc-ink);
        transform: scale(1.2);
    }

    .home-split-hero__dot:focus-visible {
        outline: 2px solid var(--bc-ink);
        outline-offset: 2px;
        border-radius: 50%;
    }
}

@media (max-width: 390px) {
    .home-split-hero__title {
        font-size: clamp(1.5rem, 8vw, 1.875rem);
    }

    .home-split-hero__body {
        font-size: 0.8125rem;
    }

    .home-split-hero__poster {
        max-width: 6.5rem;
    }

    .home-split-hero__panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 6.5rem);
    }
}

/* ─── Collection rows ────────────────────────────────────── */

.home-collection {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1rem, 3vw, 1.25rem);
}

.home-collection__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.home-collection__badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-collection__badge--city {
    color: #B27A5B;
}

.home-collection__badge--race {
    color: var(--bc-text-clay-deep);
}

.home-collection__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.home-collection__dot--city {
    background: #C0734A;
}

.home-collection__dot--race {
    background: var(--bc-clay);
}

.home-collection__title {
    margin: 0.625rem 0 0;
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--bc-ink);
}

.home-collection__view-all {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--bc-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-collection__chips {
    margin-bottom: 1.75rem;
}

.home-collection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

@media (min-width: 820px) {
    .home-collection-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.375rem;
    }
}

.home-collection-grid .product-card--merch {
    background: var(--bc-surface, #FBF6F0);
    border: 1px solid var(--bc-border, #DCCABD);
    border-radius: 1rem;
    padding: 0.8125rem;
}

.home-collection-grid .product-card--merch .product-image-wrap {
    border-radius: 0.5rem;
    overflow: hidden;
}

.home-collection-grid .product-footer {
    margin-top: 0.5rem;
}

.home-collection--race {
    padding-top: clamp(1.75rem, 4vw, 3.375rem);
}

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

.home-footer-cta {
    background: #5A4F47;
    color: #F3EBE2;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.home-footer-cta__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #FBF6F0;
    line-height: 1.05;
}

.home-footer-cta__body {
    margin: 0.875rem auto 0;
    max-width: 26.25rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #E8D4C7;
}

.home-footer-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
    margin-top: 1.625rem;
}

.home-footer-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    padding: 0.875rem 1.625rem;
    border-radius: var(--bc-radius-pill, 999px);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 140ms ease;
}

.home-footer-cta__btn--primary {
    background: var(--bc-clay);
    color: var(--bc-decision-cta-text);
}

.home-footer-cta__btn--secondary {
    background: transparent;
    border: 1px solid #E8D4C7;
    color: #FBF6F0;
}

.home-footer-cta__btn:hover {
    filter: brightness(0.92);
}

@media (max-width: 819px) {
    .home-footer-cta__actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.5rem;
    }

    .home-footer-cta__btn {
        width: 100%;
    }
}

/* Legacy editorial sections after Phase 6 gallery story */
.home-legacy-section.content-refresh-occasions {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.home-legacy-section__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 819px) {
    .home-legacy-section__cta-row {
        flex-direction: column;
    }

    .home-legacy-section__cta-row .btn {
        width: 100%;
    }
}
