/* ============================================================
   Hero with Static Slides Block
   ============================================================ */

/* Dark header colours only when the block's "Keep header light" toggle is off. */
body:has(.hero-slides--dark-header) .c-header.js-header {
    background: #111 !important;
}

.hero-slides {
    display: flex;
    height: 60vh;
    min-height: 560px;
    background: #111;
    overflow: hidden;
    position: relative;
}

/* ── Left text panel ──────────────────────────────────────── */

.hero-slides__left {
    flex: 0 0 28%;
    max-width: 28%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 52px 52px 52px;
    color: #fff;
    position: relative;
    z-index: 2;
    background: #111;
}

.hero-slides__subtitle {
    color: #C8A97C;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}


.hero-slides__title {
    font-size: clamp(28px, 2.8vw, 52px);
    line-height: 1.1;
    font-weight: 600;
    color: #fff;
    margin: 0 0 28px 0;
}

.hero-slides__description {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 44px 0;
}

.hero-slides__cta {
    color: #C8A97C;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: gap 0.3s ease;
}

.hero-slides__cta:hover {
    gap: 18px;
}

.hero-slides__cta svg {
    flex-shrink: 0;
}

.hero-slides__cta--inactive {
    pointer-events: none;
    cursor: default;
}

.hero-slides__cta--inactive:hover {
    gap: 12px;
}

/* ── Slides grid ──────────────────────────────────────────── */

.hero-slides__grid {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.hero-slides__slide {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-slides__grid:hover .hero-slides__slide {
    flex: 0.65;
}

.hero-slides__grid .hero-slides__slide:hover {
    flex: 1.7;
}

/* Background image */
.hero-slides__slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-slides__slide:hover .hero-slides__slide-bg {
    transform: scale(1.04);
}

/* Overlay gradient */
.hero-slides__slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    transition: background 0.4s ease;
}

.hero-slides__slide:hover .hero-slides__slide-overlay {
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

/* Content inside each slide */
.hero-slides__slide-inner {
    position: absolute;
    inset: 0;
    padding: 28px 24px 28px 24px;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-decoration: none;
}

.hero-slides__slide-title {
    font-size: clamp(18px, 1.8vw, 28px);
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    white-space: pre-line;
    z-index: 99;
    flex: 1;
}

.hero-slides__slide-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: flex-end;
    position: relative;
    z-index: 99;
}

.hero-slides__slide-explore {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.hero-slides__slide:hover .hero-slides__slide-explore {
    opacity: 1;
    transform: translateX(0);
}

.hero-slides__slide-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 99;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-slides__slide:hover .hero-slides__slide-arrow {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    transform: translate(2px, -2px);
}

/* ── Header overrides (only loaded when this block is on the page) ── */

body:has(.hero-slides--dark-header) #thermory_logo {
    filter: brightness(0) invert(1);
}

/* Break .c-header out of the 1680px .body-container, same trick as content-row-full-width */
.c-header:not(.js-fixed-nav) {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
}

/* Fixed state already uses position:fixed — just ensure it spans full width */
.c-header.js-fixed-nav {
    left: 0 !important;
    margin-left: 0 !important;
    width: 100vw !important;
}

.c-header__wrapper,
.top-menu-area {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 52px !important;
    box-sizing: border-box !important;
}

.c-header__wrapper {
    border-bottom: none !important;
}

@media screen and (max-width: 900px) {
    .c-header__wrapper,
    .top-menu-area {
        padding: 0 24px !important;
    }

    .c-header__wrapper {
        border-bottom: solid 2px #E6E6E6 !important;
    }
}

/* ── Left border line ─────────────────────────────────────── */

@media (min-width: 901px) {
    .content-container::before {
        top: max(60vh, 560px) !important;
        height: calc(100% - 60px - max(60vh, 560px)) !important;
        min-height: unset !important;
    }
}

/* ── Mobile layout ────────────────────────────────────────── */

@media (max-width: 900px) {
    .hero-slides {
        flex-direction: column;
        height: auto;
        max-height: none;
        min-height: 0;
    }

    .hero-slides__left {
        flex: none;
        max-width: 100%;
        padding: 48px 24px 36px 24px;
    }

    .hero-slides__title {
        font-size: 32px;
    }

    .hero-slides__grid {
        flex-direction: column;
        gap: 3px;
    }

    /* Slit rows on mobile */
    .hero-slides__slide {
        flex: none;
        height: 140px;
        transition: none;
    }

    .hero-slides__grid:hover .hero-slides__slide,
    .hero-slides__grid .hero-slides__slide:hover {
        flex: none;
    }

    .hero-slides__slide-bg {
        transition: none;
    }

    .hero-slides__slide:hover .hero-slides__slide-bg {
        transform: none;
    }

    .hero-slides__slide-inner {
        flex-direction: row;
        align-items: center;
        padding: 0 24px;
        gap: 14px;
    }

    .hero-slides__slide-title {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-slides__slide-footer {
        align-self: center;
        gap: 0;
    }

    .hero-slides__slide-explore {
        display: none;
    }

    .hero-slides__slide-arrow {
        align-self: center;
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        margin-left: auto;
    }

    .hero-slides__slide-arrow svg {
        width: 11px;
        height: 11px;
    }
}

/* ── Tablet: 2 columns side by side ──────────────────────── */

@media (min-width: 601px) and (max-width: 900px) {
    .hero-slides__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3px;
    }

    .hero-slides__slide {
        height: 180px;
    }

    .hero-slides__slide-inner {
        flex-direction: column;
        padding: 20px;
        gap: 0;
        align-items: stretch;
    }

    .hero-slides__slide-title {
        font-size: 18px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .hero-slides__slide-footer {
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    .hero-slides__left {
        padding: 48px 24px 32px 24px;
    }

    .hero-slides__title {
        font-size: 28px;
    }
}
