/* =========================================================
   TOP LEVEL SPORTS ACADEMY
   Premium Frontend Layer — Phase 6A.1
   ========================================================= */

:root {
    --tl-navy: #071e33;
    --tl-navy-deep: #061a2c;
    --tl-orange: #f77928;
    --tl-orange-light: #ff984f;
    --tl-white: #ffffff;
    --tl-soft: #f5f6f4;
    --tl-muted: #b9c6d0;
    --tl-line: rgba(255,255,255,.12);
    --tl-radius: 26px;
    --tl-shadow: 0 24px 70px rgba(2,15,27,.20);
}

/* ---------- GLOBAL ---------- */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: var(--tl-soft);
}

body::selection {
    background: var(--tl-orange);
    color: white;
}

main {
    overflow: hidden;
}

section {
    position: relative;
}

img {
    transition:
        transform .8s cubic-bezier(.2,.7,.2,1),
        filter .8s ease;
}

/* ---------- PREMIUM NAV ---------- */

header {
    transition:
        background .35s ease,
        box-shadow .35s ease,
        backdrop-filter .35s ease,
        transform .35s ease !important;
}

header.tl-scrolled {
    background: rgba(7,30,51,.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 14px 45px rgba(0,0,0,.18);
}

/* ---------- HERO ---------- */

.hero {
    min-height: min(900px, 92vh);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(
            circle at 78% 30%,
            rgba(247,121,40,.23),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #061a2c 0%,
            #071e33 55%,
            #0c3152 100%
        );
}

.hero::after {
    content: "";
    position: absolute;
    width: 55vw;
    height: 55vw;
    min-width: 500px;
    min-height: 500px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    right: -18vw;
    top: -15vw;
    z-index: -1;
    box-shadow:
        0 0 0 80px rgba(255,255,255,.018),
        0 0 0 160px rgba(255,255,255,.012);
    animation: tlOrb 14s linear infinite;
}

@keyframes tlOrb {
    to { transform: rotate(360deg); }
}

.hero h1 {
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero h1,
.hero h2 {
    text-shadow: 0 12px 40px rgba(0,0,0,.20);
}

.hero .button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(247,121,40,.24);
    transition:
        transform .25s ease,
        box-shadow .25s ease !important;
}

.hero .button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(247,121,40,.34);
}

/* sporty diagonal accent */

.hero .eyebrow::before,
.sectionHead .eyebrow::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 3px;
    margin-inline-end: 10px;
    vertical-align: middle;
    background: var(--tl-orange);
    transform: skewX(-28deg);
}

/* ---------- SECTION HEADINGS ---------- */

.sectionHead h2 {
    letter-spacing: -.035em;
}

.sectionHead p {
    max-width: 580px;
}

/* ---------- PROGRAM CARDS ---------- */

.programs article,
.programCard,
[class*="programCard"] {
    position: relative;
    overflow: hidden;
    border-radius: var(--tl-radius);
    transform: translateZ(0);
    box-shadow: 0 12px 35px rgba(7,30,51,.08);
    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        box-shadow .45s ease !important;
}

.programs article:hover,
.programCard:hover,
[class*="programCard"]:hover {
    transform: translateY(-10px);
    box-shadow: var(--tl-shadow);
}

.programs article img,
.programCard img,
[class*="programCard"] img {
    transform: scale(1.01);
}

.programs article:hover img,
.programCard:hover img,
[class*="programCard"]:hover img {
    transform: scale(1.075);
    filter: contrast(1.04) saturate(1.06);
}

/* ---------- SERVICES ---------- */

.serviceGrid a,
.services a {
    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease !important;
}

.serviceGrid a:hover,
.services a:hover {
    transform: translateX(-7px);
    border-color: rgba(247,121,40,.55) !important;
}

/* ---------- STORE TEASER ---------- */

.shopTeaser {
    overflow: hidden;
    isolation: isolate;
}

.shopTeaser::after {
    content: "TOP LEVEL";
    position: absolute;
    inset-inline-end: -20px;
    bottom: -30px;
    font-size: clamp(70px, 12vw, 190px);
    font-weight: 900;
    letter-spacing: -.08em;
    opacity: .035;
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
}

.shopWords span {
    transition:
        transform .35s ease,
        color .35s ease,
        opacity .35s ease;
}

.shopWords span:hover {
    transform: translateX(-12px);
    color: var(--tl-orange);
}

/* ---------- BRANCHES ---------- */

.branches article {
    position: relative;
    overflow: hidden;
    transition:
        transform .4s cubic-bezier(.2,.8,.2,1),
        box-shadow .4s ease,
        border-color .4s ease !important;
}

.branches article::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 0;
    height: 4px;
    background: var(--tl-orange);
    transition: width .45s ease;
}

