/* ChargePointSA — Homepage CSS
   Sections: .hero, .journey, .tools, .calc, .editorial
   Locked at v16. Tokens (--ink, --paper, --red, etc.) come from chassis.css.
   Loaded by inc/chassis-bootstrap.php only on is_front_page().
   ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 90svh; min-height: 720px;
  background: var(--ink);
  overflow: hidden;
}
@media (min-width: 768px) { .hero { height: 85svh; } }
.hero-photo {
  position: absolute; inset: 0;
  background: url('/files/hero-image-new.png') center/cover no-repeat;
}
.hero-darken {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,42,37,0) 0%, rgba(35,42,37,0) 50%, rgba(35,42,37,0.45) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--container-pad);
  padding-bottom: 80px;
  max-width: var(--container-max); margin: 0 auto;
  color: #fff;
}
.hero h1 {
  font-size: clamp(40px, 5vw + 8px, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.hero p.sub {
  font-size: 17px; font-weight: 400;
  line-height: 1.45; color: rgba(255,255,255,0.85);
  max-width: 460px;
  margin-bottom: 32px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.96);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(35,42,37,0.2); transition: width 0.3s, background 0.3s; }
.hero-dot.active { width: 28px; background: var(--red); border-radius: 999px; }

/* ──────────── JOURNEY · 7-STEP LIFECYCLE (the moat) ──────────── */
.journey {
  background: var(--paper-cool);
  padding: 120px 0 96px;
}
@media (min-width: 1024px) { .journey { padding: 160px 0 120px; } }
.journey-head {
  padding: 0 var(--container-pad);
  max-width: var(--container-max); margin: 0 auto 64px;
}
.journey-head h2 {
  font-size: clamp(40px, 5.5vw + 8px, 80px);
  font-weight: 500;
  line-height: 1.0; letter-spacing: var(--track-display);
  color: var(--ink-pure);
  margin-bottom: 16px;
  max-width: 14ch;
}
.journey-head p {
  font-size: 17px; color: var(--mute);
  max-width: 540px; line-height: 1.55;
}

.journey-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
  padding: 0 var(--container-pad);
  max-width: var(--container-max); margin: 0 auto;
}
@media (min-width: 640px)  { .journey-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .journey-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.step-card {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--ink); color: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.step-card:hover { transform: translateY(-3px); }
.step-card .photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.step-card .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,42,37,0.35) 0%, rgba(35,42,37,0) 35%, rgba(35,42,37,0) 50%, rgba(35,42,37,0.85) 100%);
}
.step-card .num {
  position: absolute; top: 24px; left: 24px; z-index: 2;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--red);
}
.step-card .name {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.step-card .meta {
  position: absolute; bottom: 24px; left: 24px; right: 24px; z-index: 2;
}
.step-card .meta h3 {
  font-size: clamp(22px, 1.6vw + 12px, 30px);
  font-weight: 500; line-height: 1.1;
  letter-spacing: var(--track-headline);
  color: #fff; margin-bottom: 8px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.25));
}
.step-card .meta p {
  font-size: 13px; color: rgba(255,255,255,0.78);
  line-height: 1.45; margin-bottom: 16px;
}
.step-card .arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: #fff;
  border-bottom: 1px solid var(--red);
  padding-bottom: 3px;
}
.step-card .arrow::after { content: "→"; }

/* "All seven" cap tile — inverted */
.step-card.cap {
  background: var(--ink);
}
.step-card.cap .scrim {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-pure) 100%);
}
.step-card.cap .num { color: var(--red); }
.step-card.cap .name { color: rgba(255,255,255,0.7); }

/* ──────────── TOOLS ──────────── */
.tools {
  background: var(--paper);
  padding: 96px 0 120px;
}
@media (min-width: 1024px) { .tools { padding: 120px 0 160px; } }
.tools-head {
  padding: 0 var(--container-pad);
  max-width: var(--container-max); margin: 0 auto 56px;
}
.tools-head .eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: inline-flex; align-items: center;
}
.tools-head .eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--red); margin-right: 12px;
}
.tools-head h2 {
  font-size: clamp(36px, 4.5vw + 8px, 64px);
  font-weight: 500;
  line-height: 1.0; letter-spacing: var(--track-display);
  color: var(--ink-pure);
  margin-bottom: 16px;
  max-width: 14ch;
}
.tools-head p {
  font-size: 17px; color: var(--mute);
  max-width: 520px; line-height: 1.55;
}

