/* ==========================================================================
   RashMishi VerdeVita Ventures — site stylesheet
   Brand tokens derived from the RVVPL lotus mark (green/orange) and the
   RV Charge sub-brand (azure/lime). EV pages add class="theme-rv" on <body>.
   ========================================================================== */

:root {
  /* Parent brand */
  --verde: #2e8b3a;
  --verde-deep: #14532d;
  --ink: #12241a;
  --sun: #f28c28;
  --sun-deep: #d97514;
  --paper: #fafbf8;
  --card: #ffffff;
  --line: #e2e9e0;
  --muted: #5b6b5f;
  /* Accent used by components; overridden under .theme-rv */
  --accent: var(--verde);
  --accent-deep: var(--verde-deep);
  --accent-soft: #eaf5ec;

  --font-display: "Archivo", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 36, 26, 0.08);
  --maxw: 1160px;
}

.theme-rv {
  --accent: #1d74be;
  --accent-deep: #0f4c82;
  --accent-soft: #e8f2fb;
  --sun: #8cc63f; /* RV lime takes the accent-2 slot on EV pages */
  --sun-deep: #6ea82b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 9px 13px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.site-nav a:hover { background: var(--accent-soft); text-decoration: none; }
.site-nav a.active { background: var(--accent-soft); color: var(--accent-deep); }
.site-nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  margin-left: 6px;
}
.site-nav a.nav-cta:hover { background: var(--accent-deep); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
  font: 600 15px var(--font-body);
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15.5px;
  font-family: var(--font-body);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: var(--sun); color: #fff; }
.btn-secondary:hover { background: var(--sun-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; color: var(--accent-deep); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--verde-deep);
}
.hero.has-image { background: var(--ink); }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 30, 17, 0.92) 0%, rgba(9, 30, 17, 0.72) 45%, rgba(9, 30, 17, 0.28) 100%);
}
.theme-rv .hero-bg::after {
  background: linear-gradient(100deg, rgba(6, 27, 46, 0.93) 0%, rgba(6, 27, 46, 0.72) 45%, rgba(6, 27, 46, 0.28) 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 92px;
}
.hero-inner.single { grid-template-columns: 1fr; max-width: 780px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 16px;
}
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  margin-bottom: 30px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Impact meter (signature) ---------- */
.impact-meter {
  background: rgba(6, 20, 12, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 26px 26px 20px;
}
.impact-meter h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 0 rgba(242, 140, 40, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 140, 40, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(242, 140, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 140, 40, 0); }
}
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.impact-stat { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.impact-stat .num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.impact-stat .unit { font-size: 15px; color: var(--sun); font-weight: 500; }
.impact-stat .label {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.impact-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 14px;
}

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.tint { background: var(--accent-soft); }
.section.dark { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 10px 0 14px;
}
.section-head p { color: var(--muted); font-size: 17px; }
.section.dark .section-head p { color: rgba(255,255,255,0.75); }
.eyebrow.on-light { color: var(--sun-deep); }
.theme-rv .eyebrow.on-light { color: var(--accent-deep); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.card.raised { box-shadow: var(--shadow); border: none; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19.5px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card p, .card li { color: var(--muted); font-size: 15.5px; }
.card ul { padding-left: 20px; margin-top: 8px; }
.card li { margin-bottom: 7px; }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card.feature {
  background: var(--accent-deep);
  color: #fff;
  border: none;
}
.card.feature h3, .card.feature p { color: #fff; }
.card.feature p { color: rgba(255,255,255,0.85); }
.card.feature .icon { background: rgba(255,255,255,0.14); color: var(--sun); }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.badge.live { background: #e7f6e9; color: #1d7a2c; }
.badge.soon { background: #fdf0e0; color: #b4650a; }
.theme-rv .badge.soon { background: #f0f7e4; color: #5a8f1d; }

/* ---------- Wing cards (home) ---------- */
.wing-card { display: flex; flex-direction: column; }
.wing-card .wing-media {
  height: 132px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}
.wing-card .wing-media img { max-height: 96px; width: auto; }
.wing-card .wing-media.emoji { font-size: 52px; }
.wing-card .more { margin-top: auto; padding-top: 16px; font-weight: 700; }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split .visual img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Steps strip ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 7px;
  display: inline-block;
  margin-bottom: 14px;
}
.step h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Compare (we bring / you bring) ---------- */
.compare { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; }
.compare .card h3 { display: flex; align-items: center; gap: 10px; }
.checklist { list-style: none; padding: 0; margin-top: 14px; }
.checklist li {
  padding: 9px 0 9px 32px;
  position: relative;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15.5px;
}
.checklist li strong { font-weight: 700; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 800;
}
.card.feature .checklist li { border-color: rgba(255,255,255,0.16); color: #fff; }
.card.feature .checklist li::before { color: var(--sun); }

/* ---------- Location list ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.loc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.loc .dot { width: 10px; height: 10px; border-radius: 50%; background: #23a238; flex: none; }
.loc.upcoming .dot { background: var(--sun-deep); }
.loc b { font-size: 15.5px; display: block; }
.loc span { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }

/* ---------- Quote strip ---------- */
.quote-strip {
  background: linear-gradient(100deg, var(--accent-deep), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.quote-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 30ch;
  line-height: 1.2;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.82); margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.site-footer h3 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 15px; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 8px; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--sun);
  margin-bottom: 18px;
}
.footer-note {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 20px 0 26px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-cta { margin-left: 0; text-align: center; }
  .grid.cols-3, .grid.cols-2, .grid.cols-4, .loc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .quote-strip { padding: 32px 26px; }
}
