/* ============================================================
   Track Energy — Design System
   Palette: Track Green #6BAF3F | Deep Charcoal #1A1B1A
             Solar White #F7F8F3 | Warm Sand #EAE5D8
             Adelaide Hills Grey #5F665C | Grid Silver #D8DCD2
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #6BAF3F;
  --green-lime:  #8DC63F;
  --green-dark:  #4d8a28;
  --charcoal:    #1A1B1A;
  --carbon:      #050505;
  --hills-grey:  #5F665C;
  --solar-white: #F7F8F3;
  --warm-sand:   #EAE5D8;
  --grid-silver: #D8DCD2;
  --white:       #ffffff;
  --text-dark:   #1A1B1A;
  --text-mid:    #3d4039;
  --text-light:  #5F665C;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --transition:  0.22s ease;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.16);

  --max-w:       1200px;
  --nav-h:       72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--solar-white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { max-width: 72ch; }

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-mid);
  line-height: 1.75;
}

/* --- Layout helpers ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--charcoal); color: var(--solar-white); }
.section--sand { background: var(--warm-sand); }
.section--green { background: var(--green); color: var(--white); }
.section--carbon { background: var(--carbon); color: var(--solar-white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.flex { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }

.text-center { text-align: center; }
.text-center p { margin: 0 auto; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }

/* --- Section labels ---------------------------------------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section--dark .section-label,
.section--carbon .section-label { color: var(--green-lime); }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107,175,63,.35);
}
.btn-outline {
  background: transparent;
  color: var(--solar-white);
  border-color: rgba(255,255,255,.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Navigation -------------------------------------------- */
:root { --nav-h: 76px; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(26,27,26,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,.35); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  gap: 24px;
}

/* Real logo image */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

/* Only show the dark logo img tag if it exists (fallback, not used) */
.nav__logo-img-dark { display: none; }

/* Keep these for footer fallback use */
.nav__logo-mark {
  width: 38px; height: 38px;
  background: var(--green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav__logo-mark svg { width: 22px; height: 22px; fill: white; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav__logo-name { font-size: 1.05rem; font-weight: 800; color: var(--white); letter-spacing: -0.01em; }
.nav__logo-tagline { font-size: 0.65rem; color: var(--green-lime); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  color: rgba(255,255,255,.72);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* Dropdown — JS-controlled via .is-open class for reliability */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 210px;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  /* Invisible bridge so mouse travel from link to menu doesn't break hover */
  margin-top: 0;
}
/* Transparent bridge above the menu fills the gap */
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  height: 10px;
}
.nav__dropdown.is-open .nav__dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: rgba(255,255,255,.8);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav__dropdown-menu a:hover {
  background: rgba(107,175,63,.15);
  color: var(--green-lime);
  padding-left: 18px;
}

.nav__cta { margin-left: 12px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 24px 24px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.nav__mobile.open { display: block; }
.nav__mobile a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--transition);
  min-height: 48px; /* WCAG touch target */
  display: flex;
  align-items: center;
}
.nav__mobile a:hover { color: var(--green-lime); }
.nav__mobile .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
  margin-top: var(--nav-h);
}
.hero--short { min-height: 52vh; }

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26,27,26,.92) 45%, rgba(26,27,26,.5) 100%);
}
/* Energy track lines decoration */
.hero__tracks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__tracks::before {
  content: '';
  position: absolute;
  bottom: 20%;
  right: -5%;
  width: 55%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.5;
}
.hero__tracks::after {
  content: '';
  position: absolute;
  bottom: calc(20% + 16px);
  right: 0%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-lime), transparent);
  opacity: 0.3;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 72px 0 80px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(107,175,63,.15);
  border: 1px solid rgba(107,175,63,.3);
  color: var(--green-lime);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 24px;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--green-lime);
  border-radius: 50%;
}
.hero__title {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 13ch;
}
.hero__title em {
  font-style: normal;
  color: var(--green-lime);
}
.hero__lead {
  color: rgba(255,255,255,.75);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 36px;
  max-width: 52ch;
  line-height: 1.75;
}
.hero__actions { margin-bottom: 0; }

