/* ============================================================
   BRAINBUFFET LEARNING STUDIO — Template Styles v4
   File: src/css/templates/template-learning-studio.css
   Scoped under .ls-page to avoid conflicts with global theme
   ============================================================ */

/* ---- Reset / scope ---- */
.ls-page * {
    box-sizing: border-box;
}

.ls-page {
    font-family: 'proxima-nova', 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* ---- Typography scale ---- */
.ls-page h1 {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 1.2rem;
}

.ls-page h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
}

.ls-page h3 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.ls-page p {
    font-size: 1.15rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}

/* ---- Layout utility ---- */
.ls-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ---- Button system ---- */
.ls-btn {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s ease;
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.ls-btn-red {
    background: #E20009;
    color: #fff !important;
    border-color: #E20009;
}

.ls-btn-red:hover {
    background: #b50007;
    border-color: #b50007;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(226, 0, 9, 0.3);
}

.ls-btn-green-outline {
    background: transparent;
    color: #146A44 !important;
    border-color: #146A44;
}

.ls-btn-green-outline:hover {
    background: #146A44;
    color: #fff !important;
    transform: translateY(-2px);
}

.ls-btn-white {
    background: #fff;
    color: #E20009 !important;
    border-color: #fff;
}

.ls-btn-white:hover {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.ls-hero {
    position: relative;
    background: #ffffff;
    padding: 4rem 0;
    overflow: visible;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.ls-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.ls-hero__content {
    padding-left: 0.5rem;
}

.ls-hero__eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #E20009;
    margin-bottom: 1.4rem;
    background: rgba(226, 0, 9, 0.07);
    padding: 0.35rem 1rem;
    border-radius: 4px;
}

.ls-hero h1 { color: #151515; }

.ls-hero h1 .ls-hero__red {
    color: #E20009;
    display: block;
}

.ls-hero__sub {
    font-size: 1.15rem;
    color: #555;
    max-width: 480px;
    margin-bottom: 2.2rem;
    line-height: 1.7;
}

.ls-hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ls-hero__video-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    overflow: visible;
}

.ls-hero__video-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
    border-radius: 20px;
    background: #fff;
    overflow: visible;
}

.ls-hero__video-container video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.ls-ambilight-canvas { display: none; }

.ls-ambilight-glow {
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    z-index: 1;
    pointer-events: none;
    filter: blur(5px);
    opacity: 0.14;
    animation: ls-ambilight-shift 8s ease-in-out infinite alternate;
}

@keyframes ls-ambilight-shift {
    0%   {
        background: radial-gradient(ellipse at 20% 20%, rgba(255,120,0,0.85) 0%, rgba(226,0,9,0.75) 40%, transparent 100%);
        box-shadow: -20px 0 40px 10px rgba(255,100,0,0.70), 20px 0 40px 10px rgba(150,0,200,0.55), 0 -20px 40px 10px rgba(255,200,0,0.65), 0 20px 40px 10px rgba(226,0,9,0.75);
    }
    20%  {
        background: radial-gradient(ellipse at 80% 30%, rgba(226,0,9,0.85) 0%, rgba(255,60,0,0.65) 45%, transparent 100%);
        box-shadow: -20px 0 40px 10px rgba(226,0,9,0.75), 20px 0 40px 10px rgba(255,80,0,0.65), 0 -20px 40px 10px rgba(200,0,50,0.70), 0 20px 40px 10px rgba(100,0,180,0.45);
    }
    40%  {
        background: radial-gradient(ellipse at 50% 80%, rgba(255,180,0,0.80) 0%, rgba(226,0,9,0.70) 45%, transparent 100%);
        box-shadow: -20px 0 40px 10px rgba(255,150,0,0.70), 20px 0 40px 10px rgba(226,0,9,0.80), 0 -20px 40px 10px rgba(255,80,0,0.60), 0 20px 40px 10px rgba(200,100,0,0.65);
    }
    60%  {
        background: radial-gradient(ellipse at 10% 60%, rgba(200,0,80,0.85) 0%, rgba(255,100,0,0.60) 45%, transparent 100%);
        box-shadow: -20px 0 40px 10px rgba(200,0,80,0.75), 20px 0 40px 10px rgba(255,120,0,0.65), 0 -20px 40px 10px rgba(226,0,9,0.80), 0 20px 40px 10px rgba(180,0,60,0.65);
    }
    80%  {
        background: radial-gradient(ellipse at 90% 70%, rgba(255,60,0,0.80) 0%, rgba(180,0,100,0.65) 45%, transparent 100%);
        box-shadow: -20px 0 40px 10px rgba(255,60,0,0.70), 20px 0 40px 10px rgba(180,0,80,0.75), 0 -20px 40px 10px rgba(255,150,0,0.60), 0 20px 40px 10px rgba(226,0,9,0.80);
    }
    100% {
        background: radial-gradient(ellipse at 40% 10%, rgba(226,0,9,0.85) 0%, rgba(255,80,20,0.70) 40%, transparent 100%);
        box-shadow: -20px 0 40px 10px rgba(226,0,9,0.80), 20px 0 40px 10px rgba(255,60,0,0.65), 0 -20px 40px 10px rgba(200,0,50,0.75), 0 20px 40px 10px rgba(255,120,0,0.60);
    }
}

.ls-video-loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.ls-video-loader.ls-video-loader--hidden {
    opacity: 0;
    pointer-events: none;
}

.ls-video-loader__logo {
    width: 80px;
    height: auto;
    animation: ls-logo-expand 1.6s ease-in-out infinite;
    filter: brightness(0) saturate(100%) invert(8%) sepia(97%) saturate(7471%) hue-rotate(357deg) brightness(90%) contrast(118%);
}

@keyframes ls-logo-expand {
    0%   { transform: scale(0.85); opacity: 0.4; }
    50%  { transform: scale(1.15); opacity: 1;   }
    100% { transform: scale(0.85); opacity: 0.4; }
}

/* ============================================================
   SECTION 2 — TRUST BAR
   ============================================================ */
.ls-trust {
    background: #F3F1EB;
    padding: 1.4rem 0;
    border-top: 1px solid #e5e2d9;
    border-bottom: 1px solid #e5e2d9;
}

.ls-trust__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ls-trust__label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    white-space: nowrap;
}

