/*
 * ArmoryKitchen home-page slider SKIN.
 *
 * Loads AFTER dist/armo-slider.css (the engine base). It only overrides colours,
 * sizing and the custom hero / product-card chrome — the engine layout,
 * transitions (fade/slide/zoom), arrows, dots and progress bar all come from
 * armo-slider.css. The engine adds the runtime classes (`ak-slider--hero`,
 * `ak-slider--carousel`, `ak-slider--transition-*`, slide `is-active`/`is-current`).
 */

/* ============================ HERO ============================ */
.home-hero-slider {
    background: #111;
    color: #fff;
    height: 100vh;
    min-height: 620px;
}

.home-hero-slide {
    background: #111;
    overflow: hidden;
}

.home-hero-media,
.home-hero-picture,
.home-hero-picture img,
.home-hero-video {
    display: block;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.home-hero-picture img,
.home-hero-video {
    object-fit: cover;
    object-position: center top;
}

.home-hero-picture {
    z-index: 1;
}

.home-hero-video {
    pointer-events: none;
    transform: scale(var(--home-hero-video-scale, 1.18));
    transform-origin: center center;
    z-index: 2;
}

.home-hero-video[hidden] {
    display: none !important;
}

.home-hero-shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .02) 42%, rgba(0, 0, 0, .2) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, .24) 0%, rgba(0, 0, 0, 0) 46%);
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 4;
}

.home-hero-corner {
    bottom: 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    left: 0;
    pointer-events: none;
    position: absolute;
    white-space: normal;
    z-index: 8;
}

.home-hero-corner-panel {
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(243,190,36,.74) 0%, rgba(231,169,32,.74) 60%, rgba(200,143,18,.74) 100%);
    box-shadow: 0 16px 32px rgba(0,0,0,.18);
    clip-path: polygon(0 0, 48% 0, 100% 100%, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: clamp(300px, 38vh, 370px);
    overflow: hidden;
    padding: 54px 190px 38px 40px;
    pointer-events: auto;
    position: relative;
    width: clamp(560px, 47vw, 760px);
}

.home-hero-corner-panel::after {
    background: rgba(255,255,255,.2);
    content: "";
    height: 160%;
    position: absolute;
    right: 88px;
    top: -40%;
    transform: rotate(-16deg);
    width: 1px;
}

.home-hero-eyebrow {
    color: rgba(255,255,255,.92);
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 8px;
    position: relative;
    text-shadow: 0 1px 8px rgba(0,0,0,.24);
    text-transform: uppercase;
    z-index: 1;
}

.home-hero-title {
    color: #fff;
    display: block;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: .95;
    margin: 0 0 18px;
    max-width: 330px;
    position: relative;
    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0   -2px 0 #000,
         0    2px 0 #000,
        -2px  0   0 #000,
         2px  0   0 #000;
    -webkit-text-stroke: 1px #000;
    text-transform: uppercase;
    z-index: 1;
}

/*
 * Each admin-editable hero title word renders as its own block element so the
 * two lines stack exactly like the former <br>. The --1/--2 modifiers exist so
 * the ARMO and KITCHEN words can later be themed independently if needed.
 */
.home-hero-title__line {
    display: block;
}

.home-hero-cta {
    align-items: center;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0,0,0,.2);
    color: #141414 !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 52px;
    min-width: 162px;
    padding: 0 30px;
    position: relative;
    text-decoration: none !important;
    text-shadow: none;
    text-transform: uppercase;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
    z-index: 1;
}

.home-hero-cta:hover,
.home-hero-cta:focus,
.home-hero-cta:active {
    background: #111;
    border-color: #111;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.home-mobile-hero-corner {
    display: none;
}

/* Hero arrows: stacked vertically on the right edge. */
.home-hero-slider .ak-slider__arrow--prev {
    left: auto;
    right: 34px;
    top: calc(50% - 58px);
}

.home-hero-slider .ak-slider__arrow--next {
    left: auto;
    right: 34px;
    top: calc(50% + 8px);
}

.home-hero-slider .ak-slider__footer {
    bottom: 36px;
}

/* ============================ FEATURED PRODUCTS ============================ */
/*
 * The wrapper carries the legacy theme `.projects` class, which is
 * display:inline-block. Inline-block shrink-to-fits to the carousel's
 * max-content width instead of the column, so on narrow viewports it pushed the
 * whole document — and the fixed header/nav — wider than the screen. Force a
 * full-width block so the viewport (overflow:hidden) clips the track instead.
 */
.featured-carousel-wrap {
    display: block;
    width: 100%;
}

.home-products-slider {
    margin: 0 auto;
    max-width: 100%;
    overflow: visible;
    padding: 0 0 34px;
    width: 100%;
}

.home-products-slider .ak-slider__viewport {
    overflow: hidden;
    padding: 0 2px 6px;
}

.home-products-slider .featured-item {
    padding: 0;
}

.home-products-slider .project-sec {
    margin: 0;
}

.home-products-slider .grid,
.home-products-slider figure.effect-sadie {
    width: 100%;
}

/* The carousel track animates via transform and is therefore GPU-composited.
   Inside that compositing layer Chromium/WebKit can fail to paint the
   object-fit product photo until the image wrapper owns its own stacking
   context, leaving the slides looking blank. An explicit z-index forces that
   context so the photo always paints; figcaption is lifted above it (below)
   so the Sadie hover overlay (white wash + title) still covers the image. */
.home-products-slider .effect-sadie .image {
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
}

.home-products-slider .effect-sadie figcaption {
    z-index: 2;
}

