/* Spring homepage sections, scoped to avoid changing other site pages. */
#spring-home {
    display: block;
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

#spring-home,
#spring-home .intro,
#spring-home .cta,
#spring-home .branch-instagram-section,
#spring-home .branch-container,
#spring-home .branch-card {
    box-sizing: border-box;
}

/* Remove the legacy width cap and negative margin beneath the banner. */
#spring-home .banner.main-banner {
    float: none;
    width: 100%;
    height: auto !important;
    margin: 30px 0 60px;
    padding: 0;
}

#spring-home .banner.main-banner > .inner {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
}

#spring-home .main-banner .slider-pro {
    width: 100%;
    max-width: 100%;
}

#spring-home .main-banner .banner-image,
#spring-home .main-banner .banner-image img {
    margin: 0;
    border-radius: 0;
}

/* Banner content comes from the banner record, including its uploaded text_image logo. */
#spring-home .main-banner .spring-banner-slide {
    position: relative;
    display: block;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--site-brand-primary);
    color: var(--site-brand-contrast) !important;
    text-decoration: none;
}

#spring-home .main-banner .spring-banner-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    object-position: center top;
}

#spring-home .spring-banner-slide--shaded::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--site-home-banner-shade);
    pointer-events: none;
}

#spring-home .spring-banner-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    text-align: left;
}

#spring-home .spring-banner-inner {
    box-sizing: border-box;
    width: 1400px;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
}

#spring-home .spring-banner-panel {
    box-sizing: border-box;
    width: 25%;
    max-width: 500px;
    height: 100%;
    overflow: auto;
    padding: 20px;
    background: var(--site-home-banner-panel);
    color: var(--site-brand-contrast) !important;
}

#spring-home .main-banner .spring-banner-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 0 0 10px;
    border: 0;
    border-radius: 0;
}

#spring-home .spring-banner-title {
    display: block;
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.6;
}

#spring-home .spring-banner-description {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--site-brand-contrast) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    white-space: pre-line;
}

#spring-home .spring-banner-cta {
    box-sizing: border-box;
    display: inline-block;
    width: 180px;
    max-width: 100%;
    margin-top: 35px;
    padding: 12px 40px;
    border: 0;
    background: var(--site-home-delivery-start);
    color: var(--site-brand-contrast) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    transition: background-color 180ms ease;
}

#spring-home .spring-banner-slide:hover .spring-banner-cta {
    background: var(--site-accent-hover);
}

#spring-home .spring-banner-slide:focus-visible {
    outline: 3px solid var(--site-accent);
    outline-offset: -3px;
}

@media (max-width: 1200px) {
    #spring-home .spring-banner-inner {
        padding: 0 20px;
    }

    #spring-home .spring-banner-panel {
        width: 350px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #spring-home .main-banner .spring-banner-logo {
        width: 180px;
    }

    #spring-home .spring-banner-title {
        font-size: 24px;
    }

    #spring-home .spring-banner-description {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #spring-home .spring-banner-cta {
        transition: none;
    }
}

#spring-home .spring-home-catalogue {
    width: 92%;
    max-width: 1575px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Keep black category artwork readable on the dark homepage. */
html.dark #spring-home .demo-category-card {
    --shop-card-heading: var(--site-brand-primary);
    --shop-card-muted: var(--site-brand-primary-strong);
    background: var(--site-home-category-surface);
    border-color: var(--shop-card-outline);
    color: var(--shop-card-heading);
}

html.dark #spring-home .demo-category-card:hover,
html.dark #spring-home .demo-category-card:focus-visible {
    border-color: var(--site-accent);
    color: var(--shop-card-heading);
}

#spring-home .intro,
#spring-home .cta,
#spring-home .branch-instagram-section {
    float: none;
    width: 100%;
    margin: 0;
    text-align: left;
}

#spring-home :is(.intro, .cta) > .inner {
    box-sizing: border-box;
    width: 1400px !important;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* These scoped colours also override the legacy dark-mode text reset. */
#spring-home .intro {
    padding: 20px 0;
    background: var(--site-surface) url('../images/offer_bg.png') center / cover no-repeat;
    color: var(--site-home-intro-text) !important;
    font-weight: 700;
}

#spring-home .intro h2 {
    margin: 22px 0 11px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--site-home-intro-heading) !important;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
}

#spring-home .intro p {
    margin: 0 0 11px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

html.dark #spring-home .intro {
    background-image: none;
}

#spring-home .cta {
    padding: 30px 0 20px;
    background: linear-gradient(to bottom, var(--site-home-delivery-start), var(--site-home-delivery-end));
    color: var(--site-brand-contrast) !important;
}

#spring-home .cta > .inner {
    display: flow-root;
}

#spring-home .cta h2 {
    margin: 0 0 11px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.1;
}

#spring-home .cta p {
    margin: 0 0 11px;
    color: inherit;
    font-size: 14px;
    line-height: 1.6;
}

#spring-home .spring-delivery-van {
    display: block;
    float: right;
    width: 175px;
    max-width: 100%;
    height: auto;
    margin: 24px 0 0 30px;
}

#spring-home .branch-instagram-section {
    padding: 40px 0 60px;
    background: var(--site-surface);
}

#spring-home .branch-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 0 auto 40px;
}

#spring-home .branch-card {
    float: none;
    width: 100%;
    min-width: 0;
    min-height: 320px;
    margin: 0;
    padding: 30px;
    border: 0;
    background: var(--site-home-branch-surface);
    color: var(--site-home-branch-text) !important;
    text-align: left;
}

#spring-home .branch-card :is(h2, h3, h4, p) {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-transform: none;
}

#spring-home .branch-card h2 {
    margin: 0 0 20px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
}

#spring-home .branch-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

#spring-home .branch-card h4 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

#spring-home .branch-card p {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

#spring-home .branch-card .spacer {
    height: 50px;
}

#spring-home .branch-card .spacer.small {
    height: 25px;
}

#spring-home .branch-card a {
    color: inherit;
    overflow-wrap: anywhere;
    text-decoration: none;
}

#spring-home .branch-card a:hover,
#spring-home .branch-card a:focus-visible {
    color: var(--site-accent) !important;
    text-decoration: underline;
}

@media (max-width: 1680px) {
    #spring-home :is(.intro, .cta) > .inner {
        padding: 0 15px;
    }
}

@media (max-width: 1300px) {
    #spring-home :is(.intro, .cta) > .inner {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    #spring-home .banner.main-banner {
        margin-top: 20px !important;
        margin-bottom: 40px;
    }

    #spring-home .branch-container {
        grid-template-columns: minmax(0, 1fr);
    }

    #spring-home .branch-card h2 {
        font-size: 28px;
    }

    #spring-home .spring-home-catalogue .category-feature {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    #spring-home .spring-delivery-van {
        float: none;
        margin: 0 0 20px;
    }
}
