/* ==========================================================================
   Le Belle Arti — Homepage Styles
   Conditionally loaded only on the front page.
   ========================================================================== */

/* ----- Shared Utilities ----- */
.section-padding {
    padding: 6rem 0;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--lba-white);
    color: var(--lba-white);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--lba-white);
}

.btn--outline-dark {
    background: transparent;
    border: 1px solid var(--lba-black);
    color: var(--lba-black);
}

.btn--outline-dark:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--lba-black);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   1. HERO SLIDER — Cinematic, immersive
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slider__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

.hero-slider__content {
    max-width: 600px;
}

/* Slide variant: left-aligned text — same bottom-left position as other slides */
.hero-slider__slide--left .hero-slider__overlay {
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.5));
}

.hero-slider__eyebrow {
    display: block;
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--lba-space-lg);
}

.hero-slider__title {
    font-family: var(--lba-font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--lba-white);
    line-height: 1.05;
    margin-bottom: var(--lba-space-md);
}

.hero-slider__subtitle {
    font-family: var(--lba-font-secondary);
    font-size: var(--lba-font-size-sm);
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.hero-slider__cta {
    display: inline-block;
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--lba-white);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.6rem 1.5rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-slider__cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--lba-white);
    color: var(--lba-white);
}

.hero-slider__dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.625rem;
    z-index: 2;
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-slider__dot.is-active {
    background: var(--lba-white);
    border-color: var(--lba-white);
}

.hero-slider__dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   1b. BRAND STATEMENT — The foyer moment
   ========================================================================== */
.brand-statement {
    padding: 5rem 0 3rem;
}

.brand-statement__inner {
    text-align: center;
    margin: 0 auto;
}

.brand-statement__headline {
    font-family: var(--lba-font-primary);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    color: var(--lba-gray-900);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
}

/* ==========================================================================
   1c. FEATURED BRAND — Editorial magazine moment
   ========================================================================== */
.featured-brand {
    margin-bottom: 4rem;
}

.featured-brand__link {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.featured-brand__image {
    width: 100%;
    height: 80vh;
    min-height: 550px;
    overflow: hidden;
}

.featured-brand__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.featured-brand__link:hover .featured-brand__image img {
    transform: scale(1.02);
}

.featured-brand__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.2));
    display: flex;
    align-items: flex-end;
    padding: 5rem;
}

.featured-brand__content {
    max-width: 500px;
}

.featured-brand__eyebrow {
    display: block;
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--lba-space-lg);
}

.featured-brand__title {
    font-family: var(--lba-font-primary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--lba-white);
    line-height: 1.05;
    margin-bottom: var(--lba-space-xl);
}

.featured-brand__cta {
    font-family: var(--lba-font-secondary);
    font-size: var(--lba-font-size-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.featured-brand__link:hover .featured-brand__cta {
    color: var(--lba-white);
}

@media (max-width: 768px) {
    .featured-brand__image {
        height: 50vh;
        min-height: 350px;
    }

    .featured-brand__overlay {
        padding: var(--lba-space-xl);
    }
}

/* ==========================================================================
   2. MICRO NEWSLETTER — Quiet, intentional
   ========================================================================== */
.newsletter-micro {
    background: var(--lba-gray-100);
    padding: var(--lba-space-xl) 0;
}

.newsletter-micro__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--lba-space-2xl);
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-micro__label {
    font-family: var(--lba-font-secondary);
    font-size: var(--lba-font-size-xs);
    color: var(--lba-gray-500);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.newsletter-micro__form {
    display: flex;
    align-items: center;
    gap: var(--lba-space-sm);
    flex: 1;
    max-width: 280px;
}

.newsletter-micro__input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--lba-gray-300);
    padding: var(--lba-space-xs) 0;
    font-family: var(--lba-font-secondary);
    font-size: var(--lba-font-size-xs);
    color: var(--lba-gray-900);
    outline: none;
}

.newsletter-micro__input::placeholder {
    color: var(--lba-gray-500);
}

.newsletter-micro__input:focus {
    border-bottom-color: var(--lba-black);
}

button.newsletter-micro__btn,
button.newsletter-micro__btn[type="submit"] {
    background: none;
    border: none;
    font-family: var(--lba-font-secondary);
    font-size: var(--lba-font-size-sm);
    color: var(--lba-gray-500);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    line-height: 1;
}

