/* ==========================================================================
   Responsive Overrides — SCS Synergy
   ==========================================================================
   Mobile-first breakpoints:
     - Tablet:           768px
     - Desktop:          992px
     - Wide:             1200px
   Complementary max-width queries for mobile-specific overrides.
   ========================================================================== */

/* ------------------------------------------------------------------
   Tablet — min-width: 768px
   ------------------------------------------------------------------ */
@media (min-width: 768px) {

  /* Container padding */
  :root {
    --container-pad: var(--space-6);
  }

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

  .section-title__heading {
    font-size: var(--text-3xl);
  }

  .section-heading {
    font-size: var(--text-4xl);
  }

  /* Section spacing */
  .section-padding {
    padding-block: var(--space-10);
  }

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

  /* Footer contact row — 3 columns */
  .footer__contact-row {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* Footer bottom — side-by-side */
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Page banner */
  .page-banner__title {
    font-size: var(--text-4xl);
  }

  /* CTA banner */
  .cta-banner__heading {
    font-size: var(--text-3xl);
  }

  /* Counter box */
  .counter-box__number {
    font-size: var(--text-5xl);
  }
}

/* ------------------------------------------------------------------
   Tablet landscape — 768px to 991px
   ------------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 991px) {

  /* Hamburger still visible at tablet */
  .header__menu-toggle {
    display: flex;
  }

  /* Page-specific two-column grids */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

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

  /* Hero services row */
  .hero__service-link {
    min-width: 120px;
    padding: var(--space-5) var(--space-4);
  }
}

/* ------------------------------------------------------------------
   Desktop — min-width: 992px
   ------------------------------------------------------------------ */
@media (min-width: 992px) {

  /* Typography scale-up */
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }

  .section-title__heading {
    font-size: var(--text-4xl);
  }

  .section-heading {
    font-size: var(--text-5xl);
  }

  /* Section spacing */
  .section-padding {
    padding-block: var(--space-11);
  }

  /* Grid helpers — full column counts */
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }

  /* Header — show desktop nav, hide hamburger */
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__menu-toggle {
    display: none;
  }

  /* Hide mobile menu elements on desktop */
  .mobile-menu,
  .mobile-menu-overlay,
  .mobile-nav {
    display: none !important;
  }

  /* CTA banner — row layout */
  .cta-banner__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .cta-banner__heading {
    font-size: var(--text-3xl);
  }

  /* Page banner */
  .page-banner {
    min-height: 360px;
  }

  .page-banner__title {
    font-size: var(--text-5xl);
  }
}

/* ------------------------------------------------------------------
   Wide — min-width: 1200px
   ------------------------------------------------------------------ */
@media (min-width: 1200px) {

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

  /* Container padding */
  :root {
    --container-pad: var(--space-4);
  }
}

/* ------------------------------------------------------------------
   Mobile — max-width: 767px
   ------------------------------------------------------------------ */
@media (max-width: 767px) {

  /* Reduce section spacing */
  .section-padding {
    padding-block: var(--space-8);
  }

  /* Header — hide desktop nav, show hamburger */
  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  /* Full-width buttons in banners */
  .cta-banner .btn,
  .page-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero services row */
  .hero__services {
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
  }

  .hero__service-link {
    min-width: 100px;
    padding: var(--space-4) var(--space-3);
  }

  .hero__service-link::after {
    display: none;
  }

  .hero__service-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }

  .hero__service-text {
    font-size: 0.625rem;
  }

  /* Trusted section */
  .trusted__layout {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  /* Tech trends */
  .tech-trends__layout {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .tech-trends__content {
    padding-right: 0;
  }

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

  .tech-trends__counter-number {
    font-size: var(--text-2xl);
  }

  .tech-trends__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Client logos */
  .clients__row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .clients__logo {
    flex: 0 0 calc(33.333% - var(--space-4));
    min-width: 100px;
  }

  /* Services grid */
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  /* CTA banner */
  .cta-banner__heading {
    font-size: var(--text-xl);
  }

  /* Team grid */
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  /* Consultation section */
  .consultation__inner {
    flex-direction: column;
    text-align: center;
  }

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

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

  /* Footer */
  .footer__contact-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__contact-item {
    flex-direction: column;
    align-items: center;
  }

  .footer__info-row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer__info-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__nav {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Remove pipe separator on mobile */
  .footer__nav-link + .footer__nav-link::before {
    content: none;
    margin-right: 0;
  }

  .footer__bottom {
    text-align: center;
  }

  /* Card padding reduction */
  .service-card,
  .testimonial-card {
    padding: var(--space-5);
  }

  /* Counter box */
  .counter-box__number {
    font-size: var(--text-3xl);
  }

  /* Page banner */
  .page-banner {
    min-height: 240px;
  }

  .page-banner__title {
    font-size: var(--text-2xl);
  }
}

/* ------------------------------------------------------------------
   Small Mobile — max-width: 480px
   ------------------------------------------------------------------ */
@media (max-width: 480px) {

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

  .hero__services {
    flex-direction: column;
    align-items: center;
  }

  .hero__service-link {
    flex-direction: row;
    min-width: 200px;
  }

  .tech-trends__counters {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .tech-trends__grid {
    grid-template-columns: 1fr;
  }

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

  .clients__logo {
    flex: 0 0 calc(50% - var(--space-3));
  }

  .section-heading {
    font-size: var(--text-2xl);
  }
}
