/* ═══════════════════════════════════════════════════════════════════════
   ENZO HOMEPAGE — Modern layout (home.css)
   ═══════════════════════════════════════════════════════════════════════ */

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--accent-orange, #ff6b35);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* ── Hero enhancements ─────────────────────────────────────────────── */
.hero--cinematic {
    position: relative;
    overflow: hidden;
}

.hero--cinematic .hero-inner {
    position: relative;
    z-index: 2;
}

.hero__mesh {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 107, 53, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(47, 143, 123, 0.1), transparent 50%);
    animation: meshDrift 18s ease-in-out infinite alternate;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.35;
}

.hero--cinematic::before {
    z-index: 1;
}

.hero-slide__img--kenburns {
    animation: kenBurns 14s ease-out forwards;
}

.hero-slide.is-active .hero-slide__img {
    animation: kenBurns 14s ease-out forwards;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.09); }
}

@keyframes meshDrift {
    from { opacity: 0.85; transform: scale(1); }
    to { opacity: 1; transform: scale(1.03); }
}

.hero--immersive .hero-side {
    will-change: transform;
}

/* ── Promo bar ─────────────────────────────────────────────────────── */
.home-promo-bar {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.12), rgba(47, 143, 123, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.65rem 0;
}

.home-promo-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.home-promo-bar__icon {
    font-size: 1rem;
}

.home-promo-bar__link {
    color: var(--accent-orange, #ff6b35);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.82rem;
}

.home-promo-bar__link:hover {
    text-decoration: underline;
}

.hero-enzo-slider {
    border-radius: 20px !important;
}

/* ── Impact strip count-up ─────────────────────────────────────────── */
.impact-item strong[data-countup] {
    font-variant-numeric: tabular-nums;
}

/* ── Bento grid ────────────────────────────────────────────────────── */
.home-bento-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.home-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.home-bento__cell {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

a.home-bento__cell {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.home-bento__cell:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.25);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.home-bento__cell--story {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    background:
        linear-gradient(135deg, rgba(17, 26, 23, 0.95) 0%, rgba(23, 49, 43, 0.9) 100%);
}

.home-bento__story-copy {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.home-bento__story-copy h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    color: #fff;
    margin: 0;
    line-height: 1.15;
    -webkit-text-fill-color: #fff;
}

.home-bento__story-copy p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.home-bento__story-media {
    position: relative;
    min-height: 200px;
}

.home-bento__story-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-bento__cell--shop {
    grid-column: 8 / span 5;
    padding: 1.5rem;
    justify-content: space-between;
    min-height: 200px;
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.12), rgba(255, 255, 255, 0.03));
}

.home-bento__cell--recipe,
.home-bento__cell--game,
.home-bento__cell--blog {
    grid-column: span 4;
    padding: 1.35rem;
    min-height: 160px;
    justify-content: flex-end;
}

.home-bento__cell--recipe {
    background: linear-gradient(160deg, rgba(76, 175, 80, 0.12), rgba(255, 255, 255, 0.02));
}

.home-bento__cell--game {
    background: linear-gradient(160deg, rgba(66, 133, 244, 0.12), rgba(255, 255, 255, 0.02));
}

.home-bento__cell--blog {
    background: linear-gradient(160deg, rgba(156, 39, 176, 0.1), rgba(255, 255, 255, 0.02));
}

.home-bento__cell--routine {
    grid-column: 8 / span 5;
    padding: 1.35rem;
    min-height: 200px;
}

.home-bento__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 107, 53, 0.9);
    margin-bottom: 0.5rem;
}

.home-bento__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 0.35rem;
}

.home-bento__desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.5;
}

.home-bento__arrow {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-orange, #ff6b35);
}

/* ── Routine planner ───────────────────────────────────────────────── */
.routine-planner__tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.routine-planner__tab {
    flex: 1;
    min-width: 70px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.routine-planner__tab.is-active {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.35);
    color: #fff;
}

.routine-planner__panel {
    display: none;
    animation: routineFade 0.35s ease;
}

.routine-planner__panel.is-active {
    display: block;
}

.routine-planner__panel p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.75rem;
    line-height: 1.55;
}

.routine-planner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.routine-planner__links a {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.routine-planner__links a:hover {
    border-color: rgba(255, 107, 53, 0.3);
    color: #fff;
}

.routine-planner__progress {
    margin-top: 1rem;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.routine-planner__progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b35, #ffb347);
    border-radius: 2px;
    transition: width 0.4s ease;
}

@keyframes routineFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Product showcase ──────────────────────────────────────────────── */
.enzo-pick-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    perspective: 1200px;
}

