/* ============================================================
   Container — shared responsive layout constraint
   Provides 1024px max content width with responsive side padding.
   Import this in any component that uses the .container class.
   ============================================================ */

.container {
  position:   relative;
  width:      100%;
  max-width:  calc(1024px + 160px); /* 1024px content + 80px × 2 */
  padding:    0 80px;
  margin:     0 auto;
  box-sizing: border-box;
}

/* Tablet (≤991px): 60px sides */
@media (max-width: 991px) {
  .container {
    padding: 0 60px;
  }
}

/* Landscape mobile (≤767px): 2rem sides */
@media (max-width: 767px) {
  .container {
    padding: 0 2rem;
  }
}



/* ============================================================
   Wide container — 1360px content + 48px side padding
   Used for full-bleed section content blocks (slider, big cards)
   that need to be wider than the standard 1024px text container.
   ============================================================ */

.container-wide {
  width:      100%;
  max-width:  calc(1384px + 96px);   /* 1384px content + 48px × 2 */
  padding:    0 3rem;                /* 48px sides */
  margin:     0 auto;
  box-sizing: border-box;
}

/* Tablet (≤991px): 16px less than .container (60px → 44px) */
@media (max-width: 991px) {
  .container-wide {
    padding: 0 44px;
  }
}

/* Landscape mobile (≤767px): 16px less than .container (2rem → 1rem) */
@media (max-width: 767px) {
  .container-wide {
    padding: 0 1rem;
  }
}


/* ============================================================
   AirHowItWorksSection — "Try. Train. Launch." 3-step section
   ============================================================ */

.air-hiw {
  background: var(--background);
}

.air-hiw.hp-section {
  padding-block: 6rem;   /* AIR page spacing trim: was inherited 8rem */
}

@media (max-width: 991px) {
  .air-hiw.hp-section {
    padding-block: 4.5rem;   /* was inherited 6rem */
  }
}

/* Header and steps are one logical group; this stack owns their 64px rhythm.
   .hp-rail stays bounded by the outer container. */
.air-hiw__content {
  display:        flex;
  flex-direction: column;
  gap:            4rem;   /* 64px */
}


/* Header uses the shared .section-header convention (section.css). The heading
   spans full width via `section-header__text--wide`; the body keeps the readable
   measure automatically (section.css owns that cap). */


/* ---- Steps row -------------------------------------------- */

.air-hiw__steps {
  display:     flex;
  flex-wrap:   nowrap;
  align-items: stretch;
  gap:         var(--spacing-3);   /* 12px between cards and arrows */
  width:       100%;
}

/* Arrow between cards (a sibling, not nested in a card slot) */
.air-hiw__arrow {
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  width:           16px;
  color:           var(--color-brand-beige-300);
}


/* ---- Individual step card --------------------------------- */

.air-hiw__step {
  display:         flex;
  flex-direction:  column;
  justify-content: space-between;
  flex:            1;
  min-width:       0;
  padding:         1.75rem;    /* 28px */
  border-radius:   12px;
  border:          0.5px solid var(--border);
  overflow:        hidden;
  box-sizing:      border-box;
  gap: 1.5rem;
}

/* Card 1 — warm bg, amber border */
.air-hiw__step--warm {
  background: var(--background);
  border-color: var(--color-brand-beige-400);   /* slightly darker than --border */
}

/* Card 2 — secondary bg */
.air-hiw__step--secondary {
  background: var(--secondary);
}

/* Card 3 — card (white) bg */
.air-hiw__step--card {
  background: var(--card);
}


/* ---- Step top (badge + copy) ------------------------------ */

.air-hiw__step-top {
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;    /* 24px */
}


/* ---- Step number badge ------------------------------------ */

.air-hiw__step-badge {
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
  width:           60px;
  height:          60px;
  border-radius:   var(--radius-full);
  border:          0.5px solid var(--border);
  font-size:       var(--font-size-xl);
  line-height:     var(--line-height-xl);
  font-weight:     var(--font-weight-regular);
  color:           var(--primary);
}

.air-hiw__step-badge--warm {
  border-color: var(--color-brand-beige-400);
  background:   var(--background);
}

.air-hiw__step-badge--secondary {
  background: var(--secondary);
}

.air-hiw__step-badge--card {
  background: var(--card);
}


/* ---- Step copy -------------------------------------------- */

.air-hiw__step-copy {
  display:        flex;
  flex-direction: column;
  gap:            0.5rem;   /* 8px */
}

.air-hiw__step-title {
  margin:      0;
  font-size:   var(--font-size-xl);
  line-height: var(--line-height-xl);
  font-weight: var(--font-weight-bold);
  color:       var(--popover-foreground);
}

.air-hiw__step-body {
  margin:      0;
  font-size:   var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-regular);
  color:       var(--foreground);
}

.air-hiw__step-note {
  margin:      0;
  font-size:   var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-regular);
  color:       var(--muted-foreground);
}


/* ============================================================
   Tablet (≤991px)
   ============================================================ */

@media (max-width: 991px) {
  .air-hiw__steps {
    flex-direction: column;
    align-items:    stretch;
  }

  .air-hiw__step {
    flex:  none;
    width: 100%;
  }

  .air-hiw__arrow {
    display:   flex;
    align-self: center;
    width:     16px;
    height:    16px;
    transform: rotate(90deg);
  }
}


/* ============================================================
   Mobile (≤767px)
   ============================================================ */

@media (max-width: 767px) {
  .air-hiw.hp-section {
    padding: 3.375rem 0 3rem;   /* was 4.5rem 0 4rem */
  }

  .air-hiw .container {
    padding: 0 1rem;
  }

  .air-hiw .section-header {
    gap:        var(--spacing-6);
    width:      100%;
    padding:    0 1rem;
    box-sizing: border-box;
  }

  .air-hiw__step {
    flex:           none;
    width:          100%;
    gap:            3.5rem;
    padding:        1.75rem;
    border-radius:  12px;
    justify-content: flex-start;
  }

  .air-hiw__step-badge {
    width:       48px;
    height:      48px;
    font-size:   1.125rem;
    line-height: 1.75rem;
  }

  .air-hiw__step-title {
    font-size:   1.125rem;
    line-height: 1.75rem;
  }
}