.ls-trust__logos {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ls-trust__logo {
    width: 120px;
    height: 40px;
    object-fit: contain;
    object-position: center;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

/* Adobe logo has tighter internal padding so needs a narrower box */
.ls-trust__logo[alt="Adobe"] {
    width: 80px;
}

.ls-trust__logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================================
   SECTION 3 — ABOUT STRIP
   ============================================================ */
.ls-about {
    background: linear-gradient(135deg, #146A44 0%, #0f5033 100%);
    padding: 6rem 0;
    color: #fff;
}

.ls-about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.ls-about__logo {
    height: 44px;
    width: auto;
    margin-bottom: 2rem;
    display: block;
}

.ls-about h2 { color: #fff; }

.ls-about p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
}

.ls-about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ls-about__stat {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.8rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
}

.ls-about__stat:hover { background: rgba(255, 255, 255, 0.16); }

.ls-about__stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    display: block;
    letter-spacing: -0.03em;
}

.ls-about__stat-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.4rem;
    display: block;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================================
   SECTION 4 — SERVICES
   Wave + floating logos + mount point for JS layout
   ============================================================ */
.ls-services {
    background: #fff;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.ls-services__header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 4;
}

.ls-services__header h2 { color: #151515; }

.ls-services__header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* Wave band */
.ls-wave-band {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ls-wave-band__body {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 360px;
    background: #E20009;
}

.ls-wave-band__body::before {
    content: '';
    display: block;
    position: absolute;
    border-radius: 100%;
    width: 130%;
    height: 160px;
    background: #ffffff;
    left: -15%;
    top: -80px;
}

.ls-wave-band__body::after {
    content: '';
    display: block;
    position: absolute;
    border-radius: 100%;
    width: 130%;
    height: 160px;
    background: #ffffff;
    left: -15%;
    bottom: -80px;
}

/* Floating shapes layer */
.ls-shapes-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.ls-shape {
    position: absolute;
    will-change: transform;
    display: block;
    pointer-events: none;
    max-width: 48px;
    max-height: 48px;
}

/* Mount point */
#ls-services-mount {
    position: relative;
    z-index: 3;
    margin-top: 50px;
}

/* ============================================================
   SHARED SLIDE STYLES (used by both layouts)
   ============================================================ */
.ls-slide {
    background: #FFF0F0;
    border-radius: 20px;
    padding: 2.8rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.ls-slide__watermark {
    position: absolute;
    width: 260px;
    height: auto;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.ls-slide__watermark--tl { top: -20px;    left: -20px;   }
.ls-slide__watermark--tr { top: -20px;    right: -20px;  }
.ls-slide__watermark--bl { bottom: -20px; left: -20px;   }
.ls-slide__watermark--br { bottom: -20px; right: -20px;  }

.ls-slide__content {
    position: relative;
    z-index: 1;
    display: block;
}

.ls-slide__number {
    font-size: 5rem;
    font-weight: 900;
    color: #E20009;
    opacity: 0.18;
    line-height: 1;
    letter-spacing: -0.05em;
    display: block;
    margin-bottom: 0.4rem;
    pointer-events: none;
    user-select: none;
}

.ls-slide__icon {
    display: block;
    margin-bottom: 0.8rem;
    line-height: 1;
    width: 44px;
    height: 44px;
}

.ls-slide__icon svg {
    width: 44px;
    height: 44px;
    fill: #E20009;
}

.ls-slide h3 {
    color: #151515;
    font-size: 1.45rem;
    margin-bottom: 0.7rem;
}

.ls-slide__desc {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.2rem;
    line-height: 1.65;
}

.ls-slide__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ls-slide__list li {
    font-size: 0.98rem;
    color: #444;
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
    line-height: 1.5;
}

.ls-slide__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 7px;
    height: 7px;
    background: #E20009;
    border-radius: 50%;
}

/* ============================================================
   DESKTOP CAROUSEL STYLES (≥ 960px)
   ============================================================ */
.ls-slider__stage {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* All slides absolutely positioned inside stage */
.ls-slider__stage .ls-slide {
    position: absolute;
    width: 52%;
    left: 50%;
    top: 50%;
    /* Default — hidden in background */
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    z-index: 1;
    transition:
            transform  0.55s cubic-bezier(0.45, 0, 0.15, 1),
            opacity    0.55s ease,
            background 0.4s ease,
            box-shadow 0.4s ease;
}

/* Content hidden on non-active slides */
.ls-slider__stage .ls-slide .ls-slide__content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Active — centered, full size, full color */
.ls-slider__stage .ls-slide--active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 5;
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}

.ls-slider__stage .ls-slide--active .ls-slide__content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

/* Prev — peeking left */
.ls-slider__stage .ls-slide--prev {
    opacity: 0.45;
    transform: translate(calc(-50% - 28%), -50%) scale(0.82);
    z-index: 3;
    background: #e8e8e8;
}

/* Next — peeking right */
.ls-slider__stage .ls-slide--next {
    opacity: 0.45;
    transform: translate(calc(-50% + 28%), -50%) scale(0.82);
    z-index: 3;
    background: #e8e8e8;
}

/* Far prev/next — deeper in stack */
.ls-slider__stage .ls-slide--far-prev {
    opacity: 0.25;
    transform: translate(calc(-50% - 32%), -50%) scale(0.72);
    z-index: 2;
    background: #e8e8e8;
}

.ls-slider__stage .ls-slide--far-next {
    opacity: 0.25;
    transform: translate(calc(-50% + 32%), -50%) scale(0.72);
    z-index: 2;
    background: #e8e8e8;
}

/* Corner arrows */
.ls-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #E20009;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0;
    aspect-ratio: 1 / 1;
    outline: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 10;
    transition: background 0.2s ease, color 0.2s ease;
}

#ls-prev { left: 0; }
#ls-next { right: 0; }

.ls-slider__arrow:hover {
    background: #146A44;
    color: #ffffff;
    animation: ls-arrow-heartbeat 0.6s ease forwards;
}

@keyframes ls-arrow-heartbeat {
    0%   { transform: translateY(-50%) scale(1);    }
    15%  { transform: translateY(-50%) scale(1.18); }
    30%  { transform: translateY(-50%) scale(0.96); }
    45%  { transform: translateY(-50%) scale(1.24); }
    65%  { transform: translateY(-50%) scale(1);    }
    100% { transform: translateY(-50%) scale(1);    }
}

/* Counter below carousel */
.ls-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.ls-slider__counter {
    font-size: 1rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.04em;
}

.ls-slider__counter span { color: #E20009; }

/* ============================================================
   MOBILE STACK STYLES (< 960px)
   ============================================================ */
.ls-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.ls-cards .ls-slide {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    z-index: 3;
}

.ls-cards .ls-slide:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

/* ============================================================
   SECTION 5 — CTA
   ============================================================ */
.ls-cta {
    background: #ffffff;
    padding: 7rem 0;
    text-align: center;
    color: #151515;
    position: relative;
    overflow: hidden;
}

.ls-cta::before, .ls-cta::after { display: none; }

.ls-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ls-cta h2 {
    color: #151515;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
}

.ls-cta__sub {
    font-size: 1.22rem;
    color: #555;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.ls-cta__email {
    margin-top: 1.2rem;
    font-size: 1rem;
    color: #888;
    text-align: center;
}

.ls-cta__email a {
    color: #E20009;
    font-weight: 700;
    text-decoration: none;
}

.ls-cta__email a:hover {
    text-decoration: underline;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.ls-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .ls-hero__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ls-hero__video-wrap { min-height: 300px; }

    .ls-ambilight-glow {
        filter: blur(28px);
        inset: -20px;
    }

    .ls-about__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ls-slide__watermark { width: 160px; }
}

@media (max-width: 600px) {
    .ls-hero { padding: 4rem 0 3rem; }

    .ls-hero__buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .ls-about__stats { grid-template-columns: 1fr 1fr; }

    .ls-trust__inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .ls-container { padding: 0 1rem; }

    .ls-slide { padding: 2rem 1.5rem; }

    .ls-slide__watermark { width: 100px; }

    .ls-wave-band__body {
        top: 60%;
        height: 280px;
    }
}
