/* =========================================================
   RESPONSIVE-FIX.CSS
   Site-wide responsive safety net — loaded LAST on every page
   so it can patch any layout that overflows or breaks between
   the breakpoints already defined in style.css / *-upgrades.css.
   Nothing here changes colours or content — only layout, sizing
   and spacing at small/medium screens.
   ========================================================= */

/* ---------- 1. Baseline safety ---------- */
html, body {
  max-width: 100%;
}
html { overflow-x: hidden; }
/* clip (not hidden) so body is not a scroll container — keeps the sticky header working */
body { overflow-x: clip; }

img, video, svg, iframe, canvas {
  max-width: 100%;
}

img { height: auto; }

table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Any section that was given a fixed min-width/width in px can still
   push the page wide on small screens — this clamps the common
   offenders without touching their internal layout. */
section, .wrap, main, header, footer {
  max-width: 100%;
}

/* ---------- 2. Fluid type for anything still using fixed px ---------- */
@media (max-width: 900px) {
  h1 { font-size: clamp(26px, 6vw, 40px); }
  h2 { font-size: clamp(22px, 5vw, 32px); }
  h3 { font-size: clamp(18px, 4vw, 24px); }
}

/* ---------- 3. Flex rows wrap instead of squeezing/overflowing ---------- */
/* Safe, non-destructive: only allows wrapping if content no longer
   fits — never forces a column count, so it can't fight the
   component-specific grid rules already in style.css. */
@media (max-width: 900px) {
  [class$="__features"],
  [class$="__stats"],
  [class$="__actions"] {
    flex-wrap: wrap;
  }
}

/* ---------- 4. Section padding scales down on small screens ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}

/* ---------- 5. Forms (contact page etc.) ---------- */
@media (max-width: 640px) {
  input, textarea, select {
    width: 100%;
    max-width: 100%;
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }
}

/* ---------- 6. Decorative / oversized graphics that can force
   horizontal scroll on narrow phones (wheel, glow blobs, marquee) */
@media (max-width: 480px) {
  .disc,
  .hero-v3__wheelwrap,
  .hero-v3__glow,
  .facts__balls {
    max-width: 90vw;
  }
}

/* ---------- 7. Touch target sizing ---------- */
a, button, .pill-btn, .cta-btn {
  min-height: 40px;
}

/* ---------- 8. Landscape phones / small tablets gap-filler ---------- */
@media (max-width: 1024px) and (min-width: 641px) {
  .wrap { padding: 0 28px; }
}

/* ---------- 9. Nav toggle sits on the far right, links + the
   compact nav button are centred (requested change) ---------- */
@media (max-width: 1180px) {
  header .wrap {
    justify-content: space-between;
  }
  .burger {
    order: 2;
    margin-left: auto;
  }
  nav {
    align-items: center;
    text-align: center;
  }
  nav > a,
  nav > .dd {
    width: 100%;
    text-align: center;
  }
}

/* ---------- 10. Footer centred on tablet & mobile ---------- */
@media (max-width: 900px) {
  .fg {
    justify-items: center;
    text-align: center;
  }

  .fg__brand,
  .fg__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .fg__tagline {
    max-width: 420px;
  }

  .fg__contact {
    align-items: center;
  }

  .fg__contact a {
    align-self: center;
  }

  .fg__links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .fg__links ul {
    display: inline-block;
    text-align: center;
  }

  .bot {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
  }
}


/* =========================================================
   SPACING TIGHTEN — less empty space between sections (all pages)
   ========================================================= */
:root { --sec-pad: clamp(36px, 5vw, 60px); }

.who, .approach-new, .vm, .brands-new, .experts-new, .solutions-new, .testi-new,
.contact-info, .contact-form-section, .events-page, .ev-stats, .team-lead, .team-all,
.sv-more, .services-grid-section, .sv-process, .testimonials-section, .gallery-page,
.about-v3, .feat, .facts, .w, .how, .about-faq, .wwd2, .sol2 {
  padding-top: var(--sec-pad) !important;
  padding-bottom: var(--sec-pad) !important;
}
body:has(.about-v3) section.g:not(.hero) { padding-top: var(--sec-pad) !important; padding-bottom: var(--sec-pad) !important; }
.contact-map-section { padding-top: 0 !important; padding-bottom: var(--sec-pad) !important; }
.cta-new { padding-top: clamp(40px, 5vw, 56px) !important; padding-bottom: clamp(40px, 5vw, 56px) !important; }

/* page heroes */
.about-hero { padding-top: clamp(56px, 7vw, 72px) !important; }
.about-hero__inner { padding-bottom: 28px !important; }
.gallery-hero { padding: clamp(40px, 5vw, 56px) 0 clamp(28px, 4vw, 40px) !important; }
.branding-hero { padding: clamp(64px, 8vw, 84px) 0 clamp(28px, 4vw, 40px) !important; }
.compact-hero { padding: clamp(56px, 7vw, 72px) 0 clamp(32px, 4vw, 44px) !important; }

/* gaps between a section heading and its content */
.approach-new__head, .experts-new__head, .testi-new__head, .gallery-head { margin-bottom: 32px !important; }


/* =========================================================
   COMPACT TESTIMONIALS + FOOTER (less empty space)
   ========================================================= */
/* --- Testimonials (homepage) --- */
.testi.g { padding-top: clamp(32px, 4vw, 48px) !important; padding-bottom: clamp(32px, 4vw, 48px) !important; }
.testi .head { padding-bottom: 22px; margin-bottom: 28px; }
.testi .head h2 { font-size: clamp(26px, 2.6vw, 38px); }
.tg { gap: 18px; }
.tc { padding: 22px 20px 18px; border-radius: 20px; }
.tc::before { font-size: 80px; top: 0; right: 16px; }
.tc .st { margin-bottom: 10px; font-size: 14px; letter-spacing: 2px; }
.tc p { font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
/* .who gets big section padding from the global rule above - reset it here */
.tc .who { padding: 12px 0 0 !important; gap: 10px; font-size: 14px; }
.tc .av { width: 38px; height: 38px; font-size: 13px; }

/* --- Footer (all pages) --- */
footer.w { padding-top: 36px !important; padding-bottom: 0 !important; }
.fg { gap: 36px; padding-bottom: 26px; }
.logo--footer { margin-bottom: 10px; }
.logo--footer img { height: 48px; }
.fg__tagline { margin: 0 0 10px; }
.fg__contact { gap: 8px; margin-top: 4px; }
.fg__links h4 { margin-bottom: 16px; padding-bottom: 10px; }
.fg__links li { margin-bottom: 8px; }
.bot { padding: 16px 0; }
