/* Modern CSS Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal scrolling globally */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Custom Font Face */
@font-face {
  font-family: 'ABC Arizona Flare';
  src: url('../fonts/ABCArizonaFlare-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Modern Color Palette */
  --primary: #5C2A2E;
  --primary-dark: #4A2126;
  --primary-light: #7A4045;
  --secondary: #2C3E50;
  --secondary-dark: #1A252F;
  --secondary-light: #34495E;
  --accent: #8B5A3C;
  --accent-light: #A47359;

  /* Neutrals */
  --gray-900: #1A1A1A;
  --gray-800: #2D2D2D;
  --gray-700: #404040;
  --gray-600: #525252;
  --gray-500: #666666;
  --gray-400: #858585;
  --gray-300: #A3A3A3;
  --gray-200: #C2C2C2;
  --gray-100: #E0E0E0;
  --gray-50: #F0F0F0;
  --white: #FFFFFF;
  --warm-bg: #DCD2CC;
  --light-canvas: #F9F6F0;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'ABC Arizona Flare', Georgia, serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--light-canvas);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: auto;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: auto;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
}

a:hover {
  color: var(--primary-dark);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-md);
  max-width: 100%;
}

section {
  max-width: 100vw;
  overflow-x: hidden;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Flexbox Utilities */
.flex {
  display: flex;
  min-width: 0;
}

.flex>* {
  min-width: 0;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  min-width: fit-content;
}

.btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.3);
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Card Component */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-body {
  padding: var(--space-md);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-900);
  background-color: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Navigation Styles */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: all var(--transition);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  height: 80px;
}

@media (max-height: 500px) and (orientation: landscape) {
  .navbar-container {
    padding: var(--space-xs) 0;
    height: 60px;
  }

  .navbar-logo {
    height: 40px;
  }

  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.navbar-menu {
  display: none;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }
}

.navbar-item {
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary);
}

.navbar-item:hover::after {
  width: 100%;
}

.navbar-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

.navbar-toggle-icon {
  width: 24px;
  height: 2px;
  background-color: var(--gray-900);
  position: relative;
  transition: all var(--transition);
  display: block;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--gray-900);
  transition: all var(--transition);
}

.navbar-toggle-icon::before {
  top: -8px;
}

.navbar-toggle-icon::after {
  top: 8px;
}

/* Navbar Dropdown Styles */
.navbar-item.dropdown {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius);
  padding: var(--space-xs) 0;
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 10px;
}

.dropdown-menu.show {
  display: block;
  animation: dropdownFadeIn 0.2s ease-out forwards;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--gray-700);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.dropdown-item:hover {
  background-color: var(--gray-50);
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 1.75rem;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--gray-100);
  margin: 0.25rem 0;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: calc(100vh - 80px);
  background-color: var(--white);
  box-shadow: var(--shadow-xl);
  transition: right var(--transition);
  z-index: 100;
  padding: var(--space-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 99;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =============================================
   HERO SECTION - CONSOLIDATED (Mobile-First)
   ============================================= */

.hero-section {
  position: relative;
  min-height: 500px;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 0;
  padding-bottom: 2rem;
  /* Reduced from 100px given flex spacing */
}

/* Legacy spacer - no longer needed, hidden */
.hero-mobile-spacer {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--white);
  padding: 0.5rem 1rem 1rem;
}

.hero-title {
  margin-bottom: var(--space-md);
  margin-top: 0;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.hero-benefits li {
  font-size: 1rem;
  opacity: 0.95;
}

.hero-trust-badge {
  margin-top: auto;
  /* Push to bottom */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  opacity: 0.9;
  z-index: 2;
  /* Ensure on top of video */
  padding-bottom: 10px;
}

/* Hero Background Elements */
.hero-image-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: none;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  object-position: center;
}

.video-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  z-index: 0;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 2;
  display: flex;
  gap: 1rem;
}

.video-pause-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-pause-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.video-pause-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.performance-notice {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 3;
  display: none;
}

