/*
 * DIRECTLY EDITABLE STYLES
 *
 * Put routine design changes here. It loads after site.css, so a saved change
 * is visible on the next normal reload without rebuilding the website.
 */

:root {
  --reachout-primary: #0097b2;
  --reachout-ink: #07131e;
}

.nav-running-border {
  border: 1px solid color-mix(in srgb, var(--reachout-primary) 45%, transparent);
  box-shadow: 0 6px 20px rgb(0 151 178 / 12%);
}

[data-mobile-navigation] a {
  padding-inline: 0.5rem;
}

[data-service-selected="true"] {
  border-color: var(--reachout-primary) !important;
  background: #f1fafc !important;
}

[data-service-selected="true"] .h-2 {
  background: var(--reachout-primary) !important;
  transform: scale(1.3);
}

/* Intro video: the first-visit state is set in the document head to avoid a
   flash of clickable page content before the deferred controller runs. */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.intro-pending,
.intro-pending body {
  overflow: hidden;
}

.intro-pending .site-intro {
  display: flex;
}

.intro-pending #site-root {
  pointer-events: none;
  height: 100vh;
  overflow: hidden;
}

.site-intro__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-intro__actions {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.site-intro__button {
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 9999px;
  background: rgb(0 0 0 / 36%);
  padding: 0.625rem 1.25rem;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background-color 160ms ease, color 160ms ease;
}

.site-intro__button:hover,
.site-intro__button:focus-visible {
  background: #fff;
  color: #000;
}

/* JavaScript restores the original page-level affordances without making the
   PHP templates depend on a compiled React bundle. */
[data-custom-cursor] {
  visibility: hidden;
}

.has-custom-cursor [data-custom-cursor] {
  visibility: visible;
}

.site-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  width: 100%;
  height: 0.25rem;
  background: rgb(226 232 240 / 60%);
  pointer-events: none;
}

.site-scroll-progress__value {
  width: 0;
  height: 100%;
  background: var(--reachout-primary);
  transition: width 200ms ease-out;
}

.site-floating-back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 50;
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #fff;
  color: #07131e;
  box-shadow: 0 18px 55px rgb(15 23 42 / 16%);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-floating-back-to-top:hover,
.site-floating-back-to-top:focus-visible {
  background: var(--reachout-primary);
  color: #fff;
  transform: translateY(-2px);
}

.site-reveal {
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.site-reveal.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Progressive cross-page equivalent of the original client-router fades.
   Browsers without View Transitions keep normal navigation. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: reachout-page-out 180ms ease-out both;
}

::view-transition-new(root) {
  animation: reachout-page-in 360ms ease-out both;
}

@keyframes reachout-page-out {
  to { opacity: 0; transform: translateY(-12px); }
}

@keyframes reachout-page-in {
  from { opacity: 0; transform: translateY(18px); }
}

.blog-search-icon {
  width: 1rem;
  height: 1rem;
}

.blog-feature-image,
.blog-card-image {
  object-position: left center;
}

.lead-popup[hidden] {
  display: none;
}

.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1rem;
  background: rgb(7 19 30 / 58%);
  backdrop-filter: blur(5px);
}

.lead-popup__panel {
  position: relative;
  width: min(100%, 39rem);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 1.75rem;
  background: #fff;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  color: #07131e;
  box-shadow: 0 30px 100px rgb(0 0 0 / 35%);
}

.lead-popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.lead-popup__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.lead-popup__fields label,
.lead-popup__field {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.lead-popup__fields input,
.lead-popup__field select,
.lead-popup__field textarea {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #f8fafc;
  padding: 0.625rem 0.75rem;
  color: #0f172a;
  font: inherit;
  outline: none;
}

.lead-popup__field textarea {
  min-height: 4.75rem;
  resize: vertical;
}

.lead-popup__service-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.lead-popup__service-fieldset legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.lead-popup__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.lead-popup__service {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.lead-popup__service input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-popup__service-option {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr) 0.5rem;
  min-height: 2.6rem;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #f8fafc;
  padding: 0.4rem 0.5rem;
  color: #334155;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.2;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.lead-popup__service-number {
  display: inline-flex;
  width: 1.65rem;
  height: 1.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #fff;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 600;
}

.lead-popup__service-dot {
  width: 0.42rem;
  height: 0.42rem;
  justify-self: end;
  border-radius: 9999px;
  background: #dce5f1;
}

.lead-popup__service input:checked + .lead-popup__service-option {
  border-color: #0097b2;
  background: #ecfeff;
  color: #07576a;
  box-shadow: 0 0 0 2px rgb(0 151 178 / 12%);
}

.lead-popup__service input:checked + .lead-popup__service-option .lead-popup__service-number {
  border-color: #0097b2;
  background: #0097b2;
  color: #fff;
}

.lead-popup__service input:checked + .lead-popup__service-option .lead-popup__service-dot {
  background: #0097b2;
}

.lead-popup__service input:focus-visible + .lead-popup__service-option {
  outline: 3px solid rgb(0 151 178 / 24%);
  outline-offset: 2px;
}

.lead-popup__fields input:focus,
.lead-popup__field select:focus,
.lead-popup__field textarea:focus {
  border-color: #0097b2;
  background: #fff;
  box-shadow: 0 0 0 3px rgb(0 151 178 / 14%);
}

.lead-popup__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.lead-popup__feedback {
  min-height: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.lead-popup__feedback.is-error {
  color: #be123c;
}

.lead-popup__feedback.is-success {
  color: #047857;
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.form-feedback.is-error {
  color: #be123c;
}
.form-feedback.is-success {
  color: #047857;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

@media (max-width: 640px) {
  .site-intro__actions {
    right: 1rem;
    bottom: 1rem;
  }

  .site-floating-back-to-top {
    right: 1rem;
    bottom: 1rem;
  }

  .lead-popup {
    padding: 0.75rem;
  }

  .lead-popup__panel {
    border-radius: 1.25rem;
  }

  .lead-popup__services {
    gap: 0.35rem;
  }

  .lead-popup__service-option {
    grid-template-columns: 1.45rem minmax(0, 1fr) 0.42rem;
    min-height: 2.35rem;
    gap: 0.25rem;
    padding: 0.32rem 0.4rem;
    font-size: 0.68rem;
  }

  .lead-popup__service-number {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.58rem;
  }

  .lead-popup__field textarea {
    min-height: 3.9rem;
  }

  .lead-popup__actions {
    justify-content: space-between;
    gap: 0.75rem;
  }
}
