/**
 * responsive.css — Mobile-first responsive overrides
 *
 * 1024px — Tablet landscape / small desktop
 *  768px — Tablet portrait
 *  480px — Mobile landscape / large phone
 *  375px — Mobile portrait (small)
 */

/* ── 1024px ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Nav: tighten spacing on small desktop */
  .nav-menu > li > a {
    padding-inline: var(--space-3);
    font-size: 0.8rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

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

  .footer-col--contact {
    grid-column: 1 / -1;
  }

  .intro-strip__statement {
    font-size: var(--text-3xl);
  }
}

/* ── 768px ───────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Navigation ── */
  .primary-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--nav-height));
    background: var(--color-secondary);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    padding: var(--space-6) var(--space-6) var(--space-12);
    z-index: var(--z-sticky);
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu > li > a {
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    width: 100%;
  }

  .nav-menu > li > a::after {
    display: none;
  }

  /* Mobile accordion submenu */
  .sub-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 var(--space-4);
    /* max-height controlled by JS */
  }

  .sub-menu li a {
    padding: var(--space-3) var(--space-2);
    border-left: none;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-border);
  }

  .sub-menu li a:hover {
    padding-left: var(--space-4);
  }

  .hamburger { display: flex; }
  .nav-cta   { display: none; }

  /* ── Hero ── */
  .hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__subheadline {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
  }

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

  /* ── Intro strip ── */
  .intro-strip__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .intro-strip__statement {
    font-size: var(--text-2xl);
  }

  /* ── Services grid: 2 cols on tablet ── */
  .services-grid,
  .services-grid--large {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  /* ── Stats: 2 cols ── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }

  /* ── Parallax feature ── */
  .parallax-feature {
    min-height: 480px;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  /* ── Contact page ── */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* ── Features grid ── */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Related services ── */
  .related-services {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Typography scale-down ── */
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

  .section-header h2 { font-size: var(--text-3xl); }
  .cta-banner__headline { font-size: var(--text-3xl); }
  .intro-strip__statement { font-size: var(--text-3xl); }
  .parallax-feature__title { font-size: var(--text-3xl); }
  .stat-number { font-size: var(--text-4xl); }
}

/* ── 480px ───────────────────────────────────────────────────── */
@media (max-width: 480px) {

  :root {
    --section-padding: clamp(3rem, 8vw, 5rem);
  }

  /* Nav */
  .language-switcher { display: none; }

  /* Hero */
  .hero__headline {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  /* Services: 1 col on small mobile */
  .services-grid,
  .services-grid--large {
    grid-template-columns: 1fr;
  }

  /* Stats: still 2 cols but tighter */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .stat-number { font-size: var(--text-4xl); }

  /* Features: 1 col */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Related: 1 col */
  .related-services {
    grid-template-columns: 1fr;
  }

  /* Products list: single column */
  .prose--products ul {
    columns: 1;
  }

  /* Buttons: full width */
  .btn--lg {
    width: 100%;
    justify-content: center;
  }

  /* Typography */
  h2 { font-size: var(--text-2xl); }
  .section-header h2 { font-size: var(--text-2xl); }
  .cta-banner__headline { font-size: var(--text-2xl); }
  .stat-number { font-size: var(--text-3xl); }
  .section-subheading { font-size: var(--text-2xl); }

  /* Footer */
  .footer-social {
    flex-wrap: wrap;
  }

  /* Contact */
  .contact-detail-item {
    align-items: flex-start;
  }
}

/* ── 375px ───────────────────────────────────────────────────── */
@media (max-width: 375px) {
  .container {
    padding-inline: var(--space-4);
  }

  .hero__scroll-indicator {
    display: none;
  }

  .service-card__inner {
    padding: var(--space-5);
  }
}