/* Glassmorphism CTA Buttons */
.cta-button-video {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-button-video::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button-video:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cta-button-video:hover::before {
  left: 100%;
}

.cta-button-video-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  backdrop-filter: blur(5px);
}

.cta-button-video-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Hero Responsive - Small screens */
@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-benefits {
    font-size: 0.9rem;
  }

  .video-controls {
    bottom: 1rem;
    right: 1rem;
  }
}

/* Hero Responsive - Medium screens */
@media (min-width: 768px) {
  .hero-section {
    min-height: 0;
    /* Fixed height to match reference site exactly */
    height: 750px;
    max-height: none;
  }

  .hero-benefits {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-lg);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cta-button-video {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Hero Responsive - Desktop */
@media (min-width: 992px) {
  .hero-section {
    min-height: 0;
    /* Maintain fixed height from tablet */
    height: 750px;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-content {
    padding: 2rem;
  }

  .hero-benefits {
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
  }

  .hero-trust-badge {
    margin-top: var(--space-md);
    font-size: 0.8rem;
  }
}

/* Hero Responsive - Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 400px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .hero-image-fallback {
    display: block;
  }

  .hero-content {
    animation: none;
  }
}

/* =============================================
   END HERO SECTION
   ============================================= */

/* Feature Section */
.features {
  padding: var(--space-3xl) 0;
  background-color: var(--warm-bg);
}

.feature-card {
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--gray-100);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background-color: var(--gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
}

/* Step Circles - How It Works Section */
.step-circle {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  line-height: 1;
}

.step-circle-1 {
  background-color: var(--warm-bg);
  color: var(--primary);
}

.step-circle-2 {
  background-color: var(--accent-light);
  color: var(--white);
}

.step-circle-3 {
  background-color: var(--primary-light);
  color: var(--white);
}

/* Body Image - Responsive images in page content */
.body-image-wrapper {
  width: 100%;
}

.body-image-wrapper picture {
  display: block;
  width: 100%;
}

.body-image-wrapper picture img,
.body-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--warm-bg);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature-description {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Teacher Card */
.teacher-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.teacher-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.teacher-info {
  padding: var(--space-md);
}

.teacher-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  font-synthesis: none;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.teacher-instruments {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.teacher-bio {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.teacher-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background-color: var(--gray-100);
  color: var(--gray-700);
}

.badge-primary {
  background-color: var(--primary);
  color: var(--white);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: var(--gray-300);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-800);
  color: var(--gray-500);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2 {
  margin-bottom: var(--space-xs);
}

.mb-4 {
  margin-bottom: var(--space-sm);
}

.mt-6 {
  margin-top: var(--space-lg);
}

.py-sm {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.py-md {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.py-lg {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.py-xl {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.bg-light {
  background-color: var(--gray-50);
}

@media (min-width: 640px) {
  .sm\:hidden {
    display: none;
  }

  .sm\:block {
    display: block;
  }
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }

  .md\:block {
    display: block;
  }
}

@media (min-width: 1024px) {
  .lg\:hidden {
    display: none;
  }

  .lg\:block {
    display: block;
  }
}

/* Animations */
[data-animate] {
  opacity: 0;
}

[data-animate="fadeIn"] {
  transform: translateY(20px);
}

[data-animate="slideInLeft"] {
  transform: translateX(-50px);
}

[data-animate="slideInRight"] {
  transform: translateX(50px);
}

[data-animate="scaleIn"] {
  transform: scale(0.8);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Responsive Text */
.text-responsive {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Success/Error States */
.alert {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.alert-success {
  background-color: var(--warm-bg);
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
}

.alert-error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  -webkit-overflow-scrolling: touch;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition);
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: var(--space-md);
}

.modal-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =============================================
   iOS/Mobile Fixes
   ============================================= */

@media (max-width: 768px) {
  .btn {
    white-space: normal;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }

  .btn-lg {
    font-size: clamp(0.95rem, 2.5vw, 1.125rem);
    padding: 1rem 1.5rem;
    line-height: 1.3;
  }

  .btn[data-cta-action="faq_cta"] {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 0.875rem 1.25rem;
    max-width: 280px;
    margin: 0 auto;
  }

  /* iOS touch target fixes - 44px minimum */
  .navbar-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
  }

  .mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .video-pause-btn {
    min-width: 48px;
    min-height: 48px;
  }

  .modal-close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  .form-input,
  .form-select,
  .form-textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .teacher-card .learn-more-btn,
  .card a {
    min-height: 44px;
  }

  /* iOS emoji rendering fixes */
  .emoji,
  [style*="font-size: 3rem"],
  [style*="font-size: 2.5rem"] {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    -webkit-font-feature-settings: "liga" off;
    font-feature-settings: "liga" off;
    font-variant-emoji: emoji;
    text-rendering: optimizeLegibility;
  }

  /* Fix emoji spacing and alignment */
  .hero-benefits li::before,
  .feature-description strong+br+ul li::before {
    content: "";
  }

  /* iOS text wrapping fixes */
  .hero-title,
  .hero-subtitle,
  .feature-title,
  .teacher-name,
  .teacher-bio,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -webkit-line-break: after-white-space;
  }

  .card-body,
  .feature-description,
  .teacher-info,
  .modal-body p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .flex p,
  .flex h1,
  .flex h2,
  .flex h3,
  .flex h4,
  .flex span {
    min-width: 0;
    flex-shrink: 1;
  }

  .card p[style*="color: #202124"] {
    word-break: break-word;
    line-height: 1.4;
  }

  .form-label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
  }

  /* iOS Safari sticky/fixed positioning fixes */
  .navbar {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .sticky-cta {
    position: fixed;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  .navbar,
  .sticky-cta {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
  }

  @supports (-webkit-touch-callout: none) {
    .sticky-cta {
      bottom: calc(20px + env(safe-area-inset-bottom));
      right: calc(20px + env(safe-area-inset-right));
    }

    .navbar {
      top: env(safe-area-inset-top);
    }
  }

  body {
    -webkit-overflow-scrolling: touch;
  }

  /* iOS-specific font rendering improvements */
  @media only screen and (-webkit-min-device-pixel-ratio: 2) {

    body,
    p,
    span,
    div {
      -webkit-font-smoothing: subpixel-antialiased;
      -moz-osx-font-smoothing: auto;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      font-weight: 600;
    }
  }

  @supports (-webkit-touch-callout: none) {
    body {
      -webkit-font-feature-settings: "kern" 1, "liga" 1;
      font-feature-settings: "kern" 1, "liga" 1;
      -webkit-text-stroke: 0.01em transparent;
    }

    .btn {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      font-weight: 500;
    }

    .form-input,
    .form-textarea,
    .form-select {
      -webkit-font-smoothing: auto;
      -moz-osx-font-smoothing: auto;
    }
  }

  /* iOS modal and form fixes */
  .modal {
    align-items: flex-start;
    padding: var(--space-md);
  }

  .modal-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--radius);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }

  .form-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
  }

  .form-textarea {
    resize: vertical;
    -webkit-overflow-scrolling: touch;
  }

  body.modal-open {
    position: fixed;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  @supports (-webkit-touch-callout: none) {
    .modal.active {
      position: absolute;
      height: 100vh;
      top: 0;
    }

    .modal-content {
      max-height: calc(100vh - 4rem);
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
    }

    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
      -webkit-user-select: text;
      user-select: text;
    }
  }
}

/* Small mobile screens */
@media (max-width: 640px) {
  .sticky-cta {
    bottom: 10px;
    right: 10px;
  }

  .sticky-cta .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Very small screens (380px and below) */
@media (max-width: 380px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: var(--space-sm);
  }

  .feature-card {
    padding: var(--space-md);
  }

  .grid.grid-cols-1.sm\:grid-cols-2.gap-md {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--space-xs);
  }
}

/* iPhone SE and similar (320px and below) */
@media (max-width: 320px) {
  .grid {
    gap: var(--space-xs);
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .grid[class*="grid-cols-"] {
    grid-template-columns: 1fr;
  }
}

/* Sticky CTA */
.sticky-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 16px rgba(255, 165, 80, 0.4);
  }

  50% {
    box-shadow: 0 4px 24px rgba(255, 165, 80, 0.6);
  }

  100% {
    box-shadow: 0 4px 16px rgba(255, 165, 80, 0.4);
  }
}

/* iOS Emoji Consistency Fixes */
body {
  -webkit-font-feature-settings: "liga" on;
  font-feature-settings: "liga" on;
}

.trust-section div[style*="font-size: 2.5rem"],
.instruments-section div[style*="font-size: 3rem"],
.footer div[style*="font-size: 1.5rem"] {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[style*="font-size: 3rem"],
[style*="font-size: 2.5rem"],
[style*="font-size: 1.5rem"] {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
  -webkit-text-stroke: 0.01em transparent;
}

/* Print Styles */
@media print {
  .no-print {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* =============================================
   Page Specific Styles - About & Piano
   ============================================= */

/* About Page Styles */
.about-hero {
  background-color: var(--primary-light);
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--white);
}

.about-hero h1 {
  color: var(--white);
}

.about-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.about-section {
  padding: var(--space-xl) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.quote-box {
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  margin-top: var(--space-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-note {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: var(--space-2xl) 0;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
}

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

/* Piano Page Styles */
.piano-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1552422535-c45813c61732?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.piano-hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

.piano-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

/* Hero ZIP form row - responsive stacking */
.hero-zip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: stretch;
  justify-content: center;
}

.hero-zip-row input {
  width: 140px;
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .hero-zip-row {
    flex-direction: column;
    align-items: center;
  }

  .hero-zip-row input,
  .hero-zip-row button {
    width: 100%;
    max-width: 280px;
  }
}

.trust-strip {
  background-color: var(--light-canvas);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--warm-bg);
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  color: var(--primary);
  font-weight: 600;
}

.seasonal-banner {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: var(--space-sm) 0;
  font-weight: 600;
}

/* City Selector Banner - Alert style for generic pages */
.city-selector-banner {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-bottom: 2px solid #F59E0B;
  padding: 0.75rem 0;
}

.city-selector-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.city-selector-text {
  color: #92400E;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.city-selector-text svg {
  color: #D97706;
}

.city-selector-dropdown {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 2px solid #D97706;
  border-radius: var(--radius);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23D97706'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 0.5rem center;
  background-size: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  min-width: 180px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.city-selector-dropdown:hover {
  border-color: #B45309;
  background-color: #FFFBEB;
}

.city-selector-dropdown:focus {
  outline: none;
  border-color: #B45309;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

@media (max-width: 640px) {
  .city-selector-content {
    flex-direction: column;
    text-align: center;
  }

  .city-selector-dropdown {
    width: 100%;
    max-width: 280px;
  }
}

/* Accessibility utility - visually hidden but screen-reader accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  margin-bottom: var(--space-sm);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: flex-start;
}

.feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  margin-right: var(--space-sm);
  background: var(--warm-bg);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Center feature list in pricing cards */
.pricing-card .feature-list {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card .feature-list li::before {
  content: "♪";
  font-size: 1rem;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--warm-bg);
  transition: transform var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-header {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-sm);
  text-align: center;
}

.pricing-body {
  padding: var(--space-md);
  text-align: center;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.pricing-period {
  color: var(--gray-600);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--warm-bg);
}

.faq-question {
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--primary);
  font-size: 1.1rem;
}

.faq-answer {
  color: var(--gray-600);
  line-height: 1.6;
}

/* About/Piano Page Responsive */
@media (min-width: 768px) {
  .about-hero {
    padding: var(--space-2xl) 0;
  }

  .about-section {
    padding: var(--space-2xl) 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-box {
    margin-top: 0;
    padding: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================
   Teachers Carousel Section
   ============================================= */

.teachers-section {
  padding: var(--space-xl) 0;
  background: var(--white);
}

.teachers-section .section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.teachers-section .section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-xs);
  color: var(--gray-900);
}

.teachers-section .section-header p {
  color: var(--gray-500);
  font-size: 1rem;
}

.teachers-scroll {
  overflow-x: auto;
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  margin: 0 -20px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--gray-50);
}

.teachers-scroll::-webkit-scrollbar {
  height: 8px;
}

.teachers-scroll::-webkit-scrollbar-track {
  background: var(--gray-50);
  border-radius: 4px;
}

.teachers-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.teachers-track {
  display: flex;
  gap: var(--space-md);
  padding: 0 var(--space-sm);
}

/* Teachers section teacher card (more specific) */
.teachers-section .teacher-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  min-width: 280px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
  border: 1px solid var(--gray-100);
}

.teachers-section .teacher-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.teacher-header {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  align-items: center;
}

.teacher-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary-light);
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-basics {
  flex: 1;
}

.teacher-location {
  font-size: 0.875rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.location-icon {
  width: 12px;
  height: 12px;
}

.teacher-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
  color: var(--primary);
}

.verified-badge {
  background: #10b981;
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: auto;
  font-weight: 600;
  text-transform: uppercase;
}

.show-more {
  text-align: center;
  margin-top: var(--space-lg);
}

.show-more a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition-fast);
}

.show-more a:hover {
  gap: 12px;
}

@media (min-width: 1024px) {
  .teachers-scroll {
    padding: var(--space-md) 0 var(--space-lg);
    margin: 0;
  }

  .teachers-track {
    padding: 0;
  }
}

/* =============================================
   Mobile Sticky CTA
   ============================================= */

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: var(--space-sm);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

.mobile-sticky-cta .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 80px;
  }

  .sticky-cta {
    display: none !important;
  }
}

