/* ============================================
   YOLANDA R. MOVEMENT STUDIO
   Master Design System - Launch Ready v1.3 (Enhanced UX & Mobile)
   ============================================ */

:root {
  /* Brand Colors */
  --color-bg-main: #0A0A0A; /* Deep Charcoal */
  --color-bg-elevated: #151515; /* Card Background */
  --color-bg-overlay: rgba(10, 10, 10, 0.85); /* Slightly more transparent for glass effect */
  
  --color-accent: #FF2D00;
  --color-accent-hover: #E65100;
  --color-accent-glow: rgba(255, 45, 0, 0.4);
  
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #D4D4D4; /* Improved contrast for WCAG AA compliance */
  --color-text-muted: #A8A8A8;   /* Enhanced readability */
  
  /* Premium Accent Colors */
  --color-accent-gold: #D4AF37; /* Secondary luxury accent */
  
  --color-border: #2A2A2A;
  --color-border-hover: #404040;

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Typography Scale - Enhanced for better hierarchy */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */

  /* Spacing System - Enhanced */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */
  --space-32: 8rem;    /* 128px */

  /* UI Tokens */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px; 
  --radius-xl: 24px; /* For softer "Matte" cards */
  
  --header-height: 80px;
  --max-width: 1280px;

  /* Transitions - Enhanced */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Shadows - Enhanced depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px var(--color-accent-glow);
}

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

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

body {
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.75; /* Increased for readability */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2; /* Slightly increased */
  margin-bottom: 1.5rem; /* Increased spacing */
  margin-top: 2.5rem; /* Add top margin for breathing room */
  color: white;
}

h1:first-child, h2:first-child, h3:first-child {
  margin-top: 0; /* Remove top margin if first element */
}

/* Responsive Typography */
h1 { font-size: 2.5rem; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 4.5rem; }
  h2 { font-size: 3.5rem; } /* Increased */
  h3 { font-size: 2.5rem; } /* Increased */
}

