/*
Theme Name: Big Solar Landing
Theme URI: https://bigsolar.co.za/
Author: Big Solar
Description: Mobile-first sales landing page for Big Solar packages.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: big-solar
*/

:root {
  --navy: #061d38;
  --navy-2: #0b2f55;
  --orange: #f58a07;
  --orange-2: #ffb129;
  --green: #087b36;
  --green-2: #13aa54;
  --ink: #09213c;
  --muted: #617188;
  --line: rgba(7, 38, 70, .12);
  --glass: rgba(255, 255, 255, .76);
  --shadow: 0 18px 55px rgba(0, 25, 57, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(245, 138, 7, .18), transparent 30rem),
    radial-gradient(circle at 95% 18%, rgba(19, 170, 84, .13), transparent 28rem),
    #f4f8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.glass {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sale-bar {
  position: relative;
  z-index: 40;
  padding: 9px 16px;
  background: linear-gradient(90deg, #ed7c00, #ff9f12);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 35;
  border-bottom: 1px solid rgba(8, 35, 63, .08);
  background: rgba(248, 251, 253, .84);
  backdrop-filter: blur(16px);
}
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand img { width: auto; height: 46px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 800; }
.nav-links a:hover { color: var(--orange); }
.nav-cta { padding: 12px 18px; border-radius: 999px; background: var(--green); color: #fff !important; box-shadow: 0 10px 24px rgba(8,123,54,.24); }

.hero { position: relative; padding: 66px 0 48px; }
.hero::after {
  content: "";
  position: absolute;
  inset: 8% -8% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(245,138,7,.12);
  filter: blur(60px);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 6px rgba(19,170,84,.12); }
h1 { margin: 18px 0; max-width: 720px; font-size: clamp(46px, 6vw, 78px); line-height: .96; letter-spacing: -.055em; }
.accent { color: var(--orange); }
.hero-copy { max-width: 650px; margin: 0 0 26px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 15px 22px; border-radius: 16px; font-size: 15px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-2)); box-shadow: 0 14px 30px rgba(8,123,54,.28); }
.btn-secondary { background: #fff; border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; flex: none; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 25px; color: #344d68; font-size: 13px; font-weight: 800; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points span::before { content: "✓"; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: rgba(19,170,84,.12); color: var(--green); }
.hero-card { position: relative; padding: 14px; border-radius: 30px; transform: rotate(1.2deg); }
.hero-card { overflow: hidden; }
.hero-card img { width: 100%; aspect-ratio: 16 / 10; border-radius: 22px; object-fit: cover; object-position: center; }
.hero-badge { position: absolute; left: -18px; bottom: 34px; padding: 13px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 900; transform: rotate(-1.2deg); }

.trust-strip { padding: 18px 0 8px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-item { padding: 18px; border-radius: 18px; text-align: center; }
.trust-item strong { display: block; margin-bottom: 5px; font-size: 15px; }
.trust-item small { color: var(--muted); font-size: 12px; }

.section { padding: 82px 0; }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.kicker { color: var(--orange); font-size: 12px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 10px 0 13px; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.kit-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 25px; transition: transform .25s ease, box-shadow .25s ease; }
.kit-card:hover { transform: translateY(-7px); box-shadow: 0 25px 70px rgba(0,25,57,.2); }
.kit-card.featured { border: 2px solid rgba(245,138,7,.62); }
.popular { position: absolute; z-index: 4; top: 14px; right: 14px; padding: 8px 11px; border-radius: 999px; color: #fff; background: var(--orange); font-size: 10px; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 18px rgba(245,138,7,.28); }
.kit-image { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #eef4f7; }
.kit-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.kit-card:hover .kit-image img { transform: scale(1.025); }
.kit-body { display: flex; flex: 1; flex-direction: column; padding: 20px; background: rgba(255,255,255,.82); }
.kit-title { margin: 0 0 7px; font-size: 23px; letter-spacing: -.035em; }
.kit-price { margin-bottom: 12px; color: var(--orange); font-size: 29px; font-weight: 950; letter-spacing: -.04em; }
.kit-note { min-height: 42px; margin: 0 0 17px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.kit-btn { width: 100%; margin-top: auto; }
.stock { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; color: #bf5200; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff7a00; box-shadow: 0 0 0 5px rgba(255,122,0,.1); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255,122,0,0); } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 27px; border-radius: 24px; }
.step-num { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 18px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2)); font-size: 14px; font-weight: 950; }
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.contact-section { padding-top: 22px; }
.contact-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; padding: 52px; border-radius: 32px; color: #fff; background: linear-gradient(135deg, #061d38, #0a335c); box-shadow: 0 24px 70px rgba(0,25,57,.25); }
.contact-card::after { content: ""; position: absolute; right: -80px; bottom: -130px; width: 340px; height: 340px; border-radius: 50%; background: rgba(245,138,7,.25); filter: blur(12px); }
.contact-card h2 { margin-top: 0; }
.contact-card p { max-width: 650px; color: rgba(255,255,255,.72); line-height: 1.65; }
.contact-details { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.contact-line { padding: 15px 17px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.08); font-size: 14px; font-weight: 750; }
.contact-line span { display: block; margin-bottom: 4px; color: var(--orange-2); font-size: 10px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.site-footer { padding: 34px 0 100px; color: #637389; font-size: 12px; text-align: center; }

.sticky-wa {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #087b36, #10a84e);
  box-shadow: 0 18px 42px rgba(2,64,29,.38);
  font-size: 15px;
  font-weight: 950;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sticky-wa:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(2,64,29,.45); }
.sticky-wa svg { width: 22px; height: 22px; flex: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 38px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { width: min(570px, 100%); margin-inline: auto; }
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; padding: 38px; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 22px, 1180px); }
  .sale-bar { padding: 8px 10px; font-size: 10px; }
  .site-header { top: 0; }
  .nav { min-height: 60px; }
  .brand img { width: auto; height: 39px; }
  .nav-cta { padding: 10px 13px; font-size: 12px; }
  .hero { padding: 28px 0 24px; }
  h1 { margin: 14px 0; font-size: 46px; }
  .hero-copy { margin-bottom: 20px; font-size: 15px; line-height: 1.55; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn { min-height: 53px; padding: 14px 18px; }
  .hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; font-size: 11px; }
  .hero-card { padding: 8px; border-radius: 22px; transform: none; }
  .hero-card img { border-radius: 17px; }
  .hero-badge { left: 8px; bottom: 18px; padding: 10px 12px; font-size: 11px; transform: none; }
  .trust-strip { padding-top: 8px; }
  .trust-grid { gap: 8px; }
  .trust-item { padding: 14px 8px; border-radius: 14px; }
  .trust-item strong { font-size: 12px; }
  .trust-item small { font-size: 10px; }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 24px; }
  h2 { font-size: 36px; }
  .section-head p { font-size: 14px; }
  .kit-grid { grid-template-columns: 1fr; gap: 16px; }
  .kit-card { border-radius: 20px; }
  .kit-body { padding: 18px; }
  .kit-title { font-size: 21px; }
  .kit-price { font-size: 28px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 22px; }
  .contact-section { padding-top: 8px; }
  .contact-card { gap: 22px; padding: 27px 21px; border-radius: 24px; }
  .contact-card h2 { font-size: 34px; }
  .site-footer { padding-bottom: 100px; }
  .sticky-wa {
    position: fixed;
    z-index: 60;
    right: 11px;
    bottom: max(11px, env(safe-area-inset-bottom));
    left: 11px;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(135deg, #087b36, #10a84e);
    box-shadow: 0 16px 38px rgba(2,64,29,.34);
    padding: 0 18px;
    font-size: 15px;
    font-weight: 950;
  }
  .sticky-wa svg { width: 22px; height: 22px; }
}

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