/* GeekHub Kitchen 3.4.0 — forced WooCommerce templates and large media sliders. */

/* Full-width hero slider */
.gh-hero-slider {
    position: relative;
    min-height: clamp(720px, 84vh, 920px);
    overflow: hidden;
    background: #07111d;
    color: #fff;
}

.gh-hero-slider__viewport,
.gh-hero-slider__track,
.gh-hero-slide {
    min-height: inherit;
}

.gh-hero-slider__viewport {
    overflow: hidden;
}

.gh-hero-slider__track,
.gh-media-slider__track {
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform .75s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.gh-hero-slide {
    position: relative;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gh-hero-slide__media,
.gh-hero-slide__overlay {
    position: absolute;
    inset: 0;
}

.gh-hero-slide__media {
    background: #0c1724;
}

.gh-hero-slide__image {
    width: 100%;
    height: 100%;
    min-height: clamp(720px, 84vh, 920px);
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.035);
    transition: transform 7.5s ease;
}

.gh-hero-slide.is-active .gh-hero-slide__image {
    transform: scale(1.105);
}

.gh-hero-slide__overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 12, 22, .93) 0%, rgba(4, 12, 22, .73) 42%, rgba(4, 12, 22, .24) 72%, rgba(4, 12, 22, .12) 100%),
        linear-gradient(0deg, rgba(4, 12, 22, .7) 0%, transparent 44%);
}

.gh-hero-slide__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: clamp(150px, 17vh, 210px);
    padding-bottom: 240px;
}

.gh-hero-slide__content > * {
    max-width: 790px;
}

.gh-hero-slide__content .gh-kicker {
    color: #f4b544;
    letter-spacing: .18em;
}

.gh-hero-slide__content h1 {
    margin: 22px 0 24px;
    max-width: 880px;
    color: #fff;
    font-size: clamp(3.25rem, 6.4vw, 6rem);
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.gh-hero-slide__content > p {
    max-width: 700px;
    margin: 0 0 24px;
    color: rgba(255,255,255,.8);
    font-size: clamp(1.08rem, 1.45vw, 1.32rem);
    line-height: 1.7;
}

.gh-hero-slide__note {
    display: inline-flex;
    margin-bottom: 30px;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(5,15,26,.32);
    color: rgba(255,255,255,.86);
    font-size: .86rem;
    letter-spacing: .02em;
    backdrop-filter: blur(10px);
}

.gh-hero-slider__arrow,
.gh-slider-control {
    appearance: none;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: rgba(6,16,28,.42);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.gh-hero-slider__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.gh-hero-slider__arrow:hover,
.gh-slider-control:hover {
    border-color: #f4b544;
    background: #f4b544;
    color: #07111d;
}

.gh-hero-slider__arrow--prev { left: max(24px, 3vw); }
.gh-hero-slider__arrow--next { right: max(24px, 3vw); }

.gh-hero-slider__navigation {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 135px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.gh-slider-dots {
    display: flex;
    align-items: center;
    gap: 9px;
    pointer-events: auto;
}

.gh-slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.42);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}

.gh-slider-dots button.is-active {
    width: 36px;
    background: #f4b544;
}

.gh-slider-count {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.84);
    font-size: .78rem;
    letter-spacing: .12em;
    pointer-events: none;
}

.gh-slider-count i {
    width: 50px;
    height: 1px;
    background: rgba(255,255,255,.36);
}

.gh-hero-slider__proof {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    border-top: 1px solid rgba(255,255,255,.15);
    background: rgba(5,15,26,.68);
    backdrop-filter: blur(18px);
}

.gh-hero-slider__proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gh-hero-slider__proof-grid > div {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 36px;
    border-right: 1px solid rgba(255,255,255,.12);
}

.gh-hero-slider__proof-grid > div:first-child { padding-left: 0; }
.gh-hero-slider__proof-grid > div:last-child { border-right: 0; }
.gh-hero-slider__proof-grid strong { color: #fff; font-size: 1rem; }
.gh-hero-slider__proof-grid span { margin-top: 5px; color: rgba(255,255,255,.58); font-size: .84rem; }

/* Large module media sliders */
.gh-home-visual-section {
    overflow: hidden;
}

.gh-home-visual-section--dark {
    background: #08131f;
    color: #fff;
}

.gh-home-visual-section--soft {
    background: #f2f5f7;
}

.gh-section-heading--light h2 { color: #fff; }
.gh-section-heading--light p { color: rgba(255,255,255,.66); }
.gh-section-heading--light .gh-text-link { color: #f4b544; }

.gh-home-visual-section__slider {
    position: relative;
    margin-top: clamp(42px, 6vw, 76px);
}

.gh-media-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: #dfe5e8;
    box-shadow: 0 28px 70px rgba(8, 20, 31, .13);
}

.gh-media-slider__viewport {
    overflow: hidden;
}

.gh-media-slider__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
}

.gh-media-slider--wide .gh-media-slider__slide,
.gh-media-slider--wide .gh-slider-image {
    height: clamp(500px, 58vw, 720px);
}

.gh-slider-image {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: transform 7s ease;
}

.gh-media-slider__slide.is-active .gh-slider-image {
    transform: scale(1.075);
}

.gh-media-slider::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 26%;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(4,12,22,.42), transparent);
}

