/* ============================================
   Carlson Gracie Team San Diego — Main Styles
   ============================================ */

:root {
    /* Color palette — matches logo: black, white, red accents */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    --accent: #c41e3a;
    --accent-hover: #e62e4d;
    --accent-glow: rgba(196, 30, 58, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
}

/* Animated background */
.bg-gradient {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(196, 30, 58, 0.15), transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) var(--space-md);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: flex-end;
}

.logo {
    height: 56px;
    width: auto;
    transition: transform 0.3s var(--ease-spring);
}

.logo:hover {
    transform: scale(1.05);
}

/* Desktop: larger logo that hangs off navbar */
@media (min-width: 769px) {
    .header {
        padding: var(--space-sm) var(--space-md);
        padding-bottom: 0;
    }

    .logo-link {
        margin-bottom: -28px;
        padding-bottom: 0;
        position: relative;
        z-index: 1;
    }

    .header .logo {
        height: 90px;
        display: block;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    }

    .header .logo:hover {
        filter: drop-shadow(0 6px 16px rgba(196, 30, 58, 0.3));
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-slide:nth-child(1) {
    animation: heroBgSlide1 10s ease-in-out infinite;
}

.hero-bg-slide:nth-child(2) {
    animation: heroBgSlide2 10s ease-in-out infinite;
}

@keyframes heroBgSlide1 {
    0%, 38% { opacity: 1; }
    48%, 58% { opacity: 0; }
    68%, 92% { opacity: 0; }
    97%, 100% { opacity: 1; }
}

@keyframes heroBgSlide2 {
    0%, 38% { opacity: 0; }
    48%, 58% { opacity: 1; }
    68%, 92% { opacity: 1; }
    97%, 100% { opacity: 0; }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.85));
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
}

.hero-title-wrap {
    position: relative;
}

.hero-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(200px, 40vw, 360px);
    height: auto;
    opacity: 0.2;
    pointer-events: none;
}

.hero-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.hero-title-line {
    display: block;
    opacity: 0;
    animation: slideUpFade 1s var(--ease-out-expo) forwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line.accent {
    color: var(--accent);
    animation-delay: 0.4s;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: slideUpFade 0.8s var(--ease-out-expo) 0.6s forwards;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    opacity: 0;
    animation: slideUpFade 0.8s var(--ease-out-expo) 0.8s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.75rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.hero-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 1s 1.2s forwards;
    opacity: 0;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============================================
   Welcome Section
   ============================================ */

.welcome {
    position: relative;
    padding: var(--space-2xl) 0;
    z-index: 1;
}

.welcome-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.welcome-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.4);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.welcome-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll-triggered animations */
.animate-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.welcome-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.welcome-content {
    padding-right: var(--space-lg);
}

.welcome-content p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.welcome-content p strong {
    color: var(--text-primary);
}

.welcome-lead {
    font-size: 1.2rem !important;
    color: var(--text-primary) !important;
    font-weight: 500;
}

.welcome-visual {
    position: relative;
}

.welcome-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(196, 30, 58, 0.1);
}

.welcome-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.welcome-visual:hover .welcome-image-wrap img {
    transform: scale(1.02);
}

/* Trial CTA — Free Trial Promo Block */
.trial-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, var(--bg-card) 50%, var(--bg-elevated) 100%);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.trial-cta-content {
    padding-right: var(--space-lg);
}

.trial-cta-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 6px;
    margin-bottom: var(--space-sm);
}

.trial-cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.trial-cta-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: var(--space-sm);
}

.trial-cta-pitch {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.trial-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.trial-cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.trial-cta-button svg {
    transition: transform 0.3s;
}

.trial-cta-button:hover svg {
    transform: translateX(4px);
}

.trial-cta-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.trial-cta-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(196, 30, 58, 0.15) 100%);
    pointer-events: none;
}

.trial-cta-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease-out-expo);
}

.trial-cta:hover .trial-cta-image-wrap img {
    transform: scale(1.05);
}

/* ============================================
   Contact Section
   ============================================ */