/* =============================================
   Dropdown Arrow
   ============================================= */

.dropdown-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid var(--gray-600);
  border-bottom: 2px solid var(--gray-600);
  transform: rotate(45deg);
  transition: transform 0.3s ease, margin 0.3s ease;
  margin-bottom: 4px;
}

.navbar-item.dropdown:hover .dropdown-arrow {
  border-color: var(--primary);
}

.navbar-item.dropdown[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(-135deg);
  margin-bottom: -2px;
  border-color: var(--primary);
}

/* =============================================
   Mobile Menu Enhancements
   ============================================= */

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 120px;
  overflow-y: auto;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

.mobile-dropdown-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 0.5rem;
}

.mobile-nav-link[aria-expanded="true"] .mobile-dropdown-arrow {
  transform: rotate(-135deg);
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: var(--gray-50);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  display: block;
}

.mobile-submenu[hidden] {
  display: none;
}

.mobile-submenu.open {
  max-height: 2000px;
  border-bottom: 1px solid var(--gray-100);
  display: block;
}

.mobile-nav-link.submenu-link {
  padding-left: 3rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.mobile-menu-bottom {
  padding-top: 2rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

button.mobile-nav-link.dropdown-toggle {
  padding-left: 0;
  text-align: left;
  justify-content: space-between;
  font-family: inherit;
}

/* =============================================
   END OF STYLESHEET
   ============================================= */

/* =============================================
   LEAD CAPTURE FORM STYLES
   ============================================= */

/* Modal Overlay */
.lead-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: var(--space-md);
}

.lead-form-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.lead-form-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
  -webkit-overflow-scrolling: touch;
}