/* --- Credibility strip ------------------------------------- */
.cred-strip {
  background: var(--carbon);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 20px 0;
}
.cred-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.8);
}
.cred-item__icon {
  width: 32px; height: 32px;
  background: rgba(107,175,63,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cred-item__icon svg { width: 16px; height: 16px; fill: var(--green-lime); }
.cred-item__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.cred-item__label {
  font-size: 0.72rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Service cards ----------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__image img { transform: scale(1.04); }
.card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card__icon {
  width: 44px; height: 44px;
  background: rgba(107,175,63,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; fill: var(--green); }
.card__title { font-size: 1.15rem; margin-bottom: 10px; }
.card__text { color: var(--text-light); font-size: 0.92rem; line-height: 1.65; flex: 1; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 18px;
  transition: gap var(--transition);
}
.card__link:hover { gap: 10px; }
.card__link svg { width: 14px; height: 14px; fill: var(--green); }

/* --- Process steps ----------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-lime));
  opacity: 0.25;
}
.step {
  padding: 32px 24px;
  position: relative;
  text-align: center;
}
.step__number {
  width: 56px; height: 56px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(107,175,63,.15);
}
.step__title { font-size: 1rem; margin-bottom: 10px; }
.step__text { color: var(--text-light); font-size: 0.88rem; line-height: 1.65; }

/* --- Benefit list ------------------------------------------ */
.benefit-list { display: grid; gap: 14px; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(107,175,63,.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green);
}
.benefit-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.benefit-item__icon svg { width: 20px; height: 20px; fill: var(--green); }
.benefit-item p { margin: 0; font-size: 0.92rem; color: var(--text-mid); max-width: none; }

/* Dark section variant */
.section--dark .benefit-item,
.section--carbon .benefit-item {
  background: rgba(255,255,255,.05);
  border-left-color: var(--green-lime);
}
.section--dark .benefit-item p,
.section--carbon .benefit-item p { color: rgba(255,255,255,.75); }

/* --- Image + content split --------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split__image { order: 2; }
.split--reverse .split__content { order: 1; }
.split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.split__image img { width: 100%; height: 100%; object-fit: cover; }

/* --- CTA banner -------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--charcoal) 0%, #242820 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 55%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(107,175,63,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner__title {
  color: var(--white);
  margin-bottom: 16px;
}
.cta-banner__lead {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  margin: 0 auto 32px;
  max-width: 54ch;
}

/* --- Product logos ----------------------------------------- */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.logo-item {
  background: var(--white);
  border: 1px solid var(--grid-silver);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  min-width: 110px;
}
.logo-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.logo-item img { max-height: 36px; width: auto; object-fit: contain; filter: grayscale(30%); }
.logo-item:hover img { filter: grayscale(0%); }

/* SVG logo special */
.logo-item--svg img { max-height: 30px; }

/* --- Product category cards -------------------------------- */
.product-cat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--grid-silver);
  transition: all var(--transition);
}
.product-cat:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}
.product-cat__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.product-cat__icon {
  width: 48px; height: 48px;
  background: rgba(107,175,63,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-cat__icon svg { width: 24px; height: 24px; fill: var(--green); }
.product-cat__title { font-size: 1.1rem; margin: 0; }
.product-cat__desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 18px; max-width: none; }

/* --- Stats / numbers --------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat {
  background: rgba(255,255,255,.04);
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
}
.stat:last-child { border-right: none; }
.stat__value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--green-lime);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- FAQ --------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--grid-silver);
  padding: 20px 0;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
}
.faq-question svg {
  width: 20px; height: 20px;
  fill: var(--green);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding-top: 14px;
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.7;
}
.faq-answer p { max-width: none; }
.faq-item.open .faq-answer { display: block; }

/* --- Service area tags -------------------------------------- */
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.area-tag {
  background: var(--white);
  border: 1px solid var(--grid-silver);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.875rem;
  color: var(--text-mid);
  transition: all var(--transition);
}
.area-tag:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* Dark variant for map background */
.area-tags--light .area-tag {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
}
.area-tags--light .area-tag:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* --- Map hero section --------------------------------------- */
.map-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  margin-top: var(--nav-h);
  overflow: hidden;
}
.map-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.55;
}
.map-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26,27,26,.92) 40%, rgba(26,27,26,.3) 100%);
}
.map-hero__content {
  position: relative;
  z-index: 2;
  padding: 72px 0 80px;
  max-width: 640px;
}

@media (max-width: 768px) {
  .map-hero { min-height: auto; }
  .map-hero__bg { background-position: center; opacity: 0.35; }
  .map-hero__overlay { background: rgba(26,27,26,.82); }
  .map-hero__content { padding: 48px 0 56px; max-width: 100%; }
  .map-hero h2 { font-size: clamp(1.7rem, 6vw, 2.2rem) !important; }
  .map-hero p { font-size: .92rem !important; }
}

/* --- Contact form ------------------------------------------ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grid-silver);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(107,175,63,.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  background: rgba(107,175,63,.1);
  border: 1px solid var(--green);
  color: var(--green-dark);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}

/* --- Section image banner ---------------------------------- */
.img-banner {
  width: 100%;
  aspect-ratio: 21/6;
  object-fit: cover;
  display: block;
}