.gh-slider-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
}

.gh-slider-control--prev { left: 24px; }
.gh-slider-control--next { right: 24px; }

.gh-media-slider > .gh-slider-dots {
    position: absolute;
    z-index: 4;
    bottom: 26px;
    left: 30px;
}

.gh-media-slider > .gh-slider-count {
    position: absolute;
    z-index: 4;
    right: 30px;
    bottom: 24px;
}

.gh-factory__badge {
    position: absolute;
    z-index: 5;
    right: clamp(26px, 4vw, 54px);
    bottom: clamp(62px, 7vw, 90px);
    max-width: 320px;
    padding: 20px 24px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    background: rgba(6,16,28,.68);
    color: #fff;
    backdrop-filter: blur(14px);
}

.gh-factory__badge strong,
.gh-factory__badge span { display: block; }
.gh-factory__badge span { margin-top: 5px; color: rgba(255,255,255,.66); font-size: .84rem; }

.gh-factory-capabilities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    overflow: hidden;
}

.gh-factory-capabilities li {
    min-height: 120px;
    display: flex;
    align-items: center;
    padding: 28px;
    background: #0d1a28;
    color: rgba(255,255,255,.82);
    font-size: .92rem;
    line-height: 1.6;
}

.gh-solution-grid--below-media,
.gh-partner-cards--horizontal {
    margin-top: 30px;
}

.gh-process-grid--overlap {
    position: relative;
    z-index: 5;
    margin-top: -72px;
    padding: 0 34px;
}

.gh-process-grid--overlap article {
    box-shadow: 0 18px 48px rgba(8,20,31,.1);
}

/* Larger product cards on the homepage and archive */
.gh-home .gh-product-grid,
.gh-product-archive .gh-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.gh-home .gh-product-card__media,
.gh-product-archive .gh-product-card__media {
    min-height: 360px;
}

.gh-home .gh-product-card__media img,
.gh-product-archive .gh-product-card__media img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    padding: 22px;
}

/* Explicit product-template surface protection */
body.single-product.geekhub-custom-surface .gh-product-page {
    min-height: 60vh;
    width: 100%;
}

@media (max-width: 1024px) {
    .gh-hero-slider,
    .gh-hero-slider__viewport,
    .gh-hero-slider__track,
    .gh-hero-slide,
    .gh-hero-slide__image {
        min-height: 760px;
    }

    .gh-hero-slide__content { padding-bottom: 250px; }
    .gh-hero-slider__arrow { display: none; }
    .gh-factory-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gh-home .gh-product-grid,
    .gh-product-archive .gh-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .gh-hero-slider,
    .gh-hero-slider__viewport,
    .gh-hero-slider__track,
    .gh-hero-slide,
    .gh-hero-slide__image {
        min-height: 700px;
    }

    .gh-hero-slide__overlay {
        background: linear-gradient(0deg, rgba(4,12,22,.95) 0%, rgba(4,12,22,.72) 62%, rgba(4,12,22,.24) 100%);
    }

    .gh-hero-slide__content {
        align-self: flex-end;
        padding-top: 180px;
        padding-bottom: 170px;
    }

    .gh-hero-slide__content h1 {
        font-size: clamp(2.65rem, 12vw, 4rem);
    }

    .gh-hero-slide__content > p { font-size: 1rem; }
    .gh-hero-slider__navigation { bottom: 112px; }
    .gh-hero-slider__proof { position: absolute; }
    .gh-hero-slider__proof-grid { grid-template-columns: 1fr; }
    .gh-hero-slider__proof-grid > div { display: none; }
    .gh-hero-slider__proof-grid > div:first-child {
        min-height: 86px;
        display: flex;
        padding: 16px 0;
        border: 0;
    }

    .gh-media-slider { border-radius: 20px; }
    .gh-media-slider--wide .gh-media-slider__slide,
    .gh-media-slider--wide .gh-slider-image { height: 390px; }
    .gh-slider-control { width: 42px; height: 42px; }
    .gh-slider-control--prev { left: 14px; }
    .gh-slider-control--next { right: 14px; }
    .gh-media-slider > .gh-slider-dots { left: 18px; bottom: 18px; }
    .gh-media-slider > .gh-slider-count { right: 18px; bottom: 16px; }
    .gh-factory__badge { right: 18px; bottom: 62px; left: 18px; max-width: none; }
    .gh-factory-capabilities { grid-template-columns: 1fr; }
    .gh-factory-capabilities li { min-height: auto; padding: 22px; }
    .gh-process-grid--overlap { margin-top: 24px; padding: 0; }
    .gh-home .gh-product-grid,
    .gh-product-archive .gh-product-grid { grid-template-columns: 1fr; }
    .gh-home .gh-product-card__media,
    .gh-product-archive .gh-product-card__media,
    .gh-home .gh-product-card__media img,
    .gh-product-archive .gh-product-card__media img { height: 330px; min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
    .gh-hero-slider__track,
    .gh-media-slider__track,
    .gh-hero-slide__image,
    .gh-slider-image { transition: none !important; }
}
