/* ============================================
   PIZJO — Home Layout (v5 Cheesy Underground)
   ============================================ */

/* ── 1. Hero Section ── */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
    margin-top: calc(var(--nav-height) + 40px);
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: var(--space-4xl);
    width: 100%;
}

.hero-drips-container {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.goo-layer {
    width: 100%;
    height: 100%;
    filter: url('#goo');
    position: relative;
}
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .goo-layer { filter: none; }
    .drop { display: none; }
    .hero-visual { animation: none; }
}

.goo-base {
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 80px;
    background: var(--amber-neon);
    border-radius: 50% 50% 10% 10% / 10px 10px 0 0;
}

.drop {
    position: absolute;
    background: var(--amber-neon);
    border-radius: 50%;
    top: 30px;
}

@keyframes drop-anim {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }

    40% {
        transform: translateY(50px) scaleY(1.5) scaleX(0.8);
        opacity: 1;
    }

    60% {
        transform: translateY(120px) scaleY(2) scaleX(0.5);
        opacity: 1;
    }

    65% {
        transform: translateY(140px) scaleY(1.5) scaleX(0.3);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scaleY(1);
        opacity: 0;
    }
}

@keyframes stretch-anim {
    0% {
        transform: translateY(0) scaleY(1);
    }

    50% {
        transform: translateY(30px) scaleY(2.5);
    }

    100% {
        transform: translateY(0) scaleY(1);
    }
}

.drop-1 {
    width: 40px;
    height: 40px;
    left: 15%;
    animation: drop-anim 4s infinite cubic-bezier(0.5, 0, 0.5, 1);
}

.drop-2 {
    width: 60px;
    height: 60px;
    left: 35%;
    animation: stretch-anim 3s infinite ease-in-out;
}

.drop-3 {
    width: 30px;
    height: 30px;
    left: 55%;
    animation: drop-anim 5s infinite cubic-bezier(0.5, 0, 0.5, 1) 1s;
}

.drop-4 {
    width: 70px;
    height: 70px;
    left: 75%;
    animation: stretch-anim 4.5s infinite ease-in-out 0.5s;
}

.drop-5 {
    width: 35px;
    height: 35px;
    left: 90%;
    animation: drop-anim 3.5s infinite cubic-bezier(0.5, 0, 0.5, 1) 2s;
}

/* Hero Content */
.hero-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

/* In-flow sticker (was absolute at top:-40px, which collided with the fixed navbar on every viewport) */
.hero-eyebrow {
    display: block;
    width: fit-content;
    font-size: var(--text-4xl);
    transform: rotate(-6deg) translateX(-8px);
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-size: clamp(3rem, 6vw, var(--text-6xl));
    line-height: var(--leading-tight);
    color: var(--umber-raw);
    margin-bottom: var(--space-lg);
    transform: rotate(-2deg);
    position: relative;
    z-index: 10;
}

.hero-title span {
    color: var(--amber-neon);
    text-shadow: 3px 3px 0px var(--umber-raw), -1px -1px 0px var(--umber-raw), 1px -1px 0px var(--umber-raw), -1px 1px 0px var(--umber-raw);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    font-weight: 700;
    border-left: 4px solid var(--amber-neon);
    padding-left: var(--space-md);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.hero-actions .btn:first-child {
    font-size: var(--text-xl);
    padding: var(--space-lg) var(--space-2xl);
    transform: rotate(1deg);
}

.hero-actions .btn:last-child {
    transform: rotate(-2deg);
}

/* 3D Visual Container in Hero */
.hero-visual {
    flex: 1;
    min-width: 0;
    height: 500px;
    position: relative;
    z-index: 10;
    animation: floatMessy 4s ease-in-out infinite;
}

@keyframes floatMessy {
    0% {
        transform: translateY(0px) rotate(-3deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(-3deg);
    }
}

.hero-visual-box {
    width: 100%;
    height: 100%;
    border: 8px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge-lg);
    background: rgba(255, 191, 0, 0.2);
    overflow: hidden;
    transform: rotate(3deg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-pizza-img {
    width: 140%;
    height: 140%;
    object-fit: contain;
    position: absolute;
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.4));
    transition: opacity 0.6s var(--ease-out);
}

.hero-poster-fade {
    opacity: 0 !important;
}

/* ── 2. Trust Strip (Broken Bento) ── */
.trust {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 10;
}

.trust-grid {
    display: flex;
    gap: var(--space-xl);
}

.trust-item-large {
    flex: 2;
    padding: var(--space-2xl);
    transform: rotate(-2deg);
    transition: transform var(--duration-normal) var(--ease-out);
}

.trust-item-large:hover {
    transform: rotate(0deg);
}

.trust-item-small {
    flex: 1;
    background: var(--amber-neon);
    border: 4px solid var(--umber-raw);
    box-shadow: var(--shadow-grunge);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: rotate(3deg);
    transition: transform var(--duration-normal) var(--ease-out);
}

.trust-item-small:hover {
    transform: rotate(1deg);
}

.trust-item-large h2 {
    font-size: var(--text-5xl);
    background: rgba(245, 242, 235, 0.8);
    display: inline;
}

.trust-item-small h2 {
    font-family: var(--font-marker);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

/* ── 2b. Info Cards (homepage slogans — not customer reviews) ── */
.info-card {
    padding: var(--space-xl);
    position: relative;
}

/* ── 3. Menu Section ── */
.menu-section {
    position: relative;
    z-index: 10;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-5xl);
}

.menu-title-wrap {
    transform: rotate(2deg);
}

.menu-title {
    font-family: var(--font-marker);
    font-size: var(--text-6xl);
    margin-bottom: var(--space-xs);
}

.menu-sub {
    font-size: var(--text-3xl);
}

/* Categories Filter */
.categories-filter {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-3xl);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-filter::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    background: var(--off-white);
    border: 3px solid var(--umber-raw);
    color: var(--umber-raw);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    font-size: var(--text-lg);
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
    box-shadow: var(--shadow-grunge);
}