/* --- Feature pill ------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(107,175,63,.1);
  border: 1px solid rgba(107,175,63,.25);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 40px;
}
.pill svg { width: 12px; height: 12px; fill: var(--green); }

/* --- Footer ------------------------------------------------ */
.footer {
  background: var(--carbon);
  color: rgba(255,255,255,.65);
  padding: 0 0 0;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--green-lime), var(--green)) 1;
}
.footer__green-line { display: none; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer__brand { max-width: 340px; }
.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: none;
}
.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--green-lime); }
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 10px;
}
.footer__contact-item svg { width: 14px; height: 14px; fill: var(--green); flex-shrink: 0; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--green-lime); }
.footer__green-line {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-lime), var(--green));
  margin-bottom: 0;
}

/* --- Page hero (interior pages) ---------------------------- */
.page-hero {
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  padding: 100px 0 72px;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26,27,26,.95) 40%, rgba(26,27,26,.6));
}
.page-hero__content { position: relative; z-index: 2; }
.page-hero__title { color: var(--white); margin-bottom: 20px; }
.page-hero__lead {
  color: rgba(255,255,255,.75);
  font-size: clamp(1rem, 2vw, 1.12rem);
  max-width: 58ch;
  margin-bottom: 28px;
}
.page-hero .section-label { color: var(--green-lime); }

/* --- Breadcrumb -------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
  background: var(--charcoal);
  padding: 10px 40px;
  margin-top: var(--nav-h);
  margin-bottom: 0;
}
.breadcrumb a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--green-lime); }
.breadcrumb svg { width: 12px; height: 12px; fill: rgba(255,255,255,.3); }

/* --- Responsive -------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__image,
  .split--reverse .split__content { order: unset; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { padding: 0 20px; }
  .cred-strip__inner { justify-content: center; }
  .steps::before { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand { max-width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 75vh; }
  .img-banner { aspect-ratio: 16/7; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   ANIMATION SYSTEM
   ============================================================ */

/* --- Keyframes --------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107,175,63,.4); }
  50%       { box-shadow: 0 0 0 12px rgba(107,175,63,0); }
}
@keyframes trackFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes energyPulse {
  0%   { opacity: 0; transform: scaleX(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: scaleX(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes progressFill {
  from { width: 0%; }
  to   { width: var(--target-w, 100%); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hero entrance (fired immediately on load) */
.fade-up { animation: fadeUp 0.65s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up--delay-1 { animation-delay: 0.12s; }
.fade-up--delay-2 { animation-delay: 0.24s; }
.fade-up--delay-3 { animation-delay: 0.38s; }
.fade-up--delay-4 { animation-delay: 0.52s; }

/* --- Scroll-reveal base ------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.reveal.from-left {
  transform: translateX(-48px);
}
.reveal.from-right {
  transform: translateX(48px);
}
.reveal.from-scale {
  transform: scale(0.9);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children inside a .stagger-parent */
.stagger-parent .reveal:nth-child(1)  { transition-delay: 0.05s; }
.stagger-parent .reveal:nth-child(2)  { transition-delay: 0.12s; }
.stagger-parent .reveal:nth-child(3)  { transition-delay: 0.19s; }
.stagger-parent .reveal:nth-child(4)  { transition-delay: 0.26s; }
.stagger-parent .reveal:nth-child(5)  { transition-delay: 0.33s; }
.stagger-parent .reveal:nth-child(6)  { transition-delay: 0.40s; }
.stagger-parent .reveal:nth-child(7)  { transition-delay: 0.47s; }
.stagger-parent .reveal:nth-child(8)  { transition-delay: 0.54s; }

/* --- Card hover lift (enhanced) ---------------------------- */
.card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0,0,0,.15);
}

/* --- Stat number pulse on reveal --------------------------- */
.stat__value {
  transition: color 0.3s ease;
}

/* --- Green pulsing CTA button ------------------------------ */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.15) 50%, transparent 100%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before {
  opacity: 1;
  animation: shimmer 0.8s ease;
}

/* --- Energy track animated lines --------------------------- */
.energy-track {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-lime), transparent);
  border-radius: 2px;
  animation: energyPulse 3s ease-in-out infinite;
  pointer-events: none;
}
.energy-track:nth-child(2) { animation-delay: 1s; }
.energy-track:nth-child(3) { animation-delay: 2s; }

/* --- Floating icon decoration ------------------------------ */
.float-anim { animation: float 4s ease-in-out infinite; }
.float-anim--delay-1 { animation-delay: 1s; }
.float-anim--delay-2 { animation-delay: 2s; }

/* --- Progress bars ----------------------------------------- */
.progress-bar {
  background: var(--grid-silver);
  border-radius: 40px;
  height: 8px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-lime));
  border-radius: 40px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.progress-bar__fill.animated { width: var(--target-w, 80%); }

