/* ==========================================================================
   EV Community Charge — site styles
   Brand colors are pulled from the company flyer.
   ========================================================================== */

:root {
  --ink:        #00392A;   /* deep green (flyer background)   */
  --ink-2:      #0A4E3A;   /* slightly lighter deep green     */
  --ink-3:      #164B39;   /* heading green                   */
  --green:      #7FC555;   /* bright brand green              */
  --green-dk:   #5FA63A;   /* bright green, darkened          */
  --green-soft: #EDF7E6;   /* pale green wash                 */
  --paper:      #FFFFFF;
  --paper-2:    #F6F8F5;
  --text:       #263029;
  --text-soft:  #5A6760;
  --line:       #DFE6DF;
  --shadow:     0 2px 4px rgba(0,56,42,.05), 0 12px 28px rgba(0,56,42,.08);
  --radius:     14px;
  --wrap:       1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

h1, h2, h3, h4, .nav a, .btn, .step-num, .stat-num {
  font-family: "Roboto Condensed", "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4 { color: var(--ink-3); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p  { margin: 0 0 1.1em; }
a  { color: var(--green-dk); }

img { max-width: 100%; display: block; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.center { text-align: center; }
.lede { font-size: 1.16rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .82em 1.7em;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green); color: #10301F; box-shadow: 0 6px 16px rgba(127,197,85,.35); }
.btn-primary:hover { background: var(--green-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-3); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); background: var(--green-soft); }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-text {
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.05;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.brand-text small {
  display: block;
  font-size: .62em;
  letter-spacing: .13em;
  color: var(--green-dk);
  font-weight: 700;
}
@media (max-width: 420px) {
  .brand img { height: 38px; }
  .brand-text { font-size: 1.16rem; }
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-3);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.nav a:hover { background: var(--green-soft); }
.nav a[aria-current="page"] { color: var(--green-dk); box-shadow: inset 0 -3px 0 var(--green); border-radius: 8px 8px 0 0; }
.nav .btn { margin-left: 8px; padding: .6em 1.3em; font-size: .98rem; }
.nav .btn:hover { background: var(--green-dk); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-3); margin: 4px 0; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 14px 0 0; text-align: center; border-bottom: none; }
  .site-header { position: relative; }
}

/* ---------- Hero ---------- */
.hero { background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 54px; align-items: center;
  padding: 64px 0 68px;
}
.hero h1 { color: var(--ink-3); }
.hero .lede { font-size: 1.2rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  outline: 2px solid var(--green);
  outline-offset: -8px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; }

.eyebrow {
  display: inline-block;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700; font-size: .92rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-dk); background: var(--green-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 44px 0 50px; }
  .hero-photo { max-width: 460px; }
  .hero-photo img { aspect-ratio: 4 / 3.2; }
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: var(--ink);
  color: #fff;
  padding: 58px 0 62px;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -120px; top: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(127,197,85,.22), transparent 66%);
}
.page-banner h1 { color: #fff; position: relative; }
.page-banner p { color: rgba(255,255,255,.86); max-width: 46em; margin-bottom: 0; position: relative; font-size: 1.14rem; }
.page-banner .eyebrow { background: rgba(127,197,85,.18); color: var(--green); }

/* ---------- Sections ---------- */
section { padding: 66px 0; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.tint { background: var(--paper-2); }
.dark { background: var(--ink); color: rgba(255,255,255,.88); }
.dark h2, .dark h3 { color: #fff; }

/* ---------- Benefit cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
/* four-across on wide screens so the fourth step isn't orphaned */
.cards-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px)  { .cards-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--green); }
.card h3 { margin-bottom: .4em; font-size: 1.18rem; }
.card p { margin: 0; color: var(--text-soft); font-size: .99rem; }
.card .tick {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center; margin-bottom: 16px;
  font-size: 1.2rem; font-weight: 700;
}
.card .tick svg { width: 20px; height: 20px; }

/* ---------- Highlight band ---------- */
.band {
  background: var(--green); color: #10301F;
  padding: 38px 0; text-align: center;
}
.band p { margin: 0; font-family: "Roboto Condensed", sans-serif; font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.8rem); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 26px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 74px 1fr; gap: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 26px; box-shadow: var(--shadow);
}
.step-num {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--ink); color: var(--green);
  display: grid; place-items: center;
  font-size: 1.7rem; font-weight: 700;
}
.step h3 { margin-bottom: .45em; font-size: 1.35rem; }
.step p:last-child { margin-bottom: 0; }
.step ul { margin: 0 0 1em; padding-left: 1.15em; color: var(--text-soft); }
.step li { margin-bottom: .4em; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; }
  .step-num { width: 50px; height: 50px; font-size: 1.4rem; }
}

.note {
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  padding: 16px 20px; border-radius: 0 10px 10px 0;
  font-size: .99rem; color: var(--ink-3);
}
.note p { margin: 0; }

/* ---------- Cost table ---------- */
.cost-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cost-table th, .cost-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table thead th { background: var(--ink); color: #fff; font-family: "Roboto Condensed", sans-serif; font-size: 1.02rem; letter-spacing: .02em; }
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table td:first-child { font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.cost-table td:last-child { color: var(--text-soft); font-size: .98rem; }
@media (max-width: 680px) {
  .cost-table thead { display: none; }
  .cost-table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .cost-table td { display: block; border: none; padding: 6px 18px; }
  .cost-table td:first-child { padding-top: 16px; }
  .cost-table td:nth-child(2)::before { content: "Typical cost: "; font-weight: 700; color: var(--ink-3); }
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.product-shot {
  border: 1px solid var(--line);
  padding: 22px;
  max-height: 420px;
  width: 100%;
  object-fit: contain;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #fff; text-align: center; padding: 70px 0; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); max-width: 40em; margin-inline: auto; }
.cta .btn { margin-top: 16px; }

/* ---------- Contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 46px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 34px; } }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; color: var(--ink-3); margin-bottom: 7px; font-size: .97rem; }
.field .req { color: #B3261E; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(127,197,85,.25);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: .98rem; display: none; }
.form-status.show { display: block; }
.form-status.ok   { background: var(--green-soft); border: 1px solid var(--green); color: var(--ink-3); }
.form-status.err  { background: #FDECEA; border: 1px solid #F3B7B1; color: #8C1D18; }

.info-card {
  background: var(--ink); color: rgba(255,255,255,.86);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
}
.info-card h3 { color: #fff; font-size: 1.2rem; margin-top: 0; }
.info-card h3 + p { margin-bottom: 1.4em; }
.info-card a { color: var(--green); text-decoration: none; word-break: break-word; }
.info-card a:hover { text-decoration: underline; }
.info-card ol { padding-left: 1.2em; margin: 0; }
.info-card li { margin-bottom: .6em; }
.info-card hr { border: none; border-top: 1px solid rgba(255,255,255,.18); margin: 24px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 46px 0 28px; font-size: .96rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand { background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; }
.footer-brand img { height: 62px; width: auto; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 32px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .9rem; color: rgba(255,255,255,.6);
}
.footer-head { color: #fff; font-family: "Roboto Condensed", sans-serif; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; margin-bottom: 12px; }

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #10301F; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

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