/* RanaVolt — shared stylesheet */
:root {
  /* Softer, premium palette — desaturated forest + warm amber */
  --green: #2f6b4e; /* was #1B6B3A — muted, sage-leaning forest */
  --green-dark: #234f3a;
  --green-soft: #d9e5dd; /* pale wash for surfaces */
  --orange: #d49254; /* was #E89422 — warm amber, less neon */
  --orange-dark: #b47338;
  --orange-soft: #f5e7d4;
  --ink: #1d2b24; /* slightly lifted off pure black */
  --ink-soft: #5c6b63;
  --paper: #ffffff;
  --cream: #f8f3ea; /* warmer, softer */
  --line: #ebe5d6;
  --shadow: 0 12px 32px rgba(29, 43, 36, 0.06);
  --shadow-sm: 0 4px 14px rgba(29, 43, 36, 0.04);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --topbar-h: 34px;
}
@media (max-width: 720px) {
  :root {
    --topbar-h: 60px;
  }
}
* {
  box-sizing: border-box;
  min-width: 0;
}
/* overflow-x:hidden lives on <html> only — putting it on <body> creates a
   second scroll container and silently breaks position:sticky on mobile
   browsers. The topbar/site-header sticky behaviour depends on this. */
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
}
body {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  color: var(--orange);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.18;
}
h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.4em;
}
h4 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.3em;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.muted {
  color: var(--ink-soft);
}

/* ——— Top bar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--green-dark);
  color: #f5eeda;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a {
  color: #fff;
  opacity: 0.9;
}
.topbar a:hover {
  opacity: 1;
  color: #fff;
}
.topbar .contact-bits {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.topbar .contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  opacity: 0.92;
  font-weight: 500;
  transition:
    opacity 0.15s,
    background 0.15s;
}
.topbar .contact-link:hover {
  opacity: 1;
  color: #fff;
}
.topbar .contact-link svg,
.topbar .contact-link .wa-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.95;
  border-radius: 3px;
}

/* Quote-request CTA in topbar — pill, accents the call-to-action */
.topbar .contact-link-cta {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  opacity: 1;
  font-weight: 600;
  font-size: 0.84rem;
}
.topbar .contact-link-cta:hover {
  background: #b47338;
  color: #fff;
}
@media (max-width: 520px) {
  .topbar .contact-link-cta {
    padding: 3px 10px;
    font-size: 0.78rem;
  }
}
/* Mobile: keep the topbar a single row so the site-header sticks below it,
   not behind it. Hide the secondary "Free installation…" tagline; the
   call-to-actions (WhatsApp, Request a quote) stay visible. */
@media (max-width: 720px) {
  .topbar .container > div:not(.contact-bits) {
    display: none;
  }
  .topbar .container {
    flex-wrap: nowrap;
    padding: 6px 16px;
  }
  .topbar .contact-bits {
    gap: 10px;
  }
}

/* ── Shared WhatsApp icon image (replaces the old inline SVGs) ── */
.wa-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
  flex-shrink: 0;
}
.btn-wa .wa-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.contact-card .icon .wa-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brand img {
    height: 34px;
  }
}
.brand-text {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand-text .v {
  color: var(--orange);
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
}
.nav a.active,
.nav a:hover {
  color: var(--green);
}
.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover {
  background: var(--orange-dark);
  color: #fff !important;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin-top: 10px;
    text-align: center;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--green);
}
.btn-dark {
  background: var(--green);
  color: #fff;
}
.btn-dark:hover {
  background: var(--green-dark);
  color: #fff;
}
.btn-wa {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover {
  background: #1eb858;
  color: #fff;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  background: linear-gradient(135deg, #2f6b4e 0%, #224e39 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 30%,
    rgba(212, 146, 84, 0.28),
    transparent 45%
  );
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 70px 24px;
}
.hero h1 {
  color: #fff;
}
.hero h1 span {
  color: var(--orange);
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}
.hero p.lead {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 580px;
  margin-bottom: 26px;
}
.hero p.lead strong,
.hero p.lead em {
  color: var(--orange);
  font-style: normal;
  font-weight: 600;
}
.hero-proof {
  margin-top: 22px;
  font-size: 0.88rem;
  opacity: 0.9;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-proof .proof-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}
