/* =========================================================
   Planet Electrical — Solar Landing Page
   Brand sourced from planetelectrical.co.nz/solar-deal:
     Poppins (Google Fonts), accent hsl(160.21,100%,37.45%) ≈ #00BF80
   Layout: left-aligned content with imagery splits.
   ========================================================= */

:root {
  --brand-primary: #0e1d18;
  --brand-primary-soft: #14302a;
  --brand-accent: #00bf80;
  --brand-accent-dark: #00a26d;
  --brand-accent-darker: #008558;
  --brand-accent-soft: #e6f9f1;
  --brand-accent-text: #ffffff;
  --brand-secondary: #f6f7f5;
  --brand-secondary-2: #eef0ec;
  --brand-text: #272727;
  --brand-text-strong: #0e1d18;
  --brand-text-muted: #5b6360;
  --brand-text-inverse: #ffffff;
  --brand-border: #e3e6e1;
  --brand-success: #00bf80;

  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 980px;
  --section-pad-y: 80px;
  --section-pad-y-mobile: 56px;
  --gutter: 24px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--brand-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-accent-darker); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--brand-text-strong);
  margin: 0 0 16px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 16px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section-pad-y) 0; position: relative; }
@media (max-width: 768px) {
  section { padding: var(--section-pad-y-mobile) 0; }
}

/* ===== Two-column layout primitive ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.split-7-5 { grid-template-columns: 1.1fr 1fr; }
.split-5-7 { grid-template-columns: 1fr 1.1fr; }
.split > * { min-width: 0; align-self: start; }
.split-image { align-self: stretch; }
.split-image-first .split-image { order: -1; }
@media (max-width: 900px) {
  .split, .split-7-5, .split-5-7 { grid-template-columns: 1fr; gap: 32px; }
  .split-image-first .split-image { order: 0; }
  .split.mobile-image-first .split-image { order: -1; }
}
.split-image {
  position: relative;
  align-self: stretch;
  display: flex;
}
.split-image img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 5/4;
  max-height: 520px;
}
@media (max-width: 900px) {
  .split-image img { aspect-ratio: 16/10; max-height: 360px; }
}
.split-image.framed { box-shadow: 0 30px 60px -30px rgba(14, 29, 24, 0.25); border-radius: var(--radius-lg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-accent);
  color: var(--brand-accent-text);
  padding: 16px 30px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 24px -12px rgba(0, 191, 128, 0.55);
}
.btn:hover {
  background: var(--brand-accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(0, 191, 128, 0.6);
}
.btn:active { transform: translateY(0); }
.btn::after {
  content: "→";
  font-weight: 600;
  transition: transform 0.18s ease;
}
.btn:hover::after { transform: translateX(3px); }
.btn-large { padding: 20px 36px; font-size: 1.05rem; }
.btn-outline {
  background: transparent;
  color: var(--brand-text-inverse);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-text-inverse);
  border-color: var(--brand-text-inverse);
}
.btn-outline::after { content: ""; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--brand-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo img { height: 44px; width: auto; }
.nav-cta {
  background: var(--brand-accent);
  color: var(--brand-accent-text);
  padding: 11px 22px;
  font-weight: 600;
  border-radius: 999px;
  font-size: 0.95rem;
}
.nav-cta:hover { background: var(--brand-accent-dark); text-decoration: none; }
@media (max-width: 540px) {
  .nav-cta { padding: 10px 16px; font-size: 0.88rem; }
  .nav-logo img { height: 36px; }
}

/* ===== Hero (centred headline + video background) ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-text-inverse);
  background: var(--brand-primary) center/cover no-repeat;
  background-image: url('images/hero.jpg');
  padding: 120px var(--gutter) 96px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.hero-inner { z-index: 2; }
.hero-inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}
.hero .eyebrow { color: #5fe6b3; }
.hero h1 {
  color: var(--brand-text-inverse);
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 .accent { color: #5fe6b3; }
.hero p.sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  margin: 0 auto 36px;
  max-width: 780px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.hero .fineprint {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.82;
}

/* ===== Trust band (between hero and pain) ===== */
.trust-band {
  background: #ffffff;
  border-bottom: 1px solid var(--brand-border);
  padding: 36px 0;
}
.trust-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 900px) { .trust-band-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; } }
@media (max-width: 480px) { .trust-band-inner { grid-template-columns: 1fr; gap: 20px; } }
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.trust-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-accent-soft);
  color: var(--brand-accent-darker);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-text { line-height: 1.3; }
.trust-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-text-strong);
  margin-bottom: 2px;
}
.trust-text span {
  font-size: 0.82rem;
  color: var(--brand-text-muted);
  font-weight: 500;
}

/* ===== Section heading lockup (centred, used across most sections) ===== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--brand-text-muted); font-size: 1.05rem; margin: 0; }

/* ===== Pain points ===== */
.pain { background: var(--brand-secondary); }
.pain-head { margin-bottom: 40px; }
.pain-head .lockup { max-width: 720px; margin: 0 auto; text-align: center; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card {
  background: #ffffff;
  padding: 32px 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--brand-border);
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pain-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-accent);
  box-shadow: 0 18px 40px -28px rgba(0, 191, 128, 0.4);
}
.pain-card::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: Georgia, serif;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--brand-accent);
  opacity: 0.22;
}
.pain-card .quote {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--brand-text-strong);
  margin: 14px 0 10px;
  position: relative;
}
.pain-card p { margin: 0; color: var(--brand-text-muted); }
.pain .cta-row { text-align: center; }

