/* =========================================================
   TBS AI Video Production Page — Hero Section Styles (Modernized)
   Prefix: tbs_avp_
   ========================================================= */

/* Full-screen hero: height = Minimum Height control minus Header Height Offset
   (both arrive as CSS variables from Elementor — same pattern as the AI Ads page).
   Tablet/mobile default to content height. The visual is centred vertically and
   its width is capped from the available height so it can never be clipped. */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_section {
    --tbs_avp_hero_pad: clamp(40px, 6vh, 90px);
    --tbs_avp_hero_avail: calc(var(--tbs_avp_hero_min, 100vh) - var(--tbs_avp_hero_offset, 0px) - (2 * var(--tbs_avp_hero_pad)));
    display: flex;
    align-items: center;
    min-height: calc(var(--tbs_avp_hero_min, 0px) - var(--tbs_avp_hero_offset, 0px));
    padding: var(--tbs_avp_hero_pad) 0;
    background: radial-gradient(circle at 82% 22%, rgba(23, 176, 181, 0.15) 0%, rgba(255, 255, 255, 0) 55%),
                radial-gradient(circle at 12% 78%, rgba(25, 112, 149, 0.08) 0%, rgba(255, 255, 255, 0) 50%),
                #ffffff;
    position: relative;
    overflow: hidden;
}

/* Subtle background tech grid lines */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(23, 176, 181, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 176, 181, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 45%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 80%);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_section > .tbs_avp_container {
    width: 100%;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 48px;
    align-items: center;
}

/* ── HERO TEXT LEFT (Expansive & Modern) ─────────────────── */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_content {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tbs_avp_c2);
    background: rgba(23, 176, 181, 0.08);
    border: 1px solid rgba(23, 176, 181, 0.28);
    border-radius: var(--tbs_avp_radius_pill);
    margin-bottom: 22px;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_rec_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF3B5C;
    box-shadow: 0 0 10px #FF3B5C;
    animation: tbs_avp_pulse_rec 1.5s infinite ease-in-out;
}

