
body.index #thriwa-hero-v2,
body.index #thriwa-hero-v2 * {
    box-sizing: border-box;
}

/* The old theme banner never appears: hide it as soon as styles parse,
   so slow networks can't flash the old poster before the new hero shows. */
body.index .ly_carousel_3 {
    display: none !important;
}

#thriwa-hero-v2 {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: clamp(620px, 58vw, 760px);
    overflow: hidden;
    isolation: isolate;
    color: #241e19;
    background: #f4efe7;
}

#thriwa-hero-v2 .tp-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
#thriwa-hero-v2.tp-bg-loaded .tp-bg {
    opacity: 1;
}

#thriwa-hero-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /* NOTE (v12): no top fade here on purpose. The site header is
       transparent and the hero slides underneath it, so header and hero
       are one continuous poster with zero seam. */
    background:
        linear-gradient(
            90deg,
            rgba(250, 247, 242, 0.66) 0%,
            rgba(250, 247, 242, 0.40) 42%,
            rgba(250, 247, 242, 0.10) 64%,
            rgba(250, 247, 242, 0) 82%
        );
}

#thriwa-hero-v2 .tp-container {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 46px clamp(24px, 5vw, 76px);
}

#thriwa-hero-v2 .tp-card {
    width: min(720px, 100%);
    padding: 38px 42px 36px;
    border: 1px solid rgba(176, 132, 63, 0.28);
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.84);
    box-shadow: 0 20px 50px rgba(84, 61, 33, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#thriwa-hero-v2 .tp-kicker {
    margin: 0 0 15px;
    color: #9a6826;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

#thriwa-hero-v2 .tp-title {
    margin: 0 0 18px;
    color: #241e19;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

#thriwa-hero-v2 .tp-description {
    max-width: 620px;
    margin: 0 0 28px;
    color: #5f544a;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

#thriwa-hero-v2 .tp-stats {
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid rgba(176, 132, 63, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.52);
}

#thriwa-hero-v2 .tp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#thriwa-hero-v2 .tp-stat {
    min-width: 0;
    padding: 18px 10px;
    border-right: 1px solid rgba(176, 132, 63, 0.22);
}

#thriwa-hero-v2 .tp-stat:last-child {
    border-right: 0;
}

#thriwa-hero-v2 .tp-number {
    margin-bottom: 7px;
    color: #2a231d;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(19px, 1.8vw, 24px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

#thriwa-hero-v2 .tp-label {
    color: #6e6257;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.35;
}

/* Trust badges: pill row docked inside the stats card, forced single line on desktop. */
#thriwa-hero-v2 .tp-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 12px 14px;
    border-top: 1px solid rgba(176, 132, 63, 0.22);
}

#thriwa-hero-v2 .tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(176, 132, 63, 0.35);
    border-radius: 999px;
    background: rgba(215, 173, 97, 0.16);
    color: #5d4a28;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

#thriwa-hero-v2 .tp-badge::before {
    content: '✓';
    color: #a5762f;
    font-weight: 700;
}

#thriwa-hero-v2 .tp-badge strong {
    font-weight: 700;
    color: #2a231d;
}

#thriwa-hero-v2 .tp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

#thriwa-hero-v2 .tp-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border: 1px solid #d7ad61;
    border-radius: 8px;
    color: #2f2416;
    background: #d7ad61;
    box-shadow: 0 10px 25px rgba(173, 124, 48, 0.20);
    /* Same button font as the theme's Contact Us button (var(--ThemesButtonFont)). */
    font-family: var(--ThemesButtonFont, 'Montserrat', 'Helvetica Neue', Arial, sans-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

#thriwa-hero-v2 .tp-button:hover {
    color: #2f2416;
    background: #e2be78;
    transform: translateY(-2px);
}

#thriwa-hero-v2 .tp-button-secondary {
    color: #2f2416;
    border-color: #d7ad61;
    /* Force the same rounded shape as Get Free Sample: the theme's
       .themes_box_button class otherwise overrides the radius. */
    border-radius: 8px !important;
    background: #d7ad61;
    box-shadow: 0 10px 25px rgba(173, 124, 48, 0.20);
}

#thriwa-hero-v2 .tp-button-secondary:hover {
    color: #2f2416;
    background: #e2be78;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    #thriwa-hero-v2 .tp-card {
        width: min(680px, 100%);
    }

    #thriwa-hero-v2 .tp-badges {
        flex-wrap: wrap;
    }

    #thriwa-hero-v2 .tp-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #thriwa-hero-v2 .tp-stat:nth-child(2) {
        border-right: 0;
    }

    #thriwa-hero-v2 .tp-stat:nth-child(-n+2) {
        border-bottom: 1px solid rgba(176, 132, 63, 0.22);
    }
}

@media (max-width: 767px) {
    /* Mobile recomposition: the card sits right below the header and a
       product strip from the poster's (product-rich) bottom stays visible
       beneath it — no more empty band at the top. */
    #thriwa-hero-v2 {
        min-height: 600px;
        align-items: flex-start;
    }

    #thriwa-hero-v2 .tp-bg {
        object-position: center top;
    }

    #thriwa-hero-v2::after {
        background:
            linear-gradient(
                180deg,
                rgba(250, 247, 242, 0.96) 0%,
                rgba(250, 247, 242, 0.72) 38%,
                rgba(250, 247, 242, 0.12) 68%,
                rgba(250, 247, 242, 0) 100%
            );
    }

    #thriwa-hero-v2 .tp-container {
        padding: 24px 16px 320px;
    }

    #thriwa-hero-v2 .tp-card {
        padding: 27px 21px 24px;
        border-radius: 14px;
    }

    #thriwa-hero-v2 .tp-title {
        font-size: 35px;
    }

    #thriwa-hero-v2 .tp-description {
        font-size: 16px;
        line-height: 1.55;
    }

    #thriwa-hero-v2 .tp-stat {
        padding: 16px 12px;
    }

    #thriwa-hero-v2 .tp-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    #thriwa-hero-v2 .tp-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #thriwa-hero-v2 .tp-button {
        transition: none;
    }
}