.home-products-slider .effect-sadie .image img {
    display: block;
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.home-products-slider .project-sec .detail {
    box-sizing: border-box;
    display: block;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* Keep the carousel arrows visible (engine base hides them under 992px); swipe
   is available too, but ArmoKitchen shows arrows on every breakpoint. */
.home-products-slider .ak-slider__arrow {
    background: #111;
    display: inline-flex;
    height: 44px;
    opacity: .88;
    top: 38%;
    width: 44px;
}

.home-products-slider .ak-slider__arrow:hover,
.home-products-slider .ak-slider__arrow:focus-visible {
    background: #b8860b;
    opacity: 1;
}

.home-products-slider .ak-slider__arrow--prev {
    left: -8px;
}

.home-products-slider .ak-slider__arrow--next {
    right: -8px;
}

.home-products-slider .ak-slider__footer {
    bottom: auto;
    left: auto;
    margin: 18px auto 0;
    position: relative;
    transform: none;
    width: min(100%, 520px);
}

.home-products-slider .ak-slider__dot {
    background: rgba(17, 17, 17, .28);
}

.home-products-slider .ak-slider__dot:hover,
.home-products-slider .ak-slider__dot:focus-visible,
.home-products-slider .ak-slider__dot.is-active {
    background: #b8860b;
}

.home-products-slider .ak-slider__progress {
    background: rgba(17, 17, 17, .14);
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 991px) {
    .home-products-slider .ak-slider__arrow {
        display: inline-flex;
        height: 40px;
        top: 34%;
        width: 40px;
    }

    .home-products-slider .ak-slider__arrow--prev {
        left: 4px;
    }

    .home-products-slider .ak-slider__arrow--next {
        right: 4px;
    }
}

@media (max-width: 768px) {
    .home-hero-slider {
        --home-mobile-hero-panel-height: 122px;
        --home-hero-video-scale: 1.04;
        height: 100svh;
        min-height: 560px;
    }

    .home-hero-corner {
        display: none !important;
    }

    .home-mobile-hero-corner {
        align-items: center;
        background: linear-gradient(135deg, #f3be24 0%, #e7a920 66%, #c98f12 100%);
        bottom: 0;
        box-shadow: 0 12px 28px rgba(0,0,0,.2);
        color: #fff;
        display: flex;
        font-family: 'Montserrat', sans-serif;
        gap: 12px;
        justify-content: space-between;
        left: 0;
        min-height: var(--home-mobile-hero-panel-height);
        padding: 18px 16px 34px;
        pointer-events: auto;
        position: absolute;
        text-shadow: 0 2px 12px rgba(0,0,0,.28);
        width: 100%;
        z-index: 10;
    }

    .home-mobile-hero-corner::after {
        background:
            repeating-linear-gradient(90deg, rgba(95,95,95,.32) 0 1px, transparent 1px 8px),
            #fff;
        bottom: 0;
        content: "";
        height: 26px;
        left: 0;
        position: absolute;
        width: 100%;
        z-index: 0;
    }

    .home-mobile-hero-copy,
    .home-mobile-hero-cta {
        position: relative;
        z-index: 1;
    }

    .home-mobile-hero-eyebrow {
        color: rgba(255,255,255,.9);
        display: block;
        font-size: 8px;
        font-weight: 600;
        line-height: 1.1;
        margin-bottom: 3px;
        text-transform: uppercase;
    }

    .home-mobile-hero-title {
        color: #fff;
        display: block;
        font-size: 28px;
        font-weight: 800;
        line-height: .92;
        text-shadow:
            -2px -2px 0 #000,
             2px -2px 0 #000,
            -2px  2px 0 #000,
             2px  2px 0 #000,
             0   -2px 0 #000,
             0    2px 0 #000,
            -2px  0   0 #000,
             2px  0   0 #000;
        -webkit-text-stroke: 1px #000;
        text-transform: uppercase;
    }

    .home-mobile-hero-cta {
        align-items: center;
        background: rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.82);
        border-radius: 999px;
        color: #fff !important;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 11px;
        font-weight: 700;
        justify-content: center;
        line-height: 1.1;
        min-height: 40px;
        padding: 0 13px;
        text-decoration: none !important;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .home-mobile-hero-cta:hover,
    .home-mobile-hero-cta:focus {
        background: #fff;
        color: #111 !important;
    }

    .home-hero-slider .ak-slider__footer {
        bottom: calc(var(--home-mobile-hero-panel-height) + 18px);
        width: min(100% - 112px, 360px);
    }

    .home-hero-slider .ak-slider__progress {
        display: block;
        max-width: 104px;
    }

    .home-hero-slider .ak-slider__arrow {
        bottom: calc(var(--home-mobile-hero-panel-height) + 16px);
        height: 44px;
        top: auto;
        transform: none;
        width: 44px;
    }

    .home-hero-slider .ak-slider__arrow--prev {
        left: 16px;
        right: auto;
    }

    .home-hero-slider .ak-slider__arrow--next {
        left: auto;
        right: 16px;
    }

    .home-products-slider .effect-sadie .image img {
        height: 280px;
    }
}

@media (max-width: 390px) {
    .home-hero-slider {
        --home-mobile-hero-panel-height: 116px;
        min-height: 520px;
    }

    .home-mobile-hero-corner {
        gap: 8px;
        padding: 16px 12px 32px;
    }

    .home-mobile-hero-title {
        font-size: 26px;
    }

    .home-mobile-hero-cta {
        font-size: 10px;
        min-height: 38px;
        padding: 0 11px;
    }
}