/* --- Number counter ---------------------------------------- */
.count-up { font-variant-numeric: tabular-nums; }

/* --- Feature icon ring pulse ------------------------------- */
.icon-pulse {
  animation: pulseGreen 2.5s ease-in-out infinite;
  border-radius: 50%;
}

/* --- Comparison table -------------------------------------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th {
  background: var(--charcoal);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.compare-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.compare-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--grid-silver);
  color: var(--text-mid);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: rgba(107,175,63,.04); }
.compare-table .check { color: var(--green); font-weight: 700; }
.compare-table .highlight-col { background: rgba(107,175,63,.08) !important; font-weight: 600; color: var(--green-dark); }

/* --- Savings callout box ----------------------------------- */
.savings-box {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.savings-box::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.savings-box__value {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.savings-box__label { font-size: 1rem; opacity: 0.85; }
.savings-box__sub { font-size: 0.82rem; opacity: 0.65; margin-top: 6px; }

/* --- Icon feature grid ------------------------------------- */
.icon-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--grid-silver);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.icon-feature:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(107,175,63,.12);
}
.icon-feature__icon {
  width: 60px; height: 60px;
  background: rgba(107,175,63,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s;
}
.icon-feature:hover .icon-feature__icon {
  background: var(--green);
}
.icon-feature:hover .icon-feature__icon svg {
  stroke: white;
}
.icon-feature__icon svg { width: 28px; height: 28px; stroke: var(--green); fill: none; stroke-width: 1.8; transition: stroke 0.3s; }
.icon-feature__title { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.icon-feature__text { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; max-width: none; }

/* --- Timeline / How it works ------------------------------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--green), var(--green-lime), transparent);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(107,175,63,.25);
}
.timeline-item__title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.timeline-item__text { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; max-width: none; }

/* Dark timeline */
.section--dark .timeline::before { background: linear-gradient(180deg, var(--green-lime), var(--green), transparent); }
.section--dark .timeline-item::before { background: var(--green-lime); box-shadow: 0 0 0 3px rgba(141,198,63,.25); }
.section--dark .timeline-item__title { color: var(--white); }
.section--dark .timeline-item__text { color: rgba(255,255,255,.65); }

/* --- Spec card --------------------------------------------- */
.spec-card {
  background: var(--white);
  border: 1px solid var(--grid-silver);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
}
.spec-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.spec-card__label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: 6px; }
.spec-card__value { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); line-height: 1.1; margin-bottom: 4px; }
.spec-card__desc { font-size: 0.85rem; color: var(--text-light); max-width: none; }

/* Dark spec card */
.section--dark .spec-card,
.section--carbon .spec-card {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}
.section--dark .spec-card:hover,
.section--carbon .spec-card:hover { border-color: var(--green-lime); }
.section--dark .spec-card__value,
.section--carbon .spec-card__value { color: var(--white); }
.section--dark .spec-card__desc,
.section--carbon .spec-card__desc { color: rgba(255,255,255,.55); }

