/* ==========================================
   COACH.MU - EDITORIAL & ORGANIC DESIGN SYSTEM
   ========================================== */

:root {
    /* Exact Flyer Palette */
    --bg-main: #f8fafc;
    /* Mint Cream */
    --primary-dark: #0f172a;
    /* Deep Forest Green */
    --brand-accent: #0d9488;
    /* Muted Sage/Accent Green */
    --bg-white: #ffffff;
    --bg-dark-section: #020617;
    /* Even deeper green for dramatic sections */
    --text-cream: #f1f5f9;

    /* Text Colors */
    --text-main: #334155;
    --text-light: #64748b;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;
    --spacing-3xl: 8rem;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'DM Serif Display', serif;
    --font-script: 'Caveat', cursive;

    /* Shadows & Borders */
    --shadow-soft: 0 15px 40px rgba(15, 23, 42, 0.08);
    --shadow-heavy: 0 25px 50px rgba(0, 0, 0, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--primary-dark);
    line-height: 1.05;
    font-weight: 400;
}

.text-dark {
    color: var(--primary-dark);
}

.text-accent {
    color: var(--brand-accent);
}

.text-cream {
    color: var(--text-cream);
}

.script-text {
    font-family: var(--font-script);
    line-height: 0.8;
    transform: none;
    display: inline-block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
}

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

.logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--brand-accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--bg-main);
}

.btn-primary:hover {
    background: var(--brand-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

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

.btn-outline:hover {
    background: var(--primary-dark);
    color: var(--bg-main);
}

.btn-text {
    background: transparent;
    color: var(--primary-dark);
    padding: 1rem 0;
    border-radius: 0;
    border-bottom: 2px solid var(--primary-dark);
}

.btn-text:hover {
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}

/* ==========================================
   HERO SECTION (Editorial Layout)
   ========================================== */
.hero {
    position: relative;
    padding: calc(var(--spacing-3xl) + 60px) 0 var(--spacing-3xl);
    overflow: hidden;
}

.hero-pattern-dots {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(var(--primary-dark) 2.5px, transparent 3px);
    background-size: 25px 25px;
    opacity: 0.15;
    z-index: 0;
    animation: rotateSlow 60s linear infinite;
}

@keyframes rotateSlow {
    100% {
        transform: rotate(360deg);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.script-overlap {
    font-size: 4.5rem;
    margin-bottom: -35px;
    /* Overlaps the huge serif text */
    margin-left: -10px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(4.5rem, 8vw, 7rem);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin: var(--spacing-md) 0 var(--spacing-lg);
    max-width: 480px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

/* Floating Contact Badge */
.hero-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 22px 10px 10px;
    background: var(--brand-accent);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.hero-contact-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(13, 148, 136, 0.35);
    background: #0b8177;
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.75);
}

.badge-number {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

/* Arch Visual */
.hero-visual {
    position: relative;
}

.arch-frame {
    width: 100%;
    height: 700px;
    border-radius: 250px 250px 0 0;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}

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

.floating-stat-card {
    position: absolute;
    bottom: -30px;
    left: -50px;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-heavy);
}

.floating-stat-card .script-text {
    font-size: 3rem;
    margin-bottom: 5px;
}

.floating-stat-card p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary-dark);
}

/* ==========================================
   INFINITE MARQUEE
   ========================================== */
.marquee-container {
    width: 100%;
    background: var(--primary-dark);
    color: var(--bg-main);
    padding: 1.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(248, 250, 252, 0.2);
    border-bottom: 1px solid rgba(248, 250, 252, 0.2);
}

.marquee-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.15em;
    font-size: 1rem;
}

.marquee-track span {
    margin: 0 10px;
}

.marquee-track .dot {
    color: var(--brand-accent);
}

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

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

    /* Needs duplicate content to loop seamlessly */
}

/* ==========================================
   PHILOSOPHY / INTRO
   ========================================== */
.intro-section {
    padding: var(--spacing-3xl) 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.intro-titles h2 {
    font-size: 4.5rem;
    margin-top: -20px;
}

.intro-text .lead-text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.intro-text p:not(.lead-text) {
    font-size: 1.15rem;
    color: var(--text-light);
}

/* ==========================================
   PREMIUM SERVICES (Dark Dramatic Section)
   ========================================== */
.services-section {
    background: var(--bg-dark-section);
    padding: var(--spacing-3xl) 0;
    position: relative;
    border-radius: 60px 60px 0 0;
    /* Huge rounded top */
}

.section-header.center {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header.light .script-text {
    font-size: 3.5rem;
    color: var(--brand-accent);
    margin-bottom: -15px;
}

.section-header.light .section-title {
    font-size: 3.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.service-editorial-card {
    background: var(--bg-main);
    border-radius: 20px;
    padding: var(--spacing-2xl);
    position: relative;
    transition: var(--transition);
}

.service-editorial-card:hover {
    transform: translateY(-10px);
}

.service-number {
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--bg-dark-section);
    opacity: 0.1;
    position: absolute;
    top: 10px;
    right: 30px;
    line-height: 1;
}

.service-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.editorial-list {
    list-style: none;
    margin-bottom: 2rem;
}

.editorial-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-dark);
    font-weight: 500;
}

