/* ==========================================================================
   I-Pave Construction — migration custom overrides (Webflow -> Cloudflare)
   Loaded after the Webflow stylesheets. Bump ?v=N in the <link> when changed.
   ========================================================================== */

/* --- ALTCHA widget: self-contained light theme so the "I'm not a robot"
       label stays legible on dark hero/quote forms (currentColor would go
       white-on-white). --- */
altcha-widget {
  display: block;
  margin: 0 0 16px;
  max-width: 300px;
  --altcha-color-base: #ffffff;
  --altcha-color-text: #1a1a1a;
  --altcha-color-border: #cbd2d9;
  --altcha-color-border-focus: #fdb50e;
  --altcha-color-active: #fdb50e;
  --altcha-color-error-text: #b42318;
  --altcha-color-footer-bg: #f4f6f8;
  --altcha-border-radius: 10px;
}
altcha-widget,
.quote__form altcha-widget { color: #1a1a1a; }

/* --- Form success box: a real green confirmation (Webflow's default is a
       washed-out mint). contact.js sets inline display:block on success. --- */
.quote__form-success.w-form-done,
.w-form-done {
  display: none;
  background: #e7f7ec;
  border: 1.5px solid #1a7f37;
  color: #0f5132;
  border-radius: 12px;
  padding: 24px 22px;
  text-align: center;
  font-weight: 600;
}
.quote__form-submit[disabled] { opacity: .7; cursor: default; }

/* --- Service-areas hub: search box + Load More --- */
.area-search { max-width: 560px; margin: 0 auto 2rem; }
.area-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1.1rem;
  font-size: 16px; /* >=16px stops iOS Safari auto-zoom */
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  outline: none;
}
.area-search__input:focus { border-color: #fdb50e; } /* border-only (no ring) to avoid iOS h-scroll */
.area-search__empty { text-align: center; margin-top: 1rem; opacity: .85; }
.area-loadmore { display: flex; justify-content: center; margin-top: 2.5rem; }
#area-load-more { cursor: pointer; border: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- "View all service areas" teaser link (replaces off-platform pagination) --- */
.area-viewall { display: flex; justify-content: center; margin-top: 2rem; }

/* --- Service-card / area-name hover affordance --- */
.service-boxes__title-link { color: inherit; text-decoration: none; transition: color .2s ease; }
.service-boxes__title-link:hover { color: var(--color--secondary, #fdb50e); }
.service-area__text { transition: color .2s ease; }
.service-area__text:hover { color: var(--color--secondary, #fdb50e); }
.s-area-item h4 { transition: color .2s ease; }
.s-area-item:hover h4 { color: var(--color--secondary, #fdb50e); }
.s-area-name-link { color: inherit; text-decoration: none; transition: color .2s ease; }
.s-area-name-link:hover { color: var(--color--secondary, #fdb50e); }

/* --- Keep the navbar above hero video / overlays on scroll --- */
.navbar, .navbar.w-nav, .nav, .navigation { z-index: 1000; }

/* --- iOS: 16px minimum on inputs to prevent focus auto-zoom --- */
@media screen and (max-width: 767px) {
  .quote__form-input,
  .quote__form-input.w-input,
  .w-input, .w-select, textarea { font-size: 16px !important; }
}

/* --- Belt-and-suspenders: hide empty (placeholder) social links --- */
.w-condition-invisible { display: none !important; }

/* --- Mobile nav: deterministic hamburger <-> close toggle. Off-platform the
       icon swap relied on Webflow IX2 JS (which can init late) and the close
       icon shipped display:flex, so both icons could show. Key the toggle on
       Webflow core's reliable .w--open class instead. --- */
.navbar__close-icon-wrap { display: none; }
.navbar__menu-button.w--open .navbar__hamburguer-icon { display: none !important; }
.navbar__menu-button.w--open .navbar__close-icon-wrap { display: flex !important; }

/* --- Location/map section: on mobile the absolutely-positioned map overlapped
       the content. Stack info first, map below. --- */
@media screen and (max-width: 991px) {
  .location.full-location > .w-layout-blockcontainer.container,
  .location.full-location > .container { display: flex; flex-direction: column; }
  .location.full-location .map-absolute {
    position: relative; width: 100%; margin-left: 0;
    height: 320px; margin-top: 24px; border-radius: 12px; overflow: hidden; order: 2;
  }
  .location.full-location .map-absolute iframe { width: 100%; height: 100%; border: 0; }
  .location.full-location .location__wrap.reverse { grid-template-columns: 1fr; order: 1; }
}

/* --- Secondary-page service cards: icon left / content right on mobile --- */
@media screen and (max-width: 767px) {
  .service-boxes__inner.one-column {
    grid-template-columns: auto 1fr; grid-column-gap: 16px; align-items: start; padding: 20px;
  }
  .service-boxes__inner.one-column .service-boxes__icon-wrap { width: 48px; height: 54px; flex: none; }
  .service-boxes__inner.one-column .service-boxes__content-wrap { min-width: 0; }
}