@keyframes tbs_avp_pulse_rec {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_title {
    font-size: clamp(34px, min(4vw, 6.6vh), 58px);
    font-weight: 800;
    line-height: 1.14;
    color: var(--tbs_avp_ink);
    letter-spacing: -0.025em;
    margin-bottom: clamp(12px, 2vh, 18px);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_desc {
    font-size: clamp(16px, 2.5vh, 18.5px);
    line-height: 1.7;
    color: var(--tbs_avp_text_body);
    margin-bottom: clamp(24px, 4vh, 36px);
    max-width: 560px;
}

/* Both CTAs inline, each sized to its own label (so long custom text never overflows).
   They share the row width via flex-grow; if the column is too narrow for both they
   wrap onto two full-width lines. */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    max-width: 660px;
    gap: 12px;
    margin-bottom: clamp(18px, 3.2vh, 28px);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_ctas .tbs_avp_btn {
    flex: 1 1 auto;
    width: auto;
    justify-content: center;
    padding: 15px 20px;
    font-size: 14.5px;
    gap: 8px;
    white-space: nowrap;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_btn_play_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    color: var(--tbs_avp_c1);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_btn_play_icon svg {
    width: 14px;
    height: 14px;
}

/* ── EXECUTIVE TRUST TICKER BAR (Single-line, Zero Clutter) ─ */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_trust_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 660px;            /* same width as the CTA row above */
    padding: 14px 32px;
    background: #ffffff;
    border: 1px solid rgba(23, 176, 181, 0.22);
    border-radius: var(--tbs_avp_radius_pill);
    box-shadow: 0 6px 20px rgba(10, 28, 34, 0.04);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_trust_stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_trust_stat_val {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--tbs_avp_c2);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_trust_stat_lbl {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tbs_avp_muted);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_trust_stat_divider {
    width: 1px;
    height: 26px;
    background: rgba(23, 176, 181, 0.22);
}

/* ── HERO STUDIO MOTIF (RIGHT) ─────────────────────────── */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_visual {
    position: relative;
    width: 100%;
    align-self: center;
}

/* Laptop / desktop: size the graphic from the screen height (card chrome ≈ 150px,
   mockup is 16:10 → width ≈ height × 1.6), centred in its column. */
@media (min-width: 1025px) {
    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_section {
        min-height: calc(var(--tbs_avp_hero_min, 100vh) - var(--tbs_avp_hero_offset, 0px));
    }

    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_visual {
        max-width: max(380px, calc((var(--tbs_avp_hero_avail) - 150px) * 1.6));
        margin-inline: auto;
    }
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_studio_card {
    position: relative;
    background: #09171C;
    border: 1px solid rgba(23, 176, 181, 0.32);
    border-radius: var(--tbs_avp_radius_lg);
    padding: 22px;
    box-shadow: 0 24px 60px rgba(7, 21, 26, 0.32), 0 0 50px rgba(23, 176, 181, 0.14);
    color: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_studio_card:hover {
    border-color: rgba(62, 224, 230, 0.5);
    box-shadow: 0 30px 70px rgba(7, 21, 26, 0.42), 0 0 65px rgba(23, 176, 181, 0.24);
}

/* Studio Header */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_studio_topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_window_dots {
    display: flex;
    gap: 6px;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_window_dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_window_dot:nth-child(1) { background: #FF5F56; }
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_window_dot:nth-child(2) { background: #FFBD2E; }
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_window_dot:nth-child(3) { background: #27C93F; }

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_studio_title {
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_studio_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: #3EE0E6;
    background: rgba(23, 176, 181, 0.14);
    border: 1px solid rgba(23, 176, 181, 0.32);
    padding: 3px 9px;
    border-radius: var(--tbs_avp_radius_pill);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_status_dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3EE0E6;
    box-shadow: 0 0 8px #3EE0E6;
}

/* Video Canvas */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_video_mockup {
    position: relative;
    border-radius: var(--tbs_avp_radius_md);
    background: radial-gradient(circle at center, #112F38 0%, #061318 100%);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(23, 176, 181, 0.28);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

/* Background Image & Scrim inside Video Mockup */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_mockup_bg_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s ease;
    z-index: 1;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_studio_card:hover .tbs_avp_mockup_bg_img {
    transform: scale(1.06);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_mockup_bg_scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(6, 18, 24, 0.15) 0%, rgba(6, 18, 24, 0.65) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Camera Target Crosshairs */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_crosshair {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: rgba(62, 224, 230, 0.35);
    border-style: solid;
    pointer-events: none;
    z-index: 2;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_crosshair_tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_crosshair_tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_crosshair_bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_crosshair_br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_mockup_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_res_badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_soundwave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_sound_bar {
    width: 3px;
    background: #3EE0E6;
    border-radius: 2px;
    animation: tbs_avp_sound_jump 1.2s infinite ease-in-out;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_sound_bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_sound_bar:nth-child(2) { height: 75%; animation-delay: 0.3s; }
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_sound_bar:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_sound_bar:nth-child(4) { height: 50%; animation-delay: 0.4s; }
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_sound_bar:nth-child(5) { height: 85%; animation-delay: 0.15s; }

@keyframes tbs_avp_sound_jump {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* Play Center */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_mockup_center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_mockup_play {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #17B0B5 0%, #197095 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 28px rgba(23, 176, 181, 0.65);
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_mockup_play svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
    fill: currentColor;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_mockup_play:hover {
    transform: scale(1.08);
    box-shadow: 0 0 38px rgba(62, 224, 230, 0.85);
}

/* Scrubber bottom */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_mockup_bottom {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
    z-index: 2;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_scrubber_track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_scrubber_fill {
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, #17B0B5, #3EE0E6);
    border-radius: 2px;
    animation: tbs_avp_scrub_progress 6s infinite linear;
}

@keyframes tbs_avp_scrub_progress {
    0% { width: 10%; }
    50% { width: 68%; }
    100% { width: 95%; }
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_scrubber_meta {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.65);
    font-family: ui-monospace, monospace;
}

/* Sleek Floating Milestone Pill */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_studio_floating_pill {
    position: absolute;
    bottom: -10px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #0B222A;
    color: #3EE0E6;
    border: 1px solid rgba(62, 224, 230, 0.35);
    border-radius: var(--tbs_avp_radius_pill);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
    animation: tbs_avp_float_ambient 4s ease-in-out infinite alternate;
}

.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_studio_floating_pill svg {
    width: 14px;
    height: 14px;
    color: #3EE0E6;
}

@keyframes tbs_avp_float_ambient {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_content {
        max-width: 100%;
        text-align: center;
    }

    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_desc {
        margin-left: auto;
        margin-right: auto;
    }

    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_ctas,
    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_trust_bar {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575px) {
    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_section {
        padding: 60px 0 45px;
    }

    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_studio_card {
        padding: 16px;
    }

    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_trust_bar {
        flex-direction: column;
        border-radius: var(--tbs_avp_radius_md);
        gap: 12px;
        padding: 16px;
    }

    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_trust_stat_divider {
        width: 100%;
        height: 1px;
    }

    .tbs_avp_wrap.tbs_avp_wrap .tbs_avp_studio_floating_pill {
        display: none;
    }
}

/* Accent words in the H1 — gradient text (overridable via the Elementor accent colour control) */
.tbs_avp_wrap.tbs_avp_wrap .tbs_avp_hero_title .tbs_avp_hero_title_accent {
    background: linear-gradient(110deg, #17B0B5 0%, #197095 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #197095;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;      /* never split the accent phrase across lines */
}