.home-products-grid .product-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

/* ── Blog teaser ───────────────────────────────────────────────────── */
.home-blog-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.home-blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.home-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.2);
}

.home-blog-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.home-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-blog-card__body {
    padding: 1.25rem;
}

.home-blog-card__body h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0.35rem 0 0.5rem;
    line-height: 1.35;
}

.home-blog-card__body p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.55;
}

/* ── Feature icons (SVG) ───────────────────────────────────────────── */
.home-features .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-features .feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    color: #ff8c66;
}

/* ── Story rail ────────────────────────────────────────────────────── */
.home-story-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    overflow: hidden;
}

.home-story-rail-wrap {
    position: relative;
}

.home-story-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-story-rail::-webkit-scrollbar {
    display: none;
}

.story-card {
    flex: 0 0 min(220px, 72vw);
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.2);
}

.story-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 217, 61, 0.1));
}

.story-card__body {
    padding: 1rem;
}

.story-card__type {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 107, 53, 0.85);
    margin-bottom: 0.35rem;
}

.story-card__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.35;
}

.story-card__meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.35rem;
}

.home-story-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.home-story-nav button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.home-story-nav button:hover {
    border-color: rgba(255, 107, 53, 0.3);
    color: #fff;
}

/* ── Social band ───────────────────────────────────────────────────── */
.home-social-band {
    padding: clamp(3rem, 5vw, 4rem) 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-social-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 2rem 0;
}

.home-social-grid a {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}

.home-social-grid a:hover {
    transform: scale(1.04);
}

.home-social-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-social-cta {
    text-align: center;
}

.home-social-grid--dynamic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insta-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.insta-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.insta-card.is-playing {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.insta-card.is-playing .insta-card__overlay {
    display: none;
}

.insta-card__img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.insta-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insta-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.25);
}

.insta-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.insta-card:hover .insta-card__overlay {
    background: rgba(0,0,0,0.5);
}

.insta-card__play-icon {
    color: #fff;
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.9);
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insta-card:hover .insta-card__play-icon {
    transform: scale(1.12);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
}

/* ── Newsletter feedback ───────────────────────────────────────────── */
.newsletter-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
}

.newsletter-feedback--success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.25);
    color: #81c784;
}

.newsletter-feedback--error {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.25);
    color: #e57373;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .home-bento__cell--recipe,
    .home-bento__cell--game,
    .home-bento__cell--blog {
        grid-column: span 6;
    }

    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-blog-grid .home-blog-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .home-bento__cell--story {
        grid-column: 1 / -1;
        grid-row: auto;
        grid-template-columns: 1fr;
    }

    .home-bento__cell--shop,
    .home-bento__cell--routine {
        grid-column: 1 / -1;
    }

    .home-bento__cell--recipe,
    .home-bento__cell--game,
    .home-bento__cell--blog {
        grid-column: span 4;
    }

    .home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-social-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-social-grid--dynamic {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-bento {
        grid-template-columns: 1fr;
    }

    .home-bento__cell--story,
    .home-bento__cell--shop,
    .home-bento__cell--recipe,
    .home-bento__cell--game,
    .home-bento__cell--blog,
    .home-bento__cell--routine {
        grid-column: 1 / -1;
    }

    .home-bento__story-media {
        min-height: 220px;
    }

    .home-products-grid {
        grid-template-columns: 1fr;
    }

    .home-social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-social-grid--dynamic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
    }

    .home-blog-grid .home-blog-card:last-child:nth-child(odd) {
        max-width: none;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero--immersive .hero-side,
    .home-bento__cell,
    .story-card {
        transition: none;
    }

    .routine-planner__panel {
        animation: none;
    }

    #main-content .animate-fade-in-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero__mesh,
    .hero-slide.is-active .hero-slide__img,
    .hero-slide__img--kenburns {
        animation: none !important;
    }

    .home-products-grid .product-card {
        transform: none !important;
    }
}

/* ── Scroll reveal (override global animation kill) ───────────────── */
#main-content .animate-fade-in-up {
    opacity: 0 !important;
    transform: translateY(22px) !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease !important;
}

#main-content .animate-fade-in-up.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── Footer social (home + global) ─────────────────────────────────── */
.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    border-color: rgba(255, 107, 53, 0.35);
    color: #fff;
}

