/* ============================================
   ZAFF THE PT - Transformation Specialist Birmingham
   Design: Modern Dark Cool Theme
   Pattern: 5-Layer Hero + 3-Layer Sections + Cinematic Reveals
   Style Archetype: Dark with Teal/Cyan energy
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Primary - Teal/Cyan Energy */
    --color-primary: #00D4AA;
    --color-primary-light: #33DDBB;
    --color-primary-dark: #00B894;
    --color-primary-rgb: 0, 212, 170;

    /* Secondary - Deeper Teal */
    --color-secondary: #00B894;
    --color-secondary-light: #33C9A8;
    --color-secondary-dark: #009B7D;
    --color-secondary-rgb: 0, 184, 148;

    /* Accent - Purple accent for contrast */
    --color-accent: #6C5CE7;
    --color-accent-light: #8577ED;
    --color-accent-dark: #5849D1;
    --color-accent-rgb: 108, 92, 231;

    /* Background - Cool Dark */
    --color-bg: #0A0A0F;
    --color-bg-secondary: #12121A;
    --color-bg-elevated: #16161F;
    --color-bg-card: #1A1A24;
    --color-bg-surface: #1E1E28;
    --color-bg-rgb: 10, 10, 15;

    /* Text */
    --color-text: #FAFAFA;
    --color-text-secondary: #C8C8D0;
    --color-text-dim: #9898A8;
    --color-text-muted: #68687A;

    /* Borders */
    --border-subtle: rgba(0, 212, 170, 0.08);
    --border-default: rgba(0, 212, 170, 0.15);
    --border-strong: rgba(0, 212, 170, 0.25);
    --border-primary: rgba(0, 212, 170, 0.4);

    /* Typography */
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 140px;
    --container-max: 1400px;

    /* Transitions */
    --ease-elegant: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-base: 0.4s var(--ease-elegant);
    --transition-slow: 0.6s var(--ease-dramatic);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- Page Loader ---------- */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s var(--ease-elegant), visibility 0.8s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text);
    text-transform: uppercase;
}

.loader-logo span {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-primary);
    margin-top: 12px;
    text-transform: uppercase;
}

.loader-bar {
    width: 100px;
    height: 3px;
    background: rgba(0, 212, 170, 0.15);
    margin: 32px auto 0;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-base);
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-main {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text);
    text-transform: uppercase;
}

.nav-logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 4px;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    position: relative;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: var(--transition-base);
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--color-text);
    }
    .nav-link:hover::after {
        width: 100%;
    }
}

.nav-cta {
    padding: 12px 28px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-bg);
    border-radius: 6px;
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.3);
}

@media (hover: hover) {
    .nav-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.4);
    }
}

/* Mobile Nav */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.nav-mobile-toggle span {
    width: 28px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0 24px;
    }
    .nav-links {
        display: none;
    }
    .nav-mobile-toggle {
        display: flex;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links.active .nav-cta {
        text-align: center;
    }
}

/* ---------- Hero Section - 5+ LAYER CINEMATIC ---------- */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Layer 1: Background Image */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1600&q=80') center/cover;
    filter: brightness(0.3) saturate(1.2);
    z-index: 1;
}

/* Layer 2: Multi-gradient overlay */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.7) 0%, transparent 30%, transparent 70%, rgba(10, 10, 15, 0.95) 100%),
        linear-gradient(90deg, rgba(10, 10, 15, 0.8) 0%, transparent 50%, rgba(10, 10, 15, 0.6) 100%),
        radial-gradient(ellipse 80% 50% at 50% 50%, transparent 0%, rgba(10, 10, 15, 0.5) 100%);
    z-index: 2;
}

/* Layer 3: Geometric pattern */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 3;
    opacity: 0.5;
}

/* Layer 4: Grain texture */
.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 4;
    pointer-events: none;
}

/* Layer 5: Animated glows */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 5;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.25) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.2) 0%, transparent 70%);
    top: 50%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 50px;
    margin-bottom: 32px;
    animation: fadeInDown 1s var(--ease-dramatic) 0.2s both;
}

.hero-badge-icon {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.hero-badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--color-text);
    animation: fadeInUp 1s var(--ease-dramatic) 0.3s both;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.4s;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 1s var(--ease-dramatic) 0.5s both;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    animation: fadeInUp 1s var(--ease-dramatic) 0.6s both;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-meta-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
}

.hero-meta-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-meta-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s var(--ease-dramatic) 0.7s both;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-bg);
    border-radius: 6px;
    transition: var(--transition-base);
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.35);
}

.hero-cta-btn svg {
    width: 18px;
    height: 18px;
}

@media (hover: hover) {
    .hero-cta-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(var(--color-primary-rgb), 0.5);
    }
}