.editorial-list li::before {
    content: '→';
    color: var(--brand-accent);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

/* ==========================================
   PLATFORM / APP SECTION
   ========================================== */
.platform-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.platform-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    background: var(--bg-white);
    border-radius: 200px 0 0 200px;
    z-index: 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.platform-text .script-text {
    font-size: 3.5rem;
    margin-bottom: -15px;
}

.platform-text .section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.platform-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.platform-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feat-item h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feat-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Elegant CSS Phone Mockup */
.premium-phone-mockup {
    width: 290px;
    height: 600px;
    background: var(--primary-dark);
    border-radius: 45px;
    padding: 12px;
    box-shadow: var(--shadow-heavy);
    margin: 0 auto;
}

.phone-screen {
    background: var(--bg-main);
    width: 100%;
    height: 100%;
    border-radius: 33px;
    padding: 40px 20px;
}

.mockup-nav {
    font-weight: 900;
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-align: center;
}

.mockup-header {
    margin-bottom: 20px;
}

.mockup-header .script-text {
    font-size: 2.2rem;
    margin-bottom: -5px;
    color: var(--brand-accent);
}

.mockup-header h4 {
    font-size: 1.6rem;
}

.mockup-widget {
    background: var(--bg-white);
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.widget-icon {
    width: 40px;
    height: 40px;
    background: rgba(13, 148, 136, 0.2);
    border-radius: 12px;
}

.widget-lines .line {
    width: 100px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 6px;
}

.widget-lines .line.short {
    width: 60px;
}

/* ==========================================
   PROCESS TIMELINE
   ========================================== */
.process-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.process-section .script-text {
    font-size: 3.5rem;
    margin-bottom: -15px;
}

.process-section .section-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.process-timeline {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--brand-accent) 0, var(--brand-accent) 5px, transparent 5px, transparent 15px);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    width: 40%;
    text-align: center;
}

.step-circle {
    width: 60px;
    height: 60px;
    background: var(--bg-main);
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.timeline-step h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.timeline-step p {
    color: var(--text-light);
}

.tally-wrapper {
    margin-top: 3rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
}

/* ==========================================
   COACHES (Magazine Style)
   ========================================== */
.coaches-section {
    padding: var(--spacing-3xl) 0;
    background: #f0f4f0;
    box-shadow: inset 0 12px 40px rgba(15, 23, 42, 0.06);
}

.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.magazine-card {
    display: flex;
    flex-direction: column;
}

.mag-arch {
    width: 100%;
    height: 560px;
    border-radius: 200px 200px 0 0;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

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

.mag-title-group {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.mag-title-group h3 {
    font-size: 3.5rem;
    line-height: 0.9;
}

.magazine-card p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-dark-section);
    padding: var(--spacing-3xl) 0 2rem;
    border-radius: 60px 60px 0 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid rgba(248, 250, 252, 0.1);
    margin-bottom: 2rem;
}

.contact-box h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-links a {
    color: var(--text-cream);
    font-size: 1.1rem;
    font-family: var(--font-sans);
    opacity: 0.8;
}

.contact-links a:hover {
    color: var(--brand-accent);
    opacity: 1;
}

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

.footer-socials a {
    color: var(--text-cream);
    opacity: 0.8;
    margin-left: 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* ==========================================
   ANIMATIONS & RESPONSIVE
   ========================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

@media (max-width: 992px) {

    .hero-grid,
    .intro-grid,
    .services-grid,
    .platform-grid,
    .magazine-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .platform-bg-shape {
        display: none;
    }

    .hero-title {
        font-size: 4rem;
    }

    .script-overlap {
        font-size: 3.5rem;
    }

    .arch-frame {
        height: 500px;
    }

    .floating-stat-card {
        left: 10px;
        bottom: 10px;
        padding: 1.5rem;
    }

    .timeline-line {
        display: none;
    }

    .process-timeline {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .timeline-step {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .contact-links {
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu needed */
}