/* Staged CRO refresh — external NextFrontLine pages only (2026-08-15). */
:root {
  --refresh-navy: #0b1930;
  --refresh-blue: #0a6ebd;
  --refresh-cyan: #68d9e8;
  --refresh-ink: #10213b;
}

html { scroll-padding-top: 88px; }
body { overflow-x: clip; }
a, button { min-width: 0; }
.button, .header-contact, .nav-cta { min-height: 44px; }
.container, .page-hero .container, .home-hero__grid > *, .split > *, .card { min-width: 0; }
.page-hero p, .hero__lead, .card p, .journey-nav__link { overflow-wrap: anywhere; }

/* Corporate first view: service choice precedes the long-form consultation. */
.home-hero { border-bottom: 1px solid #cfe0ea; }
.home-hero .hero__copy { position: relative; }
.home-hero .hero__copy::before {
  display: block;
  width: 72px;
  height: 6px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--refresh-blue), var(--refresh-cyan));
  content: "";
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  color: #42556d;
  font-size: .8rem;
  font-weight: 750;
  list-style: none;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust li::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--refresh-blue);
  content: "";
}
.hero__service-list a {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.hero__service-list a::after { color: var(--refresh-blue); content: "→"; }
.hero__service-list a:hover { color: var(--refresh-blue); }

/* A visible, measurable micro-conversion path reused by service pages. */
.journey-nav {
  position: relative;
  z-index: 2;
  margin-top: -24px;
}
.journey-nav__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #cbdde9;
  border-radius: 18px;
  background: #cbdde9;
  box-shadow: 0 18px 42px rgba(12, 27, 51, .12);
}
.journey-nav__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 14px 16px;
  color: var(--refresh-ink);
  background: #fff;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}
.journey-nav__link span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--refresh-blue);
  font-size: .72rem;
}
.journey-nav__link:hover { color: var(--refresh-blue); background: #f5fbff; }
.journey-nav__link[aria-current="step"] { color: #fff; background: var(--refresh-navy); }
.journey-nav__link[aria-current="step"] span { color: var(--refresh-navy); background: var(--refresh-cyan); }

/* Shared service first-view treatment; facts remain in page HTML. */
body[data-brand] .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #cfe0ea;
  background: linear-gradient(145deg, #fbfdff 0%, #edf6fb 70%, #e7f1f8 100%);
}
body[data-brand] .page-hero::after {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 217, 232, .24), transparent 68%);
  content: "";
}
body[data-brand] .page-hero h1 { max-width: 15ch; text-wrap: balance; }
body[data-brand] .page-hero .container > p:not(.kicker) { max-width: 64ch; }
body[data-brand] .page-hero .button-row { margin-top: 28px; }
body[data-brand="sales-promotion"] { --refresh-blue: #a23e22; --refresh-cyan: #f1b56f; }
body[data-brand="logistics"] { --refresh-blue: #14705e; --refresh-cyan: #8ed7bf; }
body[data-brand="nextdrive"] { --refresh-blue: #176854; --refresh-cyan: #a9e34b; }
body[data-brand="nextdrive"] .page-hero::before {
  position: absolute;
  z-index: -1;
  right: clamp(18px, 7vw, 100px);
  bottom: -84px;
  width: clamp(180px, 28vw, 380px);
  height: 340px;
  border: 24px solid rgba(23, 104, 84, .09);
  border-top: 0;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  transform: rotate(16deg);
  content: "";
}
body[data-brand="nextdrive"] .limit-strip span:first-child { color: #0c5a49; background: #e8f7ef; }

/* Consent stays above mobile sticky conversion controls; all controls remain 44px. */
.ga-consent {
  max-width: 48rem;
  gap: .8rem;
  padding: .72rem .8rem;
  font-size: .79rem;
  line-height: 1.45;
}
.ga-consent__body strong { display: inline; margin: 0 .45rem 0 0; font-size: .88rem; }
.ga-consent__body p { display: inline; }
.ga-consent__policy { margin: 0 0 0 .45rem; white-space: nowrap; }
.ga-consent__actions button, .ga-consent-settings { min-height: 44px; }
.ga-consent-settings { min-width: 44px; }

@media (max-width: 900px) {
  .journey-nav__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .home-hero .hero__copy::before { margin-bottom: 16px; }
  .home-hero .button-row, .page-hero .button-row { display: grid; grid-template-columns: 1fr; }
  .home-hero .button-row .button, .page-hero .button-row .button { width: 100%; }
  .hero-trust { display: grid; gap: 8px; }
  .journey-nav { margin-top: -16px; }
  .journey-nav__inner { grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .journey-nav__link { min-height: 64px; padding: 10px 11px; font-size: .77rem; }
  .journey-nav__link span { width: 26px; height: 26px; }
  body[data-brand] .page-hero { padding-block: 44px 64px; }
  body[data-brand] .page-hero h1 { max-width: none; font-size: clamp(2rem, 10vw, 3.2rem); }
  .ga-consent {
    right: .5rem;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: .5rem;
    gap: .45rem;
    padding: .6rem;
  }
  .ga-consent__body { font-size: .72rem; line-height: 1.35; }
  .ga-consent__body strong { display: block; margin: 0 0 .12rem; }
  .ga-consent__policy { display: inline; margin: 0 0 0 .25rem; }
  .ga-consent__actions { gap: .4rem; }
  .ga-consent__actions button { min-height: 44px; padding: .55rem .7rem; font-size: .78rem; }
  .ga-consent-settings { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  .journey-nav__inner { grid-template-columns: 1fr; }
  .journey-nav__link { min-height: 56px; }
  .ga-consent { flex-direction: column; align-items: stretch; }
  .ga-consent__actions button { flex: 1; }
}

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