.hero-cta-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    position: relative;
    padding-bottom: 4px;
    transition: var(--transition-base);
}

.hero-cta-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition-base);
}

@media (hover: hover) {
    .hero-cta-link:hover {
        color: var(--color-primary);
    }
    .hero-cta-link:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: fadeInUp 1s var(--ease-dramatic) 1s both;
}

.hero-scroll span {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-meta {
        flex-wrap: wrap;
        gap: 16px;
    }
    .hero-meta-divider {
        display: none;
    }
    .hero-cta {
        flex-direction: column;
        gap: 16px;
    }
    .hero-scroll {
        display: none;
    }
}

/* ---------- Programs Banner - Marquee ---------- */
.programs-banner {
    background: var(--color-bg-secondary);
    padding: 20px 0;
    overflow: hidden;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.programs-banner-track {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.programs-banner-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.programs-banner-weeks {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
}

.programs-banner-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text);
    text-transform: uppercase;
}

.programs-banner-divider {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    transform: rotate(45deg);
    opacity: 0.5;
}

/* ---------- Section Base ---------- */
.section {
    padding: var(--section-padding) 48px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .section {
        padding: 100px 24px;
    }
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-text);
}

.section-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- About Section (3-Layer) ---------- */
.about {
    background: var(--color-bg);
}

/* Layer 1: Background image */
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1200&q=80') center/cover;
    filter: grayscale(100%);
    opacity: 0.04;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Layer 2: Radial gradients */
.about::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 10% 20%, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.about-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image {
    position: relative;
}

.about-image-main {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-slow);
}

@media (hover: hover) {
    .about-image:hover img {
        filter: grayscale(0%);
    }
}

.about-image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(var(--color-primary-rgb), 0.3);
    border-radius: 8px;
    z-index: 1;
}

.about-image-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.2), rgba(var(--color-accent-rgb), 0.1));
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.about-content {
    max-width: 520px;
}

.about-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.about-stat {
    text-align: center;
}

.about-stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-image-frame {
        display: none;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Programs Section (3-Layer) ---------- */
.programs {
    background: var(--color-bg-secondary);
}

/* Layer 1: Background image */
.programs::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1200&q=80') center/cover;
    filter: grayscale(100%);
    opacity: 0.05;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Layer 2: Radial gradients */
.programs::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 80% 20%, rgba(var(--color-primary-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 20% 90%, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.programs-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.programs-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.programs-intro {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.program-card {
    background: rgba(26, 26, 36, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 40px 32px;
    position: relative;
    transition: var(--transition-base);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: var(--transition-base);
    border-radius: 12px 12px 0 0;
}

@media (hover: hover) {
    .program-card:hover {
        transform: translateY(-8px);
        border-color: var(--border-primary);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    }
    .program-card:hover::before {
        opacity: 1;
    }
}

.program-card-featured {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(108, 92, 231, 0.05));
    border-color: var(--border-default);
}

.program-card-featured::before {
    opacity: 1;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.program-card-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 6px 14px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-bg);
    border-radius: 4px;
}

.program-card-weeks {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.program-card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.program-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.program-card-features {
    list-style: none;
    margin-bottom: 32px;
}

.program-card-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text-dim);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.program-card-features li:last-child {
    border-bottom: none;
}

.program-card-features svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.program-card-cta {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--color-primary);
    border-radius: 6px;
    transition: var(--transition-base);
}

@media (hover: hover) {
    .program-card-cta:hover {
        background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
        border-color: transparent;
        color: var(--color-bg);
    }
}

@media (max-width: 1000px) {
    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ---------- Results Section - Gallery (3-Layer) ---------- */
.results {
    background: var(--color-bg);
}

/* Layer 1: Background */
.results::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=1200&q=80') center/cover;
    filter: grayscale(100%);
    opacity: 0.04;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* Layer 2: Radial gradients */
.results::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 30% 20%, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 70% 80%, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.results-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.results-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.results-intro {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.results-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}

.results-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.results-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-slow);
}

.results-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 212, 170, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-base);
}

.results-item-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-bg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translateY(10px);
    transition: var(--transition-base);
}

@media (hover: hover) {
    .results-item:hover img {
        filter: grayscale(0%);
        transform: scale(1.05);
    }
    .results-item:hover .results-item-overlay {
        opacity: 1;
    }
    .results-item:hover .results-item-title {
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .results-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 500px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    .results-item:first-child {
        grid-column: span 1;
    }
}

/* ---------- Testimonials Section (3-Layer) ---------- */
.testimonials {
    background: var(--color-bg-secondary);
}

/* Layer 1: Background */
.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1550345332-09e3ac987658?w=1200&q=80') center/cover;
    filter: grayscale(100%);
    opacity: 0.04;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Layer 2: Radial gradients */
.testimonials::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 15% 50%, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 85% 50%, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.testimonials-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.testimonials-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition-base);
}