/* Visit Us Today Section (home page) */
.visit-section {
    position: relative;
    padding: var(--space-2xl) 0;
    z-index: 1;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.visit-map-wrap {
    position: relative;
    width: 100%;
    min-height: 320px;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.4s;
}

.visit-map-wrap:hover {
    box-shadow: 0 24px 70px rgba(196, 30, 58, 0.2);
}

.visit-map-inner {
    position: absolute;
    inset: 0;
}

.visit-map-inner iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.visit-info {
    display: flex;
    min-height: 0;
}

.visit-info-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s var(--ease-spring);
}

.visit-info-card:hover {
    border-color: rgba(196, 30, 58, 0.4);
    box-shadow: 0 16px 48px rgba(196, 30, 58, 0.15);
}

.visit-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
}

.visit-info-item:hover {
    border-color: rgba(196, 30, 58, 0.5);
    background: rgba(196, 30, 58, 0.08);
}

.visit-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 58, 0.15);
    border-radius: 8px;
    color: var(--accent);
}

.visit-info-icon svg {
    width: 20px;
    height: 20px;
}

.visit-info-text {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
}

.visit-cta {
    display: block;
    text-align: center;
    padding: 1rem 1.75rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s var(--ease-spring);
}

.visit-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    height: 64px;
    width: auto;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Coaches Page
   ============================================ */

.nav-active {
    color: var(--accent) !important;
}

.nav-cta.nav-active {
    color: white !important;
}

/* Page Hero (for internal pages) */
.page-hero {
    position: relative;
    padding: calc(80px + var(--space-2xl)) var(--space-md) var(--space-2xl);
    text-align: center;
    z-index: 1;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: slideUpFade 0.8s var(--ease-out-expo) 0.2s forwards;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: slideUpFade 0.8s var(--ease-out-expo) 0.4s forwards;
}

/* Coaches Section */
.coaches-section {
    position: relative;
    padding: 0 0 var(--space-2xl);
    z-index: 1;
}

.coaches-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.coach-card {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: var(--space-xl);
    align-items: start;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.coach-card:hover {
    border-color: rgba(196, 30, 58, 0.3);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.coach-card-image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-elevated);
    aspect-ratio: 2/3;
}

.coach-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    transition: transform 0.6s var(--ease-out-expo);
}

.coach-card:hover .coach-card-image {
    transform: scale(1.04);
}

.coach-card-badge {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    padding: 0.35rem 0.75rem;
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s 0.2s, transform 0.4s 0.2s;
}

.coach-card:hover .coach-card-badge {
    opacity: 1;
    transform: translateY(0);
}

.coach-card-content {
    min-width: 0;
}

.coach-card-header-wrap {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.coach-card-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.coach-card-header-text {
    flex: 1;
    min-width: 0;
}

.coach-card-name {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.coach-card-title {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.coach-card-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.coach-card-bio p {
    margin-bottom: var(--space-sm);
}

.coach-card-bio p:last-child {
    margin-bottom: 0;
}

/* Coach card video (expandable) */
.coach-card-video {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.coach-video-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
}

.coach-video-toggle:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.coach-video-toggle[aria-expanded="true"] {
    background: var(--accent);
    color: white;
}

.coach-video-toggle[aria-expanded="true"]::after {
    content: '−';
    font-size: 1.2em;
    line-height: 1;
}

.coach-video-toggle[aria-expanded="false"]::after {
    content: '+';
    font-size: 1.2em;
    line-height: 1;
}

.coach-video-embed {
    margin-top: var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo);
}

.coach-video-embed.is-expanded {
    max-height: 400px;
}

.coach-video-inner {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding-bottom: 56.07%; /* 314/560 aspect ratio */
}

.coach-video-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Coaches CTA */
.coaches-cta {
    position: relative;
    padding: var(--space-2xl) 0;
    z-index: 1;
}

.coaches-cta-inner {
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.coaches-cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
}

.coaches-cta-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.coaches-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
}

.coaches-cta-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.coaches-cta-link:hover {
    color: var(--accent-hover);
}

/* ============================================
   Schedule Page
   ============================================ */

.schedule-section {
    position: relative;
    padding: 0 0 var(--space-2xl);
    z-index: 1;
}

.schedule-content {
    max-width: 900px;
    margin: 0 auto;
}

.schedule-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* ============================================
   Pricing Page
   ============================================ */

.pricing-section {
    position: relative;
    padding: 0 0 var(--space-2xl);
    z-index: 1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pricing-card {
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    border-color: rgba(196, 30, 58, 0.3);
}

.pricing-card-accent {
    border-color: rgba(196, 30, 58, 0.3);
}

.pricing-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.pricing-card-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-card p {
    color: var(--text-secondary);
    margin: 0;
}

.pricing-image-wrap {
    position: sticky;
    top: 100px;
}

.pricing-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.pricing-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: opacity 0.3s, transform 0.3s;
}

.pricing-image-trigger:hover .pricing-image {
    opacity: 0.95;
}

.pricing-image-hint {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pricing Lightbox */
.pricing-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.pricing-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.pricing-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.pricing-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    z-index: 1;
}

.pricing-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.pricing-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.pricing-lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.pricing-cta {
    position: relative;
    padding: var(--space-2xl) 0;
    z-index: 1;
}

.pricing-cta-inner {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.pricing-cta-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* ============================================
   Classes Page — Full-Width Panels
   ============================================ */

.classes-section {
    position: relative;
    z-index: 1;
}

.class-panel {
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.class-panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.class-panel-image-left .class-panel-media { order: -1; }

.class-panel-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl) clamp(var(--space-xl), 5vw, var(--space-2xl));
}

.class-panel-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.class-panel-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.class-panel-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.class-panel-cta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.85rem 1.75rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s var(--ease-spring);
}

