/* Responsive — mobile-first overrides */

/* ---- Small screens (default) ---- */

@media (max-width: 767px) {
  .hero {
    text-align: center;
    background-size: cover;
    background-position: center 30%;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

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

  .audience__cases {
    text-align: left;
  }

  .process__text {
    margin-inline: 0;
    max-width: none;
  }

  .service-item {
    gap: var(--space-md);
  }
}

/* Audience — stack cards below desktop (scroll-driven effect only at 1024+) */
@media (max-width: 1023px) {
  .audience__sticky-wrapper {
    height: auto;
    overflow: hidden;
  }

  .audience__sticky {
    position: relative;
    height: auto;
  }

  .audience__carousel {
    width: 100%;
  }

  .audience__track {
    flex-direction: column;
    overflow-x: visible;
    padding-right: 0;
  }

  .audience-card {
    min-width: 0;
    min-height: auto;
    padding: var(--space-lg);
  }

  .audience-card__topbar {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .audience-card__badge {
    white-space: normal;
  }

  .audience-card__body {
    flex-direction: column;
    align-items: flex-start;
  }

  .audience-card__img {
    width: 100%;
    height: 200px;
    align-self: stretch;
  }

  .audience__header-sub {
    font-size: 0.9375rem;
  }
}

@media (max-width: 767px) {
  .audience__header h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .audience-card__badge {
    font-size: 0.6rem;
  }

  .audience-card__img {
    height: 180px;
  }
}

/* ---- Tablet (768px+) — layout shifts, nav still collapsed ---- */

@media (min-width: 768px) {
  .hero {
    text-align: left;
  }

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

  .services__header {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .service-item {
    position: sticky;
    grid-template-columns: 1fr 240px;
    padding: var(--space-xl) var(--space-2xl);
  }

  .service-item__visual {
    display: block;
  }

  .service-item:nth-child(1) { top: 80px; z-index: 1; }
  .service-item:nth-child(2) { top: 96px; z-index: 2; }
  .service-item:nth-child(3) { top: 112px; z-index: 3; }
  .service-item:nth-child(4) { top: 128px; z-index: 4; }
  .service-item:nth-child(5) { top: 144px; z-index: 5; }
  .service-item:nth-child(6) { top: 160px; z-index: 6; }

  .audience__top {
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
  }

  .cta__inner {
    grid-template-columns: 1fr auto;
    text-align: left;
  }

  .cta__text {
    margin-inline: 0;
  }

  .cta__actions {
    flex-direction: column;
    justify-content: center;
  }

  .footer__top {
    grid-template-columns: 1.5fr auto 1fr;
  }
}

/* ---- Desktop (1024px+) ---- */

@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }

  .header__actions {
    display: flex;
  }

  .header__burger {
    display: none;
  }

  .hero {
    padding-top: 0;
    padding-bottom: 0;
  }

  .service-item {
    grid-template-columns: 1fr 300px;
    padding: var(--space-2xl) var(--space-3xl);
  }

  .service-item__title {
    font-size: clamp(1.3125rem, 2vw, 1.625rem);
  }

  .audience-card {
    min-width: 60%;
    min-height: 420px;
    padding: var(--space-2xl) var(--space-3xl);
    padding-top: 72px;
  }

}

/* ---- Wide (1200px+) ---- */

@media (min-width: 1200px) {
  .hero__title {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }
}