.hero-proof .proof-item svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  opacity: 0.9;
}
.ng-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  color: var(--orange);
}
.hero-stats .stat span {
  font-size: 0.9rem;
  opacity: 0.85;
}
.hero-visual {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-visual img {
  border-radius: 10px;
}
.hero-visual .tag {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }
}

/* ——— Section ——— */
.section {
  padding: 88px 0;
}
.section.alt {
  background: var(--cream);
}
.section + .section {
  padding-top: 72px;
}
.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 52px;
}
.section-head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 14px;
  padding: 5px 12px;
  background: var(--orange-soft);
  border-radius: 999px;
}
.section-head h2 {
  margin-bottom: 14px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .section {
    padding: 56px 0;
  }
  .section + .section {
    padding-top: 48px;
  }
  .section-head {
    margin-bottom: 36px;
  }
}

/* ——— Benefits grid ——— */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit {
  background: #fff;
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all 0.2s;
}
.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--orange);
}
.benefit .icon {
  width: 48px;
  height: 48px;
  background: var(--green-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}
.benefit .icon svg {
  width: 26px;
  height: 26px;
}
.benefit h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.benefit p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin: 0;
}
@media (max-width: 860px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

/* ——— Product cards ——— */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--orange);
}
.product-card .img {
  aspect-ratio: 4/3;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-card .img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.product-card .body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.product-card .badge-best,
.product-card .badge.badge-best {
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  padding: 6px 14px;
}
.product-card .badge-out {
  background: #fde8e8;
  color: #c1232c;
  margin-left: 8px;
}
.product-card .price-line {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.product-card .price-sale {
  color: var(--orange);
  text-decoration: line-through;
  font-weight: 500;
}
/* Best-seller: larger image area + colored top accent on desktop */
.product-card.is-bestseller {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.product-card.is-bestseller::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange) 60%,
    var(--green) 100%
  );
}
.product-card h3 {
  margin-bottom: 8px;
}
.product-card .model {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.product-card ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.product-card ul li {
  padding: 3px 0 3px 20px;
  position: relative;
}
.product-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 2px;
  background: var(--orange);
}
.product-card .card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}
.product-card .card-actions a {
  flex: 1;
  padding: 11px 14px;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 999px;
  font-weight: 600;
}
.product-card .card-actions .details {
  background: var(--green);
  color: #fff;
}
.product-card .card-actions .details:hover {
  background: var(--green-dark);
  color: #fff;
}
.product-card .card-actions .quote {
  background: #fff;
  color: var(--green);
  border: 2px solid var(--green);
}
.product-card .card-actions .quote:hover {
  background: var(--green);
  color: #fff;
}
@media (max-width: 860px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* On mobile the best-seller pops: bigger square image, larger badge, more vertical room */
  .product-card.is-bestseller .img {
    aspect-ratio: 1/1;
  }
  .product-card.is-bestseller .img img {
    max-height: 90%;
  }
  .product-card.is-bestseller {
    transform: scale(1);
  }
  .product-card.is-bestseller .body {
    padding: 24px 22px 26px;
  }
  .product-card.is-bestseller h3 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .product-card.is-bestseller .badge.badge-best {
    font-size: 0.85rem;
    padding: 7px 16px;
  }
}