/* ===== Why us (editorial split) ===== */
.why { background: #ffffff; }
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}
.why-copy .eyebrow { margin-bottom: 14px; }
.why-copy h2 { margin-bottom: 22px; max-width: 560px; }
.why-copy > p {
  color: var(--brand-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.credential-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--brand-border);
  padding-top: 28px;
}
.credential-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}
.credential-list .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}
.credential-list strong {
  display: block;
  color: var(--brand-text-strong);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}
.credential-list span {
  color: var(--brand-text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.why-aside { position: sticky; top: 96px; }
@media (max-width: 900px) { .why-aside { position: static; } }
.why-figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(14, 29, 24, 0.28);
}
.why-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}
@media (max-width: 900px) { .why-figure img { aspect-ratio: 16/10; } }
.why-figure figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-text-strong);
}

/* ===== How it works (left-aligned with image split) ===== */
.how {
  background: var(--brand-primary);
  color: var(--brand-text-inverse);
  position: relative;
  overflow: hidden;
}
.how::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--brand-accent);
  filter: blur(180px);
  opacity: 0.18;
  top: -300px; right: -200px;
  z-index: 0;
}
.how .container { position: relative; z-index: 1; }
.how h2 { color: var(--brand-text-inverse); }
.how .intro { opacity: 0.85; max-width: 540px; margin: 0 0 36px; }
.how .split-image img { aspect-ratio: 5/4; }
.how .split-image::after { background: var(--brand-accent); opacity: 0.22; }
.steps { display: grid; gap: 12px; margin-bottom: 8px; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}
.step:hover { background: rgba(255, 255, 255, 0.07); transform: translateX(4px); }
.step-num {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-accent);
  color: #0e1d18;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
}
.step h3 { color: var(--brand-text-inverse); margin-bottom: 4px; font-size: 1.05rem; font-weight: 600; }
.step p { margin: 0; opacity: 0.82; font-size: 0.95rem; }

/* ===== Products / Carousel ===== */
.products { background: #ffffff; overflow: hidden; }
.products-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.products-head h2 { margin-bottom: 16px; }
.products-head p { color: var(--brand-text-muted); font-size: 1.05rem; margin: 0; }

.carousel { position: relative; max-width: 1200px; margin: 0 auto 32px; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--brand-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
}
@media (max-width: 900px) {
  .slide { grid-template-columns: 1fr; height: auto; }
}
.slide-image {
  position: relative;
  background: var(--brand-primary);
  height: 480px;
  overflow: hidden;
}
@media (max-width: 900px) { .slide-image { height: 280px; } }
.slide-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-image .badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--brand-text-strong);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
.slide-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) { .slide-body { padding: 36px 28px; } }
.slide-body .product-name {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-text-strong);
  margin-bottom: 14px;
}
.slide-body p { color: var(--brand-text-muted); font-size: 1.02rem; margin-bottom: 22px; }
.slide-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.slide-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--brand-text-strong);
}
.slide-feats li::before {
  content: "✓";
  color: var(--brand-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.carousel-arrows { display: flex; gap: 12px; }
.carousel-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--brand-border);
  background: #ffffff;
  color: var(--brand-text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #ffffff;
  transform: translateY(-1px);
}
.carousel-arrow:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.carousel-arrow:disabled:hover { background: #ffffff; color: var(--brand-text-strong); border-color: var(--brand-border); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-border);
  border: none;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.is-active { background: var(--brand-accent); transform: scale(1.25); }
.carousel-counter {
  font-size: 0.9rem;
  color: var(--brand-text-muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.products .cta-row { margin-top: 24px; }

/* ===== Reviews ===== */
.reviews { background: var(--brand-secondary); }
.reviews-head { text-align: center; margin: 0 auto 32px; max-width: 720px; }
.reviews .stat-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px auto 40px;
  font-size: 0.92rem;
  color: var(--brand-text-muted);
}
.reviews .stat-row strong {
  display: block;
  color: var(--brand-text-strong);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2px;
}
.reviews-widget { min-height: 480px; max-width: 1100px; margin: 24px auto 0; }

/* ===== Contact ===== */
.contact { background: #ffffff; position: relative; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy p.sub { color: var(--brand-text-muted); font-size: 1.05rem; margin-bottom: 28px; }
.contact-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 14px;
}
.contact-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--brand-text-strong);
}
.contact-bullets li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  background: var(--brand-accent-soft);
  color: var(--brand-accent-darker);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.contact-fineprint { color: var(--brand-text-muted); font-size: 0.92rem; }
.contact-frame {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 30px 60px -30px rgba(14, 29, 24, 0.18);
}
.contact-frame iframe { width: 100%; border: none; display: block; }

/* ===== Footer ===== */
.footer { background: var(--brand-primary); color: var(--brand-text-inverse); padding: 64px 0 36px; }
.footer-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-trust .logo-tile {
  background: #ffffff;
  padding: 14px 22px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  min-width: 160px;
  transition: transform 0.2s ease;
}
.footer-trust .logo-tile:hover { transform: translateY(-2px); }
.footer-trust .logo-tile img {
  max-height: 64px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.footer-trust .text-badge {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 14px 22px;
  border-radius: 999px;
  opacity: 0.85;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  opacity: 0.7;
}
.footer-bottom a { color: var(--brand-text-inverse); }
@media (max-width: 600px) {
  .footer-bottom { justify-content: center; text-align: center; }
}
