/* ==========================================================================
   CSS VARIABLES & TOKENS
   ========================================================================== */
:root {
    /* Colors */
    --bg-primary: #F9F9F9;
    --text-primary: #0F172A;
    /* Deep Navy / Almost Black */
    --text-secondary: #475569;
    /* Slate Gray */
    --accent-navy: #1E293B;
    --accent-glow: rgba(30, 41, 59, 0.15);
    --border-color: rgba(15, 23, 42, 0.1);

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Spacing & Layout */
    --section-padding: 8rem 0;
    --container-width: 1280px;
    --container-padding: 0 2rem;

    /* Micro-interactions & Easing */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-premium);
    --transition-slow: 0.6s var(--ease-premium);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    /* Lenis takes over */
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

li {
    list-style: none;
}

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

/* ==========================================================================
   UTILITY CLASSES & LAYOUT
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

/* ==========================================================================
   LENIS SMOOTH SCROLL BASE
   ========================================================================== */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border-radius: 4px;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-slow);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(249, 249, 249, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    position: relative;
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    transform: translateX(-101%);
    transition: transform var(--transition-fast);
}

.nav-link:hover::after {
    transform: translateX(0);
}

.nav .btn-primary-outline {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.nav .btn-primary-outline::after {
    display: none;
}

.nav .btn-primary-outline:hover {
    border-color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    /* Account for header */
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.hero-headline {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Blur Reveal Text */
.text-blur-reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    animation: blurReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    /* Initial load delay */
}

@keyframes blurReveal {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

/* Fade Up General */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s var(--ease-premium) forwards;
}

.delay-1 {
    animation-delay: 0.6s;
}

.delay-2 {
    animation-delay: 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Class (Added via JS later) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-premium), transform 1s var(--ease-premium);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ABOUT / THE JOURNEY SECTION
   ========================================================================== */
.about {
    background-color: var(--bg-primary);
    position: relative;
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    /* Required for sticky to work correctly with flex */
}

/* Left side sticky */
.about-left {
    flex: 1;
    position: sticky;
    top: 40vh;
    /* Sticks around the middle of the viewport */
    height: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--text-primary);
}

/* Right side content */
.about-right {
    flex: 2;
    padding-bottom: 20vh;
    /* Extra space to scroll past the sticky element comfortably */
}

.about-text {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    transition: color 0.5s var(--ease-premium);
}

.about-text:last-child {
    margin-bottom: 0;
}

/* Highlighting Interaction */
.highlight-target {
    color: var(--text-secondary);
    transition: color 0.5s var(--ease-premium), text-shadow 0.5s var(--ease-premium);
    position: relative;
    display: inline-block;
}

/* State changes for highlights applied via Intersection Observer */
.about-text.is-active {
    color: rgba(15, 23, 42, 0.5);
    /* Dim the non-highlighted text slightly */
}

.about-text.is-active .highlight-target {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   CONSULTING / BENTO BOX SECTION
   ========================================================================== */
.consulting {
    padding-top: 5rem;
    padding-bottom: 10rem;
}

.text-center {
    text-align: center;
    margin-bottom: 5rem;
}

.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    grid-auto-rows: min-content;
}

.bento-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s var(--ease-premium);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}



.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    max-width: 85%;
}

.bento-copy {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.bento-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.4s var(--ease-premium), color 0.4s var(--ease-premium);
}

/* Micro-interactions: Hover State */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 0 0 2px var(--accent-navy) inset;
    opacity: 0;
    transition: opacity 0.4s var(--ease-premium);
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover .bento-icon {
    transform: translate(4px, -4px);
    color: var(--accent-navy);
}

/* ==========================================================================
   DISCIPLINE SECTION
   ========================================================================== */
.discipline {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 10rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('fitness-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Simple Parallax */
    z-index: 1;
}

.bw-bg {
    filter: grayscale(100%) brightness(0.6);
}

.color-bg {
    filter: brightness(0.9);
    --x: -1000px;
    --y: -1000px;
    -webkit-mask-image: radial-gradient(circle 350px at var(--x) var(--y), black 10%, transparent 100%);
    mask-image: radial-gradient(circle 350px at var(--x) var(--y), black 10%, transparent 100%);
    z-index: 2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    /* Deep Navy Overlay */
    z-index: 3;
}

.discipline-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
    margin: 0 auto;
}

.discipline-title {
    color: #fff;
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.discipline-title::after {
    background-color: #fff;
}

.discipline-copy {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.discipline .hero-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.delay-reveal-1 {
    transition-delay: 0.2s;
}

.delay-reveal-2 {
    transition-delay: 0.4s;
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */
.contact {
    padding-top: 10rem;
    padding-bottom: 8rem;
    background-color: var(--bg-primary);
}

.max-w-700 {
    max-width: 700px;
    margin: 0 auto;
}

.contact-subheadline {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 4rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: left;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-textarea {
    resize: none;
    min-height: 40px;
    /* starts as a single line height */
    overflow: hidden;
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s var(--ease-premium);
}

/* Floating Label Interactions */
.form-input:focus~.form-label,
.form-input:valid~.form-label {
    top: -1.2rem;
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-input:focus {
    border-bottom-color: var(--text-primary);
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
    position: relative;
    min-width: 220px;
    height: 56px;
    overflow: hidden;
}

.spinner-icon,
.success-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.4s var(--ease-premium);
    font-size: 1.25rem;
}

.spinner-icon {
    animation: spin 1s linear infinite;
    animation-play-state: paused;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

/* Loading State */
.submit-btn.is-loading .btn-text {
    opacity: 0;
    transform: translateY(20px);
}

.submit-btn.is-loading .spinner-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation-play-state: running;
}

/* Success State */
.submit-btn.is-success {
    background-color: #10B981;
    /* Green success */
    border-color: #10B981;
    color: #fff;
    pointer-events: none;
}

.submit-btn.is-success .btn-text {
    opacity: 0;
}

.submit-btn.is-success .spinner-icon {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.submit-btn.is-success .success-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.calendar-link-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.calendar-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-block;
    padding: 0.5rem;
}

.calendar-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background-color: var(--bg-primary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-left {
        position: static;
        margin-bottom: 2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 1rem;
    }
}