/* ─── Featured LIVE calculator (dark card on light section) ─── */
.calc-wrap {
  padding: 0 var(--container-pad);
  max-width: var(--container-max); margin: 0 auto 16px;
}
.calc {
  background: var(--ink); color: #fff;
  border-radius: var(--r-card);
  padding: 40px 28px;
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .calc { padding: 56px 48px; } }
@media (min-width: 1024px) { .calc { grid-template-columns: 1fr 1.05fr; gap: 80px; padding: 72px 80px; align-items: center; } }

.calc-left .label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.calc-left h3 {
  font-size: clamp(28px, 2.5vw + 12px, 44px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: var(--track-display);
  color: #fff; margin-bottom: 12px;
  max-width: 14ch;
}
.calc-left p.sub {
  font-size: 15px; color: rgba(255,255,255,0.65);
  line-height: 1.55; margin-bottom: 32px;
  max-width: 40ch;
}

.calc-fields { display: grid; gap: 24px; }
.calc-field label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.calc-field .key {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}
.calc-field .val {
  font-size: 22px; font-weight: 500;
  letter-spacing: var(--track-headline);
  color: #fff;
}
.calc-field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(220,38,38,0.45);
  transition: transform 0.15s;
}
.calc-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  cursor: pointer;
}

/* Right column · live result */
.calc-right {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-card);
  padding: 36px 32px;
}
.calc-result-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.calc-result-big {
  font-size: clamp(48px, 5.5vw + 16px, 88px);
  font-weight: 500; line-height: 0.95;
  letter-spacing: var(--track-display);
  color: var(--red);
  margin-bottom: 8px;
}
.calc-result-sub {
  font-size: 14px; color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}
.calc-rows { border-top: 1px solid rgba(255,255,255,0.1); }
.calc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}
.calc-row:last-child { border-bottom: none; }
.calc-row .k { color: rgba(255,255,255,0.6); }
.calc-row .v { font-weight: 500; font-size: 16px; color: #fff; }
.calc-row.save .v { color: var(--red); }
.calc-cta-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.calc-cta-row .fine { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5; max-width: 220px; }
.calc-cta-row a {
  background: #fff; color: var(--ink);
  height: 48px; padding: 0 22px;
  border-radius: var(--r-mega);
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.calc-cta-row a:hover { background: var(--paper-warm); }
.calc-cta-row a::after { content: "→"; }

/* ─── Secondary tools row (3 small cards) ─── */
.tools-secondary {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  padding: 0 var(--container-pad);
  max-width: var(--container-max); margin: 0 auto;
}
@media (min-width: 768px) { .tools-secondary { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  background: var(--paper-warm);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  border: 1px solid transparent;
  min-height: 220px;
}
.tool-card:hover { transform: translateY(-3px); background: var(--paper-cool); border-color: var(--line); }
.tool-card .label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
.tool-card h3 {
  font-size: 22px; font-weight: 500;
  line-height: 1.15; letter-spacing: var(--track-headline);
  color: var(--ink-pure);
  margin-bottom: 10px;
  max-width: 14ch;
}
.tool-card p {
  font-size: 13px; color: var(--mute);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}
.tool-card .footer-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tool-card .stat {
  font-size: 18px; font-weight: 500;
  letter-spacing: var(--track-headline);
  color: var(--ink-pure);
}
.tool-card .stat small { font-size: 12px; color: var(--mute); font-weight: 400; }
.tool-card .go { font-size: 13px; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.tool-card .go::after { content: "→"; }

/* ──────────── EDITORIAL TILES (4-up photo grid) ──────────── */
.editorial { background: var(--paper); padding: 96px 0 120px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .editorial { padding: 120px 0 160px; } }
.editorial-head {
  padding: 0 var(--container-pad);
  max-width: var(--container-max); margin: 0 auto 40px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.editorial-head h2 {
  font-size: clamp(32px, 3.5vw + 12px, 56px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: var(--track-display);
  color: var(--ink-pure);
  max-width: 18ch;
}
.editorial-head .more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid var(--ink);
}
.editorial-head .more::after { content: "→"; }
.editorial-head .more:hover { color: var(--red); border-color: var(--red); }

.editorial-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  padding: 0 var(--container-pad);
  max-width: var(--container-max); margin: 0 auto;
}
@media (min-width: 768px)  { .editorial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1248px) { .editorial-grid { grid-template-columns: repeat(4, 1fr); } }
.editorial-card {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--ink);
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.editorial-card:hover { transform: translateY(-3px); }
.editorial-card .photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.editorial-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 40%);
}
.editorial-card h3 {
  position: absolute; top: 28px; left: 28px; right: 28px; z-index: 2;
  color: #fff;
  font-size: clamp(22px, 1.5vw + 12px, 30px);
  font-weight: 500; line-height: 1.1;
  letter-spacing: var(--track-headline);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.25));
}