.class-panel-cta:hover {
    background: var(--accent-hover);
    transform: translateX(4px);
}

/* Women's panel — accent tint */
.class-panel-womens .class-panel-content {
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.06) 0%, transparent 100%);
}

/* Panel media — images */
.class-panel-media {
    position: relative;
    overflow: hidden;
}

.class-panel-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out-expo);
}

.class-panel:hover .class-panel-media img {
    transform: scale(1.03);
}

/* Instagram embed — sleek integration */
.instagram-embed-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    min-height: 400px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-left: 1px solid var(--border);
}

.instagram-embed-wrap .instagram-media {
    max-width: 400px !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

/* Responsive */
@media (max-width: 900px) {
    .class-panel-inner {
        grid-template-columns: 1fr;
    }

    .class-panel-image-left .class-panel-media { order: 0; }

    .class-panel-media img {
        min-height: 280px;
    }

    .instagram-embed-wrap {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

/* ============================================
   Contact Page
   ============================================ */

.contact-page-section {
    position: relative;
    padding: 0 0 var(--space-2xl);
    z-index: 1;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-xl);
}

.contact-form .form-group {
    margin-bottom: var(--space-md);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form input.is-invalid,
.contact-form select.is-invalid {
    border-color: var(--accent);
}

.contact-form .form-error {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 0.35rem;
}

.contact-form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    margin-top: var(--space-sm);
}

.contact-form-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-xl);
}

.contact-info-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
}

.contact-info-card > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.contact-info-link {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: var(--space-md);
    transition: color 0.3s;
}

.contact-info-link:hover {
    color: var(--accent-hover);
}

.contact-info-link svg {
    flex-shrink: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 900px) {
    .welcome-layout {
        grid-template-columns: 1fr;
    }

    .welcome-content {
        padding-right: 0;
    }

    .welcome-visual {
        order: -1;
    }

    .trial-cta {
        grid-template-columns: 1fr;
    }

    .trial-cta-content {
        padding-right: 0;
    }

    .trial-cta-image-wrap {
        order: -1;
    }

    .trial-cta-image-wrap img {
        min-height: 240px;
    }

    .coach-card {
        grid-template-columns: 1fr;
    }

    .coach-card-image-wrap {
        max-width: 320px;
        margin: 0 auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-image-wrap {
        position: static;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .visit-grid {
        grid-template-columns: 1fr;
    }

    .visit-map-wrap {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: var(--space-sm) var(--space-md);
    }

    .logo-link {
        margin-bottom: 0;
        align-items: center;
    }

    .header .logo {
        height: 48px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-elevated);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        transition: right 0.4s var(--ease-out-expo);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 101;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-cta {
        width: 100%;
        max-width: 280px;
    }

    .coach-card-badge {
        opacity: 1;
        transform: none;
    }

    .page-hero {
        padding-top: calc(80px + var(--space-xl));
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }
}