.lead-form-modal.active .lead-form-container {
  transform: scale(1) translateY(0);
}

/* Form Header */
.lead-form-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.lead-form-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.lead-form-close {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
  color: var(--gray-500);
}

.lead-form-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.lead-form-close svg {
  width: 20px;
  height: 20px;
}

/* Progress Indicator */
.lead-form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--gray-50);
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all var(--transition-fast);
}

.progress-dot.active {
  background: var(--secondary);
  transform: scale(1.2);
}

.progress-dot.completed {
  background: var(--accent);
}

.progress-line {
  width: 40px;
  height: 2px;
  background: var(--gray-200);
}

.progress-line.completed {
  background: var(--accent);
}

/* Form Body */
.lead-form-body {
  padding: var(--space-md);
}

/* Form Steps */
.lead-form-step {
  display: none;
}

.lead-form-step.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Location Badge (appears after ZIP lookup) */
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--gray-50);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-top: var(--space-xs);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.location-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.location-badge-icon {
  color: var(--primary);
  width: 14px;
  height: 14px;
}

/* Teacher Availability Card */
.teacher-available-card {
  background: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.teacher-available-card svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.teacher-available-card p {
  margin: 0;
  font-weight: 500;
}

.teacher-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.teacher-card-icon svg {
  width: 24px;
  height: 24px;
}

/* Teacher Available Card - In Service Area (default state) */
.teacher-available-card.in-area {
  background: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Teacher Available Card - Out of Service Area (online lessons) */
.teacher-available-card.out-of-area {
  background: #2563eb;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Offer Banner */
.offer-banner {
  background: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--white);
  padding: 0.75rem var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Icon Select (Lesson Format) */
.icon-select-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.icon-select-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 90px;
}

.icon-select-btn:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}

.icon-select-btn.selected {
  border-color: var(--primary);
  border-width: 2px;
  background: rgba(92, 42, 46, 0.12);
  box-shadow: 0 0 0 3px rgba(92, 42, 46, 0.15);
}

.icon-select-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.icon-select-btn svg {
  width: 32px;
  height: 32px;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.icon-select-btn.selected svg {
  color: var(--primary);
}

.icon-select-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}

.icon-select-btn.selected .icon-select-label {
  color: var(--primary);
  font-weight: 600;
}

/* Form Fields */
.lead-form-group {
  margin-bottom: var(--space-md);
}

.lead-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.lead-form-label .required {
  color: var(--primary);
}

.lead-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

/* Error States */
.lead-form-group.has-error .form-input,
.lead-form-group.has-error .form-select,
.lead-form-group.has-error .form-textarea {
  border-color: #DC2626;
}

.lead-form-error {
  color: #DC2626;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.lead-form-group.has-error .lead-form-error {
  display: block;
}

/* Trust Badges */
.lead-form-trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-100);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--gray-600);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Form Footer / Buttons */
.lead-form-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: var(--space-sm);
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.lead-form-footer .btn {
  flex: 1;
}

