:root {
  --shared-header-height: 82px;
  --shared-header-scroll-padding: 96px;
  --shared-header-accent: #10a5c5;
  --shared-header-bg: rgba(0, 0, 0, 0.82);
  --shared-header-bg-scrolled: rgba(0, 0, 0, 0.9);
}

html {
  scroll-padding-top: var(--shared-header-scroll-padding, 96px);
}

[data-home-header] {
  display: block;
}

/* Keep hero content below the fixed header so the header sits over a white strip first. */
[data-home-header]::before {
  content: "";
  display: block;
  height: var(--shared-header-height, 82px);
  background: #ffffff;
}

.shared-home-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1400;
  padding: 0;
  background: var(--shared-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.shared-home-header.scrolled {
  background: var(--shared-header-bg-scrolled);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.shared-header-shell {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 24px;
}

.shared-urgency-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #121821;
}

.shared-urgency-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.shared-urgency-inner a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shared-header-main {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.shared-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  text-decoration: none;
  flex-shrink: 0;
}

.shared-logo-link img {
  width: auto;
  height: 48px;
  display: block;
}

.shared-desktop-nav {
  display: none;
  align-items: center;
  gap: 14px;
}

.shared-nav-link,
.shared-services-button {
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.shared-nav-link:hover,
.shared-services-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.shared-nav-link:focus-visible,
.shared-services-button:focus-visible {
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(16, 165, 197, 0.9);
  outline: none;
}

.shared-services-chevron {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.shared-services-wrap {
  position: relative;
}

.shared-services-wrap.is-open .shared-services-button {
  color: #ffffff;
  background: rgba(16, 165, 197, 0.2);
}

.shared-services-wrap.is-open .shared-services-chevron {
  transform: rotate(180deg);
}

.shared-services-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: min(620px, calc(100vw - 40px));
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.shared-services-wrap.is-open .shared-services-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.shared-services-menu-shell {
  border: 1px solid #3b4350;
  background: #151a22;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-radius: 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.shared-services-heading {
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--shared-header-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shared-services-list {
  display: grid;
}

.shared-services-item {
  display: grid;
  gap: 4px;
  padding: 12px 18px 12px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, border-left-color 160ms ease;
}

.shared-services-item:first-child {
  border-top: 0;
}

.shared-services-item-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.shared-services-item-desc {
  color: rgba(224, 234, 244, 0.75);
  font-size: 13px;
  line-height: 1.45;
  transition: color 160ms ease;
}

.shared-services-item:hover,
.shared-services-item:focus-visible {
  background: rgba(16, 165, 197, 0.12);
  border-left-color: var(--shared-header-accent);
  outline: none;
}

.shared-services-item:hover .shared-services-item-desc,
.shared-services-item:focus-visible .shared-services-item-desc {
  color: rgba(224, 234, 244, 0.84);
}

@media (max-width: 1180px) {
  .shared-services-menu {
    width: min(560px, calc(100vw - 34px));
  }
}

.shared-header-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.shared-contact-btn {
  display: none;
  align-items: stretch;
  border: 2px solid var(--shared-header-accent);
  background: var(--shared-header-accent);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  min-height: 56px;
  transition: background 160ms ease, border-color 160ms ease;
}

.shared-contact-btn span {
  display: inline-flex;
  align-items: center;
}

.shared-contact-btn .shared-contact-text {
  padding: 0 22px;
}

.shared-contact-btn .shared-contact-arrow {
  justify-content: center;
  width: 44px;
  background: #000;
}

.shared-contact-btn:hover,
.shared-contact-btn:focus-visible {
  background: #0c91ad;
  border-color: #0c91ad;
  outline: none;
}

.shared-contact-btn svg {
  width: 14px;
  height: 14px;
}

.shared-menu-toggle {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.shared-menu-toggle:hover,
.shared-menu-toggle:focus-visible {
  border-color: var(--shared-header-accent);
  color: var(--shared-header-accent);
  outline: none;
}

.shared-menu-toggle svg {
  width: 20px;
  height: 20px;
}

.shared-mobile-backdrop {
  position: fixed;
  inset: var(--shared-header-height, 82px) 0 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 1390;
}

.shared-mobile-panel {
  position: fixed;
  top: var(--shared-header-height, 82px);
  right: 0;
  width: min(420px, 100vw);
  height: calc(100dvh - var(--shared-header-height, 82px));
  background: #171b22;
  border-left: 1px solid #2e3540;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 220ms ease;
  z-index: 1400;
  padding: 18px 20px calc(26px + env(safe-area-inset-bottom));
}

.shared-mobile-panel.is-open {
  transform: translateX(0);
}

.shared-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.shared-mobile-block {
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px;
}

.shared-mobile-services-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.shared-mobile-services-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.shared-mobile-services-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.shared-mobile-services-content {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.shared-mobile-services-content[hidden] {
  display: none;
}

.shared-mobile-services-group {
  display: grid;
  gap: 8px;
}

.shared-mobile-services-group p {
  margin: 0;
  color: var(--shared-header-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.shared-mobile-service-item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  min-height: 48px;
  padding: 12px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.shared-mobile-service-item:hover,
.shared-mobile-service-item:focus-visible {
  border-color: rgba(16, 165, 197, 0.86);
  background: rgba(16, 165, 197, 0.12);
  outline: none;
}

.shared-mobile-service-title {
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.shared-mobile-service-desc {
  color: rgba(220, 231, 242, 0.78);
  font-size: 12px;
  line-height: 1.4;
}

.shared-mobile-nav {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.shared-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.shared-header-lock {
  overflow: hidden;
}

/* Landing page hero consistency */
#main-content > .hero {
  min-height: clamp(560px, 78vh, 820px);
  padding: clamp(56px, 7vw, 104px) 0 clamp(22px, 3.5vw, 34px);
}

#main-content > .hero .hero-grid:not(.hero-grid-single) {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

#main-content > .hero .hero-grid {
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}

#main-content > .hero .hero-text {
  max-width: 690px;
}

#main-content > .hero h1 {
  line-height: 1.08;
}

#main-content > .hero .hero-subheadline {
  margin-top: clamp(12px, 1.6vw, 18px);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.58;
  max-width: 62ch;
}

#main-content > .hero .hero-bullets {
  margin-top: clamp(14px, 2vw, 22px);
  gap: 10px;
}

#main-content > .hero .hero-bullet-copy {
  line-height: 1.5;
}

#main-content > .hero .hero-actions {
  margin-top: clamp(16px, 2vw, 24px);
  gap: 12px;
}

#main-content > .hero .hero-call-btn,
#main-content > .hero .hero-quote-btn,
#main-content > .hero .hero-actions .btn-primary,
#main-content > .hero .hero-actions .btn-secondary {
  min-height: 48px;
}

#main-content > .hero .hero-form-shell {
  width: min(100%, 540px);
  justify-self: end;
}