.branches article:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 55px rgba(7,30,51,.12);
}

.branches article:hover::before {
    width: 100%;
}

/* ---------- BUTTONS ---------- */

.button,
.outline,
.textLink {
    transition:
        transform .25s ease,
        opacity .25s ease,
        background .25s ease,
        color .25s ease,
        border-color .25s ease !important;
}

.button:hover {
    transform: translateY(-3px);
}

.textLink:hover {
    color: var(--tl-orange) !important;
}

/* ---------- FOOTER ---------- */

footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 50%;
    bottom: -260px;
    left: -120px;
    pointer-events: none;
}

/* ---------- WHATSAPP ---------- */

.floatingWA {
    animation: tlWhatsAppPulse 2.8s infinite;
    transition:
        transform .25s ease,
        box-shadow .25s ease !important;
}

.floatingWA:hover {
    transform: translateY(-5px) scale(1.05);
}

@keyframes tlWhatsAppPulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(23,122,80,.24);
    }
    50% {
        box-shadow: 0 0 0 13px rgba(23,122,80,0);
    }
}

/* ---------- SCROLL REVEALS ---------- */

.tl-reveal {
    opacity: 0;
    transform: translateY(38px);
    transition:
        opacity .85s cubic-bezier(.2,.7,.2,1),
        transform .85s cubic-bezier(.2,.7,.2,1);
}

.tl-reveal.tl-visible {
    opacity: 1;
    transform: translateY(0);
}

.tl-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.2,.8,.2,1);
}

.tl-stagger.tl-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.tl-stagger.tl-visible > *:nth-child(1) {
    transition-delay: .05s;
}

.tl-stagger.tl-visible > *:nth-child(2) {
    transition-delay: .13s;
}

.tl-stagger.tl-visible > *:nth-child(3) {
    transition-delay: .21s;
}

.tl-stagger.tl-visible > *:nth-child(4) {
    transition-delay: .29s;
}

.tl-stagger.tl-visible > *:nth-child(5) {
    transition-delay: .37s;
}

/* ---------- CURSOR LIGHT ---------- */

@media (hover:hover) and (pointer:fine) {

    body::before {
        content: "";
        position: fixed;
        width: 420px;
        height: 420px;
        left: var(--tl-mouse-x, -500px);
        top: var(--tl-mouse-y, -500px);
        transform: translate(-50%,-50%);
        border-radius: 50%;
        background:
            radial-gradient(
                circle,
                rgba(247,121,40,.055),
                transparent 68%
            );
        pointer-events: none;
        z-index: 9999;
    }
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

    .hero {
        min-height: 78vh;
    }

    .hero::after {
        min-width: 380px;
        min-height: 380px;
        right: -250px;
        top: -120px;
    }

    .programs article:hover,
    .programCard:hover,
    [class*="programCard"]:hover,
    .branches article:hover {
        transform: none;
    }

    .shopTeaser::after {
        font-size: 72px;
    }
}

/* ---------- ACCESSIBILITY ---------- */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .tl-reveal,
    .tl-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* =========================================================
   PHASE 6A.2 — CINEMATIC HERO V2
   ========================================================= */

.tlHeroV2 {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        linear-gradient(
            110deg,
            #061a2c 0%,
            #071e33 48%,
            #0b3559 100%
        );
}

/* background athlete images */

.tlHeroV2__visuals {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.tlHeroV2__visual {
    position: absolute;
    overflow: hidden;
    border-radius: 28px;
    box-shadow:
        0 35px 80px rgba(0,0,0,.32);
}

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

.tlHeroV2__visual--main {
    width: min(46vw, 720px);
    height: 74%;
    inset-inline-end: -3%;
    top: 13%;
    border-radius: 45px 0 0 45px;
}

[dir="rtl"] .tlHeroV2__visual--main {
    border-radius: 0 45px 45px 0;
}

.tlHeroV2__visual--main img {
    filter:
        saturate(.92)
        contrast(1.06)
        brightness(.82);
    transform: scale(1.04);
}

.tlHeroV2__visual--small {
    width: 170px;
    height: 220px;
    inset-inline-end: 36%;
    bottom: 8%;
    border: 5px solid rgba(255,255,255,.10);
    transform: rotate(-4deg);
}

.tlHeroV2__visual--small img {
    filter: brightness(.82);
}

/* gradient overlay */

.tlHeroV2__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(6,26,44,.99) 0%,
            rgba(7,30,51,.94) 42%,
            rgba(7,30,51,.35) 72%,
            rgba(7,30,51,.16) 100%
        );
}

[dir="rtl"] .tlHeroV2__overlay {
    background:
        linear-gradient(
            270deg,
            rgba(6,26,44,.99) 0%,
            rgba(7,30,51,.94) 42%,
            rgba(7,30,51,.35) 72%,
            rgba(7,30,51,.16) 100%
        );
}