/* --- Callout box ------------------------------------------- */
.callout {
  border-left: 4px solid var(--green);
  background: rgba(107,175,63,.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p { margin: 0; font-size: 0.95rem; color: var(--text-mid); max-width: none; }
.callout strong { color: var(--green-dark); }

/* --- Rebate badge ------------------------------------------ */
.rebate-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(107,175,63,.1);
  border: 1px solid rgba(107,175,63,.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 12px;
  width: 100%;
}
.rebate-badge__icon { width: 36px; height: 36px; background: var(--green); border-radius: 8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rebate-badge__icon svg { width: 18px; height: 18px; stroke: white; fill: none; }
.rebate-badge__value { font-size: 1.1rem; font-weight: 800; color: var(--green-dark); }
.rebate-badge__label { font-size: 0.82rem; color: var(--text-light); }

/* --- Charger type card ------------------------------------- */
.charger-card {
  background: var(--white);
  border: 2px solid var(--grid-silver);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.charger-card.featured {
  border-color: var(--green);
  background: linear-gradient(145deg, rgba(107,175,63,.04) 0%, var(--white) 100%);
}
.charger-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 40px;
}
.charger-card:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(107,175,63,.15);
}
.charger-card__speed {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}
.charger-card__unit { font-size: 0.85rem; color: var(--text-light); margin-bottom: 14px; }
.charger-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.charger-card__desc { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; max-width: none; }

/* --- Particle canvas --------------------------------------- */
#energy-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* --- Scroll progress indicator ----------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-lime));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Green text accent ------------------------------------- */
.text-green { color: var(--green); }
.text-green-lime { color: var(--green-lime); }

/* Grid dot pattern overlay */
.grid-pattern {
  background-image:
    linear-gradient(rgba(107,175,63,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,175,63,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-up, .card, .icon-feature { transition: none !important; animation: none !important; }
}

/* ============================================================
   NEXT-LEVEL ANIMATION SYSTEM v2
   ============================================================ */

/* Custom cursor */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: normal;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(107,175,63,.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s cubic-bezier(0.25,0.46,0.45,0.94),
              width 0.25s, height 0.25s, border-color 0.2s;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(107,175,63,.8);
}

/* Hero word-split animation */
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero__title .word span {
  display: inline-block;
  transform: translateY(110%) skewY(6deg);
  opacity: 0;
  animation: wordReveal 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes wordReveal {
  to { transform: translateY(0) skewY(0); opacity: 1; }
}

/* Clip-path section reveals */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.77,0,0.175,1);
}
.clip-reveal.is-visible {
  clip-path: inset(0 0% 0 0);
}

/* 3D tilt card */
.card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s;
  will-change: transform;
}
.card:hover {
  box-shadow: 0 28px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(107,175,63,.15);
}

/* Magnetic button glow */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.22) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::after { opacity: 1; }

/* Shimmer line on section dividers */
.shimmer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), var(--green-lime), var(--green), transparent);
  background-size: 200% 100%;
  animation: shimmerLine 3s linear infinite;
}
@keyframes shimmerLine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--grid-silver);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s;
  transform-style: preserve-3d;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,.1);
}
.testimonial-card__stars {
  display: flex; gap: 3px;
}
.testimonial-card__stars svg { fill: #F5A623; stroke: none; }
.testimonial-card__quote {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-light);
  font-style: italic;
  flex: 1;
}
.testimonial-card__author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--grid-silver);
}
.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; font-size: .9rem; color: var(--carbon); }
.testimonial-card__detail { font-size: .78rem; color: var(--text-light); }

/* SA Incentives section */
.incentive-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
@media (max-width: 860px) { .incentive-grid { grid-template-columns: 1fr; } }

.incentive-card {
  border-radius: var(--radius-md);
  padding: 28px 24px;
  background: rgba(107,175,63,.07);
  border: 1px solid rgba(107,175,63,.2);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.incentive-card:hover {
  transform: translateY(-4px);
  background: rgba(107,175,63,.12);
  box-shadow: 0 16px 40px rgba(107,175,63,.12);
}
.incentive-card__amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}
.incentive-card__title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--carbon);
  margin-bottom: 10px;
}
.incentive-card__desc {
  font-size: .84rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Environmental impact */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2px;
}
@media (max-width: 860px) { .impact-grid { grid-template-columns: repeat(2,1fr); } }

.impact-cell {
  padding: 40px 24px;
  text-align: center;
  background: rgba(255,255,255,.03);
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background 0.3s;
}
.impact-cell:hover { background: rgba(107,175,63,.08); }
.impact-cell:last-child { border-right: none; }
.impact-cell__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(107,175,63,.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--green-lime);
}
.impact-cell__value {
  font-size: clamp(2rem,4vw,2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.impact-cell__label {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Savings estimator */
.estimator {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,.1);
  border: 1px solid var(--grid-silver);
}
.estimator__label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.estimator__slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--grid-silver) 0%);
  outline: none;
  margin: 12px 0 4px;
}
.estimator__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(107,175,63,.2);
  transition: box-shadow 0.2s;
}
.estimator__slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 8px rgba(107,175,63,.2);
}
.estimator__result {
  background: linear-gradient(135deg, var(--charcoal) 0%, #0a1a06 100%);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2px;
  overflow: hidden;
}
@media (max-width: 700px) { .estimator__result { grid-template-columns: repeat(2,1fr); gap: 16px; } }
@media (max-width: 480px) { .estimator__result { grid-template-columns: 1fr; gap: 16px; } }
.estimator__result-item { padding: 16px 20px; }
.estimator__result-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-lime);
  line-height: 1;
}
.estimator__result-label { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 4px; }