p { 
  margin-bottom: 1.5rem; /* Increased from 1rem */
  max-width: 70ch; /* Limit line length for readability */
  color: var(--color-text-secondary);
  line-height: 1.75;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
a:focus { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 2px; }
button:focus { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 2px; }

ul { list-style: none; }

/* Add spacing between list items */
ul li, ol li {
    margin-bottom: 1rem;
}

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

/* 3. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media(max-width: 640px) {
    .container { padding: 0 var(--space-4); }
}

.section { padding: 5rem 0; } /* Increased from 4rem */
.section-sm { padding: var(--space-12) 0; }

.grid { display: grid; gap: var(--space-8); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { 
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
}

/* Video Card Specific Styles */
.video-card {
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  background: #1a1a1a;
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.video-card .relative {
  width: 100%;
  position: relative;
  background: #000;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-card video {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  background: #000;
  object-fit: cover !important;
  object-position: center center !important;
}

.video-card video::-webkit-media-controls {
  display: flex !important;
  z-index: 10;
}

.video-card video::-webkit-media-controls-panel {
  display: flex !important;
}

/* Play Button Overlay */
.video-card::before {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  pointer-events: none;
  padding-left: 4px;
}

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

/* Override any aspect-video utility class */
.aspect-video {
  aspect-ratio: 16/9 !important;
}

/* Grid spacing for video library */
.grid-3 {
  gap: 24px;
}

/* Ensure container centers the grid items */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-12 { gap: var(--space-12); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.p-10 { padding: 2.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.overflow-hidden { overflow: hidden; }

.hidden { display: none !important; }

/* 4. COMPONENT: NAVIGATION (Sticky & Glass)
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-bg-overlay);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}
.logo span { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); display: block; line-height: 1; margin-top: 4px; }

.nav-links { display: none; gap: var(--space-8); }
.nav-links a { font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); }
.nav-links a:hover, .nav-links a.active { color: var(--color-accent); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-toggle, .menu-toggle { display: none !important; }
}

/* 5. COMPONENT: BUTTONS (3-Tier CTA Hierarchy)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-8);
  height: 48px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
}

.btn-large {
  height: 56px;
  font-size: 0.95rem;
  padding: 0 3rem;
}

/* PRIMARY CTA - Maximum Visual Dominance */
.btn-primary {
  background: linear-gradient(135deg, #FF2D00 0%, #FF5A36 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%

;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover { 
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.6), 
                0 0 30px rgba(255, 107, 53, 0.3);
}

/* SECONDARY CTA - Lighter Visual Weight */
.btn-secondary {
  background: transparent;
  color: #FF2D00;
  border: 2px solid #FF2D00;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #FF2D00;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* TERTIARY CTA - Minimal Styling */
.btn-tertiary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F4F4F4;
  font-weight: 500;
}

.btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* OUTLINE BUTTON (Keep for compatibility) */
.btn-outline {
  border: 1px solid var(--color-border);
  color: white;
  background: transparent;
  position: relative;
}

.btn-outline:hover { 
    border-color: var(--color-accent); 
    color: var(--color-accent);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

/* NAV-SPECIFIC CTA STYLING */
.btn-nav {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  height: auto;
}

.btn-nav.btn-primary {
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-nav.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

.btn-nav.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #F4F4F4;
  background: transparent;
}


/* 6. COMPONENT: CARDS (Matte Finish)
   ============================================ */
.card {
  background: #121212; /* Fallback */
  background: linear-gradient(145deg, #1A1A1A 0%, #0F0F0F 100%);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card:hover { 
    transform: translateY(-8px);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 20px rgba(255, 107, 53, 0.15);
}

/* 7. SCROLL DRAWING & ANIMATIONS - ENHANCED
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal animations for lists */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }

/* Fade in animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.active {
    transition: opacity 0.3s ease;
    transform: none !important;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 8. FOOTER
   ============================================ */
footer {
  background: #050505;
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-heading {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.hover-accent:hover {
    color: var(--color-accent);
}

/* UTIL: Mobile Utility Classes */
@media(max-width: 768px) {
    .hide-on-mobile { display: none !important; }
    .text-center-mobile { text-align: center; }
    .w-full-mobile { width: 100%; }
}

/* 9. FORMS (Added for Harmonization)
   ============================================ */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label { display: block; margin-bottom: 0.5rem; color: #fff; font-weight: 500; font-size: 0.9rem; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}
.form-textarea { min-height: 150px; resize: vertical; }

/* Enhanced Lead Magnet Form */
.lead-magnet-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.email-form .form-group-inline {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .email-form .form-group-inline {
        flex-direction: row;
    }
}

.email-form .form-input {
    flex: 1;
    background: #1A1A1A;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-form .form-input:focus {
    outline: none;
    border-color: #FF2D00;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-privacy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 0;
}

/* 9b. TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.testimonial-card {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

.testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.7;
    font-style: italic;
    color: #E5E5E5;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-quote::before {
    content: '“';
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 4rem;
    line-height: 1;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    opacity: 0.3;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-name {
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}


/* 4. LAYOUT & GRID
   ============================================ */
.section {
  padding: var(--space-20) 0;
  position: relative;
}

/* GLOBAL IMAGE FIX FOR CARDS */
.card img,
.program-card img,
.video-card img,
.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    aspect-ratio: 16/9; /* Enforce consistent aspect ratio */
}

/* STICKY HEADER FOR MASTER OS MOBILE NAV */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 10. CAROUSEL (Added for Harmonization)
   ============================================ */
.testimonial-carousel-container { position: relative; overflow: hidden; margin: 0 auto; max-width: 1200px; width: 100%; }
.testimonial-track { display: flex; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); width: 100%; }
.testimonial-card-wrapper { min-width: 100%; width: 100%; padding: 0 1rem; flex-shrink: 0; box-sizing: border-box; }

.carousel-prev, .carousel-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(10,10,10,0.8); border: 1px solid var(--color-border);
    color: white; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: all 0.2s;
}
.carousel-prev:hover, .carousel-next:hover { background: var(--color-accent); border-color: var(--color-accent); }
.carousel-prev { left: 0px; }
.carousel-next { right: 0px; }
@media(max-width: 768px) {
    .carousel-prev, .carousel-next { width: 32px; height: 32px; font-size: 0.8rem; }
}

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.5rem; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); cursor: pointer; transition: background 0.2s; }
.carousel-dot.active { background: var(--color-accent); transform: scale(1.2); }

/* 11. PREMIUM UTILITIES (Added for Phase 2)
   ============================================ */

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, #FF8A65 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.gradient-card-bg {
    background: linear-gradient(145deg, #1A1A1A 0%, #0F0F0F 100%);
}

/* Glassmorphism */
.glass-card {
    background: rgba(21, 21, 21, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Shadows */
.shadow-premium {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Transitions */
.transition-premium {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

/* Space utilities */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Aspect ratio for videos/images */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* 12. SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

@media(max-width: 768px) {
    .scroll-indicator { display: none; }
}

/* 13. FLOATING IMAGES
   ============================================ */
.floating-image-container {
    position: fixed;
    z-index: 25;
    width: 280px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.floating-image-container.visible {
    opacity: 1;
}

.floating-right {
    right: 40px;
    top: 30%;
}

.floating-left {
    left: 40px;
}

.floating-left.top-70 {
    top: 70%;
}

.floating-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Orange/Red Glow Effect on Hover */
.floating-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(255, 107, 53, 0.6),
        0 0 80px rgba(255, 107, 53, 0.3);
}

/* Hide floating images on mobile */
@media (max-width: 1024px) {
    .floating-image-container {
        display: none;
    }
}

/* 14. IMAGE MODAL (GLASSMORPHISM)
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: rgba(21, 21, 21, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.modal-image-container {
    max-width: 600px;
    max-height: 500px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
}

.modal-image-container img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
}

.modal-message {
    text-align: center;
    max-width: 600px;
}

.modal-message h3 {
    color: var(--color-accent);
    font-size: 28px;
    font-family: var(--font-display);
    margin-bottom: 16px;
}

.modal-message p {
    color: var(--color-text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 12px;
    font-style: italic;
}

.modal-signature {
    color: var(--color-text-muted);
    font-size: 16px;
    font-style: normal;
    margin-top: 20px;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
        padding: 24px;
    }
    
    .modal-image-container {
        max-width: 100%;
        max-height: 300px;
    }
    
    .modal-message h3 {
        font-size: 22px;
    }
    
    .modal-message p {
        font-size: 16px;
    }
}

/* 15. SCROLL REVEAL ANIMATIONS
   ============================================ */
[data-scroll-reveal] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-scroll-reveal="right"] {
    transform: translateX(60px);
}

[data-scroll-reveal="left"] {
    transform: translateX(-60px);
}

[data-scroll-reveal].visible {
    opacity: 1;
    transform: translateX(0);
}

/* 15b. BADGES (For Library/Content)
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.badge-accent {
    background: rgba(255, 107, 53, 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

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

.badge-white {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.badge-blue {
    background: rgba(33, 150, 243, 0.15);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.badge-purple {
    background: rgba(156, 39, 176, 0.15);
    color: #DA70D6;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.badge-green {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* 16. GALLERY GRID (For "Not Just Exercise" Section)
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.8);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center top;
    min-height: 400px;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.3s;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-prev:hover, .modal-next:hover {
    background: rgba(255, 107, 53, 0.8);
}

.modal-prev { left: 30px; }
.modal-next { right: 30px; }

@media (max-width: 768px) {
    .modal-prev, .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
}

/* Background class for sections */
.bg-black {
    background: #000000;
}

/* 17. HERO PORTRAIT SECTION - ENHANCED
   ============================================ */
.hero-portrait {
  background: var(--color-bg-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

/* Animated gradient background overlay */
.hero-portrait::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(255, 45, 0, 0.08) 0%,
    transparent 50%
  );
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-portrait .container {
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 85vh;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Enhanced image hover effect with lift and glow */
.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 45, 0, 0.1) 0%,
    transparent 50%,
    rgba(255, 45, 0, 0.05) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.hero-image:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 
    var(--shadow-xl),
    0 0 40px rgba(255, 107, 53, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-image:hover::before {
  opacity: 1;
}

/* Credentials with stagger animation */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (min-width: 640px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.credential-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  opacity: 0;
  animation: fadeInLeft 0.5s ease-out forwards;
}

.credential-item:nth-child(1) { animation-delay: 0.1s; }
.credential-item:nth-child(2) { animation-delay: 0.2s; }
.credential-item:nth-child(3) { animation-delay: 0.3s; }
.credential-item:nth-child(4) { animation-delay: 0.4s; }
.credential-item:nth-child(5) { animation-delay: 0.5s; }
.credential-item:nth-child(6) { animation-delay: 0.6s; }

.credential-item:hover {
  color: var(--color-text-primary);
  padding-left: var(--space-2);
  border-color: var(--color-accent);
}

.credential-item svg {
  flex-shrink: 0;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-portrait {
    min-height: 0;
    padding: calc(var(--header-height) + 2rem) 0 4rem 0;
  }
  
  .hero-portrait .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-portrait .grid-2 > div:first-child {
    order: 2;
  }
  
  .hero-portrait .grid-2 > div:last-child {
    order: 1;
    text-align: center;
  }
  
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .credential-item {
    justify-content: center;
  }
  
  .hero-image {
    height: 60vh;
  }
}

/* Flexible wrapper */
.flex-wrap {
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .flex-wrap > * {
    width: 100%;
  }
}

/* 18. ACTION SHOT STYLING (Movement in Action Section)
   ============================================ */
.action-shot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    transition: all 0.4s ease;
}

.action-shot:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 
                0 0 40px rgba(255, 107, 53, 0.3);
}

@media (max-width: 768px) {
    .action-shot {
        margin-top: 2rem;
    }
}

/* 19. ARTISTIC EMBEDDED IMAGE LAYOUT
   ============================================ */
.content-with-image-embed {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 0;
    align-items: start;
    position: relative;
    min-height: 600px;
}

.content-column {
    z-index: 3;
    padding: 3rem 4rem 3rem 0;
    position: relative;
}

.image-embed-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    z-index: 1;
}


.embedded-image {
    width: 100%;
    height: 100%;
    max-height: 700px;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
    opacity: 0.85;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(10%) contrast(1.05);
}

.embedded-image:hover {
    transform: scale(1.02);
    opacity: 1;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.95),
                0 0 80px rgba(255, 107, 53, 0.15);
    filter: grayscale(0%) contrast(1.1);
}

/* Reverse layout for variety */
.content-with-image-embed.reverse {
    grid-template-columns: 45% 55%;
}

.content-with-image-embed.reverse .content-column {
    padding: 3rem 0 3rem 4rem;
    grid-column: 2;
}

.content-with-image-embed.reverse .image-embed-container {
    left: 0;
    right: auto;
}

/* Position helpers */
.position-relative {
    position: relative;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .content-with-image-embed {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    
    .content-column {
        padding: 2rem 0;
        grid-column: 1;
    }
    
    .content-with-image-embed.reverse .content-column {
        padding: 2rem 0;
        grid-column: 1;
    }
    
    .image-embed-container {
        position: relative;
        width: 100%;
        top: 0;
        transform: none;
        margin-top: 3rem;
    }
    
    .content-with-image-embed.reverse .image-embed-container {
        left: 0;
    }
}

@media (max-width: 768px) {
    .embedded-image {
        border-radius: 8px;
    }
    
    .image-embed-container {
        margin-top: 2rem;
    }
}
/* =========================================
   PREMIUM TESTIMONIALS & RESULTS STYLING
   ========================================= */

/* Overall Rating Display */
.overall-rating {
    background: rgba(26, 26, 26, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: inline-block;
    margin-bottom: 40px;
}

.rating-stars {
    color: #FFB800; /* Gold */
    margin-bottom: 8px;
}

.rating-stars svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

/* Testimonial Cards */
.testimonial-card-premium {
    background: #1a1a1a;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.testimonial-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.client-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 3px solid var(--color-accent);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* 16b. UTILITY CLASSES (Added for Image Audit) */
.object-top {
    object-position: top center !important;
}

.object-center-20 {
    object-position: center 20% !important;
}

.object-center {
    object-position: center center !important;
}

.client-info h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.client-meta {
    color: #B0B0B0;
    font-size: 0.9rem;
    display: block;
}

.quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: -20px;
    opacity: 0.8;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #F5F5F5;
    margin-bottom: 24px;
    font-style: italic;
    flex-grow: 1;
}

.results-list {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #ddd;
}

.check-icon {
    color: #00D084; /* Success Green */
    flex-shrink: 0;
    margin-top: 4px;
}

/* Carousel Enhancements */
.testimonial-carousel-container {
    position: relative;
    padding: 0 60px; /* Space for arrows */
}

.carousel-prev,
.carousel-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.8); /* Orange background */
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* Guarantee Section */
.guarantee-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(26, 26, 26, 1) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 60px auto;
    max-width: 800px;
}

/* Mobile Responsiveness for Testimonials */
@media (max-width: 768px) {
    .testimonial-carousel-container {
        padding: 0;
    }
    
    .carousel-prev,
    .carousel-next {
        display: none; /* Hide arrows on mobile, use swipe/dots */
    }
    
    .testimonial-card-premium {
        padding: 24px;
    }
    
    .client-photo {
        width: 60px;
        height: 60px;
    }
}

/* 14. ACCORDION COMPONENT
   ============================================ */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-trigger {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.icon-chevron, .lucide-chevron-down, .lucide-plus {
    transition: transform 0.3s ease;
}

/* 15. PAGE UTILITIES
   ============================================ */
.hero-compact {
    min-height: 50vh;
    background: linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 1)), url('images/backgrounds/programs-header.jpg') center top/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-about {
    min-height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/backgrounds/about-header.jpg') center top/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bg-transparent {
    background: transparent !important;
}

.img-portrait {
    object-fit: cover;
    height: 600px;
    object-position: top center;
    width: 100%;
}

.border-t {
    border-top: 1px solid var(--color-border);
}

/* 16. FINAL REFACTOR UTILITIES
   ============================================ */
.hero-minimal {
    min-height: 50vh;
    background: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bg-steps {
    background: linear-gradient(rgba(10,10,10,0.9), rgba(10,10,10,0.95)), url('images/backgrounds/how-it-works-bg.jpg') center top/cover fixed;
}

.bg-cta {
    background: linear-gradient(rgba(10,10,10,0.85), rgba(10,10,10,0.95)), url('images/backgrounds/cta-bg.jpg') center 20%/cover no-repeat;
}

/* 16b. ADDITIONAL UTILITIES
   ============================================ */
.bg-card-dark {
    background: #121212;
}

.border-dark-alt {
    border-color: #2A2A2A;
}

.bg-surface {
    background: #151515;
}

.bg-surface-hover {
    background: #1a1a1a;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ============================================ */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
        --text-6xl: 3rem;
        --text-7xl: 3.5rem;
    }
    
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

/* Mobile landscape and below (768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --text-5xl: 2.25rem;
        --text-6xl: 2.5rem;
        --text-7xl: 3rem;
        --space-16: 3rem;
        --space-20: 4rem;
        --space-24: 4.5rem;
        --space-32: 5rem;
    }
    
    body {
        font-size: 15px;
    }
    
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    /* Navigation */
    .nav-links {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    /* Hero sections */
    .hero, .hero-compact, .hero-about, .hero-minimal {
        min-height: 60vh;
        padding: var(--space-12) 0;
    }
    
    .hero-content h1 {
        font-size: var(--text-5xl);
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: var(--text-lg);
    }
    
    /* Grids */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    /* Cards */
    .card, .program-card, .service-card {
        padding: var(--space-6);
    }
    
    /* Buttons */
    .btn, .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: var(--space-4) var(--space-6);
    }
    
    /* Images */
    .img-portrait {
        height: 400px;
    }
    
    /* Sections */
    section {
        padding: var(--space-16) 0;
    }
    
    /* Typography */
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }
    h3 { font-size: var(--text-3xl); }
    h4 { font-size: var(--text-2xl); }
}

/* Mobile portrait (480px) */
@media (max-width: 480px) {
    :root {
        --text-4xl: 1.875rem;
        --text-5xl: 2rem;
        --text-6xl: 2.25rem;
        --text-7xl: 2.5rem;
    }
    
    body {
        font-size: 14px;
    }
    
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    /* Hero */
    .hero, .hero-compact, .hero-about, .hero-minimal {
        min-height: 50vh;
        padding: var(--space-8) 0;
    }
    
    .hero-content h1 {
        font-size: var(--text-4xl);
    }
    
    .hero-content p {
        font-size: var(--text-base);
    }
    
    /* Cards */
    .card, .program-card, .service-card {
        padding: var(--space-4);
    }
    
    /* Sections */
    section {
        padding: var(--space-12) 0;
    }
    
    /* Typography */
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
    h4 { font-size: var(--text-xl); }
    
    /* Images */
    .img-portrait {
        height: 300px;
    }
    
    /* Buttons - stack vertically */
    .btn-group {
        flex-direction: column;
        gap: var(--space-3);
    }
}

/* Small mobile (320px) */
@media (max-width: 320px) {
    :root {
        --text-3xl: 1.5rem;
        --text-4xl: 1.75rem;
        --text-5xl: 1.875rem;
    }
    
    .container {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }
    
    .hero-content h1 {
        font-size: var(--text-3xl);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn, button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover, .btn:hover {
        transform: none;
    }
    
    /* Optimize animations for performance */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero, .hero-compact, .hero-about {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: var(--space-6) 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
