/**
 * REFINED_MOVEMENT - Classes Page Styles
 * Detailed class descriptions with alternating layouts
 */

/* ========================================
   HERO SECTION (Simple, not overlay box)
   ======================================== */

.classes-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}

.classes-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.classes-hero .hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.classes-hero .hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 29, 35, 0.35);  /* Reduced from 0.5 to 0.35 for premium feel */
  z-index: 1;
}

.classes-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: var(--space-xxl) var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.classes-hero .hero-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--font-size-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  display: block;
}

.classes-hero h1 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);  /* 700 */
  font-size: var(--font-size-h1);  /* Fluid 36px → 72px */
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-tight);  /* 1.1 */
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.classes-hero p {
  font-family: var(--font-body);
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body);
  color: var(--color-white);
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.classes-hero .btn {
  margin-top: var(--space-md);
}

/* Hero Quick Navigation */
.hero-quick-nav {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-xl) 0;
  flex-wrap: wrap;
  max-width: 100%;
}

.quick-nav-link {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.15);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.quick-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ========================================
   CLASS DETAIL SECTIONS
   ======================================== */

.class-detail {
  padding: var(--space-xxxl) 0;
}

.class-detail[data-layout="image-left"] {
  background-color: #F5F3ED;
}

.class-detail[data-layout="image-right"] {
  background-color: #E8E4D8;
}

.class-detail-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxxl);
  align-items: center;
}

.class-detail[data-layout="image-right"] .class-detail-container {
  direction: rtl;
}

.class-detail[data-layout="image-right"] .class-detail-content {
  direction: ltr;
}

.class-detail-image {
  width: 100%;
  height: 100%;
  min-height: 600px;
}

.class-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.class-detail-content {
  padding: var(--space-lg);
}

.class-label {
  font-family: var(--font-heading);
  font-size: var(--font-size-tiny);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  display: block;
}

.class-detail h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: var(--line-height-heading);
  color: var(--color-charcoal);
  margin-bottom: var(--space-sm);
}

.class-subheading {
  font-family: var(--font-body);
  font-size: var(--font-size-body-large);
  font-weight: 400;
  color: var(--color-charcoal);
  opacity: 0.7;
  margin-bottom: var(--space-xl);
}

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

.class-description p {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  line-height: var(--line-height-comfortable);
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.class-description p:last-child {
  margin-bottom: 0;
}

.class-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.info-label {
  font-family: var(--font-heading);
  font-size: var(--font-size-tiny);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  opacity: 0.6;
}

.info-value {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  font-weight: 500;
  color: var(--color-charcoal);
}

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

.class-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.class-features li {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  color: var(--color-charcoal);
  padding-left: var(--space-lg);
  position: relative;
}

.class-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 600;
}

.class-important {
  background-color: rgba(201, 168, 118, 0.15);
  border-left: 3px solid var(--color-gold);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  line-height: var(--line-height-body);
  color: var(--color-charcoal);
}

/* ========================================
   PRIVATE SESSIONS SECTION
   ======================================== */

.private-sessions {
  background-color: #F5F3ED;
  padding: var(--space-xxxl) 0;
}

.private-sessions-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xxxl);
  align-items: center;
}

.private-sessions-image {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.private-sessions-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.private-sessions-content {
  padding: var(--space-lg);
}

.private-sessions-content h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: var(--line-height-heading);
  color: var(--color-charcoal);
  margin-bottom: var(--space-lg);
}

.private-sessions-content .lead {
  font-family: var(--font-body);
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-comfortable);
  color: var(--color-charcoal);
  margin-bottom: var(--space-xl);
}

.private-features h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.private-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl) 0;
}

.private-features li {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  line-height: var(--line-height-relaxed);
  color: var(--color-charcoal);
  padding-left: var(--space-lg);
  position: relative;
  margin-bottom: var(--space-sm);
}

.private-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 600;
}

.private-pricing {
  font-family: var(--font-heading);
  font-size: 24px;  /* Intentional pricing display size */
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

/* ========================================
   WHAT TO EXPECT SECTION
   ======================================== */

.what-to-expect {
  background-color: var(--color-white);
  padding: var(--space-xxxl) var(--space-lg);
}

.what-to-expect .section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xxxl) auto;
}

.what-to-expect h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: var(--line-height-heading);
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.what-to-expect .section-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-body-large);
  color: var(--color-charcoal);
  opacity: 0.7;
}

.expect-steps {
  max-width: 1100px;
  margin: 0 auto var(--space-xxxl) auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.expect-step {
  text-align: center;
  padding: var(--space-lg);
}

.expect-icon {
  width: var(--space-xxl);
  height: var(--space-xxl);
  margin: 0 auto var(--space-lg) auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-linen);
  border-radius: 50%;
}

.expect-icon svg {
  width: var(--space-lg);
  height: var(--space-lg);
  stroke: var(--color-gold);
}

.expect-step h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.expect-step p {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  line-height: var(--line-height-body);
  color: var(--color-charcoal);
  opacity: 0.8;
}

.what-to-bring {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xl);
  background-color: var(--color-linen);
  border-radius: var(--radius-sm);
  text-align: center;
}

.what-to-bring h3 {
  font-family: var(--font-display);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  color: var(--color-charcoal);
  margin-bottom: var(--space-lg);
}

