/**
 * Product Hero Section Module Styles
 * Modular stylesheet for the product hero component
 * Vertical stacked layout: eyebrow/headline/subtitle → hero image → CTAs → engagement stats
 */

.workjam-product-hero {
    /* Background gradient set via inline style from ACF */
    padding: 156px 40px 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reduce top padding when solid white nav */
.workjam-header--solid-white ~ main .workjam-product-hero {
    padding-top: 65px;
}

.workjam-product-hero__container {
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 41px;
}

/* ==========================================================================
   Row 1: Header Content (Eyebrow, Headline, Subtitle)
   ========================================================================== */

.workjam-product-hero__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    width: 100%;
}

.workjam-product-hero__eyebrow {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    color: #121C66;
    margin: 0;
}

.workjam-product-hero__headline {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.205;
    color: #121C66;
    max-width: 1096px;
    margin: 0;
}

.workjam-product-hero__subtitle {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    color: #121C66;
    max-width: 900px;
    margin: 0;
}

/* ==========================================================================
   Row 2: Hero Media
   ========================================================================== */

.workjam-product-hero__media {
    width: 100%;
    max-width: 876px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workjam-product-hero__media--container {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.workjam-product-hero__image {
    display: flex;
    height: auto;
    width: 100%;
}

.workjam-product-hero__image img {
    width: 100%;
    height: auto;
}

/* Video Container */
.workjam-product-hero__video-container {
    position: relative;
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
}

.workjam-product-hero__video {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Play Button */
.workjam-product-hero__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.workjam-product-hero__play-button:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

.workjam-product-hero__play-button:focus-visible {
    outline: 2px solid #121C66;
    outline-offset: 4px;
}

.workjam-product-hero__play-button svg {
    margin-left: 4px; /* Optical centering */
}

/* ==========================================================================
   Row 3: CTA Buttons
   ========================================================================== */

.workjam-product-hero__cta-group {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.workjam-product-hero__cta {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 25px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
}

.workjam-product-hero__cta--primary {
    background-color: #121C66;
    color: #FFFFFF;
    font-weight: 600;
    min-width: 152px;
}

.workjam-product-hero__cta--primary:hover {
    background-color: #0D1449;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(18, 28, 102, 0.15);
    transform: scale(1.02);
}

.workjam-product-hero__cta--primary:active {
    background-color: #0A0F35;
    color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(18, 28, 102, 0.1);
    transform: scale(0.98);
}

.workjam-product-hero__cta--secondary {
    background-color: #f5f5f5;
    color: #121C66;
    border-color: #121C66;
    font-weight: 500;
    min-width: 169px;
}

.workjam-product-hero__cta--secondary:hover {
    background-color: #E8E8E8;
    box-shadow: 0 4px 12px rgba(18, 28, 102, 0.08);
    transform: scale(1.02);
}

.workjam-product-hero__cta--secondary:active {
    background-color: #D8D8D8;
    box-shadow: none;
    transform: scale(0.98);
}

.workjam-product-hero__cta:focus-visible {
    outline: 2px solid #121C66;
    outline-offset: 2px;
}

/* ==========================================================================
   Row 4: Engagement Stats Container
   ========================================================================== */

.workjam-product-hero__engagement-container {
    width: 100%;
    max-width: 1198px;
    /* Background color set via inline style from ACF */
    border-radius: 25px;
    padding: 24px 40px;
}

.workjam-product-hero__engagement {
    display: flex;
    flex-direction: row;
    gap: 64px;
    width: 100%;
    padding: 12px;
    justify-content: center;
}

.workjam-product-hero__engagement-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    flex: 1;
}

.workjam-product-hero__engagement-title {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    color: #000044;
    text-align: center;
    margin: 0;
}

.workjam-product-hero__engagement-description {
    font-family: 'Avenir Next', Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    color: #000044;
    text-align: center;
    margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .workjam-product-hero {
        padding: 60px 30px;
    }

    .workjam-product-hero__container {
        gap: 50px;
    }

    .workjam-product-hero__headline {
        font-size: 52px;
    }

    .workjam-product-hero__subtitle {
        font-size: 16px;
    }
}

/* Mobile and below */
@media (max-width: 980px) {
    .workjam-product-hero__container {
        gap: 40px;
    }

    .workjam-product-hero__headline {
        font-size: 42px;
    }

    .workjam-product-hero__cta-group {
        flex-wrap: wrap;
    }

    .workjam-product-hero__cta {
        flex: 1 1 auto;
        min-width: 150px;
    }

    .workjam-product-hero__engagement {
        flex-direction: column;
        gap: 24px;
        padding: 12px;
    }

    .workjam-product-hero__engagement-container {
        padding: 10px;
    }

    .workjam-product-hero__engagement-item:nth-child(1),
    .workjam-product-hero__engagement-item:nth-child(2),
    .workjam-product-hero__engagement-item:nth-child(3) {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .workjam-product-hero {
        padding: 40px 16px;
    }

    .workjam-product-hero__headline {
        font-size: 36px;
    }

    .workjam-product-hero__subtitle {
        font-size: 15px;
    }

    .workjam-product-hero__play-button {
        width: 60px;
        height: 60px;
    }

    .workjam-product-hero__play-button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .workjam-product-hero__headline {
        font-size: 28px;
    }

    .workjam-product-hero__eyebrow {
        font-size: 16px;
    }

    .workjam-product-hero__subtitle {
        font-size: 16px;
    }

    .workjam-product-hero__cta-group {
        flex-direction: column;
        width: 100%;
    }

    .workjam-product-hero__cta {
        width: 100%;
    }

    .workjam-product-hero__engagement-container {
        padding: 10px;
    }

    .workjam-product-hero__engagement-title {
        font-size: 18px;
    }

    .workjam-product-hero__engagement-description {
        font-size: 16px;
    }
}