#main-content > .hero .form-card {
  border-radius: 8px;
  padding: clamp(18px, 2.2vw, 28px);
}

@media (max-width: 1024px) {
  #main-content > .hero {
    min-height: auto;
    padding: 44px 0 22px;
  }

  #main-content > .hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #main-content > .hero .hero-form-shell {
    width: 100%;
    max-width: 680px;
    justify-self: start;
  }

  #main-content > .hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #main-content > .hero .hero-actions .btn-primary,
  #main-content > .hero .hero-actions .btn-secondary,
  #main-content > .hero .hero-call-btn,
  #main-content > .hero .hero-quote-btn {
    width: 100%;
    justify-content: space-between;
  }

  #main-content > .hero .hero-trust-row,
  #main-content > .hero .hero-trust-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  #main-content > .hero {
    padding: 38px 0 18px;
  }

  #main-content > .hero h1 {
    font-size: clamp(30px, 8.6vw, 42px);
  }

  #main-content > .hero .hero-subheadline {
    font-size: 16px;
    line-height: 1.55;
  }

  #main-content > .hero .hero-bullet-copy {
    font-size: 15px;
    line-height: 1.45;
  }

  #main-content > .hero .hero-bullet-icon {
    width: 18px;
    height: 18px;
  }

  #main-content > .hero .hero-bullet {
    grid-template-columns: 18px 1fr;
    column-gap: 10px;
  }
}

@media (max-width: 480px) {
  #main-content > .hero {
    padding: 32px 0 16px;
  }

  #main-content > .hero .hero-subheadline {
    font-size: 15px;
    line-height: 1.5;
  }

  #main-content > .hero .form-card {
    padding: 16px;
  }
}

@media (any-pointer: coarse) {
  .shared-urgency-inner a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
  }
}

@media (min-width: 1024px) {
  .shared-desktop-nav {
    display: inline-flex;
  }

  .shared-contact-btn {
    display: inline-flex;
  }

  .shared-menu-toggle,
  .shared-mobile-panel,
  .shared-mobile-backdrop {
    display: none;
  }
}

@media (max-width: 767px) {
  .shared-header-shell {
    padding: 0 16px;
  }

  .shared-header-main {
    min-height: 74px;
  }

  .shared-logo-link img {
    height: 42px;
  }

  .shared-urgency-inner {
    min-height: 32px;
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 5px 0;
  }
}
