/* =========================
   Reset & Defaults
========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; overflow-x: hidden; font-weight: 400; color: #333; }
.no-scroll { overflow: hidden; }

/* =========================
   Header
========================= */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 40px; height: 80px; background: transparent;
  position: fixed; top: 0; width: 100%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 100;
}
header.scrolled { background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.logo { min-width: 160px; height: 60px; }
.logo img { height: 40px; max-width: 120px; object-fit: contain; margin-right: 10px; transition: all 0.3s ease; }

#desktop-menu ul { display: flex; gap: 30px; list-style: none; }
nav ul { display: flex; list-style: none; }
nav ul li { position: relative; }
nav ul li a { text-decoration: none; color: white; font-weight: 500; transition: color 0.3s ease; }
header.scrolled nav ul li a { color: #333; }

.call-button {
  background-color: rgba(255,255,255,0.3); color: white;
  padding: 8px 16px; border-radius: 25px; text-decoration: none; font-weight: bold;
  white-space: nowrap; transition: all 0.3s ease; border: 1px solid white;
}
header.scrolled .call-button { background-color: #333; color: #fff; border-color: #333; }

/* =========================
   Desktop dropdown (animated)
========================= */
@media (min-width: 992px) {
  #desktop-menu .dropdown { position: relative; }
  #desktop-menu .dropdown > a::after { content: ' ▾'; font-size: 0.7rem; margin-left: 4px; }

  #desktop-menu .dropdown .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    list-style: none; padding: 0; margin: 0;
    background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 999;

    opacity: 0; visibility: hidden; transform: translateY(8px);
    max-height: 0; overflow: hidden; pointer-events: none;
    display: block; transition: opacity .25s ease, transform .25s ease, max-height .3s ease;
  }
  #desktop-menu .dropdown:hover .sub-menu,
  #desktop-menu .dropdown:focus-within .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
    max-height: 600px; pointer-events: auto;
  }
  #desktop-menu .dropdown .sub-menu li a {
    display: block; padding: 12px 20px; color: #333; text-decoration: none; white-space: nowrap;
  }
  #desktop-menu .dropdown .sub-menu li a:hover { background-color: #f5f5f5; font-weight: bold; }

  header:not(.scrolled) #desktop-menu .dropdown .sub-menu { background: rgba(0,0,0,0.5); }
  header:not(.scrolled) #desktop-menu .dropdown .sub-menu li a { color: #fff; }
  header:not(.scrolled) #desktop-menu .dropdown .sub-menu li a:hover { background-color: rgba(255,255,255,0.1); }
}

/* =========================
   Mobile menu
========================= */
#mobile-menu { display: none; }
.menu-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 30px; height: 24px; background: transparent; border: none;
  cursor: pointer; padding: 0; z-index: 1001;
}
.menu-toggle span { display: block; height: 3px; width: 100%; background: #fff; border-radius: 3px; transition: all 0.3s ease; }
header.scrolled .menu-toggle span, header:not(.scrolled) .menu-toggle.open span { background: #333; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(9px, 9px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 991px) {
  .section-wrapper {
    padding: 32px 24px;
    margin-bottom: 40px;
  }

  header { 
    padding: 10px 15px;
  }
  #desktop-menu { display: none; }

  /* Fix header layout to prevent hamburger from going off-screen */
  .logo { 
    flex: 0 0 auto;
    min-width: auto;
  }
  .logo a { display: block; text-decoration: none; }
  
  .call-button {
    margin-right: 1px;
    font-size: 0.85rem;
    padding: 6px 12px;
    white-space: nowrap;
  }

  #mobile-menu {
    display: flex; position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh; background-color: #fff;
    flex-direction: column; padding: 80px 20px 20px; z-index: 99;
    transition: right 0.3s ease-in-out;
    box-shadow: -4px 0 16px rgba(0,0,0,0.1);
  }
  #mobile-menu.active { right: 0; }
  #mobile-menu ul { flex-direction: column; gap: 20px; }
  #mobile-menu ul li a { color: #333; font-weight: 600; font-size: 1.2rem; text-decoration: none; }
  .menu-toggle { 
    display: flex;
    flex-shrink: 0;
  }

  #mobile-menu .dropdown > a::after { content: ' ▾'; font-size: 0.8rem; }
  #mobile-menu .dropdown .sub-menu {
    display: flex; flex-direction: column; max-height: 0; overflow: hidden; opacity: 0;
    padding-left: 10px; transition: max-height .4s ease, opacity .3s ease; list-style: none; padding-top: 0; margin: 0;
  }
  #mobile-menu .dropdown.active .sub-menu { max-height: 800px; opacity: 1; padding-top: 10px; }
  #mobile-menu .dropdown .sub-menu li a { display: block; padding: 12px 8px; color: #333; text-decoration: none; }
  #mobile-menu .dropdown .sub-menu li a:hover { font-weight: bold; background-color: #f0f0f0; }
}

