/* ==================================================================
 * solution-poster.css — shared "poster" design system for every
 * solutions/*.html page.
 *
 * Started as a one-off for the warehouse page (built from the SVT
 * Warehouse Solutions poster: deep navy ground, a number-tile strip,
 * a gold rule under every number, an amber wedge cutting into a navy
 * band) and generalized here so all five solution pages read as one
 * family: same navy ground, same gold thread, same hero/band/step
 * structure — with one accent color that changes per solution so
 * they stay distinguishable from each other.
 *
 * Usage: put `sol-poster` plus one solution class on <body>, e.g.
 * `<body class="sol-poster sol-fleet">`. The solution class sets
 * --sp-accent*; everything else reads that variable, so adding a
 * sixth solution later is just three new variable lines below.
 * ================================================================== */

body.sol-poster {
  --sp-navy-900: #081a3a;
  --sp-navy-800: #0d2650;
  --sp-navy-700: #133566;
  --sp-gold: #f0a12b;
  --sp-gold-soft: #fbbf24;
  --sp-ink: #0b1b33;
  --sp-mist: #eef3fa;
  --sp-line: #dbe5f2;
}

/* One accent per solution. Everything else in this file is shared. */
body.sol-warehouse     { --sp-accent: #1b5fbf; --sp-accent-tint: rgba(43, 116, 221, .45); --sp-accent-soft: #9ec5ff; }
body.sol-fleet         { --sp-accent: #0c8ea8; --sp-accent-tint: rgba(14, 165, 184, .40); --sp-accent-soft: #8fe0ee; }
body.sol-maintenance   { --sp-accent: #6d3fd1; --sp-accent-tint: rgba(124, 58, 237, .40); --sp-accent-soft: #cbb6fb; }
body.sol-property      { --sp-accent: #4147c4; --sp-accent-tint: rgba(79, 70, 229, .40);  --sp-accent-soft: #b3b6fb; }
body.sol-sustainability{ --sp-accent: #158f5c; --sp-accent-tint: rgba(22, 163, 105, .40); --sp-accent-soft: #8fe3bd; }
body.sol-security      { --sp-accent: #b91c1c; --sp-accent-tint: rgba(185, 28, 28,  .40); --sp-accent-soft: #fca5a5; }


/* ------------------------------------------------------------------
 * Hero — poster split: type on one side, a photo bleeding in from the
 * other and dissolving into the navy.
 * ------------------------------------------------------------------ */
body.sol-poster .sol-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 0;
  background:
    radial-gradient(120% 140% at 88% 18%, var(--sp-accent-tint) 0%, rgba(13, 38, 80, 0) 58%),
    linear-gradient(160deg, var(--sp-navy-900) 0%, var(--sp-navy-800) 52%, var(--sp-navy-700) 100%);
}
/* Faint blueprint grid, the way the poster's floor recedes. */
body.sol-poster .sol-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}
body.sol-poster .sol-hero .blog-shell { position: relative; z-index: 2; }

body.sol-poster .sp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}
body.sol-poster .sp-hero-copy { min-width: 0; }

body.sol-poster .sol-eyebrow { color: var(--sp-gold-soft); }

body.sol-poster .sol-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(2.2rem, 4.6vw, 3.75rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
/* The poster drops the key word to gold. */
body.sol-poster .sol-hero h1 .sp-accent-word { color: var(--sp-gold); }

body.sol-poster .sol-hero-bar {
  width: 84px;
  height: 5px;
  background: var(--sp-gold);
  margin: 24px 0 20px;
}

body.sol-poster .sp-hero-lead {
  margin: 0 0 12px;
  max-width: 560px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
body.sol-poster .sp-hero-lead span { color: var(--sp-accent-soft); }

body.sol-poster .sol-hero p { color: #b9cbe4; }

body.sol-poster .sol-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  color: inherit;
}
body.sol-poster .sol-hero-tags span {
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--sp-accent-soft) 40%, transparent);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sp-accent-soft);
}

body.sol-poster .sol-back { color: #9db4d4; }
body.sol-poster .sol-back:hover { color: var(--sp-gold); }

/* Hero photo: gold frame edge on the leading side, dissolving into the navy. */
body.sol-poster .sp-hero-art {
  position: relative;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
}
body.sol-poster .sp-hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  mask-image: linear-gradient(100deg, transparent 0%, #000 26%, #000 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 26%, #000 100%);
}
body.sol-poster .sp-hero-art::after {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  border-radius: 4px;
  background: var(--sp-gold);
}


/* ------------------------------------------------------------------
 * "One ___." claim band — the poster's footer bar, with the gold
 * wedge biting into it from the left. Every solution reuses the same
 * "One [thing]. [outcome]." formula so the pages read as a series.
 * ------------------------------------------------------------------ */
body.sol-poster .sp-band {
  position: relative;
  background: var(--sp-navy-900);
  color: #fff;
  overflow: hidden;
}
body.sol-poster .sp-band::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 190px;
  background: var(--sp-gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 74px) 100%, 0 100%);
}
body.sol-poster .sp-band-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 22px 0;
}
body.sol-poster .sp-band-claim {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
body.sol-poster .sp-band-claim em {
  font-style: normal;
  color: var(--sp-gold);
}
body.sol-poster .sp-band-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
body.sol-poster .sp-band-contact a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
  color: #dce8f8;
  text-decoration: none;
}
body.sol-poster .sp-band-contact a:hover { color: #fff; }
body.sol-poster .sp-band-contact i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sp-gold);
  color: var(--sp-navy-900);
  font-size: 13px;
}


