/* ══════════════════════════════════════════════════════════════
   RESPONSIVE.CSS — Media Queries (480, 768, 1024, 1280px)
   Mobile-first approach — Crystal Waters Design System
   ══════════════════════════════════════════════════════════════ */

/* ═══ BASE MOBILE (< 480px) ═══ */

.hero .hero-layout {
  flex-direction: column;
  text-align: center;
  gap: 32px;
  padding: 32px 0 24px;
  min-height: auto;
}

.hero__content {
  flex: none;
  max-width: 100%;
}

.hero__subtitle {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  justify-content: center;
  flex-wrap: wrap;
}

.hero__visual {
  flex: none;
  max-width: 100%;
  min-height: 240px;
}

.orbital {
  width: 180px;
  height: 180px;
}

.orbital__outer {
  width: 180px;
  height: 180px;
}

.orbital__inner {
  width: 110px;
  height: 110px;
}

.orbital__number {
  font-size: 22px;
}

.stat-pill {
  padding: 6px 10px;
  min-width: 70px;
}

.stat-pill__number {
  font-size: 14px;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stat-card + .stat-card {
  border-left: none;
}

.stat-card:nth-child(odd) {
  border-right: 1px solid var(--light-gray);
}

.stat-card:nth-child(n+3) {
  border-top: 1px solid var(--light-gray);
}

/* Grids mobile */
.grid--4,
.grid--3,
.grid--2 {
  grid-template-columns: 1fr;
}

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

/* Two-col stacks */
.two-col,
.two-col--60-40,
.two-col--40-60 {
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Footer */
.footer-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer-bottom {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

/* Navigation */
.main-nav {
  display: none;
}

.header-actions .header-cta {
  display: none;
}

.hamburger {
  display: flex;
}

/* Carousel */
.carousel__slide {
  flex: 0 0 85%;
  min-width: 0;
}

.carousel__btn {
  display: none;
}

.carousel__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel__slide {
  scroll-snap-align: start;
}

/* Section padding */
.section {
  padding: 48px 0;
}

/* Table responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ═══ SMALL PHONES (≥ 480px) ═══ */
@media (min-width: 480px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stat-card:nth-child(odd) {
    border-right: none;
  }

  .stat-card:nth-child(n+3) {
    border-top: none;
  }

  .stat-card + .stat-card {
    border-left: 1px solid var(--light-gray);
  }

  .stat-card:nth-child(4) {
    border-top: 1px solid var(--light-gray);
    border-left: none;
  }

  .stat-card:nth-child(5),
  .stat-card:nth-child(6) {
    border-top: 1px solid var(--light-gray);
  }
}

/* ═══ TABLET (≥ 768px) ═══ */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .main-nav {
    display: flex;
  }

  .header-actions .header-cta {
    display: inline;
  }

  .hero .hero-layout {
    flex-direction: row;
    text-align: left;
    gap: 48px;
    padding: 60px 0 40px;
    min-height: 480px;
  }

  .hero__content {
    flex: 0 0 55%;
    max-width: 55%;
  }

  .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__visual {
    flex: 0 0 45%;
    max-width: 45%;
    min-height: 320px;
  }

  .orbital {
    width: 220px;
    height: 220px;
  }

  .orbital__outer {
    width: 220px;
    height: 220px;
  }

  .orbital__inner {
    width: 140px;
    height: 140px;
  }

  .orbital__number {
    font-size: 26px;
  }

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

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

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

  .stats-row {
    grid-template-columns: repeat(6, 1fr);
  }

  .stat-card:nth-child(n) {
    border-top: none;
    border-left: none;
  }

  .stat-card + .stat-card {
    border-left: 1px solid var(--light-gray);
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .two-col--60-40 {
    grid-template-columns: 3fr 2fr;
  }

  .two-col--40-60 {
    grid-template-columns: 2fr 3fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: row;
  }

  .section {
    padding: 60px 0;
  }

  .carousel__slide {
    flex: 0 0 calc(50% - 12px);
  }

  .carousel__btn {
    display: flex;
  }
}

/* ═══ DESKTOP (≥ 1024px) ═══ */
@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
  }

  .section {
    padding: var(--section-padding);
  }

  .carousel__slide {
    flex: 0 0 calc(25% - 18px);
  }
}

/* ═══ WIDE DESKTOP (≥ 1280px) ═══ */
@media (min-width: 1280px) {
  .container {
    padding: 0 48px;
  }
}
