.funnel-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #46546a;
  border-radius: 999px;
  background: #111c2c;
  color: #dce4ef;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  appearance: none;
}

.funnel-back:hover {
  border-color: #7890ad;
  background: #182537;
  color: #fff;
}

.funnel .eyebrow { color: #aebed2; }
.funnel :focus-visible { outline-color: #87a9d6; }
.funnel input,
.funnel textarea {
  min-height: 58px;
  font-size: 19px;
  line-height: 1.4;
  scroll-margin-block: 96px;
}
.funnel textarea { min-height: 112px; }
.funnel input:-webkit-autofill {
  animation-name: brightify-autofill;
  animation-duration: .01s;
}
@keyframes brightify-autofill {
  from { opacity: .99; }
  to { opacity: 1; }
}
.funnel .step label {
  font-size: 18px;
}
.funnel .choices button {
  min-height: 72px;
  padding: 21px 22px;
  font-size: 20px;
  line-height: 1.35;
}
.funnel .choices button small {
  font-size: 16px;
  line-height: 1.5;
}
.funnel .cta {
  min-height: 52px;
  font-size: 17px;
  line-height: 1.35;
}
.funnel-toolbar {
  position: sticky;
  z-index: 6;
  top: 0;
  height: 56px;
  margin-bottom: -32px;
  background: linear-gradient(#0d1522 72%, rgba(13, 21, 34, 0));
}
.funnel-toolbar .progress {
  position: absolute;
  inset: 0 0 auto;
}
.funnel-toolbar .funnel-close {
  position: absolute;
  top: 8px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #46546a;
  border-radius: 50%;
  background: #111c2c;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.hero-actions,
.areas-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hero-actions {
  margin-top: 28px;
}
.hero-actions .cta,
.areas-cta .cta {
  min-height: 56px;
  padding-inline: 26px;
  font-size: 16px;
}
.hero-actions small,
.areas-cta small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.areas-cta {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: rgba(8, 15, 27, .58);
}
.areas-cta p {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.choices button[aria-pressed="true"] { border-color: var(--red); background: #182537; }
.form-error a { color: #fff; }
.field-error {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  color: #ff9ca4;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.field-error::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e3424d;
  box-shadow: 0 0 0 3px rgba(227, 66, 77, .14);
}
.step input[aria-invalid="true"],
.step textarea[aria-invalid="true"] {
  border-color: #e3424d;
  background: #151d2a;
  box-shadow: 0 0 0 3px rgba(227, 66, 77, .13);
}
.step input[aria-invalid="true"]:focus,
.step textarea[aria-invalid="true"]:focus {
  outline-color: #e96a73;
}
.sms-disclosure {
  margin: 12px 2px 0;
  color: #aebed2 !important;
  font-size: 15px;
  line-height: 1.65;
}
.sms-disclosure a { color: #fff; }
.project-details {
  margin: 18px 0 22px;
  border: 1px solid #3a4557;
  border-radius: 14px;
  background: #111c2c;
}
.project-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 15px 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary::after {
  content: "+";
  margin-left: auto;
  color: #aebed2;
  font-size: 24px;
  font-weight: 500;
}
.project-details[open] summary::after { content: "−"; }
.project-details summary span {
  order: 2;
  margin-left: 10px;
  color: #aebed2;
  font-size: 13px;
  font-weight: 600;
}
.project-details summary::after { order: 3; }
.project-details label { margin: 0 !important; padding: 0 18px 18px; }
.funnel-submit-zone { margin-top: 8px; }
.funnel-submit-zone .submit { width: 100%; }
.progress { position: relative; }
.progress[aria-valuenow] { outline: 0; }

/* Service pages use a real, high-priority image so the browser can discover
   and paint the LCP element without waiting for CSS background resolution. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #03070f;
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 15, .96), rgba(3, 7, 15, .62));
}
.page-hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #03070f;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 15, .95), rgba(3, 7, 15, .58) 60%, rgba(3, 7, 15, .18));
}
.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.funnel[open] {
  position: fixed;
  z-index: 1001;
  inset: 50% auto auto 50%;
  max-height: calc(100dvh - 24px);
  margin: 0;
  transform: translate(-50%, -50%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 24px;
  -webkit-overflow-scrolling: touch;
}

.funnel-scrim {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 5, 13, .8);
  backdrop-filter: blur(8px);
}

.funnel-scrim[hidden] { display: none; }
.funnel-open { overflow: hidden; }

.place-autocomplete-wrap {
  margin: 18px 0;
}
.funnel .place-autocomplete-wrap > label {
  margin: 0;
}
.place-suggestions {
  overflow: hidden;
  margin-top: 7px;
  border: 1px solid #46546a;
  border-radius: 12px;
  background: #111c2c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
}
.place-suggestions[hidden] { display: none; }
.place-suggestion-results {
  max-height: min(260px, 38dvh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.place-suggestion {
  display: grid;
  width: 100%;
  min-height: 62px;
  gap: 3px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid #344055;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.place-suggestion:hover,
.place-suggestion.active,
.place-suggestion[aria-selected="true"] {
  background: #1a2940;
}
.place-suggestion-main {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 750;
}
.place-suggestion-secondary {
  overflow-wrap: anywhere;
  color: #bdc8d8;
  font-size: 14px;
  font-weight: 550;
}
.place-attribution {
  padding: 6px 10px 7px;
  color: #bdc8d8;
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

@media (max-width: 850px) {
  body { padding-bottom: 0; }
  body.mobile-cta-visible { padding-bottom: 88px; }
  .mobile-cta-bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(100% + env(safe-area-inset-bottom)));
    transition: opacity .2s ease, transform .24s ease, visibility 0s linear .24s;
  }
  .mobile-cta-bar.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .header .desktop-header-cta {
    display: none !important;
  }
  .hero-actions .cta,
  .areas-cta .cta {
    width: 100%;
  }
  .areas-cta {
    width: 100%;
    margin-top: 15px;
    padding: 24px;
  }
  .funnel[open] {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: none;
  }
  .funnel .step {
    min-height: calc(100dvh - 56px);
    padding: 38px 24px calc(34px + env(safe-area-inset-bottom));
  }
  .funnel .step h2 {
    font-size: clamp(30px, 8vw, 36px);
  }
  .funnel .choices button {
    min-height: 78px;
  }
  .funnel .cta {
    min-height: 58px;
  }
  .funnel .step[data-step="contact"] {
    padding-bottom: 0;
  }
  .place-suggestion-results {
    max-height: min(220px, 34dvh);
  }
  .funnel-submit-zone {
    position: sticky;
    z-index: 5;
    bottom: 0;
    margin: 22px -24px 0;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: rgba(13, 21, 34, .97);
    box-shadow: 0 -18px 36px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
  }
  .sms-disclosure {
    margin: 12px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-cta-bar { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
