/* Custom site overrides */

/* ==========================================================================
   1. SITE-WIDE MOBILE OVERFLOW LOCKDOWN
   ========================================================================== */
html,
body,
#siteWrapper {
  overflow-x: hidden !important;
  overflow-x: clip !important;
  max-width: 100vw !important;
}

section[data-test="page-section"] {
  overflow-x: hidden !important;
  overflow-x: clip !important;
}

/* ==========================================================================
   2. MOBILE BUTTON CONSISTENCY & BRAND COLOR
   Brand Orange (#e57c23) with white text, pill radius, and uppercase text
   ========================================================================== */
@media (max-width: 767px) {
  .sqs-block-button-element--medium.sqs-button-element--primary,
  .sqs-block-button-element--small.sqs-button-element--primary,
  .sqs-block-button-element--large.sqs-button-element--primary,
  .sqs-button-element--primary,
  .sqs-block-button-element {
    background-color: #e57c23 !important;
    color: #ffffff !important;
    border: none !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    border-radius: 300px !important;
    box-shadow: 0 4px 14px rgba(229, 124, 35, 0.35) !important;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    text-align: center !important;
  }

  .sqs-block-button-element--medium.sqs-button-element--primary:active,
  .sqs-button-element--primary:active,
  .sqs-block-button-element:active {
    transform: scale(0.97) !important;
    background-color: #cb6b1a !important;
    box-shadow: 0 2px 8px rgba(229, 124, 35, 0.4) !important;
  }
}

/* ==========================================================================
   3. HOMEPAGE MOBILE TLC: SECTION-SPECIFIC POLISH
   ========================================================================== */
@media (max-width: 767px) {
  /* SECTION 2: MAP CLEARANCE BELOW HERO WAVE */
  /* Prevent the top orange wave divider from clipping into 'WISCONSIN' */
  section[data-section-id="671138aab386e22d4b648e4a"] {
    padding-top: 48px !important;
  }
  section[data-section-id="671138aab386e22d4b648e4a"] .content-wrapper {
    padding-top: 32px !important;
  }
  .fe-block-980b80beaf3616183f14 {
    margin-top: 24px !important;
    margin-bottom: 16px !important;
  }

  /* Section 2 CTA button: center & uppercase */
  .fe-block-d76a3eb06a7a83ecaadc {
    grid-column: 2 / 10 !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 12px !important;
    margin-bottom: 24px !important;
  }
  .fe-block-d76a3eb06a7a83ecaadc .sqs-block-button-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .fe-block-d76a3eb06a7a83ecaadc a {
    min-width: 200px !important;
  }

  /* SECTION 3: SERVICE CARDS BUTTONS ALIGNMENT & SPACING */
  /* Center buttons under each card with balanced vertical spacing */
  .fe-block-yui_3_17_2_1_1729189525536_24991,
  .fe-block-yui_3_17_2_1_1729193037191_25901,
  .fe-block-yui_3_17_2_1_1729193037191_29099 {
    grid-column: 2 / 10 !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 14px !important;
    margin-bottom: 28px !important;
  }
  .fe-block-yui_3_17_2_1_1729189525536_24991 .sqs-block-button-container,
  .fe-block-yui_3_17_2_1_1729193037191_25901 .sqs-block-button-container,
  .fe-block-yui_3_17_2_1_1729193037191_29099 .sqs-block-button-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .fe-block-yui_3_17_2_1_1729189525536_24991 a,
  .fe-block-yui_3_17_2_1_1729193037191_25901 a,
  .fe-block-yui_3_17_2_1_1729193037191_29099 a {
    min-width: 180px !important;
  }

  /* SECTION 4: CONTACT US CTA BUTTON */
  .fe-block-yui_3_17_2_1_1729257544467_60912 {
    grid-column: 2 / 10 !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 12px !important;
    margin-bottom: 24px !important;
  }
  .fe-block-yui_3_17_2_1_1729257544467_60912 .sqs-block-button-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .fe-block-yui_3_17_2_1_1729257544467_60912 a {
    min-width: 200px !important;
  }

  /* SECTION 5: FACEBOOK BANNER CENTERING */
  .fe-block-yui_3_17_2_1_1729257544467_164136,
  .fe-block-yui_3_17_2_1_1729257544467_161615 {
    grid-column: 2 / 10 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .fe-block-yui_3_17_2_1_1729257544467_164136 .sqs-block,
  .fe-block-yui_3_17_2_1_1729257544467_164136 .sqs-block-alignment-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
  .fe-block-yui_3_17_2_1_1729257544467_164136 img {
    margin: 0 auto !important;
  }
  .fe-block-yui_3_17_2_1_1729257544467_161615 .sqs-block-content,
  .fe-block-yui_3_17_2_1_1729257544467_161615 p,
  .fe-block-yui_3_17_2_1_1729257544467_161615 h1,
  .fe-block-yui_3_17_2_1_1729257544467_161615 h2,
  .fe-block-yui_3_17_2_1_1729257544467_161615 h3 {
    text-align: center !important;
  }

  /* SECTION 6: LOCATION, HOURS & CONTACT BOTTOM CLEARANCE */
  section[data-section-id="67112197a296616be3fa51c0"] {
    padding-bottom: 120px !important;
    min-height: auto !important;
  }
  section[data-section-id="67112197a296616be3fa51c0"] .content-wrapper {
    padding-bottom: 120px !important;
  }
  section[data-section-id="67112197a296616be3fa51c0"] .fluid-engine {
    padding-bottom: 80px !important;
  }
  .fe-block-06af8b28973c56f76b0b {
    margin-bottom: 60px !important;
  }
}
