/*
 * Scrumiz AI — homepage components.
 *
 * Only genuinely new components live here: the video slot and the trusted
 * partner logo row. Everything else on the homepage reuses the tokens and
 * classes already defined in style.css.
 */

/* ========== VIDEO SLOT ========== */
/* Sits between the hero (150px bottom padding) and the problem section
   (4rem top padding), so it only needs its own bottom breathing room. */
.home-video-section {
    padding: 0 0 2rem;
}

.home-video-section .section-title {
    margin-bottom: 2rem;
}

.home-video {
    margin: 0 auto;
}

.home-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sz-bg-card-alt);
    border: 1px solid var(--sz-border);
    border-radius: var(--sz-radius-lg);
    box-shadow: var(--sz-glow-sm);
}

.home-video-frame > iframe,
.home-video-frame > video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* contain, so a non-16:9 upload is letterboxed rather than cropped */
.home-video-frame > video {
    object-fit: contain;
    background: #000;
}

.home-video-note {
    margin: 1rem 0 0;
    text-align: center;
    color: var(--sz-text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== TRUSTED PARTNER LOGOS ========== */
.partners-section {
    padding: 3rem 0;
}

.partners-heading {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sz-text-dim);
    margin-bottom: 2rem;
}

.partner-logos {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.75rem 3rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 58px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* ========== REVIEWS HEADING ========== */
/* Optional heading rendered directly above the testimonial slider, which
   already carries 60px of its own top padding. */
.home-reviews-heading {
    padding: 1rem 0 0;
}

.home-reviews-heading .section-title {
    margin-bottom: 0;
}

/* ========== SEQUENTIAL CARD REVEAL ========== */
/*
 * "How we help" cards and "How engagement works" steps arrive one after
 * another, each rising ~14px and settling on top of the previous (client
 * request, 2026-07-28 call). Pure CSS layered on the theme-wide .reveal
 * mechanism (style.css + main.js): JS still only adds .visible, so no-JS and
 * no-IntersectionObserver behaviour stay identical to every other .reveal
 * element. Each item carries --sz-i (0, 1, 2, …) inline in the template.
 */
.reveal.sz-stagger {
    transform: translateY(14px);
    transition:
        opacity 0.55s ease calc(var(--sz-i, 0) * 160ms),
        transform 0.65s cubic-bezier(0.22, 1.08, 0.32, 1) calc(var(--sz-i, 0) * 160ms);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .home-video-section {
        padding: 0 0 1.5rem;
    }

    .home-video-section .section-title {
        margin-bottom: 1.5rem;
    }

    .home-video-frame {
        border-radius: var(--sz-radius);
    }

    .partners-section {
        padding: 2.5rem 0;
    }

    .partner-logos {
        gap: 1.25rem 2rem;
    }

    .partner-logo img {
        max-height: 42px;
        max-width: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partner-logo img {
        transition: none;
    }

    /* Staggered items: no rise, no delay — they simply appear. */
    .reveal.sz-stagger {
        transform: none;
        transition: none;
    }
}

/* Recommendation-card company logo (replaces the text name once partner
   logo files are uploaded — call 4:04). */
.rec-company-logo {
    display: block;
    max-height: 32px;
    width: auto;
    filter: brightness(1.35);
}

/* The fixed header needs clearing by whatever section is FIRST on the page.
   The hero carried its own 150px padding when it led; now the video leads —
   and if the video is ever unset, the carousel leads instead. Target the
   first section generically so the offset follows the layout. */
body.home > section:first-of-type {
    padding-top: clamp(112px, 13vh, 140px);
}
