/* ==========================================================================
   CSGPE – responsive rules
   Breakpoints follow the original Elementor kit: tablet ≤1024px, mobile ≤767px.
   ========================================================================== */

/* ---------- Large laptops ---------- */
@media (max-width: 1280px) {
  .site-navigation a { margin-right: 10px; padding: 8px 12px; }
}

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --fs-display: 45px;
    --fs-body: 15px;
    --fs-lead: 18px;
    --gutter: 5%;
  }

  /* Header: logo on top, buttons wrap underneath (as on the original at this width) */
  .header-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-navigation ul { gap: 8px 0; }

  .about-band {
    flex-direction: column-reverse;
    min-height: 0;
    padding: 0;
  }
  .about-band__media,
  .about-band__text { width: 100%; }
  .about-band__media { min-height: 310px; }
  .about-band__text { padding: 60px 12%; }

  .feature-card { padding: 10%; }
  .process-band { padding: 8% var(--gutter); }
  .content-band h2 { font-size: 35px; }

  .csg-form .form-row-2,
  .csg-form .field--half { max-width: 100%; }

  .collage { max-width: 560px; margin: 0 auto; }
}

/* ---------- Mobile (≤767px) ---------- */
@media (max-width: 767px) {
  :root {
    --fs-display: 30px;
    --fs-h4: 18px;
    --fs-lead: 16px;
    --gutter: 16px;
  }

  /* Header: logo + "Menu" toggle, dropdown panel underneath */
  .site-header { padding: 10px var(--gutter); }
  .header-inner { flex-direction: row; align-items: center; }
  .site-logo img { width: 150px; }
  .nav-toggle { display: inline-flex; }
  .site-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--c-header);
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
  }
  .site-navigation.is-open {
    max-height: 420px;
    padding: 6px var(--gutter) 14px;
  }
  .site-navigation ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .site-navigation a { margin-right: 0; padding: 12px 15px; }

  .hero { min-height: 70vh; padding: 60px var(--gutter); }

  .about-band__media { min-height: 240px; }
  .about-band__text { padding: 40px var(--gutter); gap: 20px; }

  .services-band { padding: 40px var(--gutter); }
  .services-band .section-subtitle { margin-bottom: 26px; }

  .why-band { padding: 50px var(--gutter) 0; }
  .why-band .section-title { margin-bottom: 30px; }
  .feature-card { padding: 30px 20px; }

  .clients-band .section-title { font-size: 26px; }
  .client-carousel { padding: 0 30px; }
  .client-carousel__slide { flex-basis: 100%; }

  .process-band { padding: 50px var(--gutter); }
  .process-band .section-title { margin-bottom: 30px; }

  .page-hero { padding: 44px var(--gutter); }
  .content-band { padding: 44px var(--gutter); }
  .content-band h2 { font-size: 26px; margin-bottom: 16px; }
  .expertise-card { padding: 26px 20px; }
  .contact-form-panel { padding: 32px 20px; }

  .get-in-touch { padding: 50px var(--gutter); }
  .get-in-touch .section-title { margin-bottom: 26px; }
  .csg-form .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .csg-form .form-row-2 .field { margin-bottom: 20px; }
  .csg-form button[type="submit"] { width: 100%; }

  .manpower-table th,
  .manpower-table td { padding: 12px 10px; font-size: 14px; }


  .footer-main { padding: 40px var(--gutter) 20px; }
  .back-to-top { right: 14px; bottom: 14px; }
}

/* ---------- Small phones (≤380px) ---------- */
@media (max-width: 380px) {
  :root { --fs-display: 26px; }
  .site-logo img { width: 130px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