.what-to-bring ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.what-to-bring li {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  line-height: 2;
  color: var(--color-charcoal);
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */

.classes-final-cta {
  background: linear-gradient(135deg, #1A1D23 0%, #3D3D3D 100%);
  padding: var(--space-xxxl) var(--space-lg);
  text-align: center;
}

.final-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.final-cta-content h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: var(--line-height-heading);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.final-cta-content p {
  font-family: var(--font-body);
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body);
  color: var(--color-white);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

.final-cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary.on-dark {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary.on-dark:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .classes-hero {
    min-height: 60vh;
  }

  .classes-hero h1 {
    font-size: 42px;  /* Intentional hero display size */
  }

  /* Uses CSS variable - no override needed */

  .class-detail-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Reset RTL direction on tablet/mobile - always stack image first */
  .class-detail[data-layout="image-right"] .class-detail-container {
    direction: ltr;
  }

  /* Ensure image always comes first in DOM order on mobile/tablet */
  .class-detail-container {
    display: flex;
    flex-direction: column;
  }

  .class-detail-image {
    order: 1;
    min-height: 400px;
  }

  .class-detail-content {
    order: 2;
  }

  /* H2 uses fluid clamp() - no override needed */

  .class-info {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .class-features ul {
    grid-template-columns: 1fr;
  }

  .private-sessions-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .private-sessions-image {
    min-height: 350px;
  }

  .expect-steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* H2 uses fluid clamp() - no override needed */
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  /* CRITICAL: Prevent all horizontal overflow */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .classes-hero {
    min-height: 50vh;
    width: 100%;
    overflow-x: hidden;
  }

  .classes-hero .hero-background {
    width: 100%;
  }

  .classes-hero .hero-background img {
    width: 100%;
    max-width: 100%;
  }

  .classes-hero h1 {
    font-size: 28px;  /* Intentional hero display size */
    line-height: 1.2;
    word-wrap: break-word;
  }

  .classes-hero p {
    font-size: var(--font-size-small);
    line-height: var(--line-height-body);
  }

  .classes-hero .hero-content {
    padding: var(--space-xl) var(--space-md);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .classes-hero .hero-eyebrow {
    font-size: var(--font-size-tiny);
  }

  /* Compact horizontal scroll navigation */
  .hero-quick-nav {
    margin: var(--space-md) -16px var(--space-lg) -16px;
    padding: 0 var(--space-md);
    gap: var(--space-xs);
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hero-quick-nav::-webkit-scrollbar {
    display: none;
  }

  .quick-nav-link {
    font-size: var(--font-size-tiny);
    padding: var(--space-xs) 14px;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
  }

  .classes-hero .btn {
    width: 100%;
    max-width: 100%;
    font-size: var(--font-size-medium);
    padding: 14px var(--space-md);
  }

  .class-detail {
    padding: var(--space-xl) 0;
    width: 100%;
    overflow-x: hidden;
  }

  .class-detail-container {
    padding: 0 var(--space-md);
    gap: var(--space-lg);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Ensure consistent order on mobile: image → content → button */
  .class-detail-image {
    order: 1;
    min-height: 300px;
    width: 100%;
    max-width: 100%;
  }

  .class-detail-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  .class-detail-content {
    order: 2;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* H2 uses fluid clamp() - no override needed */
  .class-detail h2 {
    word-wrap: break-word;
  }

  /* Uses CSS variable - no override needed */

  .class-description p {
    font-size: var(--font-size-small);
    line-height: var(--line-height-body);
  }

  .class-info {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-md);
    width: 100%;
    box-sizing: border-box;
  }

  .class-features ul {
    grid-template-columns: 1fr;
  }

  .class-detail .btn {
    width: 100%;
    max-width: 100%;
  }

  .private-sessions {
    padding: var(--space-xl) 0;
    width: 100%;
    overflow-x: hidden;
  }

  .private-sessions-container {
    padding: 0 var(--space-md);
    gap: var(--space-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .private-sessions-content {
    padding: 0;
    width: 100%;
  }

  /* H2 uses fluid clamp() - no override needed */
  .private-sessions-content h2 {
    word-wrap: break-word;
  }

  /* Uses CSS variable - no override needed */

  .private-sessions-image {
    min-height: 300px;
    width: 100%;
    max-width: 100%;
  }

  .private-sessions-image img {
    width: 100%;
    max-width: 100%;
  }

  .what-to-expect {
    padding: var(--space-xl) var(--space-md);
    width: 100%;
    overflow-x: hidden;
  }

  /* H2 uses fluid clamp() - no override needed */
  .what-to-expect h2 {
    word-wrap: break-word;
  }

  /* Uses CSS variable - no override needed */

  .expect-steps {
    gap: var(--space-xl);
    width: 100%;
  }

  .what-to-bring {
    padding: var(--space-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* H3 uses fluid clamp() - no override needed */

  .what-to-bring li {
    font-size: var(--font-size-small);
  }

  .classes-final-cta {
    padding: var(--space-xl) var(--space-md);
    width: 100%;
    overflow-x: hidden;
  }

  .final-cta-content {
    width: 100%;
    max-width: 100%;
  }

  /* H2 uses fluid clamp() - no override needed */
  .final-cta-content h2 {
    word-wrap: break-word;
  }

  /* Uses CSS variable - no override needed */

  .final-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .final-cta-buttons .btn {
    width: 100%;
    max-width: 100%;
  }

  /* Schedule section mobile fixes */
  .schedule-section {
    width: 100%;
    overflow-x: hidden;
  }

  .section-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