.cat-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-grunge-hover);
}

.cat-btn:active {
    transform: scale(var(--squish-scale));
}

.cat-btn.active {
    background: var(--amber-neon);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: var(--space-3xl);
    padding-top: var(--space-2xl);
    /* Room for image overlap */
}

/* ── Mobile Layout (≤768px) — side-by-side preserved ── */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }

    .hero-grid {
        gap: var(--space-lg);
    }

    .hero-content {
        flex: 1;
        min-width: 0;
    }

    .hero-eyebrow {
        font-size: var(--text-xl);
        margin-bottom: var(--space-xs);
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, var(--text-4xl));
        line-height: 1.0;
    }

    .hero-subtitle {
        font-size: var(--text-base);
        max-width: 100%;
        border-left-width: 3px;
        padding-left: var(--space-sm);
    }

    .hero-actions {
        gap: var(--space-sm);
        margin-top: var(--space-lg);
    }

    .hero-actions .btn:first-child {
        font-size: var(--text-base);
        padding: var(--space-md) var(--space-xl);
    }

    .hero-actions .btn:last-child {
        font-size: var(--text-sm);
        padding: var(--space-md) var(--space-lg);
    }

    .hero-visual {
        flex: 1;
        min-width: 0;
        height: 280px;
    }

    .hero .hero-visual .badge {
        right: -8px;
        bottom: -8px;
        font-size: var(--text-base);
    }

    /* Cafe section visual */
    #cafe .hero-visual {
        height: 250px;
    }

    /* Stack trust strip */
    .trust-grid {
        flex-direction: column;
        gap: var(--space-2xl);
    }

    .trust-item-large h2 {
        font-size: var(--text-4xl);
    }

    /* Stack menu header */
    .menu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xl);
        margin-bottom: var(--space-3xl);
    }

    .menu-title {
        font-size: var(--text-5xl);
    }

    .menu-sub {
        font-size: var(--text-2xl);
    }
}

/* ── Small Phone (≤480px) ── */
@media (max-width: 480px) {
    .hero-grid {
        gap: var(--space-md);
    }

    .hero-eyebrow {
        font-size: var(--text-base);
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, var(--text-3xl));
    }

    .hero-subtitle {
        font-size: var(--text-sm);
        border-left-width: 2px;
        padding-left: var(--space-xs);
    }

    .hero-actions .btn:first-child {
        font-size: var(--text-sm);
        padding: var(--space-sm) var(--space-lg);
    }

    .hero-actions .btn:last-child {
        font-size: var(--text-xs);
        padding: var(--space-sm) var(--space-md);
    }

    .hero-visual {
        height: 220px;
    }

    .hero .hero-visual .badge {
        font-size: var(--text-sm);
        bottom: -6px;
        right: -6px;
    }

    .trust-item-large {
        padding: var(--space-xl);
    }

    .trust-item-small {
        padding: var(--space-xl);
    }
}


.hero-3d-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-3d-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.hero-pizza-img {
    z-index: 2;
    pointer-events: none;
}
