/* Prevent horizontal scroll from scroll-reveal translateX and image hover scale */
html {
  overflow-x: clip;
}

main {
  overflow-x: clip;
  width: 100%;
}

.service-row,
.intro-split {
  overflow-x: clip;
}

.hero-banner {
  display: flex !important;
  align-items: center !important;
}

.hero-banner .relative.z-10 {
  width: 100% !important;
}

/* Floating contact actions — single stack, viewport-anchored (replaces Buttonizer overlap) */
/*.floating-actions {*/
/*  position: fixed;*/
/*  right: max(1rem, env(safe-area-inset-right, 0px));*/
/*  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));*/
/*  z-index: 9990;*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  align-items: center;*/
/*  gap: 0.75rem;*/
/*  pointer-events: none;*/
/*}*/
.floating-actions {
  position: fixed;
  right: 40px;
  bottom: 88px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.floating-actions>* {
  pointer-events: auto;
}

.floating-actions__btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-actions__btn:hover {
  transform: scale(1.08);
}

/*@media (max-width: 640px) {*/
/*  .floating-actions {*/
/*    right: max(0.75rem, env(safe-area-inset-right, 0px));*/
/*    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));*/
/*    gap: 0.5rem;*/
/*  }*/

/*  .floating-actions__btn {*/
/*    width: 3rem;*/
/*    height: 3rem;*/
/*  }*/
/*}*/

/* Hide body while Google Translate is loading for non-English languages */
html.notranslated body {
  opacity: 0 !important;
}

html.translated body {
  opacity: 1;
  transition: opacity 0.15s ease-in;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu {
  opacity: 1;
  top: 0;
}

body.menu-open #site-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

/* Client carousel logos - consistent display to avoid stretching/blur */
.client-carousel div {
  padding: 16px 20px;
}

.client-carousel img {
  width: 180px;
  height: 80px;
  object-fit: contain;
  image-rendering: auto;
}

/* City thumbnails - cover the card area */
/* #cityCarousel2 img {
  object-fit: cover;
  height: 160px;
  width: auto;
} */

/* ==========================================
   MOBILE RESPONSIVENESS OVERRIDES (Under 768px)
   ========================================== */
@media (max-width: 768px) {

  /* --- 1. Hero Banner Mobile Optimization --- */
  .hero-banner {
    min-height: 100svh !important;
    /* Ensure fixed screen height constraint is met on mobile */
    padding-top: 5.5rem !important;
    /* Minimal gap for sticky header */
    padding-bottom: 2rem !important;
    /* Clean bottom breathing space */
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .hero-banner .relative.z-10 {
    height: auto !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Strip out massive hardcoded container paddings (like py-20) in blade files on mobile */
  .hero-banner .relative.z-10 .container,
  .hero-banner .relative.z-10 .w-full {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Increase Headline Font Size dynamically on mobile for all pages */
  .hero-banner h1 {
    font-size: 3.25rem !important;
    /* Rich, large bold heading */
    font-size: clamp(3rem, 13vw, 5rem) !important;
    /* Scale beautifully for all mobile viewports */
    line-height: 1.0 !important;
    margin-bottom: 1.25rem !important;
  }

  /* Scale and clean sub-badges in Hero */
  .hero-banner span.inline-block {
    margin-bottom: 1rem !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.725rem !important;
    letter-spacing: 0.15em !important;
  }

  /* Scale description paragraph to be readable and prevent overflow */
  .hero-banner p {
    font-size: 0.925rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    max-width: 100% !important;
  }

  /* --- 2. Button Optimization (Prevent full-width stretching & vertical bloat) --- */
  .hero-banner .flex.flex-wrap {
    justify-content: flex-start !important;
    /* Keep left-aligned in hero banner */
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .cta-gradient .flex.flex-wrap {
    justify-content: center !important;
    /* Keep centered in CTA banner */
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .hero-banner a.rounded-full,
  .hero-banner a.btn-shimmer {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    width: auto !important;
    max-width: fit-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    align-self: flex-start !important;
    /* Keep aligned to the left */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
  }

  .cta-gradient a.rounded-full,
  main a.btn-shimmer:not(.hero-banner a) {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    width: auto !important;
    max-width: fit-content !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    align-self: center !important;
    /* Keep centered */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
  }

  /* --- 3. Mobile Navigation Menu Scroll Safety --- */
  body.menu-open .menu {
    overflow-y: auto !important;
    /* Permit vertical scrolling for menu links */
  }

  /* --- 4. Section & Footer Heading Mobile Optimization --- */
  h2.font-bebas.text-6xl,
  h2.font-bebas.max-md\:text-5xl,
  .text-center h2.font-bebas {
    font-size: 2.25rem !important;
    /* Elegant, premium title size on mobile */
    font-size: clamp(2rem, 9.5vw, 2.75rem) !important;
    /* Scales dynamically without awkward wrapping */
    line-height: 1.1 !important;
    text-align: center !important;
  }

  h2.font-bebas.text-6xl+p,
  h2.font-bebas.max-md\:text-5xl+p.text-lg,
  .text-center h2.font-bebas+p {
    font-size: 0.95rem !important;
    /* Highly legible and optimized body font size */
    line-height: 1.55 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 90% !important;
  }

  /* --- 5. Reduce excessive section spacing & padding on mobile --- */
  .py-24, .py-20, .py-16, .py-12 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .pt-24, .pt-20, .pt-16 {
    padding-top: 2.5rem !important;
  }
  .pb-24, .pb-20, .pb-16 {
    padding-bottom: 2.5rem !important;
  }
  .gap-12 {
    gap: 1.5rem !important;
  }
  .p-8, .p-14, .p-16 {
    padding: 1.5rem !important;
  }
}

/* Hide sub-images on mobile for service pages */
@media (max-width: 1023px) {
  .mobile-hide-sub-images {
    display: none !important;
  }
}

/* Service card image — slightly taller on desktop */
@media (min-width: 1024px) {
  .svc-card-img {
    height: 20rem !important; 
  }
}
