/* SoftWash Systems — Historical Timeline (about/timeline/)
   Page-specific styles only. Shared chrome lives in header-footer.css.
   Do not put the circle pattern on lime panels. */
:root {
  --white: #FFFFFF;
  --off-white: #F5F7F6;
  --ink: #1A2430;
  --muted: #4A5A64;
  --lime: #8CCF44;
  --navy: #12507A;
  --navy-mid: #126598;
  --aqua: #0A9BB4;
  --aqua-deep: #017890;
  --droplet: #2EB8D9;
  --light-blue: #BFE3F2;
  --header-h: 88px;
  --sticky-h: 72px;
  --radius: 6px;
  --shadow: 0 10px 28px rgba(18, 80, 122, 0.10);
  --rail-year-w: 4.35rem;
  --rail-node-w: 1.35rem;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aqua-deep); }
h1, h2, h3, .display {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin: 0;
  color: var(--navy);
}
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.15rem;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-lime { background: #FFFFFF; color: #12507A; border-color: #12507A; }
.btn-lime:hover, .btn-lime:focus, .btn-lime:focus-visible {
  background: #12507A; color: #FFFFFF; border-color: #FFFFFF;
}
.btn-navy { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover, .btn-white:focus-visible {
  background: var(--navy); color: var(--white); border-color: var(--white);
}

/* Standard interior text hero (page-hero + sws-bg-circles).
   Matches products typography (kicker / h1 / lede / padding) and founder
   navy + circles background. No lime border, no timeline-only hero band. */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 32px 0 40px;
}
.page-hero .wrap { display: grid; gap: 16px; justify-items: start; }
.page-hero .wrap.hero-grid {
  display: grid;
  gap: 22px;
  justify-items: stretch;
  align-items: start;
}
.page-hero .hero-copy { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.page-hero .hero-photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0a3a5c;
}
.page-hero .hero-photo picture,
.page-hero .hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.page-hero .kicker {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  font-size: 0.95rem;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 10vw, 4.2rem);
}
.page-hero .lede {
  margin: 0;
  max-width: 44rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}

/* Year rail */
.tl-rail-section {
  background: var(--off-white);
  padding: 36px 0 56px;
}
.tl-rail-intro {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 40em;
}
.year-rail {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  max-width: 760px;
  width: 100%;
}
/* Continuous vertical spine, centered on the node column */
.year-rail::before {
  content: "";
  position: absolute;
  left: calc(var(--rail-year-w) + (var(--rail-node-w) / 2) - 1px);
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #12507A;
  opacity: 0.28;
  pointer-events: none;
}
.yr {
  display: grid;
  grid-template-columns: var(--rail-year-w) var(--rail-node-w) minmax(0, 1fr);
  column-gap: 0;
  align-items: center;
  min-height: 20px;
  position: relative;
}
/* Empty years stay compact and quiet */
.yr .yr-label {
  grid-column: 1;
  justify-self: end;
  padding-right: 2px;
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #8A9AA4;
}
/* Decade ticks are a little easier to scan, still quiet when empty */
.yr.yr-decade:not(.has-event) .yr-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6A7A84;
}
/* Node on the spine */
.yr .yr-node {
  grid-column: 2;
  justify-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C5D0D6;
  z-index: 1;
}
.yr .yr-events {
  grid-column: 3;
  min-width: 0;
  padding-left: 10px;
}

