/**
 * REFINED_MOVEMENT - Homepage Styles
 * Luxury minimalist design matching brand guidelines
 */

/* ========================================
   HERO SECTION (Coming Soon Style)
   ======================================== */

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

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

.hero-background picture,
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.75) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  max-width: 90%;
  min-height: 520px;
  background: rgba(26, 29, 35, 0.68);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxl) 70px;
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.hero-logo 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-xs);
  letter-spacing: -0.01em;
  line-height: var(--line-height-tight);  /* 1.1 */
  /* Logo displays as-is: Refined_Movement (never uppercase) */
}

.hero-logo .location {
  font-family: var(--font-location);
  font-size: var(--font-size-body-large);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  opacity: 0.95;
  display: block;
  line-height: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--color-white);
  margin: 0 0 var(--space-lg);
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  hyphens: none;
}

.hero-tagline {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 20px;  /* Intentional hero tagline size */
  color: #C9A876;
  font-weight: 400;
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-cta {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--font-size-medium);
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
}

/* ========================================
   INTRO SECTION
   ======================================== */

.homepage-intro {
  background: var(--bg-primary);
  padding: var(--space-xxxl) var(--container-padding);
}

.intro-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.intro-text {
  padding-right: var(--space-xl);
}

.intro-eyebrow {
  font-family: var(--font-location);
  font-size: var(--font-size-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: block;
  margin-bottom: var(--space-md);
}

.intro-text 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(--text-primary);
  margin-bottom: var(--space-lg);
}

.intro-text p {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.intro-image {
  position: relative;
  overflow: hidden;
}

.intro-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ========================================
   CLASS HIGHLIGHTS SECTION
   ======================================== */

.homepage-classes {
  background: var(--bg-secondary);
  padding: var(--space-xxxl) var(--container-padding);
}

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

.section-header 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(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--text-secondary);
}

.class-cards {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: var(--space-xxl) 0;
}

.class-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.class-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
}

.class-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.class-card:hover .class-card-image img {
  transform: scale(1.08);
}

.class-card-content {
  flex: 1;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.class-card-content 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(--text-primary);
  margin: 0;
}

.class-card-content p {
  font-family: var(--font-body);
  font-size: var(--font-size-medium);
  line-height: var(--line-height-body);
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.class-duration {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  font-weight: 500;
  margin: var(--space-xs) 0 0;
}

.class-duration::before {
  content: "⏱";
  font-size: 1rem;
  opacity: 0.7;
}

.class-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--font-size-small);
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
  padding-top: var(--space-xs);
}

.class-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.class-link:hover {
  color: var(--text-primary);
  gap: var(--space-sm);
}

.class-link:hover::after {
  transform: translateX(var(--space-xs));  /* 8px subtle shift */
}

.section-cta {
  text-align: center;
  margin-top: var(--space-xxl);
  padding-bottom: var(--space-xxxl);
}

/* ========================================
   GALLERY SECTION - Swiper Carousel
   ======================================== */

.homepage-gallery {
  background: var(--bg-primary);
  padding: var(--space-xxxl) var(--container-padding);
}

.gallery-carousel {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 0 var(--space-xxl) 0;
  position: relative;
}

.gallery-carousel .swiper-slide {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
}

.gallery-carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.gallery-carousel .swiper-slide:hover img {
  transform: scale(1.05);
}

/* Swiper Navigation */
.gallery-carousel .swiper-button-prev,
.gallery-carousel .swiper-button-next {
  color: var(--accent-primary);
  width: var(--space-xl);
  height: var(--space-xl);
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.gallery-carousel .swiper-button-prev:hover,
.gallery-carousel .swiper-button-next:hover {
  background: var(--accent-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.gallery-carousel .swiper-button-prev::after,
.gallery-carousel .swiper-button-next::after {
  font-size: var(--font-size-body-large);
  font-weight: bold;
}

/* Swiper Pagination */
.gallery-carousel .swiper-pagination {
  bottom: 0;
}

.gallery-carousel .swiper-pagination-bullet {
  background: var(--text-secondary);
  opacity: 0.5;
  width: var(--space-sm);
  height: var(--space-sm);
  transition: all var(--transition-base);
}

.gallery-carousel .swiper-pagination-bullet-active {
  background: var(--accent-primary);
  opacity: 1;
  width: 30px;
  border-radius: var(--radius-sm);
}

/* ========================================
   FEATURED OFFER SECTION
   ======================================== */

.homepage-offer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-xxxl) var(--container-padding);
  text-align: center;
}

.offer-content {
  max-width: 700px;
  margin: 0 auto;
}

.offer-eyebrow {
  font-family: var(--font-location);
  font-size: var(--font-size-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: block;
  margin-bottom: var(--space-md);
}

.offer-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);
}

.offer-content p {
  font-family: var(--font-body);
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body);
  margin-bottom: var(--space-xl);
}

