/* ============================================================
   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;
  }
}


/* ============================================================
   AirTestimonialsSection — "What clients are saying".

   Layout: header (badge rail + heading + intro row) + two card columns.
   ============================================================ */

.air-testimonials { background: var(--accent); }

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

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

@media (max-width: 767px) {
  .air-testimonials.hp-section {
    padding-block: 3rem;   /* was inherited 4rem */
  }
}

/* Header and cards are one logical group; this stack owns their 64px rhythm
   while the outer container keeps the rail boundary. */
.air-testimonials__content {
  display:        flex;
  flex-direction: column;
  gap:            4rem;   /* 64px between header and cards */
}


/* Header uses the shared .section-header convention (section.css).
   Heading→intro-row and body→CTA gaps are larger on desktop only; below
   992px they fall back to the 36px from the shared `--gap-36` class and
   `.section-intro-row` defaults. Scoping these to min-width keeps the
   desktop values from leaking into the tablet/mobile breakpoints. */
.air-testimonials__header-text {
  width: 100%;
}

@media (min-width: 992px) {  /* 112px heading→intro row */
  .air-testimonials .section-intro-row { gap: 3rem; }   /* 48px copy→CTA */
}


/* ---- Cards row -------------------------------------------- */
/* Cards are the shared <CaseStudySlide> primitive (size="lg"). They expand to
   fill the row and equalize height on their own — no card overrides needed. */

.air-testimonials__cards {
  display: flex;
  gap:     var(--spacing-3);   /* 12px */
}


/* ---- Carousel (tablet & mobile) ---------------------------
   Below 992px the two-up row is replaced by the Carousel primitive.
   The section background is --accent, so map the carousel's
   --background (used by its overlay gradient + nav button) to it.
   Slide width is left to the primitive's defaults: 582px on tablet
   (same as the VR pricing carousel) and 100% at ≤767px. */

.air-testimonials__carousel {
  display:      none;
  --background: var(--accent);
}


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

@media (max-width: 991px) {
  .air-testimonials__cards { display: none; }

  .air-testimonials__carousel { display: block; }

  /* The carousel is a full-width flex child of the section, so the section's
     own column gap spaces it from the header — NOT a margin, which would
     stack on top of that flex gap. Hold the gap at 64px where the carousel
     shows, overriding the hp-section responsive shrink (48px / 32px). */
  .air-testimonials { gap: 4rem; }   /* 64px header → carousel */
}


/* ============================================================
   Mobile (≤767px) — header/intro spacing & rhythm per Figma 4304:6127
   (the desktop heading→intro and intro-row gaps are too large here).
   ============================================================ */

@media (max-width: 767px) {
  /* Figma "Section title" gap: badge → 8px → intro block. (No shared
     equivalent — the shared .section-header is 16px here.) The heading→intro
     (36px via --gap-36) and body→CTA (36px via .section-intro-row) gaps are
     already correct from the shared rules, so they're not repeated here. */
  .air-testimonials .section-header { gap: var(--spacing-2); }   /* 8px */
}