/* ——— Comparison (NEPA+Gen vs RanaVolt) ——— */
.compare-section {
  background: var(--cream);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.compare-col {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
}
.compare-bad {
  opacity: 0.92;
}
.compare-good {
  border: 2px solid var(--green);
  box-shadow: var(--shadow);
  position: relative;
}
.compare-good::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.compare-head {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.compare-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.compare-ico svg {
  width: 26px;
  height: 26px;
}
.compare-ico-bad {
  background: #f4e0e0;
  color: #8a3a3a;
}
.compare-ico-good {
  background: var(--green-soft);
  color: var(--green);
}
.compare-head h3 {
  margin-bottom: 2px;
  font-size: 1.3rem;
}
.compare-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-list li {
  padding: 11px 0 11px 36px;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  line-height: 1.5;
}
.compare-list li:last-child {
  border-bottom: 0;
}
/* Style guide: list-item icons sit in a 22px circular badge that matches the
   configurator's chip-ico pattern. Colour pair: red-soft + red for negatives,
   green-soft + green for positives. The icon is a stroked SVG embedded as a
   background, so it scales crisply on retina and tints to the badge palette. */
.compare-bad .compare-list li::before,
.compare-good .compare-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  flex-shrink: 0;
}
.compare-bad .compare-list li::before {
  background-color: #fde8e8;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c1232c' stroke-width='3' stroke-linecap='round'><path d='M6 6L18 18M18 6L6 18'/></svg>");
}
.compare-good .compare-list li::before {
  background-color: var(--green-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6B4E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>");
}
.compare-list li strong {
  color: var(--ink);
}
.compare-cta {
  max-width: 760px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
}
.compare-cta strong {
  font-size: 1.05rem;
  color: var(--ink);
  display: block;
}
.compare-cta span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
  min-width: 180px;
}
.compare-cta .btn {
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-cta {
    flex-direction: column;
    text-align: center;
  }
}

/* ——— Savings scenarios ——— */
.savings-section {
  background: var(--paper);
}
.savings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.savings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.savings-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.savings-card-hero {
  border: 2px solid var(--green);
  box-shadow: var(--shadow);
  position: relative;
}
.savings-card-hero::before {
  content: "MOST COMMON";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.sv-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.sv-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.sv-tag-alt {
  background: var(--green-soft);
  color: var(--green-dark);
}
.sv-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 3px;
}
.sv-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.sv-lines {
  font-size: 0.93rem;
}
.sv-lines > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--ink-soft);
}
.sv-lines > div strong {
  color: var(--ink);
  font-weight: 600;
}
.sv-lines .sv-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.sv-lines .sv-total span {
  color: var(--ink);
  font-weight: 600;
}
.sv-lines .sv-total strong {
  font-size: 1rem;
  color: #c1232c;
}
.sv-swap {
  text-align: center;
  margin: 14px 0 10px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 1.5px;
  font-weight: 600;
}
.sv-out {
  background: var(--green-soft);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.sv-out-big {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--green-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sv-out-sub {
  font-size: 0.85rem;
  color: var(--green-dark);
  margin-top: 4px;
  opacity: 0.85;
}
.sv-out-sub strong {
  color: var(--green-dark);
}
.savings-note {
  max-width: 880px;
  margin: 40px auto 0;
  text-align: center;
  background: var(--cream);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  padding: 18px 24px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
}
.savings-note strong {
  color: var(--orange-dark);
}
@media (max-width: 860px) {
  .savings-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* ——— CTA band ——— */
.cta-band {
  background: linear-gradient(135deg, #d49254 0%, #b37539 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(255, 255, 255, 0.12),
    transparent 40%
  );
  pointer-events: none;
}
.cta-band .cta-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
}
.cta-band p {
  opacity: 0.95;
  margin-bottom: 26px;
  font-size: 1.05rem;
}
.cta-band .cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ——— Gallery ——— */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery .item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.gallery .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery .item:hover img {
  transform: scale(1.06);
}
@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ——— Product detail ——— */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px 0;
}
.product-gallery {
  width: 100%;
}
.product-gallery .main-img {
  aspect-ratio: 4/3;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.product-gallery .main-img img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.product-gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.product-gallery .thumbs button {
  aspect-ratio: 1;
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  overflow: hidden;
}
.product-gallery .thumbs button.active {
  border-color: var(--orange);
}
.product-gallery .thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-info .badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.product-info h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  margin-bottom: 8px;
  line-height: 1.15;
}
.product-info .model {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 0.95rem;
  font-weight: 500;
}
.product-info > p:first-of-type,
.product-info > p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 18px;
}
.product-info .specs h2,
.specs h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  margin-top: 16px;
  margin-bottom: 18px;
}
.product-info .price-note {
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.product-info .highlights {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}
.product-info .highlights li {
  padding: 8px 0 8px 30px;
  position: relative;
}
.product-info .highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-info .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0;
  }
}

/* ——— Spec table ——— */
.specs {
  margin: 40px 0;
}
.specs h2 {
  margin-bottom: 18px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table tr:nth-child(odd) {
  background: var(--cream);
}
.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.95rem;
}
.spec-table th {
  width: 38%;
  color: var(--ink-soft);
  font-weight: 600;
}
.spec-table td {
  color: var(--ink);
}