/* =========================
   HERO
========================= */
.banner { position: relative; height: 100vh; width: 100%; overflow: hidden; z-index: 0; margin-bottom: -50px; }
.video-container { position: absolute; inset: 0; z-index: 1; }
.video-container video { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.3); z-index: 2; }
.banner-content { position: relative; z-index: 3; color: white; padding: 0 40px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.banner-content h1 { font-size: 2.5rem; font-weight: bold; max-width: 800px; }

/* =========================
   HOME FEATURES
========================= */
.home-sections { padding: 80px 24px; background: #f7f7f7; }
.home-sections .container { max-width: 1200px; margin: 0 auto; }

/* Section content wrapper for visual separation */
.section-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  border-radius: 20px;
  padding: 48px 40px;
  margin-bottom: 60px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.section-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff7a00, #ff9900, #ffb84d);
  opacity: 0.8;
}

.section-wrapper:nth-child(even) {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border-color: #fed7aa;
}

.section-wrapper:nth-child(even)::before {
  background: linear-gradient(90deg, #ff9900, #ffa500, #ffb84d);
}
.section-heading.center { text-align: center; margin-bottom: 28px; }
.section-heading { font-size: 2rem; font-weight: 700; color: #222; }

/* Heading container styling */
.heading-container {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fff7ed 100%);
  border-radius: 16px;
  padding: 32px 40px;
  margin-bottom: 50px;
  margin-top: 30px;
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.12);
  border: 2px solid #fed7aa;
  text-align: center;
  position: relative;
}

.section-wrapper .heading-container {
  margin-top: 0;
  margin-bottom: 40px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0 30px 0;
  border-bottom: 2px solid #fed7aa;
  border-radius: 0;
}

.heading-container .section-heading {
  margin-bottom: 16px;
  background: transparent;
  box-shadow: none;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b5563;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 18px; }
.feature-card { 
  background: #fff; border-radius: 16px; padding: 24px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
.feature-card .feature-icon {
  display: block; 
  width: 100%; 
  height: 200px;
  object-fit: cover;
  border-radius: 10px; 
  margin-bottom: 12px; 
  background: #f2f2f2; 
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: #222; }
.feature-card p { color: #555; line-height: 1.6; margin-bottom: 12px; }
.feature-link { color: #b85835; font-weight: 600; text-decoration: none; }

.usp-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 8px; list-style: none; padding: 0; }
.usp-badge { display: inline-block; background: #fff; color: #333; border: 1px solid #e6e6e6; padding: 8px 14px; border-radius: 20px; font-weight: 600; font-size: .95rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.cta-banner { margin-top: 28px; text-align: center; padding: 28px; background: linear-gradient(90deg, #ff7a00, #e65c00); color: #fff; border-radius: 16px; box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
.cta-banner h3 { font-size: 1.6rem; margin-bottom: 6px; }
.cta-banner p { opacity: .95; margin-bottom: 14px; }
.cta-btn { display: inline-block; background: #fff; color: #b80000; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; }

/* =========================
   ABOUT (image left, text right, no cropping)
========================= */
.about-section { padding: 72px 24px; background: #f7f7f7; }
.about-section .container { max-width: 1200px; margin: 0 auto; }

.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 8px 0 26px; padding: 0; list-style: none;
}
.about-stats li {
  display: grid; justify-items: center; gap: 6px; padding: 10px 8px;
  background: linear-gradient(180deg,#fff, #fff7ef); border: 1px solid #ffe1c7;
  border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.about-stats strong { font-size: 1.3rem; }
.about-stats span { font-size: .9rem; color: #555; }

/* Two column layout: image left, text right */
.about-grid { 
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
  margin-top: 30px;
}
.about-copy { text-align: left; }
.about-photo {
  order: 1;
  border-radius: 16px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.about-photo img {
  width: 100%;
  height: auto;                 /* keep full image */
  object-fit: contain;          /* no cropping */
  object-position: center center;
  display: block;
}

.about-columns { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.about-columns h4 { color: #111827; margin-bottom: 8px; font-size: 1.1rem; font-weight: 600; }
.about-columns p { color: #4b5563; line-height: 1.7; }

/* Leadership Card on Left */
.about-leadership-side { position: sticky; top: 100px; }
.leadership-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leadership-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.leadership-card h5 {
  color: #111827;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.leadership-card .team-role {
  color: #ff7a00;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}
.leadership-card .team-desc {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.7;
}
.leadership-card .team-photo-landscape {
  width: 100%;
  max-width: 400px;
  height: 280px;
  border-radius: 16px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
  border: 3px solid #ff9900;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
  background: #f9f9f9;
}

/* Area Manager Section (Below main content) */
.area-manager-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #fed7aa;
}
.area-manager-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 750px;
}
.area-manager-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.area-manager-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ff9900;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
}
.area-manager-info h5 {
  color: #111827;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.area-manager-info .team-role {
  color: #ff7a00;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.area-manager-info .team-desc {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Service Areas Section */
.service-areas-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid #fed7aa;
  text-align: center;
}
.service-areas-section h4 {
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-description {
  color: #4b5563;
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.service-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.location-tag {
  background: linear-gradient(135deg, #ff7a00, #ff9900);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.location-tag:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.35);
}

/* =========================
   CLIENTS
========================= */
.clients-section { padding: 72px 24px; background: #f7f7f7; }
.clients-section .container { max-width: 1200px; margin: 0 auto; }
.clients-lead { max-width: 900px; margin: 10px auto 20px; text-align: center; color:#374151; line-height:1.8; }

.clients-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 20px 0 10px;
}
.client-card {
  background:#fff7ef; border:1px solid #ffe1c7; border-radius:14px;
  padding:16px 18px; box-shadow:0 2px 10px rgba(0,0,0,.04);
}
.client-card h4 { margin-bottom:6px; color:#111827; }
.client-card p { color:#4b5563; line-height:1.7; }

/* Logo strip: bigger + full color */
.client-logos {
  display:flex; flex-wrap:wrap; gap:28px; justify-content:center;
  list-style:none; margin:22px 0 32px; padding:0;
}
.client-logos li { display:grid; place-items:center; }
.client-logos img {
  height: 60px; width: auto;
  filter: none !important; opacity: 1 !important;
  mix-blend-mode: normal; image-rendering: auto;
  transition: transform .2s ease;
}
.client-logos img:hover { transform: translateY(-2px); }

/*Optional per-logo size helpers */
.client-logos img.logo-xs { height: 44px; }
.client-logos img.logo-sm { height: 52px; }
.client-logos img.logo-lg { height: 72px; }
.client-logos img.logo-xl { height: 84px; }

/* =========================
   TESTIMONIALS (auto-loop slider styles)
========================= */
.testimonials-section { padding: 72px 24px; background:#fff; margin-top: 50px; }
.testimonials-section .container { max-width: 1000px; margin: 0 auto; }

.ts-slider {
  position: relative; margin-top: 16px; overflow: hidden;
  border-radius: 16px; background: #fff7ef; border: 1px solid #ffe1c7;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.ts-track { display: flex; transition: transform 450ms ease; will-change: transform; }
.ts-card { flex: 0 0 100%; padding: 26px 28px; text-align: center; }
.ts-stars span { font-size: 1.1rem; letter-spacing: 2px; color: #fbbf24; display: inline-block; margin-bottom: 8px; }
.ts-quote { font-size: 1.08rem; line-height: 1.9; color: #374151; margin: 8px auto 10px; max-width: 720px; }
.ts-author { font-weight: 700; color: #1f2937; }
.ts-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid #ffe1c7;
  width: 38px; height: 38px; line-height: 36px;
  border-radius: 999px; cursor: pointer;
  font-size: 22px; font-weight: 700; color: #b85835;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.ts-prev { left: 10px; } .ts-next { right: 10px; }
.ts-nav:hover { background:#fff3e6; }

/* =========================
   CONTACT
========================= */
.contact-section { padding: 80px 24px; background: #fff; }
.contact-section .container { max-width: 1200px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; margin-bottom: 24px; }
.contact-card { background: #fffbf7; border: 1px solid #fed7aa; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.contact-card h4 { margin-bottom: 6px; }
.contact-card a { color: #ff7a00; text-decoration: none; font-weight: 700; }
.map-form-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: stretch; }
.map-box iframe { width: 100%; height: 100%; min-height: 360px; border-radius: 12px; }
.contact-form { background: #fffbf7; border: 1px solid #fed7aa; border-radius: 12px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); display: grid; gap: 10px; }
.contact-form h4 { margin-bottom: 4px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea { padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; background: #fafafa; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #6b7280; box-shadow: 0 0 0 3px rgba(107,114,128,.15); background: #fff; }
.modern-btn { background: linear-gradient(to right, #ff7a00, #e65c00); color: #fff; font-size: 1rem; padding: 0.9rem; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; }

/* =========================
   Typography & Wide container
========================= */
.section-heading {
  position: relative; display: inline-block; text-align: center;
  font-size: clamp(2rem, 2.6vw, 2.6rem); font-weight: 800; letter-spacing: .2px;
  line-height: 1.2; color: #1f2937; padding: 16px 24px;
  background: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  margin-bottom: 22px;
  transition: all 0.6s ease;
  opacity: 1;
  transform: translateY(0);
}
.section-heading:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.section-heading.center { text-align: center; }
.section-heading::after {
  content: ""; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 64%; height: 4px; border-radius: 20px; background: linear-gradient(90deg, #ff7a00, #ff9900); opacity: .8;
}

/* Fade-in animations from bottom to top */
.animate-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-init.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 800; color: #111827; }
.feature-card p  { font-size: clamp(1rem, 1.2vw, 1.075rem); line-height: 1.75; color: #475569; }
.feature-link    { font-weight: 800; }

@media (min-width: 1280px) {
  .about-section .container,
  .home-sections .container,
  .clients-section .container,
  .testimonials-section .container,
  .contact-section .container { max-width: 1280px; }
}

/* =========================
   Responsive
========================= */
@media (max-width: 991px) {
  .banner-content { padding: 0 20px; }
  .banner-content h1 { font-size: 1.8rem; }

  .home-sections { padding: 56px 18px; }
  .feature-grid  { grid-template-columns: 1fr 1fr; }

  .about-grid    { grid-template-columns: 1fr; gap: 30px; }
  .about-columns { grid-template-columns: 1fr; }
  .about-stats   { grid-template-columns: 1fr 1fr 1fr; }
  .about-copy { text-align: center; }
  .about-leadership-side { position: static; }
  .leadership-card { padding: 20px; }
  .leadership-card .team-photo-landscape { 
    height: auto;
    max-height: 250px;
    max-width: 100%; 
    object-fit: contain;
  }
  .area-manager-card { 
    grid-template-columns: 1fr; 
    text-align: center;
    padding: 20px;
    max-width: 100%;
  }
  .area-manager-photo { 
    margin: 0 auto 16px;
    width: 90px;
    height: 90px;
  }
  .area-manager-info h5 { font-size: 1rem; }
  .area-manager-info .team-role { font-size: 0.85rem; }
  .area-manager-info .team-desc { font-size: 0.85rem; }

  .contact-grid  { grid-template-columns: 1fr; }
  .map-form-wrap { grid-template-columns: 1fr; }

  .clients-grid  { grid-template-columns: 1fr; }
  .client-logos img { 
    height: 52px !important; 
    width: auto !important; 
    max-width: 140px;
    object-fit: contain !important; 
  }

  .ts-nav { display: none; } /* hide arrows on small screens */
}
@media (max-width: 600px) {
  .section-wrapper {
    padding: 24px 20px;
  }

  .section-wrapper .heading-container {
    padding: 0 0 20px 0;
    margin-bottom: 30px;
  }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 20px; }
  .about-stats  { grid-template-columns: 1fr; }
  .client-logos img { 
    height: 48px !important; 
    width: auto !important; 
    max-width: 120px;
    object-fit: contain !important; 
  }
}

/* ======== MOBILE OVERFLOW + DRAWER FIX PATCH (appended) ======== */

/* Prevent any horizontal overflow and scale media safely */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }

/* Gentle wrapping: avoid hard-breaking headings/links */
p, li,
.clients-lead,
.client-card p,
.about-copy .lead,
.feature-card p {
  overflow-wrap: break-word;
  word-break: normal;
}
h1, h2, h3, h4, h5, h6,
.section-heading,
.feature-card h3,
.feature-link {
  overflow-wrap: normal;
  word-break: normal;
}

/* Desktop-only grid safety: prevent intrinsic overflow without overriding mobile cols */
@media (min-width: 992px) {
  .feature-grid  { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .about-stats   { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .about-columns { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .clients-grid  { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .contact-grid  { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .map-form-wrap { grid-template-columns: 1.1fr minmax(0,1fr); }
  .about-grid    { grid-template-columns: 1fr; }
}

/* Header spacing on phones so nothing hangs off the right edge */
@media (max-width: 991px) {
  header { padding: 10px 12px; gap: 8px; }
  .logo { min-width: 0; }
  .call-button { margin-right: 1px; }
}

/* Side drawer via transforms so it never widens the page */
@media (max-width: 991px) {
  #mobile-menu {
    right: 0;
    transform: translateX(100%);
    will-change: transform;
    transition: transform 0.3s ease-in-out;
    overscroll-behavior: contain;
  }
  #mobile-menu.active { transform: translateX(0); }
}

/* Hamburger bar color contrast */
@media (max-width: 991px) {
  header:not(.scrolled) .menu-toggle span { background: #fff; }
  header.scrolled .menu-toggle span { background: #333; }
}

/* Avoid negative margin causing odd scroll on small screens */
@media (max-width: 991px) {
  .banner { margin-bottom: 0; }
}

/* Extra safety */
:root { overflow-x: clip; }  /* modern browsers */
