﻿/* ── Section shell ── */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(220, 20, 20, 0.8) 0%, transparent 60%), radial-gradient(ellipse at 80% 10%, rgb(149 0 0) 0%, transparent 50%), linear-gradient(145deg, #e00000 35%, #000000 60%, #000000 100%);
    clip-path: polygon(0 0, 140% 0, 0% 60%, 0 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to top, var(--off-white, #fff8f2) 0%, #adadad 100%);
}

.hero-bg__white {
    position: absolute;
    inset: 0;
    background-color: var(--off-white);
    clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 20% 100%);
}

/* ── Floating decor images ── */
.hero-decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    animation: heroFloat 5s ease-in-out infinite;
}

    .hero-decor img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.25));
    }

.hero-decor--chili-left {
    bottom: 28%;
    left: 1%;
    width: 80px;
    animation-delay: 0s;
}

.hero-decor--garlic-right {
    top: 18%;
    right: 2%;
    width: 90px;
    animation-delay: 1.5s;
}

.hero-decor--stone-left {
    bottom: 8%;
    left: 3%;
    width: 100px;
    animation-delay: 0.8s;
}

.hero-decor--shine {
    position: absolute;
    top: 15%;
    right: 38%;
    width: 90px;
    pointer-events: none;
    z-index: 3;
    animation: shineTwinkle 1.75s steps(1, end) infinite;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

@keyframes shineTwinkle {
    0% {
        transform: scale(0.9) rotate(0deg);
    }

    25% {
        transform: scale(1.15) rotate(8deg);
    }

    50% {
        transform: scale(1) rotate(-4deg);
    }

    75% {
        transform: scale(1.2) rotate(6deg);
    }

    100% {
        transform: scale(0.9) rotate(0deg);
    }
}

/* ── Layout grid (single source of truth) ── */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0;
    margin: 67px 0 98px 0;
    min-height: calc(100vh - 80px);
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Left: text column ── */
.hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding-right: 1rem;
    max-width: 480px;
    animation: heroSlideLeft 0.8s cubic-bezier(.22,1,.36,1) both;
}

@keyframes heroSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-logo img {
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.hero-tagline {
    display: flex;
    rotate: -5deg;
}

.hero-tagline__img {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.2));
}

.hero-sub {
    font-family: var(--font-heading-family);
    max-width: 360px;
    position: relative;
    line-height: 1.6;
    font-size: 1.5rem;
    color: var(--red);
}

/* ── CTA buttons ── */
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.hero-btn {
    border-radius: 10px;
    padding: 0 2.25rem;
    font-family: var(--font-heading-family);
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    height: 56px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .hero-btn:hover {
        transform: translateY(-3px);
    }

.hero-btn--primary {
    background-color: var(--red);
    color: var(--off-white);
}

    .hero-btn--primary:hover {
        box-shadow: 6px 6px 0px var(--yellow);
    }

.hero-btn--secondary {
    background-color: white;
    color: var(--red);
    border: 3px solid var(--red);
}

    .hero-btn--secondary:hover {
        box-shadow: 6px 6px 0px var(--yellow);
    }

.hero-cta-squiggle {
    width: 100%;
    max-width: 320px;
    height: 48px;
    display: block;
    overflow: visible;
    animation: squiggleDrift 6s ease-in-out infinite;
}

/* ── Right: plates column ── */
.hero-plates-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 540px;
    animation: heroSlideRight 0.85s 0.15s cubic-bezier(.22,1,.36,1) both;
}

.hero-plates {
    position: relative;
    width: 100%;
    height: 540px;
}

.hero-plate {
    position: absolute;
    animation-name: plateFlow;
    animation-duration: var(--plate-duration, 11.2s);
    animation-delay: var(--plate-delay, 0s);
    animation-timing-function: cubic-bezier(.22,1,.36,1);
    animation-iteration-count: infinite;
}

    .hero-plate img {
        width: 150%;
        max-width: none;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(12px 12px 8px rgba(0, 0, 0, 0.75));
        display: block;
    }