button.newsletter-micro__btn:hover,
button.newsletter-micro__btn[type="submit"]:hover {
    color: var(--lba-black);
    background: none;
    opacity: 1;
}

/* ==========================================================================
   2b. EDITORIAL TRANSITION STRIP — Minimal text reset below hero
   ========================================================================== */
.editorial-transition {
    width: 100%;
    background: #ffffff;
    padding: 90px 0;
}

.editorial-transition__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.editorial-transition__text {
    font-size: 17px;
    line-height: 1.6;
    color: #1a1a1a;
    font-weight: 400;
    margin: 0;
    font-family: var(--lba-font-secondary);
    letter-spacing: 0.01em;
}

.editorial-transition__cta {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s ease;
}

.editorial-transition__cta:hover {
    opacity: 0.5;
}

/* ==========================================================================
   2c. BRAND LOGO STRIP — Maker portfolio trust signal
   ========================================================================== */
.brand-logos {
    border-top: 1px solid var(--lba-gray-200, #e8e8e8);
    border-bottom: 1px solid var(--lba-gray-200, #e8e8e8);
    padding: 2.25rem 0;
    background: var(--lba-white);
}

.brand-logos__inner {
    padding: 0 68px;
}

.brand-logos__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: space-between;
}

.brand-logos__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logos__item img {
    height: 34px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(1);
    mix-blend-mode: multiply;
    opacity: 0.65;
    transition: opacity 0.2s ease, filter 0.2s ease;
    display: block;
}

.brand-logos__item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .brand-logos__inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .brand-logos__list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem 2.5rem;
    }
}

/* ==========================================================================
   3. EDITORIAL SPLIT — Image left (62), text right (38) — asymmetric tension
   ========================================================================== */
.editorial-split {
    display: grid;
    grid-template-columns: 62% 38%;
    background: #fff;
    padding: 3rem 68px;
    gap: 0;
}

.editorial-split__image-col {
    overflow: hidden;
}

.editorial-split__image {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
    transition: transform 0.9s ease;
}

.editorial-split:hover .editorial-split__image {
    transform: scale(1.03);
}

.editorial-split__text-col {
    display: flex;
    align-items: center;
    padding: 0 5rem;
    background: #fff;
}

.editorial-split__content {
    max-width: 380px;
}

.editorial-split__eyebrow {
    display: block;
    font-family: var(--lba-font-secondary);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1.25rem;
}

.editorial-split__heading {
    font-family: var(--lba-font-primary);
    font-size: clamp(1.75rem, 2.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.editorial-split__body {
    font-family: var(--lba-font-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 2rem;
}

.editorial-split__cta {
    font-family: var(--lba-font-secondary);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 3px;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.editorial-split__cta:hover {
    opacity: 0.5;
}

@media (max-width: 900px) {
    .editorial-split {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 40px 24px;
    }
    .editorial-split__image {
        height: 280px;
    }
    .editorial-split__text-col {
        padding: 3rem 2rem;
    }
    .editorial-split__content {
        max-width: none;
    }
}

/* ==========================================================================
   3b. FEATURED COLLECTIONS — Editorial, image-first
   ========================================================================== */
.collections {
    padding: 2rem 40px 2rem;
}

.collections__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.collections__tile {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 580px;
}

.collections__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.collections__tile:hover::after {
    background: rgba(0, 0, 0, 0.10);
}

.collections__tile-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.collections__tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.collections__tile:hover .collections__tile-image img {
    transform: scale(1.03);
}

.collections__tile-label {
    position: absolute;
    bottom: 28px;
    left: 28px;
    z-index: 2;
    font-family: var(--lba-font-secondary);
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lba-white);
    font-weight: 400;
}

/* ==========================================================================
   4. KITCHENS & CABINETRY — Architectural pillar
   ========================================================================== */
.kitchens {
    margin: 0;
}

.kitchens__image {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
}

/* iOS/touch: fixed attachment causes blank on mobile — disable gracefully */
@supports (-webkit-touch-callout: none) {
    .kitchens__image {
        background-attachment: scroll;
    }
}

.kitchens__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.25));
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

.kitchens__content {
    max-width: 580px;
}

.kitchens__eyebrow {
    display: block;
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--lba-space-lg);
}

.kitchens__title {
    font-family: var(--lba-font-primary);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 400;
    color: var(--lba-white);
    line-height: 1.1;
    margin-bottom: var(--lba-space-lg);
}

