/* Shared responsive navigation and title-system overrides. */
body[data-page] :is(h1, h2, h3, h4, h5, h6) {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
}

@media (min-width: 901px) {
  body[data-page="services"] .home-service-card--final {
    grid-column: 2;
  }
}

body[data-page] {
  --site-header-offset: 88px;
}

body[data-page] main > section:first-child,
body[data-page] main > section:first-child::before,
body[data-page] main > section:first-child::after,
body[data-page] main > section:first-child + section,
body[data-page] main > section:first-child + section::before,
body[data-page] main > section:first-child + section::after,
.trust-strip,
.trust-strip::before,
.trust-strip::after {
  border-radius: 0 !important;
}

.trust-strip {
  margin: 0;
  padding: 24px 0;
  background: #111111;
}

.trust-strip__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.trust-strip__item {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding-inline: clamp(0.65rem, 1.2vw, 1rem);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Barlow", "Rubik", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.trust-strip__item + .trust-strip__item {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-strip__item svg {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  fill: none;
  color: var(--color-accent);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html {
  scroll-padding-top: 106px;
}

.site-header {
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(18, 11, 2, 0.14);
}

.site-header .nav-wrap {
  border-bottom: 0;
  border-radius: 0;
  background: #ffffff;
}

.site-header .nav-inner {
  width: 100%;
  max-width: none;
  min-height: 88px;
  margin: 0;
  padding: 0;
  padding-left: max(1.25rem, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: clamp(0.75rem, 1.4vw, 1.5rem);
  border-radius: 0;
}

.site-header .brand {
  align-self: center;
  min-width: 0;
}

.site-header .brand img {
  width: 260px;
  height: 80px;
  object-fit: cover;
  object-position: left center;
}

.site-header .primary-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  border-radius: 0;
}

.site-header .primary-nav > ul {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.6rem, 1.05vw, 1.25rem);
  border-radius: 0;
}

.site-header .primary-nav li {
  flex: 0 0 auto;
}