.lead-form-footer .btn-back {
  flex: 0 0 auto;
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.lead-form-footer .btn-back:hover {
  background: var(--gray-50);
  color: var(--gray-800);
}

/* Success State */
.lead-form-success {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.lead-form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.lead-form-success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

.lead-form-success h3 {
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.lead-form-success p {
  color: var(--gray-600);
  margin-bottom: var(--space-sm);
}

.lead-form-success .phone-link {
  color: var(--primary);
  font-weight: 600;
}

/* Loading State */
.lead-form-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: var(--radius-xl);
}

.lead-form-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .lead-form-modal {
    padding: 0;
    align-items: flex-end;
  }

  .lead-form-container {
    max-width: none;
    max-height: 95vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .lead-form-header {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .lead-form-footer {
    border-radius: 0;
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0));
  }

  .lead-form-row {
    grid-template-columns: 1fr;
  }

  .icon-select-group {
    grid-template-columns: 1fr;
  }

  .icon-select-btn {
    flex-direction: row;
    min-height: 60px;
    padding: var(--space-sm) var(--space-md);
  }

  .icon-select-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* Prevent body scroll when modal is open */
body.lead-form-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* =============================================
   END LEAD CAPTURE FORM STYLES
   ============================================= */

/* =============================================
   ULTRA-WIDE SCREEN SUPPORT (1920px+)
   ============================================= */

@media (min-width: 1920px) {

  /* Override the 100vw cap to allow box-shadow gutters */
  html,
  body {
    max-width: none;
  }

  body {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 9999px 0 0 9999px var(--secondary-dark), -9999px 0 0 9999px var(--secondary-dark);
  }
}