.kitchens__text {
    font-family: var(--lba-font-secondary);
    font-size: var(--lba-font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--lba-space-2xl);
    max-width: 460px;
}

.kitchens__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* ==========================================================================
   5. BRAND VALUE / CONSULTATION — Distinctive position
   ========================================================================== */
.brand-value {
    background: var(--lba-white);
    color: var(--lba-black);
    margin-bottom: 2rem;
}

.brand-value__intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--lba-space-3xl);
}

.brand-value__heading {
    font-family: var(--lba-font-primary);
    font-size: var(--lba-font-size-2xl);
    font-weight: 400;
    margin-bottom: var(--lba-space-xl);
    color: var(--lba-black);
}

.brand-value__lead {
    font-family: var(--lba-font-secondary);
    font-size: var(--lba-font-size-sm);
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.8;
}

.brand-value__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lba-space-3xl);
    margin-bottom: var(--lba-space-3xl);
    text-align: left;
}

.brand-value__item-title {
    font-family: var(--lba-font-primary);
    font-size: var(--lba-font-size-lg);
    font-weight: 400;
    margin-bottom: var(--lba-space-md);
    color: var(--lba-black);
}

.brand-value__item-text {
    font-size: var(--lba-font-size-sm);
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.8;
}

.brand-value__actions {
    display: flex;
    justify-content: center;
    gap: var(--lba-space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   6. CONTRACT / TRADE — Substantial, credible
   ========================================================================== */
.contract__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lba-space-3xl);
    align-items: center;
}

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

.contract__eyebrow {
    display: block;
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lba-gray-500);
    margin-bottom: var(--lba-space-lg);
}

.contract__title {
    font-family: var(--lba-font-primary);
    font-size: var(--lba-font-size-xl);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: var(--lba-space-xl);
}

.contract__text {
    font-size: var(--lba-font-size-sm);
    color: var(--lba-gray-700);
    line-height: 1.8;
    margin-bottom: var(--lba-space-xl);
}

.contract__scope {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--lba-space-2xl);
    display: flex;
    gap: var(--lba-space-xl);
}

.contract__scope li {
    font-family: var(--lba-font-secondary);
    font-size: var(--lba-font-size-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lba-gray-500);
}

.contract__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: var(--lba-space-xl, 2rem);
}

/* ==========================================================================
   7. FEATURED PRODUCTS — Refined cards
   ========================================================================== */
.featured-products__heading {
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    color: var(--lba-gray-500);
    margin-bottom: var(--lba-space-3xl);
}

.featured-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lba-space-xl);
}

.product-card {
    display: block;
    color: inherit;
}

.product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    margin-bottom: var(--lba-space-lg);
    background: var(--lba-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

.product-card:hover .product-card__image img,
.product-card__link:hover .product-card__image img {
    transform: scale(1.03);
}

.product-card__brand {
    display: block;
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lba-gray-500);
    margin-bottom: 0.25rem;
}

.product-card__name {
    font-family: var(--lba-font-primary);
    font-size: var(--lba-font-size-base);
    font-weight: 400;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.product-card__price {
    font-family: var(--lba-font-secondary);
    font-size: 0.875rem;
    color: var(--lba-black);
}

/* ==========================================================================
   8. NEWSLETTER FOOTER — Dark, refined
   ========================================================================== */
.newsletter-footer {
    background: var(--lba-gray-900);
    padding: 6rem 0;
}

.newsletter-footer__inner {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-footer__heading {
    font-family: var(--lba-font-primary);
    font-size: var(--lba-font-size-lg);
    font-weight: 400;
    color: var(--lba-white);
    margin-bottom: var(--lba-space-md);
}

.newsletter-footer__text {
    font-size: var(--lba-font-size-xs);
    color: var(--lba-gray-500);
    line-height: 1.7;
    margin-bottom: var(--lba-space-2xl);
}

.newsletter-footer__form {
    display: flex;
    gap: var(--lba-space-md);
}

.newsletter-footer__input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--lba-gray-700);
    padding: var(--lba-space-sm) 0;
    font-family: var(--lba-font-secondary);
    font-size: var(--lba-font-size-xs);
    color: var(--lba-white);
    outline: none;
}

.newsletter-footer__input::placeholder {
    color: var(--lba-gray-500);
}

.newsletter-footer__input:focus {
    border-bottom-color: var(--lba-gray-300);
}

