/* ==========================================================================
   responsive.css — Breakpoints: ≤1024, ≤768, ≤480
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breakpoint: ≤1024px (Tablet landscape)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .navbar__nav {
    justify-content: flex-end;
  }

  .navbar__list {
    gap: 0;
  }

  .navbar__link {
    padding-inline: var(--space-2);
    font-size: var(--font-size-xs);
  }

  .steps {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--space-8);
  }

  .step {
    flex: 0 0 calc(50% - var(--space-4));
  }

  .step__connector {
    display: none;
  }

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

/* --------------------------------------------------------------------------
   Breakpoint: ≤768px (Tablet portrait / Mobile-first threshold)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Reduce section padding */
  .section {
    padding-block: var(--space-16);
  }

  /* Navbar: hide desktop nav, show hamburger */
  .navbar__nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    background-color: var(--color-bg);
    z-index: calc(var(--z-navbar) - 1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-24) var(--space-8) var(--space-8);
    animation: fadeIn var(--transition-base) ease forwards;
  }

  .navbar__nav.is-open {
    display: flex;
  }

  .navbar__list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
  }

  .navbar__list li {
    width: 100%;
    text-align: center;
  }

  .navbar__link {
    display: block;
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-lg);
  }

  .navbar__cta {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(var(--font-size-2xl), 7vw, var(--font-size-4xl));
  }

  .hero__subtitle {
    font-size: var(--font-size-base);
  }

  /* Carousel: smaller buttons on tablet/mobile */
  .hero__carousel-btn {
    width: 38px;
    height: 38px;
  }

  .hero__carousel-btn--prev { left: var(--space-4); }
  .hero__carousel-btn--next { right: var(--space-4); }

  .hero__carousel-btn svg {
    width: 16px;
    height: 16px;
  }

  .hero__carousel-dots {
    bottom: var(--space-12);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .break-lg {
    display: inline;
  }

  /* Section header */
  .section__title {
    font-size: var(--font-size-2xl);
  }

  /* Solutions: 1 col */
  .solutions__grid {
    grid-template-columns: 1fr;
  }

  /* Steps: 1 col */
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    flex: 0 0 auto;
    width: 100%;
    max-width: 380px;
  }

  /* Trust: 1 col */
  .trust__grid {
    grid-template-columns: 1fr;
  }

  /* Sectors: 2 col */
  .sectors__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cases: 1 col */
  .cases__grid {
    grid-template-columns: 1fr;
  }

  /* CTA block */
  .cta-block__inner {
    padding: var(--space-10) var(--space-6);
  }

  .cta-block__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .cta-block__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Contact */
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .contact__form-wrap {
    padding: var(--space-6);
  }

  /* Modal */
  .modal__box {
    padding: var(--space-6);
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__list {
    gap: var(--space-3);
  }
}

/* --------------------------------------------------------------------------
   Breakpoint: ≤480px (Small mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-4);
  }

  .section {
    padding-block: var(--space-12);
  }

  .hero__inner {
    padding-block: var(--space-24) var(--space-16);
  }

  .hero__title {
    font-size: var(--font-size-2xl);
  }

  .logo-text {
    font-size: var(--font-size-lg);
  }

  .solution-card {
    padding: var(--space-6);
  }

  .trust-item {
    padding: var(--space-6);
  }

  .case-card {
    padding: var(--space-6);
  }

  .step {
    max-width: 100%;
  }

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

  .sector-item__img {
    height: 140px;
  }

  .section__intro {
    padding: var(--space-4) var(--space-5);
  }

  .about__tagline {
    font-size: var(--font-size-base);
    padding: var(--space-3) var(--space-5);
  }

  .contact__form-wrap {
    padding: var(--space-5);
  }

  .footer__list {
    flex-direction: column;
    gap: var(--space-2);
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__tagline {
    max-width: 100%;
  }

  /* Trust: 1 col on small screens */
  .trust__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Reduced-motion preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