/* ------------------------------------------------------------------
 * Step strip — the poster's centrepiece: number tile, icon tile,
 * label plate. Warehouse uses six steps in a 2-column grid; the other
 * four pages use three steps (their existing Core Focus bullets) in a
 * 3-column grid. .sp-steps--3 picks that variant.
 * ------------------------------------------------------------------ */
body.sol-poster .sp-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
body.sol-poster .sp-steps--3 { grid-template-columns: repeat(3, 1fr); }
body.sol-poster .sp-steps--3 > li { display: flex; }
@media (max-width: 900px) {
  body.sol-poster .sp-steps,
  body.sol-poster .sp-steps--3 { grid-template-columns: 1fr; }
}

body.sol-poster .sp-step {
  display: grid;
  grid-template-columns: 78px 74px minmax(0, 1fr);
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 28px -18px rgba(8, 26, 58, .55);
  transition: transform .22s ease, box-shadow .22s ease;
}
body.sol-poster .sp-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -18px rgba(8, 26, 58, .6);
}
/* The 3-across variant has more width per card, so stack num+icon above
   the label instead of running all three side by side. */
body.sol-poster .sp-steps--3 .sp-step {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  height: 100%;
}
body.sol-poster .sp-steps--3 .sp-step-head {
  display: grid;
  grid-template-columns: 78px 1fr;
}

body.sol-poster .sp-step-num {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 20px 0;
  background: var(--sp-accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
/* The gold tick the poster puts under every number. */
body.sol-poster .sp-step-num::after {
  content: '';
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--sp-gold);
}

body.sol-poster .sp-step-icon {
  display: grid;
  place-items: center;
  background: var(--sp-navy-800);
  color: #cfe0f8;
  font-size: 22px;
}
body.sol-poster .sp-step:hover .sp-step-icon { color: var(--sp-gold); }

body.sol-poster .sp-step-body {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--sp-line);
}
body.sol-poster .sp-step:not(.sp-steps--3 *) .sp-step-body,
body.sol-poster .sp-step .sp-step-body { border-left: 0; }
body.sol-poster .sp-steps--3 .sp-step-body { border-top: 0; border-radius: 0 0 14px 14px; }
body.sol-poster .sp-step-body strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--sp-ink);
}
body.sol-poster .sp-step-body small {
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}


/* ------------------------------------------------------------------
 * Section furniture retuned to the poster's palette.
 * ------------------------------------------------------------------ */
body.sol-poster .sol-section { border-top-color: var(--sp-line); }

/* Numbered section label: accent color, with the same gold tick. */
body.sol-poster .sol-section-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sp-accent);
}
body.sol-poster .sol-section-num::after {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--sp-gold);
}
body.sol-poster .sol-section-head h2,
body.sol-poster .sol-media-copy h2 { color: var(--sp-ink); }