button.newsletter-footer__btn,
button.newsletter-footer__btn[type="submit"] {
    background: none;
    border: none;
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lba-gray-500);
    cursor: pointer;
    padding: var(--lba-space-sm) 0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

button.newsletter-footer__btn:hover,
button.newsletter-footer__btn[type="submit"]:hover {
    color: var(--lba-white);
    background: none;
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }

    .hp-categories,
    .hp-carousel,
    .hp-help {
        padding: 2rem 0;
    }

    .editorial-split {
        padding: 2rem var(--lba-space-xl);
    }

    .hero-slider {
        height: 70vh;
    }

    .hero-slider__overlay {
        padding: var(--lba-space-xl);
    }

    .newsletter-micro__inner {
        flex-direction: column;
        gap: var(--lba-space-md);
    }

    .newsletter-micro__label {
        white-space: normal;
        text-align: center;
    }

    .newsletter-micro__form {
        max-width: 100%;
        width: 100%;
    }

    .collections {
        padding: 3rem 0;
    }

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

    .collections__tile {
        min-height: 320px;
    }

    .kitchens__image {
        min-height: 60vh;
    }

    .kitchens__overlay {
        padding: var(--lba-space-xl);
    }

    .brand-value__grid {
        grid-template-columns: 1fr;
        gap: var(--lba-space-xl);
        text-align: center;
    }

    .contract__inner {
        grid-template-columns: 1fr;
    }

    .contract__image {
        order: -1;
    }

    .contract__scope {
        flex-direction: column;
        gap: var(--lba-space-sm);
    }

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

    .newsletter-footer {
        padding: 4rem 0;
    }

    .newsletter-footer__form {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 55vh;
    }

    .collections__grid {
        grid-template-columns: 1fr;
    }

    .featured-products__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CATEGORY TILES
   ========================================================================== */

.hp-categories {
    background: var(--lba-white);
    padding: 3rem 0;
}

.hp-categories__inner {
    padding: 0 68px;
}

.hp-categories__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hp-categories__eyebrow {
    display: block;
    font-family: var(--lba-font-secondary);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lba-gray-500, #888);
    margin-bottom: 0.75rem;
}

.hp-categories__title {
    font-family: var(--lba-font-primary);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 400;
    color: var(--lba-black);
    margin: 0;
}

.hp-categories__track {
    display: flex;
    gap: 1rem;
}

.hp-categories__tile {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.hp-categories__img-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--lba-gray-200, #e8e8e8);
}

.hp-categories__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-categories__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    transition: background 0.3s ease;
}

.hp-categories__img-wrap img {
    filter: brightness(0.94) saturate(0.88);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.hp-categories__tile:hover .hp-categories__img-wrap img {
    transform: scale(1.04);
    filter: brightness(0.98) saturate(0.92);
}

.hp-categories__tile:hover .hp-categories__overlay {
    background: rgba(0, 0, 0, 0.06);
}

.hp-categories__label {
    display: block;
    padding: 0.875rem 0 0;
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lba-black);
    text-align: center;
}

/* Carousel wrapper (relative for arrow positioning) */
.hp-categories__carousel {
    position: relative;
}

/* Arrow buttons (visible only on tablet) */
.hp-categories__arrow {
    display: none;
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s ease, background 0.2s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.hp-categories__arrow:hover {
    background: #fff;
}
.hp-categories__arrow[hidden] {
    display: none !important;
}
.hp-categories__arrow--prev { left: 12px; }
.hp-categories__arrow--next { right: 12px; }

/* Pagination dots (visible only on mobile) */
.hp-categories__dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}
.hp-categories__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.hp-categories__dot.is-active {
    background: #1a1a1a;
    border-color: #1a1a1a;
}


/* Tablet and mobile: compact two-column grid with every category visible. */
@media (max-width: 1023.98px) {
    .hp-categories__inner {
        padding: 0;
    }
    .hp-categories__header {
        padding: 0 24px;
    }

    .hp-categories__track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 24px;
        gap: 1.5rem 0.75rem;
    }
    .hp-categories__tile {
        min-width: 0;
    }
    .hp-categories__arrow {
        display: none !important;
    }
    .hp-categories__label {
        font-size: 0.625rem;
        padding: 0.75rem 0 0;
    }
}