/* Estimator field inputs */
.est-field { display: flex; flex-direction: column; gap: 6px; }
.est-field__label { font-size: .82rem; font-weight: 600; color: var(--charcoal); display: flex; flex-direction: column; gap: 3px; }
.est-field__hint { font-size: .73rem; font-weight: 400; color: var(--text-light); }
.est-field__input-wrap { display: flex; align-items: center; border: 1.5px solid rgba(107,175,63,.3); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.est-field__prefix { padding: 0 10px; font-size: .78rem; color: var(--text-light); background: rgba(107,175,63,.06); border-right: 1px solid rgba(107,175,63,.2); white-space: nowrap; height: 40px; display: flex; align-items: center; }
.est-field__input { border: none; outline: none; padding: 0 12px; height: 40px; font-size: .9rem; font-weight: 600; color: var(--charcoal); width: 100%; background: transparent; }
.est-field__input:focus { background: rgba(107,175,63,.04); }
.est-field__select { border: 1.5px solid rgba(107,175,63,.3); border-radius: var(--radius-sm); padding: 0 12px; height: 40px; font-size: .85rem; color: var(--charcoal); background: var(--white); width: 100%; cursor: pointer; outline: none; }
.est-field__select:focus { border-color: var(--green); }

/* Calculation breakdown steps */
.calc-step { padding: 18px 20px; background: var(--white); }
.calc-step__num { width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--white); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.calc-step__title { font-size: .75rem; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.calc-step__value { font-size: 1.05rem; font-weight: 800; color: var(--green); margin-bottom: 4px; }
.calc-step__formula { font-size: .72rem; color: var(--text-light); }

/* Scroll hint — positioned relative to .hero (which is position:relative) */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 3;
  animation: fadeUp .6s ease 1.6s both;
}
.hero__scroll-hint svg { animation: float 2s ease-in-out infinite; }

/* Number scramble effect */
.scramble { display: inline-block; }

/* Glowing section label */
.section-label {
  position: relative;
}

/* Animated gradient orb in hero */
.hero__orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,175,63,.18) 0%, transparent 70%);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite alternate;
  top: -100px; right: -100px;
  filter: blur(60px);
}
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 80px) scale(1.15); }
}

/* Step number glow pulse */
.step__number {
  animation: stepPulse 3s ease-in-out infinite;
}
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107,175,63,0); }
  50% { box-shadow: 0 0 0 10px rgba(107,175,63,.12); }
}

/* Card shine sweep on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transition: left 0.5s;
  pointer-events: none;
}
.card:hover::before { left: 150%; }

/* Section entrance — dramatic */
.section-enter {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.section-enter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating green energy dots decoration */
.energy-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.energy-dots span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green-lime);
  opacity: 0;
  animation: dotRise 6s ease-in infinite;
}

@keyframes dotRise {
  0%   { transform: translateY(100%) scale(0); opacity: 0; }
  10%  { opacity: .6; }
  90%  { opacity: .3; }
  100% { transform: translateY(-200%) scale(1.5); opacity: 0; }
}

/* Line decoration under hero badge */
.hero__badge::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 14px; right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-lime), transparent);
  opacity: .4;
}