.site-header .primary-nav a {
  min-height: 50px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  color: var(--color-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header .primary-nav a.is-current,
.site-header .primary-nav a[aria-current="page"] {
  color: var(--color-accent-text);
}

.site-header .primary-nav a.is-current::after,
.site-header .primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header .nav-actions {
  align-self: stretch;
  height: auto;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.site-header .nav-phone {
  min-width: 11.5rem;
  height: 100%;
  display: inline-flex;
  padding-inline: 1rem;
}

.site-header .nav-phone-copy small,
.site-header .nav-phone-copy strong {
  letter-spacing: 0;
}

.site-header .nav-cta {
  align-self: stretch;
  min-width: 12.25rem;
  height: 100%;
  min-height: 88px;
  display: inline-flex;
  margin: 0;
  padding-inline: 1.35rem;
  border: 0;
  border-radius: 0;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header .nav-cta-copy {
  display: grid;
  gap: 0.12rem;
  justify-items: center;
  line-height: 1;
  text-align: center;
}

.site-header .nav-cta-copy small {
  color: #3f3a34;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.site-header .nav-cta-copy strong {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.site-header .menu-toggle,
.site-header .mobile-menu {
  display: none;
}

@media (min-width: 801px) and (max-width: 1640px) {
  body[data-page] {
    --site-header-offset: 140px;
  }

  html {
    scroll-padding-top: 158px;
  }

  .site-header .nav-inner {
    min-height: 140px;
    padding-left: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 88px 52px;
    gap: 0;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    margin-left: max(1.25rem, calc((100vw - 1180px) / 2));
  }

  .site-header .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-height: 52px;
    background: var(--color-ink);
  }

  .site-header .primary-nav > ul {
    width: min(1180px, calc(100% - 2rem));
    min-height: 52px;
    margin-inline: auto;
    gap: clamp(0.55rem, 1.6vw, 1.2rem);
  }

  .site-header .primary-nav a {
    min-height: 52px;
    color: #ffffff;
    font-size: 0.72rem;
  }

  .site-header .primary-nav a:hover,
  .site-header .primary-nav a:focus-visible,
  .site-header .primary-nav a.is-current,
  .site-header .primary-nav a[aria-current="page"] {
    color: var(--color-accent);
  }

  .site-header .nav-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .site-header .nav-cta {
    min-height: 88px;
  }
}

@media (min-width: 801px) and (max-width: 1040px) {
  .site-header .brand img {
    width: 224px;
    height: 78px;
  }

  .site-header .nav-phone {
    min-width: 10.75rem;
    padding-inline: 0.8rem;
  }

  .site-header .nav-phone-copy small {
    display: none;
  }

  .site-header .nav-phone-copy strong {
    font-size: 0.9rem;
  }

  .site-header .nav-cta {
    min-width: 11.25rem;
    padding-inline: 1rem;
  }
}

@media (max-width: 800px) {
  body.mobile-menu-active {
    overflow: hidden;
  }

  body[data-page] {
    --site-header-offset: 72px;
  }

  html {
    scroll-padding-top: 90px;
  }

  .site-header .nav-inner {
    width: 100%;
    min-height: 72px;
    padding: 0 0 0 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 72px;
    gap: 0;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header .brand img {
    width: 160px;
    height: 62px;
  }

  .site-header .primary-nav {
    display: none;
  }

  .site-header .nav-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    height: 72px;
    gap: 0;
  }

  .site-header .nav-phone {
    display: none;
  }

  .site-header .nav-cta {
    display: none !important;
  }

  .site-header .menu-toggle {
    position: relative;
    width: 54px;
    height: 54px;
    margin: 9px 0.55rem;
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 0;
    background: transparent;
  }

  .site-header .menu-toggle span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    margin: 0;
    border-radius: 0;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.15s ease;
  }

  .site-header .menu-toggle span:nth-child(1) {
    transform: translate(-50%, -7px);
  }

  .site-header .menu-toggle span:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .site-header .menu-toggle span:nth-child(3) {
    transform: translate(-50%, 5px);
  }

  .site-header.menu-open,
  .site-header.menu-open .nav-wrap,
  .site-header.menu-open .nav-inner {
    background: var(--color-accent);
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%);
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .site-header .mobile-menu {
    display: grid;
    position: fixed;
    inset: 72px 0 0;
    z-index: 1101;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(42px, auto);
    align-content: center;
    justify-items: center;
    gap: 0.12rem;
    max-height: none;
    padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 0;
    background: var(--color-accent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header .mobile-menu a {
    width: min(100%, 28rem);
    min-height: 45px;
    padding: 0.42rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--color-ink);
    font-family: "Bebas Neue", "Arial Narrow", sans-serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
  }

  .site-header .mobile-menu a:hover,
  .site-header .mobile-menu a:focus-visible,
  .site-header .mobile-menu a.is-current,
  .site-header .mobile-menu a[aria-current="page"] {
    color: var(--color-ink);
    background: rgba(18, 11, 2, 0.1);
  }

  .site-header .mobile-menu .mobile-menu-cta {
    width: min(100%, 20rem);
    min-height: 86px;
    margin-top: 0.85rem;
    padding: 0.7rem 1rem;
    display: grid;
    gap: 0.15rem;
    justify-items: center;
    border: 2px solid var(--color-ink);
    border-radius: 0;
    background: #ffffff;
  }

  .site-header .mobile-menu-cta small {
    color: #3f3a34;
    font-family: "Rubik", "Segoe UI", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
  }

  .site-header .mobile-menu-cta strong {
    color: var(--color-ink);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
  }

  .site-header.menu-open .mobile-menu {
    max-height: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    overflow-y: auto;
  }
}

@media (max-width: 800px) and (max-height: 700px) {
  .site-header .mobile-menu {
    align-content: start;
  }
}

@media (max-width: 767px) {
  .trust-strip {
    padding: 18px 0;
  }

  .trust-strip__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .trust-strip__item,
  body.service-landing-blueprint .trust-strip__item {
    min-height: 70px;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
  }

  .trust-strip__item + .trust-strip__item {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .trust-strip__item svg,
  body.service-landing-blueprint .trust-strip__item svg {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  body.service-landing-blueprint .trust-strip__item:last-child {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .site-header .nav-inner {
    padding-left: 0.65rem;
  }

  .site-header .brand img {
    width: 146px;
  }

  .site-header .menu-toggle {
    width: 48px;
    margin-inline: 0.35rem;
  }
}