@keyframes plateFlow {
    0% {
        top: -80px;
        left: 120%;
        width: 52%;
        opacity: 0;
        z-index: 0;
        filter: blur(6px);
    }

    10% {
        top: -80px;
        left: 42%;
        width: 52%;
        opacity: 0.75;
        z-index: 1;
        filter: blur(0px);
    }

    24% {
        top: -80px;
        left: 42%;
        width: 52%;
        opacity: 0.75;
        z-index: 1;
        filter: blur(0px);
    }

    35% {
        top: 100px;
        left: -90px;
        width: 72%;
        opacity: 1;
        z-index: 3;
        filter: blur(0px);
    }

    49% {
        top: 100px;
        left: -90px;
        width: 72%;
        opacity: 1;
        z-index: 3;
        filter: blur(0px);
    }

    60% {
        top: 260px;
        left: 38%;
        width: 52%;
        opacity: 0.75;
        z-index: 1;
        filter: blur(0px);
    }

    74% {
        top: 260px;
        left: 38%;
        width: 52%;
        opacity: 0.75;
        z-index: 1;
        filter: blur(0px);
    }

    85% {
        top: 260px;
        left: 120%;
        width: 52%;
        opacity: 0;
        z-index: 0;
        filter: blur(6px);
    }

    100% {
        top: 260px;
        left: 120%;
        width: 52%;
        opacity: 0;
        z-index: 0;
        filter: blur(6px);
    }
}

.hero-spotlight {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 200%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 40) 0%, rgba(255, 170, 0, 0.06) 50%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
    animation: spotlightPulse 4s ease-in-out infinite;
}

@keyframes spotlightPulse {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* ── Accent SVG layers ── */
.hero-accent {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-accent--dots {
    z-index: 1;
}

/* ── Mobile ── */
@media (max-width: 959px) {
    .hero-bg {
        clip-path: polygon(0 0, 350% 0, 0% 42%, 0 100%);
    }

    .hero-section {
        min-height: auto;
    }

    .hero-container {
        padding-top: 60px;
        padding-bottom: 0;
        height: 100vh;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 0;
        margin: 24px !important;
        gap: 1rem;
    }

    .hero-text-col {
        padding-right: 0;
        text-align: center;
        align-items: center;
        max-width: 100%;
        width: 100%;
        z-index: 10;
    }

    .hero-tagline {
        justify-content: center;
    }

    .hero-tagline__img {
        max-width: 280px;
    }

    .hero-sub {
        display: none;
    }

    .hero-logo {
        margin-bottom: 16px;
        place-self: center;
    }

    .hero-ctas {
        justify-content: center;
        place-self: center;
    }

    .hero-btn {
        font-size: 0.8rem;
        padding: 0 1rem;
        height: 46px;
    }

    .hero-cta-squiggle {
        max-width: 220px;
        place-self: center;
    }

    /* Plates */
    .hero-plates-col {
        position: relative;
        width: 100%;
        height: 56vh;
        min-height: 320px;
        margin-top: 0.5rem;
        overflow: visible;
        z-index: 5;
        justify-content: center;
        align-items: center;
    }

    .hero-plates {
        width: 100%;
        height: 100%;
        margin-top: 0 !important;
    }

    .hero-plate {
        animation-name: plateFlowMobile;
    }

        .hero-plate img {
            width: 100%;
        }

    @keyframes plateFlowMobile {
        0% {
            top: -24px;
            left: 120%;
            width: 50%;
            opacity: 0;
            z-index: 0;
            filter: blur(6px);
        }

        10% {
            top: -24px;
            left: 60%;
            width: 50%;
            opacity: 0.75;
            z-index: 1;
            filter: blur(0px);
        }

        24% {
            top: -24px;
            left: 60%;
            width: 50%;
            opacity: 0.75;
            z-index: 1;
            filter: blur(0px);
        }

        35% {
            top: 32px;
            left: -16%;
            width: 110%;
            opacity: 1;
            z-index: 3;
            filter: blur(0px);
        }

        49% {
            top: 32px;
            left: -16%;
            width: 110%;
            opacity: 1;
            z-index: 3;
            filter: blur(0px);
        }

        60% {
            top: 150px;
            left: 60%;
            width: 55%;
            opacity: 0.75;
            z-index: 1;
            filter: blur(0px);
        }

        74% {
            top: 150px;
            left: 60%;
            width: 55%;
            opacity: 0.75;
            z-index: 1;
            filter: blur(0px);
        }

        85% {
            top: 150px;
            left: 120%;
            width: 55%;
            opacity: 0;
            z-index: 0;
            filter: blur(6px);
        }

        100% {
            top: 150px;
            left: 120%;
            width: 55%;
            opacity: 0;
            z-index: 0;
            filter: blur(6px);
        }
    }

    .hero-decor--chili-left,
    .hero-decor--stone-left {
        display: none;
    }

    .hero-decor--shine {
        width: 55px;
        top: 54%;
        left: 15%;
    }

    .hero-spotlight {
        top: 8%;
        left: 50%;
        height: 100%;
    }
}