/* orange glow */

.tlHeroV2__glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(247,121,40,.28),
            rgba(247,121,40,0) 68%
        );
    inset-inline-end: 22%;
    top: -190px;
    z-index: -1;
    animation: tlHeroGlow 6s ease-in-out infinite;
}

@keyframes tlHeroGlow {
    0%,100% {
        transform: scale(.9);
        opacity: .6;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

/* speed lines */

.tlHeroV2__lines {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .18;
    background-image:
        repeating-linear-gradient(
            118deg,
            transparent 0,
            transparent 80px,
            rgba(255,255,255,.12) 81px,
            transparent 82px
        );
    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 25%,
            black 75%,
            transparent
        );
}

/* container */

.tlHeroV2__container {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding:
        clamp(120px, 14vh, 180px)
        0
        90px;
    position: relative;
    z-index: 3;
}

/* eyebrow */

.tlHeroV2__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tlHeroV2__eyebrow::before {
    content: "";
    width: 43px;
    height: 4px;
    background: #f77928;
    transform: skewX(-25deg);
}

/* headline */

.tlHeroV2 h1 {
    max-width: 760px;
    margin: 0;
    font-size:
        clamp(50px, 7.2vw, 108px);
    line-height: .93;
    letter-spacing: -.065em;
    font-weight: 900;
    text-wrap: balance;
}

.tlHeroV2 h1 strong {
    display: block;
    color: #f77928;
    font-weight: 900;
}

.tlHeroV2__sub {
    max-width: 610px;
    margin: 30px 0 0;
    font-size:
        clamp(16px, 1.35vw, 20px);
    line-height: 1.9;
    color: rgba(255,255,255,.76);
}

/* buttons */

.tlHeroV2__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 35px;
}

.tlHeroV2__primary,
.tlHeroV2__secondary {
    min-height: 56px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}

.tlHeroV2__primary {
    color: #fff;
    background: #f77928;
    box-shadow:
        0 17px 40px rgba(247,121,40,.28);
}

.tlHeroV2__secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
}

.tlHeroV2__primary:hover,
.tlHeroV2__secondary:hover {
    transform: translateY(-4px);
}

.tlHeroV2__primary:hover {
    box-shadow:
        0 23px 55px rgba(247,121,40,.40);
}

.tlHeroV2__secondary:hover {
    background: rgba(255,255,255,.13);
}

/* programs mini-nav */

.tlHeroV2__sports {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 42px;
}

.tlHeroV2__sport {
    padding: 9px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

/* bottom motto */

.tlHeroV2__motto {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 57px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f77928;
    color: #fff;
    white-space: nowrap;
}

.tlHeroV2__track {
    display: flex;
    align-items: center;
    gap: 42px;
    min-width: max-content;
    animation:
        tlMotto 22s linear infinite;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: .16em;
}

.tlHeroV2__track span::after {
    content: "✦";
    margin-inline-start: 42px;
    opacity: .7;
}

@keyframes tlMotto {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* old hero hidden only when V2 is active */

body.tl-hero-v2-ready .hero {
    display: none !important;
}

/* responsive */

@media (max-width: 980px) {

    .tlHeroV2 {
        min-height: 820px;
    }

    .tlHeroV2__container {
        width: min(100% - 38px, 760px);
        margin-inline-start: 19px;
        padding-top: 120px;
    }

    .tlHeroV2__visual--main {
        width: 58%;
        height: 56%;
        top: auto;
        bottom: 57px;
        opacity: .35;
    }

    .tlHeroV2__visual--small {
        display: none;
    }

    .tlHeroV2__overlay {
        background:
            linear-gradient(
                to bottom,
                rgba(6,26,44,.97) 0%,
                rgba(7,30,51,.88) 55%,
                rgba(7,30,51,.66) 100%
            );
    }
}

@media (max-width: 640px) {

    .tlHeroV2 {
        min-height: 760px;
    }

    .tlHeroV2__container {
        width: calc(100% - 34px);
        margin: auto;
        padding-top: 105px;
        padding-bottom: 110px;
    }

    .tlHeroV2 h1 {
        font-size:
            clamp(45px, 15vw, 70px);
    }

    .tlHeroV2__sub {
        margin-top: 23px;
        line-height: 1.75;
    }

    .tlHeroV2__actions {
        width: 100%;
    }

    .tlHeroV2__primary,
    .tlHeroV2__secondary {
        flex: 1 1 150px;
    }

    .tlHeroV2__visual--main {
        width: 88%;
        height: 48%;
        inset-inline-end: -30%;
        opacity: .25;
    }

    .tlHeroV2__sports {
        margin-top: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tlHeroV2__track,
    .tlHeroV2__glow {
        animation: none !important;
    }
}
