/* ═══════════════════════════════════════════
   Responsive — Mobile First
   ═══════════════════════════════════════════ */

/* ── sm: 640px ── */
@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Third why-us card spans full on 2-col */
  .whyus__grid .card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

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


/* ── md: 768px ── */
@media (min-width: 768px) {
  .section {
    padding: var(--space-24) 0;
  }

  .section__header {
    margin-bottom: var(--space-20);
  }

  h2 {
    font-size: var(--text-5xl);
  }

  /* Services bento grid */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__grid .card:nth-child(1) {
    grid-column: span 2;
  }

  .services__grid .card:nth-child(4) {
    grid-column: span 2;
  }

  /* Process — horizontal on tablet+ */
  .process__timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
    max-width: 100%;
    padding-left: 0;
  }

  .process__line {
    display: none;
  }

  .process__step {
    text-align: center;
    padding-top: var(--space-12);
    position: relative;
  }

  /* Horizontal connector line via pseudo-element on each step */
  .process__step::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    opacity: 0.4;
  }

  .process__step:first-child::before {
    left: 50%;
  }

  .process__step:last-child::before {
    right: 50%;
  }

  .process__number {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    margin: 0;
  }

  /* Why Us — 3 cols */
  .whyus__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .whyus__grid .card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }

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

  /* Contact — two columns */
  .contact__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}


/* ── lg: 1024px ── */
@media (min-width: 1024px) {
  /* Show desktop nav links */
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__hamburger {
    display: none;
  }

  .container {
    padding: 0 var(--space-8);
  }

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

  .services__grid {
    gap: var(--space-6);
  }

  .process__timeline {
    gap: var(--space-8);
  }

  .whyus__grid {
    gap: var(--space-8);
  }
}


/* ── xl: 1280px ── */
@media (min-width: 1280px) {
  .section {
    padding: var(--space-32) 0;
  }

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