/* Mobile keeps the grid compact and removes carousel controls. */
@media (max-width: 599.98px) {
    .hp-categories {
        padding: 3rem 0 3.5rem;
    }
    .hp-categories__header {
        padding: 0 20px;
    }
    .hp-categories__track {
        padding: 0 20px;
        gap: 1.25rem 0.625rem;
    }
    .hp-categories__tile {
        min-width: 0;
    }
    .hp-categories__arrow {
        display: none !important;
    }
    .hp-categories__dots {
        display: none;
    }
    .hp-categories__img-wrap {
        aspect-ratio: 4 / 5;
    }
}

/* ==========================================================================
   FEATURED PRODUCTS CAROUSEL
   ========================================================================== */

.hp-carousel {
    padding: 3rem 0;
}

.hp-carousel__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.hp-carousel__heading {
    font-family: var(--lba-font-primary);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 400;
    color: var(--lba-black);
    margin: 0;
}

.hp-carousel__see-all {
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lba-gray-500, #777);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.hp-carousel__see-all:hover {
    color: var(--lba-black);
}

.hp-carousel__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hp-carousel__viewport {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin-bottom: 1.5rem;
}

.hp-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.hp-carousel__track {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    width: max-content;
}

/* Each carousel card */
.hp-carousel__item {
    flex-shrink: 0;
    width: 320px;
    scroll-snap-align: start;
}

/* Card image: same aspect ratio as archive */
.hp-carousel__item .lba-product-card__img-wrap {
    aspect-ratio: 4 / 5;
}

/* Carousel cards: ellipsis on brand + name so partial (peek-a-boo)
   cards on mobile show a clean "..." instead of a mid-word cut.
   Scoped to .hp-carousel__item so archive grid cards continue to
   wrap naturally at their full width. */
.hp-carousel__item .lba-product-card__brand,
.hp-carousel__item .lba-product-card__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Progress bar */
.hp-carousel__progress {
    height: 3px;
    background: var(--lba-gray-200, #e5e5e5);
    overflow: hidden;
    cursor: pointer;
    padding: 6px 0;
    margin: -6px 0;
    box-sizing: content-box;
}

.hp-carousel__progress-bar {
    height: 100%;
    background: var(--lba-black);
    width: 0%;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .hp-carousel__item {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .hp-carousel__item {
        width: 200px;
    }

    .hp-carousel__viewport {
        padding-left: 1.25rem;
    }
}

/* ==========================================================================
   WE'RE HERE TO HELP
   ========================================================================== */

.hp-help {
    background: #fff;
    border-top: 1px solid var(--lba-gray-200, #e5e5e5);
    padding: 3rem 0;
}

.hp-help__heading {
    font-family: var(--lba-font-primary);
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 400;
    color: var(--lba-black);
    text-align: center;
    margin: 0 0 3.5rem;
}

.hp-help__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.hp-help__tile {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.hp-help__tile-heading {
    font-family: var(--lba-font-primary);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--lba-black);
    margin: 0;
}

.hp-help__tile-body {
    font-family: var(--lba-font-secondary);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--lba-gray-600, #555);
    margin: 0;
    flex: 1;
}

.hp-help__tile-cta {
    font-family: var(--lba-font-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lba-black);
    text-decoration: none;
    border-bottom: 1px solid var(--lba-gray-400, #aaa);
    padding-bottom: 2px;
    display: inline-block;
    transition: border-color 0.2s ease;
    margin-top: auto;
}

.hp-help__tile-cta:hover {
    border-color: var(--lba-black);
}

@media (max-width: 768px) {
    .hp-help__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hp-help__tile {
        border-top: 1px solid var(--lba-gray-200, #e5e5e5);
        padding-top: 2rem;
    }

    .hp-help__tile:first-child {
        border-top: none;
        padding-top: 0;
    }
}

/* ==========================================================================
   SCROLL-REVEAL ANIMATIONS
   Elements start hidden; IntersectionObserver adds .is-visible
   ========================================================================== */

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {

    /* Fade up — default reveal */
    .reveal-fade {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-fade.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Fade from left */
    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-left.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* Fade from right */
    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-right.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger delays for grid children */
    .reveal-fade:nth-child(1) { transition-delay: 0s; }
    .reveal-fade:nth-child(2) { transition-delay: 0.08s; }
    .reveal-fade:nth-child(3) { transition-delay: 0.16s; }
    .reveal-fade:nth-child(4) { transition-delay: 0.24s; }
    .reveal-fade:nth-child(5) { transition-delay: 0.32s; }
}
