/* ============================================================
   NAVDEEP PUREWAL — RESPONSIVE BREAKPOINTS
   1440px → 1024px → 768px → 375px
   ============================================================ */

/* ── LARGE DESKTOP (≤ 1440px) ─────────────────────────────── */
@media (max-width: 1440px) {
  .hero__headline {
    font-size: clamp(3rem, 5.5vw, 6rem);
  }

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

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

/* ── DESKTOP (≤ 1200px) ────────────────────────────────────── */
@media (max-width: 1200px) {
  .container {
    padding: 0 2rem;
  }

  .container--sm {
    padding: 0 2rem;
  }

  .nav__inner {
    padding: 0 2rem;
  }

  .hero__inner {
    padding: 3rem 2rem 4rem;
    gap: 3rem;
    grid-template-columns: 1fr 0.65fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }

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

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

  .ecosystem__step {
    padding: 0 1rem;
  }

  .ecosystem__step-circle {
    width: 60px;
    height: 60px;
  }

  .process__steps {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .why__grid {
    gap: 4rem;
  }
}

/* ── TABLET (≤ 1024px) ─────────────────────────────────────── */
@media (max-width: 1280px) {
  /* Nav */
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

@media (max-width: 1024px) {
  :root { --nav-h: 70px; }

  .section { padding: 5rem 0; }
  .section--lg { padding: 7rem 0; }

  /* Hero */
  .hero__inner {
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem 5rem;
    gap: 0;
  }

  .hero__portrait {
    position: relative;
    right: auto;
    bottom: auto;
    height: auto;
    width: 100%;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 2rem;
    order: 1;
  }

  .hero__content {
    max-width: none;
    position: relative;
    z-index: 2;
    order: 2;
  }

  .hero__portrait-img {
    height: auto;
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero__overlay {
    background:
      radial-gradient(ellipse at 50% 30%, rgba(212,175,55,0.04) 0%, transparent 60%),
      linear-gradient(to bottom, transparent 0%, transparent 60%, var(--bg-primary) 100%);
  }

  .hero__headline {
    font-size: clamp(3rem, 6.5vw, 5rem);
  }

  .hero__sub { max-width: 100%; }

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

  /* Transform */
  .transform-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .transform-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }

  .transform-col { padding: 2rem; }

  /* Ecosystem */
  .ecosystem__flow {
    padding: 2rem 0 1.5rem;
  }

  /* Process */
  .process__steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .process__steps::before {
    display: none;
  }

  .process-step {
    text-align: left;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 0;
  }

  .process-step__num-wrap {
    margin-bottom: 0;
    justify-content: flex-start;
  }

  .process-step__body {
    text-align: left;
  }

  .process-step__stage,
  .process-step__title,
  .process-step__desc {
    text-align: left;
  }

  /* Who */
  .who-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Why */
  .why__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why__visual {
    max-width: 400px;
    margin: 0 auto;
  }

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

  /* Work */
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__visual {
    max-width: 360px;
    margin: 0 auto;
  }

  .about__accent-line { display: none; }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact__meta { position: static; }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

  /* Grid utilities */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE (≤ 768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .container, .container--sm {
    padding: 0 1.25rem;
  }

  .nav__inner { padding: 0 1.25rem; }
  .nav__wordmark { display: none; }

  .section { padding: 4rem 0; }
  .section--lg { padding: 5rem 0; }

  /* ── Centre headings & buttons ──────────────────── */
  .t-eyebrow,
  .t-section,
  .t-subsection,
  .hero__headline,
  .hero__sub,
  .section__header,
  .section__header--center {
    text-align: center;
  }

  .gold-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__eyebrow { justify-content: center; }

  /* Service-detail: centre heading + btn; keep description left */
  .service-detail__inner > div:first-child {
    text-align: center;
  }
  .service-detail__inner > div:first-child .t-body {
    text-align: left;
  }
  .service-detail__label { justify-content: center; }

  /* Hero */
  .hero {
    padding-top: 0;
  }

  .hero__inner {
    padding: 0 0 5rem;
    gap: 2rem;
  }

  .hero__portrait {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.75rem;
    align-items: center;
    justify-content: center;
  }

  .hero__portrait::before {
    display: none;
  }

  .hero__content {
    padding: 0 1.25rem;
  }

  .hero__headline {
    font-size: clamp(2.5rem, 9vw, 4rem);
  }

  .hero__portrait-img {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    transform: translateX(8%);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

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

  /* Strip */
  .strip__item {
    padding: 0 1.5rem;
    font-size: 0.68rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    padding: 1.75rem 1.25rem;
  }

  /* Process */
  .process-step {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  .process-step__num {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  /* About portrait — full viewport width on mobile */
  .about__visual {
    max-width: none;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }

  /* Who grid */
  .who-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Work */
  .work-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Why pillars */
  .why__pillars {
    grid-template-columns: 1fr;
  }

  /* CTA section */
  .cta-section__actions {
    flex-direction: column;
  }
  .cta-section__actions .btn { width: 100%; justify-content: center; }

  /* Form */
  .form {
    grid-template-columns: 1fr;
  }

  .form-group--full { grid-column: 1; }
  .form__submit { flex-direction: column; }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__brand { grid-column: 1; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }

  /* Grid utilities */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Sticky CTA on mobile */
  .sticky-cta {
    display: flex;
    gap: 1rem;
  }

  .sticky-cta .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.72rem;
    padding: 0.875rem 1rem;
  }

  /* Ecosystem — compact on mobile */
  .ecosystem__step {
    padding: 0 0.75rem;
  }

  .ecosystem__step-circle {
    width: 52px;
    height: 52px;
  }

  .ecosystem__step-label { font-size: 0.72rem; }

  /* Transform col */
  .transform-col { padding: 1.5rem; }

  /* Section header */
  .section__header--center {
    margin-bottom: 2.5rem;
  }
}

/* ── SMALL MOBILE (≤ 480px) ────────────────────────────────── */
@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .t-section {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

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

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

  .hero__eyebrow-text {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
  }

  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.75rem;
  }

  .cta-section__headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

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

  .process-step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .process-step__num-wrap {
    justify-content: center;
  }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .hero__canvas { display: none; }
}