/* Event years: badge, spine node, card on the right */
.yr.has-event {
  align-items: start;
  min-height: 0;
  padding: 8px 0 16px;
}
.yr.has-event .yr-label {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #12507A;
  padding-top: 10px;
  line-height: 1;
}
.yr.has-event .yr-node {
  width: 14px;
  height: 14px;
  margin-top: 10px;
  background: #12507A;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px #12507A;
}
.yr-card {
  background: #FFFFFF;
  border: 1px solid rgba(18, 80, 122, 0.12);
  border-left: 4px solid #12507A;
  border-radius: var(--radius);
  padding: 12px 14px 14px;
  box-shadow: var(--shadow);
}
.yr-card .yr-when {
  margin: 0 0 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #12507A;
}
.yr-card p.yr-event {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

/* Subscription block typography on the Marine Blue / circles panel */
.sws-sub-std { text-align: center; padding: 56px 20px; color: #FFFFFF; }
.sws-sub-std .sub-inner { max-width: 820px; margin: 0 auto; }
.sws-sub-std .sub-kicker {
  margin: 0 0 8px;
  color: #FFFFFF;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sws-sub-std h2 { color: #FFFFFF; margin: 0 0 12px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.sws-sub-std .sub-copy { margin: 0 0 20px; color: #FFFFFF; }
.sws-sub-std .cta-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Quote form heading already uses inline color; keep links readable */
.sws-quote-form a { color: var(--navy); }

/* Sticky mobile call bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--navy);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
  box-shadow: 0 -3px 0 var(--lime), 0 -6px 0 var(--aqua);
}
.sticky-cta a {
  min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--radius);
}

@media (min-width: 768px) {
  .page-hero { padding: 44px 0 52px; }
  .page-hero .wrap.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 36px;
    align-items: start;
  }
  .tl-rail-section { padding: 52px 0 80px; }
  .yr:not(.has-event) { min-height: 22px; }
  .yr.has-event { padding: 10px 0 22px; }
  .yr.has-event .yr-label { font-size: 1.35rem; padding-top: 12px; }
  .yr.has-event .yr-node { margin-top: 12px; }
  .yr-card { padding: 16px 20px 18px; }
  .yr-card p.yr-event { font-size: 1.12rem; }
  .year-rail { max-width: 820px; --rail-year-w: 5rem; }
}
@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* Photo placeholder inside every year card: a small thumbnail on the right, vertically
   centred, so the card height stays driven by the text. 96x54 on desktop, 64x36 on phones.
   Drop a real <img> inside .yr-photo (or swap the box for <img class="yr-photo">) later. */
.yr-card.sws-tile--yr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
}
.yr-card.sws-tile--yr > .sws-tile-label,
.yr-card.sws-tile--yr > .sws-tile-detail { grid-column: 1; }
.yr-card .yr-photo {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  width: 64px; height: 36px; margin: 0;
  background: #EAF2F7;
  border: 1px solid rgba(18, 80, 122, 0.28);
  border-radius: 4px;
  overflow: hidden;
}
.yr-card .yr-photo span {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #5A7686;
}
.yr-card .yr-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .yr-card.sws-tile--yr { column-gap: 12px; }
  .yr-card .yr-photo { width: 96px; height: 54px; border-radius: 6px; }
  .yr-card .yr-photo span { font-size: 0.7rem; }
}

/* Real thumbnail variant (linked image instead of the grey box).
   Border/outline stays only on remaining grey Photo placeholders (div.yr-photo). */
.yr-card a.yr-photo { text-decoration: none; border: none; box-shadow: none; background: #fff; }
.yr-card .yr-photo picture { display: block; width: 100%; height: 100%; }
.yr-card .yr-photo img { object-position: top center; }
/* 1991 roof photo: centre the thumbnail crop on the man in the white shirt */
.yr-card .yr-photo--focus img { object-position: 58% 20%; transform: translateX(-8%) scale(1.6); transform-origin: 58% 45%; }
/* 1992 Mallard truck: centre the thumbnail crop on the MALLARD / 831-DUCK sign */
.yr-card .yr-photo--sign img { object-position: 59% 0%; transform: translate(-9%, 11%) scale(1.9); transform-origin: 59% 39%; }
/* hail photo: favour the car and the hail */
.yr-card .yr-photo img[src*="hailstorm-1992"] { object-position: 40% 60%; }
/* 1994 warranty decal: centre on the decal */
.yr-card .yr-photo--decal img { object-position: 50% 40%; }
/* 2016 producer ring: uncropped, all three rings, contain on white so it blends into the card */
.yr-card .yr-photo--ring { background: #fff; border: none; }
.yr-card .yr-photo--ring img { object-fit: contain; object-position: center; transform: none; }
/* ACU logo: uncropped, contained on white (do not cover-crop the mark) */
.yr-card .yr-photo--logo { background: #fff; }
.yr-card .yr-photo--logo img { object-fit: contain; object-position: center; transform: none; }
/* Uncropped logos, product shots and maps: contain on white */
.yr-card .yr-photo--contain { background: #fff; }
.yr-card .yr-photo--contain img { object-fit: contain; object-position: center; transform: none; }

/* 2011 product tile: three individual jugs in one tight row.
   Each thumb keeps the same 64x36 / 96x54 box as every other timeline thumbnail. */
.yr-card .yr-photos {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  justify-self: center;
  align-self: center;
}
.yr-card .yr-photos .yr-photo {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  width: auto;
  height: 36px;
  background: #fff;
}
.yr-card .yr-photos .yr-photo + .yr-photo { margin-left: -4px; }
.yr-card .yr-photos .yr-photo img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
/* Keep the 2011 jugs cluster in the right-hand thumb column on phones,
   same as every other timeline tile (64×36 thumbs, default --t-side: 74px). */
@media (min-width: 768px) {
  .yr-card .yr-photos { grid-template-columns: repeat(3, auto); gap: 0; }
  .yr-card .yr-photos .yr-photo { height: 54px; }
  /* 3 tight bottles (~88px) - 2*4px overlap + 12 column-gap */
  .yr-card.sws-tile--yr:has(> .yr-photos) { --t-side: 108px; }
}

.nowrap { white-space: nowrap; }

/* Timeline thumbs are too small for the sitewide CSS photo-frame watermark
   (© SoftWash Systems® at 10–15px on a 64×36 / 96×54 thumb). Hide it only
   inside the year rail. sws-protect.js puts .sws-wm on the inner <picture>,
   not the <a>, so both are covered. The transparent save-image overlay,
   right-click, and drag blocks from sws-protect stay in place. */
.tl-rail-section .yr-photo.sws-wm::after,
.tl-rail-section .yr-photo .sws-wm::after,
.year-rail .yr-photo.sws-wm::after,
.year-rail .yr-photo .sws-wm::after {
  content: none;
  display: none;
}
