/* ============================================================================
 * migration.css — off-platform fixes for the Webflow -> Cloudflare migration.
 * Loaded AFTER the Webflow stylesheets on every page. Keep the original design
 * intact; only patch things that break or need new behaviour off Webflow.
 * Brand: --color--primary #01182a (navy), --color--secondary #e9a338 (gold).
 * ==========================================================================*/

/* --- Sticky navbar must sit above hero overlays / maps / videos ---------- */
.navbar { z-index: 1000; }

/* --- Mobile hamburger <-> close icon swap (deterministic, keyed on .w--open
   so it works even if Webflow IX2 doesn't initialise in time) ------------ */
.navbar__close-icon-wrap { display: none !important; }
.navbar__menu-button.w--open .navbar__hamburguer-icon { display: none !important; }
.navbar__menu-button.w--open .navbar__close-icon-wrap { display: flex !important; }

/* --- Contact form: ALTCHA widget + honeypot ------------------------------ */
.gw-altcha { display: block; margin: 0 0 16px; width: 100%; }
altcha-widget {
  --altcha-border-width: 1px;
  --altcha-border-radius: 10px;
  --altcha-color-border: #d9d9d9;
  --altcha-max-width: 100%;
  display: block;
}
.gw-hp {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; opacity: 0 !important;
  pointer-events: none !important;
}

/* --- iOS: 16px minimum on inputs prevents auto-zoom (Webflow uses 14px) --- */
@media screen and (max-width: 767px) {
  .quote__form-input, .w-input, .w-select, textarea.quote__form-input,
  #area-search-input { font-size: 16px !important; }
}

/* --- FAQ accordion (driven by /js/site.js; these are the visual cues) ---- */
.faq__question-wrap { cursor: pointer; }
[data-faq-answer] { overflow: hidden; }

/* Service-card / area-name hovers are left to the ORIGINAL stylesheet
   (.service-boxes__title:hover & .service-boxes__link:hover -> --dark-orange),
   so the migrated site's hover colors match the original exactly. */

/* --- Service-areas hub: instant search box ------------------------------- */
.area-search { max-width: 560px; margin: 0 auto 2rem; }
.area-search__input {
  width: 100%; box-sizing: border-box; padding: 0.85rem 1.1rem;
  font-size: 1rem; border: 1px solid #d9d9d9; border-radius: 10px; outline: none;
  transition: border-color .2s ease;
}
/* border-color focus (no box-shadow spread -> no iOS horizontal scroll) */
.area-search__input:focus { border-color: var(--color--secondary); }
.area-search__empty { text-align: center; margin-top: 1rem; opacity: .85; }
.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;
}

/* --- Gallery filter tabs (vanilla) --------------------------------------- */
.gallery__filter-radio { cursor: pointer; user-select: none; }

/* --- Mobile: full-location map (.map-absolute is position:absolute on the
   desktop right half; stack it below the info on mobile) ------------------ */
@media screen and (max-width: 991px) {
  .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; }
}

/* --- Reviews PAGE: give the Elfsight widget room + style its Load More ---- */
.reviews__wrap .reviews__grid-code { min-height: 480px; }
.reviews__wrap .es-load-more-button-container {
  margin-top: 40px !important; display: flex !important; justify-content: center !important;
}
.reviews__wrap .es-load-more-button.es-button-base-container {
  font-family: "DM Sans", "Nunito", sans-serif !important;
  padding: 14px 30px !important; min-height: 0 !important; height: auto !important;
  border-radius: 10px !important; font-weight: 700 !important; font-size: 16px !important;
}
/* Home reviews carousel "read more Reviews" button centered */
.carousel-reviews__wrap > .button {
  display: block; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto;
}

/* --- 404 utility page polish -------------------------------------------- */
.utility-page-wrap { text-align: center; }

/* --- Color contrast note ----------------------------------------------------
   Lighthouse flags white text on the brand gold buttons (~1.7:1), the light-peach
   active nav link, and the gold "Learn More" links. Those are the brand colors
   themselves, and overriding them changed the look + broke the button hover
   (white -> gold) animation. Per the client's request to MATCH the original site,
   we leave the brand colors untouched here — so contrast stays a known brand
   trade-off, not a code change. */