/* Label plates, echoing the strip's white tiles. */
body.sol-poster .sol-box {
  background: #fff;
  border: 1px solid var(--sp-line);
  border-top: 3px solid var(--sp-accent);
  border-radius: 14px;
  transition: border-top-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body.sol-poster .sol-box:hover {
  border-top-color: var(--sp-gold);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -22px rgba(8, 26, 58, .55);
}
body.sol-poster .sol-box h4 { color: var(--sp-ink); }

body.sol-poster .sol-columns {
  background: var(--sp-mist);
  border: 1px solid var(--sp-line);
  border-radius: 18px;
}
body.sol-poster .sol-columns h5 { color: var(--sp-accent); }
body.sol-poster .sol-columns li::before,
body.sol-poster .sol-list li::before { background: var(--sp-gold); }
body.sol-poster .sol-list li strong { color: var(--sp-ink); }

body.sol-poster .sol-media-photo {
  border-radius: 18px;
  border: 1px solid var(--sp-line);
}

/* Callouts: navy plate with the gold edge the poster uses. */
body.sol-poster .sol-callout {
  position: relative;
  background: var(--sp-navy-800);
  border-radius: 14px;
  padding-left: 30px;
  overflow: hidden;
}
body.sol-poster .sol-callout::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--sp-gold);
}
body.sol-poster .sol-callout span { color: #a9c1e0; }

body.sol-poster .sol-score {
  background: var(--sp-navy-800);
  border-radius: 14px;
  border-left: 6px solid var(--sp-gold);
}
body.sol-poster .sol-score strong { color: var(--sp-gold); }

body.sol-poster .sol-cta {
  border-radius: 20px;
  background:
    radial-gradient(90% 160% at 92% 12%, var(--sp-accent-tint) 0%, rgba(13, 38, 80, 0) 60%),
    linear-gradient(135deg, var(--sp-navy-900), var(--sp-navy-700));
}
body.sol-poster .sol-cta a {
  background: var(--sp-gold);
  color: var(--sp-navy-900);
}
body.sol-poster .sol-cta a:hover { background: #ffb648; }

/* Floating rail picks up the accent/gold too. */
body.sol-poster .svt-floating-nav a.active { background: var(--sp-navy-800); }
body.sol-poster .svt-floating-nav a:hover { color: var(--sp-accent); background: color-mix(in srgb, var(--sp-accent) 9%, transparent); }
body.sol-poster .svt-floating-nav a.active[data-step]::before { color: var(--sp-gold); }


/* Wide banner figure — full-bleed photo with a caption, used sparingly
   for a single standout shot inside a section (warehouse's automation
   fleet shot is the current example). */
body.sol-poster .sp-figure {
  position: relative;
  margin: 32px 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sp-line);
}
body.sol-poster .sp-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}
body.sol-poster .sp-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 24px 16px;
  background: linear-gradient(180deg, rgba(8, 26, 58, 0), rgba(8, 26, 58, .88));
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: #dce8f8;
}
@media (max-width: 700px) {
  body.sol-poster .sp-figure img { aspect-ratio: 16 / 10; }
}


/* ------------------------------------------------------------------
 * Narrow screens
 * ------------------------------------------------------------------ */
@media (max-width: 900px) {
  body.sol-poster .sp-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 40px;
  }
  body.sol-poster .sp-hero-art img {
    aspect-ratio: 16 / 10;
    mask-image: none;
    -webkit-mask-image: none;
  }
  body.sol-poster .sp-band::before { width: 120px; clip-path: polygon(0 0, 100% 0, calc(100% - 44px) 100%, 0 100%); }
}
@media (max-width: 600px) {
  body.sol-poster .sp-step { grid-template-columns: 62px 58px minmax(0, 1fr); }
  body.sol-poster .sp-steps--3 .sp-step-head { grid-template-columns: 62px 1fr; }
  body.sol-poster .sp-step-num { font-size: 21px; }
  body.sol-poster .sp-step-icon { font-size: 18px; }
  body.sol-poster .sp-band::before { display: none; }
}


/* ------------------------------------------------------------------
 * Dark mode
 * ------------------------------------------------------------------ */
html.dark body.sol-poster {
  --sp-mist: #0d1526;
  --sp-line: rgba(148, 178, 224, .18);
  --sp-ink: #ecf2fb;
}
html.dark body.sol-poster .sol-box { background: #0b1324; }
html.dark body.sol-poster .sol-box p,
html.dark body.sol-poster .sp-step-body small { color: #94a3b8; }
html.dark body.sol-poster .sp-step-body { background: #0b1324; }
html.dark body.sol-poster .sol-columns li,
html.dark body.sol-poster .sol-list li { color: #b6c6dd; }
