/* ============================================================
   RESPONSIVE.CSS — Consolidated Media Queries
   
   Mobile-first approach.
   Ensuring proper layout scaling and fluid typography.
   ============================================================ */

/* ─── MOBILE SCALING (320px - 767px) ─── */
@media (max-width: 767px) {

  /* Global Layout */
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  /* Typography */
  .text-display-xl {
    font-size: 40px;
  }

  .text-headline-lg {
    font-size: 32px;
  }

  .text-headline-md {
    font-size: 20px;
  }

  .text-body-lg {
    font-size: 16px;
  }

  .text-body-md {
    font-size: 15px;
  }

  /* Hero Sections */
  .hero {
    padding-top: calc(var(--space-2xl) + 40px);
  }

  .about-hero,
  .services-hero {
    min-height: 50vh;
    padding-top: calc(var(--space-2xl) + 60px);
    padding-bottom: var(--space-xl);
  }

  .category-hero {
    min-height: 40vh;
    padding-top: calc(var(--space-2xl) + 60px);
    padding-bottom: var(--space-xl);
  }

  .category-hero .text-headline-lg {
    font-size: 28px;
  }

  /* Grids & Cards */
  .stats-grid,
  .about__facts,
  .trust-credentials,
  .subcategory-grid,
  .relevance-grid,
  .distribution-grid,
  .why-partner-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .area-grid,
  .trust-stats,
  .category-areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .stats-grid {
    gap: var(--space-lg);
  }

  .audience-layout {
    gap: var(--space-xl);
  }

  .process-step {
    flex-direction: column;
    text-align: center;
  }

  .process-step__number {
    margin: 0 auto;
  }

  .why-partner-card {
    flex-direction: column;
  }

  .capabilities-card {
    order: 2 !important;
  }

  /* Component Overrides */
  .story-timeline::before {
    left: 16px;
  }

  .story-milestone {
    padding-left: 48px;
  }

  .story-milestone__dot {
    left: 6px;
    width: 20px;
    height: 20px;
  }

  .founder-card__photo {
    width: 160px;
    height: 160px;
  }

  .founder-card__name {
    font-size: 28px;
  }

  .trust-stat__value {
    font-size: 32px;
  }

  /* CTA */
  .contact-cta {
    padding: var(--space-xl);
  }

  .contact-cta h2 {
    font-size: 32px;
  }

  /* Footer & Global Elements */
  .footer {
    padding-bottom: calc(var(--space-3xl) + 60px);
  }

  .desktop-only {
    display: none !important;
  }

  .md-hidden {
    display: none !important;
  }
}


/* ─── TABLET (768px+) ─── */
@media (min-width: 768px) {

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

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

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

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

  /* Specific Grids */
  .commitment-grid,
  .trust-credentials,
  .audience-layout,
  .subcategory-grid,
  .relevance-grid,
  .distribution-grid,
  .why-partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero__stats,
  .stats-grid,
  .area-grid,
  .trust-stats,
  .category-areas-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Component Layouts */
  .about-section__skew {
    transform: skewX(12deg) translateX(64px);
  }

  .about__badge {
    display: block;
  }

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

  .founder-card__photo {
    margin: 0;
  }

  /* Footer & Global Elements */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
  }

  .contact-bar {
    display: none;
  }
}


/* ─── LAPTOP / DESKTOP NAV (960px+) ─── */
@media (min-width: 960px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__mobile-toggle {
    display: none;
  }
}


/* ─── DESKTOP (1024px+) ─── */
@media (min-width: 1024px) {

  /* Global Grids */
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

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

  /* Specific Grids */
  .trust-credentials {
    grid-template-columns: repeat(3, 1fr);
  }

  .subcategory-grid,
  .distribution-grid,
  .category-areas-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* CTA */
  .contact-cta {
    padding: var(--space-3xl);
  }
}


/* ─── LARGE DESKTOP (1440px+) ─── */
@media (min-width: 1440px) {
  /* Retain container max width natively */
}