@media (hover: hover) {
    .testimonial-card:hover {
        border-color: var(--border-default);
        transform: translateY(-4px);
    }
}

.testimonial-quote {
    margin-bottom: 20px;
}

.testimonial-quote svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    opacity: 0.4;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.testimonial-author-location {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ---------- Contact Section (3-Layer) ---------- */
.contact {
    background: var(--color-bg);
}

/* Layer 1: Background */
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1200&q=80') center/cover;
    filter: grayscale(100%);
    opacity: 0.04;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Layer 2: Radial gradients */
.contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 20%, rgba(var(--color-primary-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text);
}

.contact-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-bg);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(var(--color-primary-rgb), 0.35);
    border-radius: 8px;
}

.contact-cta svg {
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .contact-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(var(--color-primary-rgb), 0.5);
    }
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-dim);
    transition: var(--transition-base);
    padding: 12px 20px;
    border: 1px solid var(--border-subtle);
    background: rgba(26, 26, 36, 0.5);
    border-radius: 8px;
}

.contact-link svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

@media (hover: hover) {
    .contact-link:hover {
        color: var(--color-text);
        border-color: var(--color-primary);
        background: rgba(var(--color-primary-rgb), 0.08);
    }
}

@media (max-width: 500px) {
    .contact-links {
        flex-direction: column;
        gap: 12px;
    }
    .contact-link {
        justify-content: center;
    }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-bg-secondary);
    padding: 40px 48px;
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-text);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .footer {
        padding: 32px 24px;
    }
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ---------- Scroll Reveal - Cinematic ---------- */
.reveal {
    opacity: 0;
    transform: perspective(1000px) rotateX(15deg) translateY(60px) scale(0.95);
    filter: blur(8px);
    transform-origin: center bottom;
    transition:
        opacity 1.2s var(--ease-cinematic),
        transform 1.4s var(--ease-cinematic),
        filter 1s var(--ease-cinematic);
}

.reveal.revealed {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
    filter: blur(0);
}

/* Stagger delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal:nth-child(8) { transition-delay: 0.7s; }

/* About image - slide from left */
.about-image.reveal {
    opacity: 0;
    transform: perspective(1200px) rotateY(10deg) translateX(-80px) scale(0.9);
    filter: blur(12px);
    transform-origin: right center;
    transition:
        opacity 1.4s var(--ease-cinematic),
        transform 1.6s var(--ease-cinematic),
        filter 1.2s var(--ease-cinematic);
}

.about-image.revealed {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translateX(0) scale(1);
    filter: blur(0);
}

/* About content - slide from right */
.about-content.reveal {
    opacity: 0;
    transform: perspective(1200px) rotateY(-8deg) translateX(60px);
    filter: blur(8px);
    transform-origin: left center;
    transition:
        opacity 1.3s var(--ease-cinematic) 0.2s,
        transform 1.5s var(--ease-cinematic) 0.2s,
        filter 1.1s var(--ease-cinematic) 0.2s;
}

.about-content.revealed {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translateX(0);
    filter: blur(0);
}

/* Program cards - rise up */
.program-card.reveal {
    opacity: 0;
    transform: perspective(800px) rotateX(20deg) translateY(80px) scale(0.9);
    filter: blur(10px);
    transform-origin: center bottom;
    transition:
        opacity 1.2s var(--ease-cinematic),
        transform 1.4s var(--ease-cinematic),
        filter 1s var(--ease-cinematic);
}

.program-card.revealed {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0) scale(1);
    filter: blur(0);
}

/* Results items - pop in */
.results-item.reveal {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(10px);
    transition:
        opacity 1s var(--ease-cinematic),
        transform 1.2s var(--ease-cinematic),
        filter 0.8s var(--ease-cinematic);
}

.results-item.revealed {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Testimonial cards - slide up */
.testimonial-card.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(8px);
    transition:
        opacity 1.1s var(--ease-cinematic),
        transform 1.3s var(--ease-cinematic),
        filter 0.9s var(--ease-cinematic);
}

.testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Headers - elegant fade */
.programs-header.reveal,
.results-header.reveal,
.testimonials-header.reveal,
.contact-container.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition:
        opacity 1s var(--ease-cinematic),
        transform 1.2s var(--ease-cinematic),
        filter 0.8s var(--ease-cinematic);
}

.programs-header.revealed,
.results-header.revealed,
.testimonials-header.revealed,
.contact-container.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ---------- Utilities ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
