/* ============================================================================
   Granite Paving — post-migration custom styles
   (off-Webflow additions: search, pagination, gallery filter, form widget,
   accessibility + mobile parity fixes). Brand gold: #efb843
   ============================================================================ */

:root { --gp-gold: #efb843; --gp-navy: #01182a; }

.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;
}

/* keep the sticky navbar above hero overlays / background videos on scroll */
.navbar { z-index: 1000; }

/* ---- service-card + area-link hover ------------------------------------- */
.service-boxes__title-link, .service-top, a.service-top {
  color: inherit; text-decoration: none; transition: color .2s ease;
}
.service-top:hover .service-boxes__title { color: var(--gp-gold); }
.service-boxes__title { transition: color .2s ease; }
.service-boxes__link { transition: color .2s ease; }
.service-area__text { transition: color .2s ease; }
.service-area__text:hover { color: var(--gp-gold); }
.s-area-item h4 { transition: color .2s ease; }
.s-area-item:hover h4 a, .s-area-item h4 a:hover { color: var(--gp-gold); }

/* ---- service-areas hub search box --------------------------------------- */
.area-search { max-width: 540px; margin: 0 auto 2.2rem; }
.area-search__input {
  width: 100%; box-sizing: border-box; padding: 0.9rem 1.1rem;
  font-size: 16px; border: 1px solid #d9d9d9; border-radius: 10px; outline: none;
  background: #fff; color: var(--gp-navy); transition: border-color .2s ease;
}
.area-search__input:focus { border-color: var(--gp-gold); } /* no box-shadow spread (iOS h-scroll) */
.area-search__empty { text-align: center; margin-top: 1rem; opacity: .85; }

/* ---- service-areas pagination (mini lists) ------------------------------ */
.area-paginate {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 36px;
}
.area-paginate__btn {
  min-width: 42px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: #fff; border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 15px; transition: all .2s ease;
}
.area-paginate__btn:hover:not([disabled]) { border-color: var(--gp-gold); color: var(--gp-gold); }
.area-paginate__btn.is-active { background: var(--gp-gold); border-color: var(--gp-gold); color: var(--gp-navy); }
.area-paginate__btn[disabled] { opacity: .4; cursor: default; }
/* pagination on light backgrounds */
.quote .area-paginate__btn, .reviews .area-paginate__btn { border-color: rgba(1,24,42,.25); color: var(--gp-navy); }

/* ---- gallery service-filter tabs ---------------------------------------- */
.gallery__filter-list {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 32px;
}
.gallery__filter-btn {
  padding: 9px 18px; border: 1px solid rgba(255,255,255,.3); background: transparent;
  color: #fff; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px;
  transition: all .2s ease;
}
.gallery__filter-btn:hover { border-color: var(--gp-gold); color: var(--gp-gold); }
.gallery__filter-btn.is-active { background: var(--gp-gold); border-color: var(--gp-gold); color: var(--gp-navy); }

/* ---- ALTCHA widget: readable white card on the dark form ----------------
   The widget renders in the light DOM and its text defaults to the page text
   color (dark navy) on a transparent background — unreadable on the dark quote
   form. Force a white card with dark text via the theme vars + direct rules. */
altcha-widget {
  --altcha-color-base: #ffffff;
  --altcha-color-text: #01182a;
  --altcha-color-border: #d9d9d9;
  --altcha-color-border-focus: #efb843;
  --altcha-border-width: 1px;
  --altcha-border-radius: 10px;
  --altcha-max-width: 100%;
  display: block; margin-bottom: 14px;
}
altcha-widget .altcha { background: #fff !important; color: #01182a !important; border: 1px solid #d9d9d9 !important; }
altcha-widget .altcha-main, altcha-widget .altcha-label, altcha-widget .altcha-label * { color: #01182a !important; }
altcha-widget .altcha a { color: #01182a !important; }

/* ---- contact form: iOS-safe 16px inputs --------------------------------- */
.quote__form-input, .w-input, .w-select { font-size: 16px; }

/* ---- Elfsight reviews --------------------------------------------------- */
/* reviews PAGE only: reserve height so the widget doesn't collapse on load */
.reviews__wrap .elfsight-app-5c53730e-cb24-4bc3-810a-e11b15d28a29 { 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: "Open Sans", 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 carousel "See more Reviews" button centered */
.carousel-reviews__wrap > .button {
  display: block; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto;
}

/* ============================================================================
   MOBILE PARITY FIXES
   ============================================================================ */

/* Location map: .map-absolute is position:absolute (desktop right half).
   On mobile stack the info first, map below. */
@media screen and (max-width: 991px) {
  .location.full-location .map-wrap,
  .location.full-location > .container,
  .location.full-location .w-layout-blockcontainer.container { display: flex; flex-direction: column; }
  .location.full-location .map-absolute {
    position: relative; inset: auto; width: 100%; margin: 24px 0 0 0;
    height: 320px; 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 { order: 1; }
}

/* Secondary-page one-column 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; }
}