.offer-smallprint {
  margin-top: var(--space-lg);
  font-size: var(--font-size-small);
  opacity: 0.8;
  margin-bottom: 0;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.homepage-testimonials {
  background: var(--bg-primary);
  padding: var(--space-xxxl) var(--container-padding);
}

.testimonials-grid {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.testimonial-card p {
  font-family: var(--font-body);
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-body);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card cite {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  font-style: normal;
}

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

.homepage-final-cta {
  background: var(--bg-secondary);
  padding: var(--space-xxxl) var(--container-padding);
  text-align: center;
}

.final-cta-content {
  max-width: 700px;
  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(--text-primary);
  margin-bottom: var(--space-lg);
}

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

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

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1023px) {
  .intro-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .intro-text {
    padding-right: 0;
  }

  .class-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .class-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .class-cards {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  /* Uses CSS variable - no override needed */
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-overlay {
    width: 640px;
    max-width: 88%;
    min-height: 480px;
    padding: 50px var(--space-xl);
  }

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

  .hero-logo h1 {
    font-size: 36px;  /* Intentional hero display size */
  }

  /* Uses CSS variable - no override needed */

  .hero-title {
    font-size: 32px;  /* Intentional hero display size */
    margin-bottom: var(--space-md);
    line-height: 1.2;
  }

  /* Uses CSS variable - no override needed for hero-tagline (intentionally 20px) */

  /* Uses CSS variable - no override needed */
}

@media (max-width: 767px) {
  .hero {
    min-height: calc(100vh - var(--header-height));
    align-items: flex-end;
  }

  .hero-overlay {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 92%;
    min-height: 384px;
    background: rgba(26, 29, 35, 0.68);
    padding-bottom: var(--space-lg);
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    padding: var(--space-xl) var(--space-lg) var(--space-md);
  }

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

  .hero-logo h1 {
    font-size: 24px;  /* Intentional hero display size */
  }

  .hero-logo .location {
    font-size: var(--font-size-tiny);
    letter-spacing: 0.3em;
  }

  .hero-title {
    font-size: 28px;  /* Intentional hero display size */
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
  }

  .hero-tagline {
    font-size: var(--font-size-medium);
    margin-bottom: var(--space-lg);
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 100%;
  }

  .hero-cta .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-medium);
    width: 100%;
  }

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

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

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

  .testimonial-card {
    padding: var(--space-lg);
  }

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

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

/* ========================================
   SCHEDULE SECTION
   ======================================== */

.schedule-section {
  background: linear-gradient(180deg, #f8f6f3 0%, var(--bg-secondary) 100%);
  padding: var(--space-xxxl) var(--container-padding);
  position: relative;
}

.schedule-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
  opacity: 0.3;
}

.section-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section-title {
  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(--text-primary);
  margin-bottom: var(--space-md);
}

/* Desktop Table */
.schedule-table-wrapper {
  overflow-x: auto;
  margin: var(--space-xxl) 0;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  font-family: var(--font-heading);
}

.schedule-table thead {
  background: var(--color-charcoal);
}

.schedule-table th {
  padding: var(--space-md) var(--space-sm);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--font-size-small);
  letter-spacing: 0.05em;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.schedule-table th:last-child {
  border-right: none;
}

.schedule-table th.time-column {
  text-align: left;
  padding-left: var(--space-lg);
}

.schedule-table td {
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  min-height: 60px;
  vertical-align: middle;
}

.schedule-table td:last-child {
  border-right: none;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.time-cell {
  font-weight: 700;
  background: var(--bg-secondary);
  text-align: left;
  padding-left: var(--space-lg);
  font-size: var(--font-size-small);
}

/* Class Cells with Color Coding */
.class-cell {
  font-weight: 700;
  font-size: var(--font-size-tiny);
  letter-spacing: 0.02em;
  padding: var(--space-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
}

.class-cell:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Color Coding - Blue family */
.class-classic,
.class-reformer,
.class-yin {
  background: #A3D5FF;
  color: #1A1D23;
}

/* Color Coding - Coral/Red family */
.class-flow,
.class-refined {
  background: #FFB4A2;
  color: #1A1D23;
}

/* Color Coding - Yellow */
.class-mama {
  background: #FFF9A3;
  color: #1A1D23;
}

/* Mobile View */
.schedule-mobile {
  display: none;
}

.schedule-note {
  margin-top: var(--space-xl);
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--color-charcoal);
  opacity: 0.7;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .schedule-table {
    font-size: var(--font-size-tiny);
  }

  .schedule-table th,
  .schedule-table td {
    padding: var(--space-sm) var(--space-xs);
  }

  .class-cell {
    font-size: var(--font-size-tiny);
    padding: var(--space-xs);
  }
}

@media (max-width: 900px) {
  .schedule-table-wrapper {
    display: none;
  }

  .schedule-mobile {
    display: block;
  }

  /* Day Selector */
  .day-selector {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .day-selector::-webkit-scrollbar {
    height: 4px;
  }

  .day-selector::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 2px;
  }

  .day-btn {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--accent-primary);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-small);
    border-radius: 24px;  /* Intentional pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .day-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
  }

  .day-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
  }

  /* Schedule List */
  .schedule-day {
    display: none;
  }

  .schedule-day.active {
    display: block;
  }

  .schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .schedule-time {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-body-large);
    color: var(--text-primary);
  }

  .schedule-class {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-small);
    letter-spacing: 0.02em;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .homepage-intro,
  .homepage-classes,
  .schedule-section,
  .homepage-gallery,
  .homepage-offer,
  .homepage-testimonials,
  .homepage-final-cta {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
  }

  .hero { animation-delay: 0.1s; }
  .homepage-intro { animation-delay: 0.2s; }
  .homepage-classes { animation-delay: 0.3s; }
  .schedule-section { animation-delay: 0.35s; }
  .homepage-gallery { animation-delay: 0.4s; }
  .homepage-offer { animation-delay: 0.5s; }
  .homepage-testimonials { animation-delay: 0.6s; }
  .homepage-final-cta { animation-delay: 0.7s; }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(var(--space-md));
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
