﻿/* =========================================================
   CRAZYNUTS HOME HERO CAROUSEL
   3 slides / 15-second rotation controlled by Home/Index.cshtml
   ========================================================= */

.cn-heroSlider,
.cn-heroSlider *,
.cn-heroSlider *::before,
.cn-heroSlider *::after {
    box-sizing: border-box;
}

.cn-heroSlider {
    position: relative;
    width: 100%;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
    background: #73080b;
}

.cn-heroSlider__slides {
    position: relative;
    width: 100%;
    min-height: 650px;
}

/* ---------------------------------------------------------
   SLIDES
   --------------------------------------------------------- */

.cn-heroSlide {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(34px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1), visibility .7s;
}

    .cn-heroSlide.is-active {
        position: relative;
        z-index: 2;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

/* Individual slide moods */
.cn-heroSlide--export {
    background: radial-gradient(780px 520px at 77% 48%, rgba(238, 105, 38, .20), transparent 66%), radial-gradient(620px 360px at 12% 18%, rgba(255, 255, 255, .05), transparent 70%), linear-gradient(105deg, #8d0a0b 0%, #aa0d10 32%, #650508 67%, #190102 100%);
}

.cn-heroSlide--mix {
    background: radial-gradient(760px 520px at 77% 48%, rgba(239, 157, 50, .20), transparent 65%), radial-gradient(620px 360px at 12% 18%, rgba(255, 255, 255, .045), transparent 70%), linear-gradient(105deg, #68060b 0%, #920a10 37%, #510407 72%, #180102 100%);
}

.cn-heroSlide--private {
    background: radial-gradient(760px 520px at 78% 48%, rgba(224, 143, 44, .17), transparent 66%), radial-gradient(620px 360px at 12% 18%, rgba(255, 255, 255, .04), transparent 70%), linear-gradient(105deg, #4b0508 0%, #74080c 38%, #350204 73%, #0e0001 100%);
}

.cn-heroSlide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.03), transparent 30%, rgba(0,0,0,.10) 100%);
}

/* ---------------------------------------------------------
   INNER LAYOUT
   --------------------------------------------------------- */

.cn-heroSlide__inner {
    position: relative;
    z-index: 2;
    width: min(1480px, calc(100% - 80px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(500px, .9fr) minmax(560px, 1.1fr);
    gap: 28px;
    align-items: center;
}

.cn-heroSlide__content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 650px;
    padding: 46px 0 58px;
    color: #fff;
}

.cn-heroSlide.is-active .cn-heroSlide__content {
    animation: cnHeroTextIn .78s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes cnHeroTextIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------
   EYEBROW
   --------------------------------------------------------- */

.cn-heroSlide__eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
    color: #efc875;
    font-size: clamp(10px, .82vw, 13px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 3.7px;
    text-transform: uppercase;
}

.cn-heroSlide__eyebrowLine {
    width: 48px;
    height: 2px;
    flex: 0 0 48px;
    background: linear-gradient(90deg, #f6d174, #d99d3e);
}

/* ---------------------------------------------------------
   TITLE / TEXT
   --------------------------------------------------------- */

.cn-heroSlide__title {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(50px, 4.95vw, 82px);
    line-height: .98;
    font-weight: 500;
    letter-spacing: -2.7px;
}

    .cn-heroSlide__title > span {
        display: block;
    }

        .cn-heroSlide__title > span + span {
            margin-top: 5px;
        }

    .cn-heroSlide__title strong {
        color: #f5d489;
        font-weight: 500;
    }

.cn-heroSlide__text {
    width: min(590px, 100%);
    margin: 26px 0 0;
    color: rgba(255,255,255,.87);
    font-size: clamp(15px, 1.12vw, 18px);
    line-height: 1.58;
    font-weight: 450;
}

/* ---------------------------------------------------------
   BUTTON
   --------------------------------------------------------- */

.cn-heroSlide__button {
    width: fit-content;
    min-width: 340px;
    min-height: 64px;
    margin-top: 29px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe29c, #e8b451);
    color: #35190f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(40,0,0,.26);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

    .cn-heroSlide__button svg {
        width: 21px;
        height: 21px;
        flex: 0 0 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .2s ease;
    }

    .cn-heroSlide__button:hover,
    .cn-heroSlide__button:focus-visible {
        transform: translateY(-3px);
        color: #35190f;
        filter: brightness(1.04);
        box-shadow: 0 18px 38px rgba(40,0,0,.34);
    }

        .cn-heroSlide__button:hover svg,
        .cn-heroSlide__button:focus-visible svg {
            transform: translateX(4px);
        }

/* ---------------------------------------------------------
   RIGHT-SIDE IMAGE
   --------------------------------------------------------- */

.cn-heroSlide__visual {
    position: relative;
    z-index: 3;
    width: 100%;
    min-width: 0;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0 24px;
}

    .cn-heroSlide__visual::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 52%;
        z-index: -1;
        width: min(92%, 690px);
        aspect-ratio: 1.55 / 1;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: radial-gradient(ellipse, rgba(255,157,68,.17), transparent 68%);
        filter: blur(10px);
    }

    .cn-heroSlide__visual img {
        display: block;
        width: min(100%, 800px);
        height: auto;
        max-height: 590px;
        object-fit: contain;
        object-position: center;
        user-select: none;
        -webkit-user-drag: none;
        filter: drop-shadow(0 28px 30px rgba(0,0,0,.34));
    }

.cn-heroSlide--mix .cn-heroSlide__visual img {
    max-width: 760px;
}

.cn-heroSlide--private .cn-heroSlide__visual img {
    max-width: 800px;
}

.cn-heroSlide.is-active .cn-heroSlide__visual img {
    animation: cnHeroVisualIn .88s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes cnHeroVisualIn {
    from {
        opacity: 0;
        transform: translateX(34px) scale(.965);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ---------------------------------------------------------
   FEATURE CARDS
   --------------------------------------------------------- */

.cn-heroFeatures {
    width: 100%;
    max-width: 650px;
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.cn-heroFeature {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
    backdrop-filter: blur(4px);
}

.cn-heroFeature__number {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(244,205,112,.48);
    border-radius: 50%;
    color: #f1cc77;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .4px;
}

.cn-heroFeature strong,
.cn-heroFeature div > span {
    display: block;
}

.cn-heroFeature strong {
    color: #fff;
    font-size: 9.5px;
    line-height: 1.15;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .25px;
}

.cn-heroFeature div > span {
    margin-top: 3px;
    color: rgba(255,255,255,.57);
    font-size: 8.5px;
    line-height: 1.25;
}

/* ---------------------------------------------------------
   DOT NAVIGATION
   --------------------------------------------------------- */

.cn-heroSlider__navigation {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 9px;
    transform: translateX(-50%);
}

.cn-heroSlider__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.38);
    cursor: pointer;
    transition: width .25s ease, background .25s ease, transform .25s ease;
}

    .cn-heroSlider__dot:hover,
    .cn-heroSlider__dot:focus-visible {
        transform: scale(1.18);
    }

    .cn-heroSlider__dot.is-active {
        width: 34px;
        background: #f1c86e;
    }

/* ---------------------------------------------------------
   15-SECOND PROGRESS LINE
   --------------------------------------------------------- */

.cn-heroSlider__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    height: 3px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}

    .cn-heroSlider__progress span {
        display: block;
        width: 0;
        height: 100%;
        background: linear-gradient(90deg, #f2c666, #ffe29b);
    }

        .cn-heroSlider__progress span.is-running {
            animation: cnHeroProgress 15s linear forwards;
        }

@keyframes cnHeroProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* =========================================================
   HERO — MEDIUM / TABLET
   ========================================================= */

@media (max-width: 1180px) {
    .cn-heroSlider,
    .cn-heroSlider__slides,
    .cn-heroSlide {
        min-height: 690px;
    }

    .cn-heroSlide__inner {
        width: calc(100% - 48px);
        min-height: 690px;
        grid-template-columns: minmax(420px, .93fr) minmax(400px, 1.07fr);
        gap: 18px;
    }

    .cn-heroSlide__title {
        font-size: clamp(46px, 5.5vw, 66px);
    }

    .cn-heroSlide__visual {
        min-height: 500px;
    }

        .cn-heroSlide__visual img {
            max-width: 620px;
            max-height: 520px;
        }

    .cn-heroFeatures {
        margin-top: 34px;
    }
}

/* =========================================================
   HERO — STACKED TABLET / MOBILE
   ========================================================= */

@media (max-width: 860px) {
    .cn-heroSlider,
    .cn-heroSlider__slides,
    .cn-heroSlide {
        min-height: auto;
    }

    .cn-heroSlide__inner {
        width: calc(100% - 30px);
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 34px 0 72px;
    }

    .cn-heroSlide__content {
        max-width: none;
        padding: 0;
    }

    .cn-heroSlide__eyebrow {
        margin-bottom: 17px;
        gap: 10px;
        font-size: 9px;
        letter-spacing: 2.4px;
    }

    .cn-heroSlide__eyebrowLine {
        width: 31px;
        flex-basis: 31px;
    }

    .cn-heroSlide__title {
        max-width: 590px;
        font-size: clamp(41px, 10vw, 58px);
        letter-spacing: -1.7px;
    }

    .cn-heroSlide__text {
        max-width: 560px;
        margin-top: 19px;
        font-size: 14px;
        line-height: 1.52;
    }

    .cn-heroSlide__button {
        width: 100%;
        max-width: 430px;
        min-width: 0;
        min-height: 56px;
        margin-top: 22px;
        padding: 0 21px;
        font-size: 13px;
    }

    .cn-heroFeatures {
        max-width: 620px;
        margin-top: 27px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .cn-heroFeature {
        padding: 8px;
    }

    .cn-heroFeature__number {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .cn-heroSlide__visual {
        min-height: 0;
        padding: 4px 0 2px;
    }

        .cn-heroSlide__visual img,
        .cn-heroSlide--mix .cn-heroSlide__visual img,
        .cn-heroSlide--private .cn-heroSlide__visual img {
            width: min(100%, 600px);
            max-height: 410px;
        }

    .cn-heroSlider__navigation {
        bottom: 22px;
    }
}

/* =========================================================
   HERO — PHONE
   ========================================================= */

@media (max-width: 600px) {
    .cn-home {
        padding-bottom: 20px;
    }

    .cn-homeSection {
        width: calc(100% - 24px);
        margin-top: 16px;
    }

    .cn-heroSlide__inner {
        width: calc(100% - 24px);
        padding: 28px 0 68px;
    }

    .cn-heroSlide__title {
        font-size: clamp(38px, 12vw, 52px);
    }

    .cn-heroSlide__text {
        font-size: 13px;
    }

    .cn-heroFeatures {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .cn-heroFeature {
        padding: 9px 10px;
    }

        .cn-heroFeature strong {
            font-size: 9px;
        }

        .cn-heroFeature div > span {
            font-size: 8px;
        }

    .cn-heroSlide__visual img,
    .cn-heroSlide--mix .cn-heroSlide__visual img,
    .cn-heroSlide--private .cn-heroSlide__visual img {
        max-width: 440px;
        max-height: 330px;
    }
}

@media (max-width: 390px) {
    .cn-heroSlide__inner {
        width: calc(100% - 20px);
    }

    .cn-heroSlide__title {
        font-size: 37px;
    }

    .cn-heroSlide__text {
        font-size: 12px;
    }

    .cn-heroSlide__button {
        min-height: 53px;
        padding: 0 17px;
        font-size: 12px;
    }

    .cn-heroSlide__visual img,
    .cn-heroSlide--mix .cn-heroSlide__visual img,
    .cn-heroSlide--private .cn-heroSlide__visual img {
        max-height: 285px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .cn-heroSlide,
    .cn-heroSlide__content,
    .cn-heroSlide__visual img,
    .cn-heroSlide__button,
    .cn-heroSlide__button svg,
    .cn-heroSlider__dot {
        transition: none !important;
        animation: none !important;
    }

    .cn-heroSlider__progress span.is-running {
        animation: none !important;
        width: 100%;
    }
}