/* ——— FAQ ——— */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  color: var(--orange);
  font-size: 1.6rem;
  font-weight: 300;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

/* ——— Contact: configure shortcut ——— */
.contact-configure {
  padding: 28px 0 0;
}
.contact-configure .cc-card {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.contact-configure .cc-ico {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.contact-configure .cc-ico svg {
  width: 28px;
  height: 28px;
}
.contact-configure .cc-body {
  flex: 1;
  min-width: 220px;
}
.contact-configure .cc-body h3 {
  color: #fff;
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contact-configure .cc-body p {
  color: #fff;
  opacity: 0.88;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-configure .btn {
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .contact-configure .cc-card {
    padding: 20px 22px;
  }
  .contact-configure .btn {
    width: 100%;
  }
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 {
  margin-bottom: 18px;
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}
.contact-item .icon svg {
  width: 20px;
  height: 20px;
}
.contact-item strong {
  display: block;
  margin-bottom: 2px;
}
.contact-item span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
form.enquiry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
form.enquiry label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
form.enquiry input,
form.enquiry textarea,
form.enquiry select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.97rem;
  margin-bottom: 16px;
  background: #fff;
}
form.enquiry input:focus,
form.enquiry textarea:focus,
form.enquiry select:focus {
  outline: 2px solid var(--orange);
  border-color: var(--orange);
}
form.enquiry textarea {
  min-height: 120px;
  resize: vertical;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— About ——— */
.about-hero {
  background: var(--cream);
  padding: 64px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Footer ——— */
.site-footer {
  background: #223326;
  color: #d8dcd8;
  padding: 56px 0 20px;
  margin-top: 0;
}
.site-footer a {
  color: #d8dcd8;
}
.site-footer a:hover {
  color: var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.site-footer .brand-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.site-footer .brand-footer img {
  height: 40px;
  filter: brightness(0) invert(1);
}
.site-footer .tagline {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 340px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.7;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ——— Floating WA ——— */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 100;
  transition: transform 0.2s;
  background: transparent;
}
.wa-float:hover {
  transform: scale(1.08);
}
.wa-float img,
.wa-float svg {
  width: 58px;
  height: 58px;
  display: block;
  border-radius: 14px;
}

/* ——— Product gallery: hint that images are zoomable ——— */
.product-gallery .main-img img {
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.product-gallery .main-img img:hover {
  opacity: 0.92;
}

/* ——— Image lightbox (zoom-to-fill) ——— */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.94);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  cursor: zoom-out;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-close {
  top: 18px;
  right: 18px;
  font-size: 1.8rem;
  font-weight: 300;
}
.lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 520px) {
  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }
}

/* ——— Page banner ——— */
.page-banner {
  background: linear-gradient(135deg, #2f6b4e 0%, #224e39 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.page-banner h1 {
  color: #fff;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.2vw, 3rem);
}
.page-banner p {
  opacity: 0.92;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.55;
}
.breadcrumbs {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 12px;
}
.breadcrumbs a {
  color: #fff;
  opacity: 0.9;
}

/* ── BMS compatibility grid (battery page) ─────────────────────── */
.bms-compat {
  margin: 48px 0 8px;
  padding: 32px 0 8px;
  border-top: 1px solid var(--line);
}
.bms-compat h2 {
  margin-bottom: 8px;
}
.bms-compat .muted {
  max-width: 780px;
  margin-bottom: 28px;
}
.bms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0 20px;
}
.bms-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 110px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.bms-logo:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.bms-logo img {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.95);
}
.bms-logo span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}
.bms-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 780px;
  margin-top: 18px;
}
.bms-note a {
  color: var(--green);
  font-weight: 600;
}
@media (max-width: 520px) {
  .bms-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }
  .bms-logo {
    min-height: 96px;
    padding: 14px 10px 10px;
  }
  .bms-logo img {
    max-height: 38px;
  }
}

/* Light breadcrumb for pages without a hero banner (product pages) */
.product-crumbs {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 26px 24px 6px;
}
.product-crumbs a {
  color: var(--green);
  text-decoration: none;
}
.product-crumbs a:hover {
  text-decoration: underline;
}
.product-crumbs .sep {
  margin: 0 6px;
  color: var(--line);
}
.product-crumbs .current {
  color: var(--ink);
}

/* ——— Why-us split ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}