/* ── Estimator layout classes (replaces inline grids for mobile targetting) */
.est-sliders-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.adv-grid-3         { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 20px; }
.adv-grid-2         { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.calc-step-grid     { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid rgba(107,175,63,.12); border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.calc-assumptions-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; font-size: .8rem; }

/* ============================================================
   MOBILE — comprehensive responsive overrides
   Target: 375px minimum (iPhone SE) up to 768px
   ============================================================ */

/* --- 768px and below ---------------------------------------- */
@media (max-width: 768px) {

  /* Typography scale */
  h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.35rem); }
  .lead { font-size: 1rem; }

  /* Container */
  .container { padding: 0 18px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section--tight { padding: 28px 0; }
  .mb-lg { margin-bottom: 32px !important; }

  /* ── Hero ───────────────────────────────────────────────── */
  .hero { min-height: 100svh; }
  .hero__content { padding: 56px 0 120px; }
  .hero__badge { font-size: .7rem; padding: 5px 12px; }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); max-width: 100%; margin-bottom: 18px; }
  .hero__lead { font-size: .95rem; margin-bottom: 28px; max-width: 100%; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__trust { gap: 14px; margin-top: 28px; }
  .hero__trust > div { font-size: .78rem; }
  .hero__orb { width: 280px; height: 280px; top: -60px; right: -80px; }
  .hero__scroll-hint { bottom: 24px; }

  /* ── Nav ────────────────────────────────────────────────── */
  .nav__inner { padding: 0 18px; }
  .nav__logo img { height: 40px !important; }

  /* ── Cred strip ─────────────────────────────────────────── */
  .cred-strip { overflow-x: visible; }
  .cred-strip__inner { flex-wrap: wrap; gap: 16px 12px; padding: 4px 2px; justify-content: center; }
  .cred-item { flex: 0 0 calc(50% - 6px); justify-content: flex-start; }
  .cred-item { flex-shrink: 0; }

  /* ── Page hero (inner pages) ────────────────────────────── */
  .page-hero { padding: 56px 0 40px; min-height: auto; }
  .page-hero__title { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 14px; }
  .page-hero__lead { font-size: .9rem; max-width: 100%; margin-bottom: 22px; }
  .page-hero .btn-group { flex-direction: column; gap: 12px; }
  .page-hero .btn-group .btn { width: 100%; justify-content: center; }
  .breadcrumb { padding: 10px 18px; font-size: .75rem; }

  /* ── Buttons ────────────────────────────────────────────── */
  .btn-lg { padding: 14px 22px; font-size: .95rem; }

  /* ── Stats row ──────────────────────────────────────────── */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .stat { padding: 28px 16px; }
  .stat__value { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* ── Testimonials ───────────────────────────────────────── */
  .testimonial-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-card { padding: 24px 20px; }
  .testimonial-card__quote { font-size: .9rem; }

  /* ── Incentive cards ────────────────────────────────────── */
  .incentive-grid { grid-template-columns: 1fr; gap: 14px; }
  .incentive-card { padding: 22px 20px; }
  .incentive-card__amount { font-size: 1.7rem; }

  /* ── Impact counters ────────────────────────────────────── */
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-cell { padding: 28px 16px; }
  .impact-cell__value { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .impact-cell__icon svg { width: 28px; height: 28px; }

  /* ── Estimator ──────────────────────────────────────────── */
  .estimator { padding: 24px 18px; }
  .est-sliders-grid   { grid-template-columns: 1fr; }
  .est-sliders-grid > div { margin-bottom: 20px; }
  .est-sliders-grid > div:last-child { margin-bottom: 0; }
  .adv-grid-3         { grid-template-columns: 1fr; }
  .adv-grid-2         { grid-template-columns: 1fr; }
  .calc-step-grid     { grid-template-columns: 1fr; }
  .calc-assumptions-grid { grid-template-columns: 1fr; gap: 12px; }
  .calc-step { border-left: none; border-right: none; border-bottom: 1px solid rgba(107,175,63,.1); }
  .calc-step:last-child { border-bottom: none; }
  .estimator__result { grid-template-columns: repeat(2, 1fr); padding: 20px 16px; gap: 16px; }
  .estimator__result > div { border: none !important; }
  .estimator__result-value { font-size: 1.4rem; }

  /* ── Process steps ──────────────────────────────────────── */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { display: none; }
  .step { padding: 22px 16px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }

  /* ── Feature/split grids ────────────────────────────────── */
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split__image { aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; }
  .split__image img { width: 100%; height: 100%; object-fit: cover; }

  /* ── Cards ──────────────────────────────────────────────── */
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 20px; }

  /* ── Logo grid (products) ───────────────────────────────── */
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .logo-item { padding: 16px 10px; }

  /* ── FAQ ────────────────────────────────────────────────── */
  .faq-question { font-size: .92rem; padding: 16px 14px; }
  .faq-answer p { font-size: .88rem; padding: 0 14px 16px; }

  /* ── CTA banner ─────────────────────────────────────────── */
  .cta-banner { padding: 56px 0; }
  .cta-banner__title { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .cta-banner .btn-group { flex-direction: column; gap: 12px; align-items: stretch; }
  .cta-banner .btn-group .btn { width: 100%; justify-content: center; }

  /* ── Footer ─────────────────────────────────────────────── */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; font-size: .75rem; }
  .footer__brand p { font-size: .88rem; }

  /* ── Contact form ───────────────────────────────────────── */
  .form-row { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 32px; }

  /* ── Service areas ──────────────────────────────────────── */
  .areas-grid { grid-template-columns: 1fr 1fr; }

  /* ── Projects ───────────────────────────────────────────── */
  .projects-grid { grid-template-columns: 1fr; }

  /* ── About team/values ──────────────────────────────────── */
  .values-grid { grid-template-columns: 1fr; }

  /* ── Products comparison table ──────────────────────────── */
  .compare-table th, .compare-table td { padding: 10px 8px; font-size: .8rem; }

  /* ── img-banner ─────────────────────────────────────────── */
  .img-banner { aspect-ratio: 4/3; object-position: center; }

  /* ── Section labels ─────────────────────────────────────── */
  .section-label { font-size: .7rem; }

  /* ── Inline calc breakdown grid (3-col inside estimator) ── */
  .calc-step-grid { grid-template-columns: 1fr !important; }
}

/* --- 480px and below ---------------------------------------- */
@media (max-width: 480px) {

  /* Typography */
  h1 { font-size: clamp(1.75rem, 8.5vw, 2.2rem); }

  /* Hero */
  .hero__content { padding: 48px 0 110px; }
  .hero__title { font-size: clamp(1.75rem, 8.5vw, 2.2rem); }
  .hero__badge { font-size: .66rem; }
  .hero__trust { flex-direction: column; gap: 10px; }

  /* Stats */
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat__value { font-size: 1.5rem; }

  /* Impact */
  .impact-grid { grid-template-columns: 1fr 1fr; }

  /* Cards */
  .grid-4 { grid-template-columns: 1fr; }

  /* Logo grid */
  .logo-grid { grid-template-columns: repeat(2, 1fr); }

  /* Estimator result: 1 col on very small screens */
  .estimator__result { grid-template-columns: 1fr; }
  .estimator__result-value { font-size: 1.25rem; }

  /* CTA buttons always full width */
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }

  /* Cred strip: tighter */
  .cred-item__value { font-size: .9rem; }
  .cred-item__label { font-size: .66rem; }

  /* Footer */
  .footer__grid { padding-top: 32px; }
}

/* --- Touch: disable 3D tilt and magnetic effects ----------- */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .btn:hover  { transform: none !important; }
  .testimonial-card:hover,
  .incentive-card:hover { transform: none; }
}

/* ============================================================
   INNER PAGE MOBILE FIXES
   Targeted overrides for issues found in audit:
   inline gap values, page-specific components, contact layout
   ============================================================ */

@media (max-width: 768px) {

  /* ── Fix: inline gap values on .grid-2 across all pages ──── */
  /* !important beats inline styles — reduces all oversized gaps */
  .grid-2 { gap: 24px !important; }

  /* ── Savings box (residential, batteries pages) ─────────── */
  .savings-box { padding: 28px 22px; }
  .savings-box__value { font-size: clamp(1.9rem, 7vw, 2.8rem); }

  /* ── Charger cards (EV chargers page) ───────────────────── */
  .charger-card { padding: 22px 18px; }
  .charger-card__speed { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  /* ── Rebate badges (commercial solar page) ──────────────── */
  .rebate-badge { padding: 12px 14px; }
  .rebate-badge__value { font-size: 1rem; }

  /* ── Area tags (service areas, contact pages) ───────────── */
  .area-tags { gap: 8px; }
  .area-tag { padding: 7px 13px; font-size: .82rem; }

  /* ── Timeline (residential page) ────────────────────────── */
  .timeline { padding-left: 24px; }
  .timeline-item { padding-bottom: 20px; }

  /* ── Product category cards (products page) ─────────────── */
  .product-cat { padding: 20px; }
  .product-cat__header { gap: 10px; margin-bottom: 10px; }
  .product-cat__title { font-size: 1rem; }

  /* ── Icon feature list ──────────────────────────────────── */
  .icon-feature { padding: 16px; gap: 12px; }

  /* ── Callout blocks ─────────────────────────────────────── */
  .callout { padding: 22px 18px; }

  /* ── img-banner: ensure full width, no overflow ─────────── */
  .img-banner { width: 100%; max-width: 100%; display: block; }

  /* ── Contact page: info panel ───────────────────────────── */
  .contact-info-panel { padding: 20px !important; }

  /* ── Commercial page: inline-styled cards ───────────────── */
  /* Target anonymous inline-styled divs inside .grid-3 */
  .grid-3 > div[style*="padding:28px"] { padding: 20px !important; }
  .grid-3 > div[style*="padding: 28px"] { padding: 20px !important; }

  /* ── Page-specific section padding ──────────────────────── */
  .section--dark .container { padding: 0 18px; }

  /* ── Spec cards (residential page) ──────────────────────── */
  .spec-card { padding: 20px 16px; }
  .spec-card__value { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* ── Progress bars: ensure full width ───────────────────── */
  .progress-bar { width: 100%; }

  /* ── Benefit list items ──────────────────────────────────── */
  .benefit-item { gap: 10px; }

  /* ── Contact form ───────────────────────────────────────── */
  .contact-form { padding: 24px 18px; }

  /* ── About page: ensure any inline flex rows wrap ────────── */
  [style*="display:flex"][style*="gap:24px"],
  [style*="display: flex"][style*="gap: 24px"] { flex-wrap: wrap; }

  /* ── Page hero BTN groups across all inner pages ─────────── */
  .page-hero__content .btn-group,
  .page-hero__content + .btn-group { flex-direction: column; gap: 12px; }
  .page-hero__content .btn-group .btn { width: 100%; justify-content: center; }

  /* ── All pill/badge rows with inline flex ───────────────── */
  [style*="display:flex"][style*="flex-wrap:wrap"] { gap: 8px !important; }
}

@media (max-width: 480px) {

  /* ── Charger cards: 1-col on very small screens ─────────── */
  .grid-3 .charger-card { padding: 18px 14px; }

  /* ── Area tags: tighter ──────────────────────────────────── */
  .area-tag { padding: 6px 11px; font-size: .78rem; }

  /* ── Savings box ─────────────────────────────────────────── */
  .savings-box { padding: 22px 16px; }

  /* ── Map hero (service areas) ────────────────────────────── */
  .map-hero__content { padding: 40px 0 48px; }
  .map-hero h2 br { display: none; } /* Remove <br> on small screens */
}
