/* ================================================================
   UK Solar Calculator — Shared Styles
   Kinetic Energy Consulting
   Brand: Navy + KEC Blues/Greens + Gold
   ================================================================ */


/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Brand — KEC Blues */
  --navy:        #0a1628;
  --navy-mid:    #122040;
  --navy-light:  #1a3057;
  --kec-blue:    #1464aa;
  --kec-blue-2:  #1a7bc4;
  --kec-blue-lt: #5ba8e0;

  /* Brand — KEC Greens */
  --kec-teal:    #0b7a6e;
  --kec-teal-2:  #129e8e;
  --kec-teal-lt: #4dc9b8;
  --kec-green:   #0d7a4f;
  --kec-green-lt:#34c889;

  /* UK Solar Calculator Gold */
  --gold:        #f59e0b;
  --gold-dark:   #d97706;
  --gold-light:  #fcd34d;
  --gold-dim:    rgba(245,158,11,0.12);
  --gold-mid:    rgba(245,158,11,0.22);

  /* Neutrals */
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --slate-50:    #f8fafc;
  --slate-100:   #f1f5f9;
  --slate-200:   #e2e8f0;
  --slate-300:   #cbd5e1;
  --slate-400:   #94a3b8;
  --slate-500:   #64748b;
  --slate-600:   #475569;
  --slate-700:   #334155;
  --slate-800:   #1e293b;
  --text:        #0f172a;
  --text-muted:  #475569;
  --text-dim:    #94a3b8;
  --border:      rgba(0,0,0,0.08);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.10);

  /* Shape */
  --radius:      10px;
  --radius-lg:   18px;
  --radius-xl:   28px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Familjen Grotesk', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── SITE NAVIGATION ───────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-icon svg { width: 20px; height: 20px; }
.nav-logo-img { height: 64px; width: 320px; max-width: min(320px, 55vw); display: block; flex-shrink: 0; }

.nav-logo-text { display: flex; flex-direction: column; }

.nav-logo-main {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.nav-logo-sub {
  font-size: 0.68em;
  color: var(--kec-teal-lt);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.875em;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-links a.active {
  color: var(--gold);
  background: var(--gold-dim);
}

.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}

.nav-links a.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile nav open */
.nav-mobile-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 88px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--navy-mid);
  padding: 16px 24px 24px;
  gap: 4px;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.nav-mobile-open .nav-links a {
  padding: 12px 16px;
}

/* Page offset for fixed nav */
.page-body { padding-top: 88px; }

/* ── SITE FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand { }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg { width: 16px; height: 16px; }
.footer-logo-img { height: 68px; width: auto; display: block; }

.footer-logo-main {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.footer-logo-sub {
  font-size: 0.65em;
  color: var(--kec-teal-lt);
}

.footer-desc {
  font-size: 0.84em;
  line-height: 1.65;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.55);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82em;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item a {
  color: var(--kec-teal-lt);
  transition: color 0.15s;
}

.footer-contact-item a:hover { color: var(--gold); }

.footer-col-title {
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  font-size: 0.83em;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.78em;
  color: rgba(255,255,255,0.35);
}

.footer-disclaimer {
  font-size: 0.74em;
  color: rgba(255,255,255,0.25);
  max-width: 500px;
  text-align: right;
  line-height: 1.5;
}

/* ── COMMON COMPONENTS ─────────────────────────────────────── */

/* Section wrapper */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section label */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-kicker::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Section heading */
.section-title {
  font-size: clamp(1.6em, 4vw, 2.4em);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-title span { color: var(--gold); }
.section-title .teal { color: var(--kec-teal-2); }

.section-lead {
  font-size: 1.05em;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Icon box */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.icon-box.gold    { background: var(--gold-dim); }
.icon-box.blue    { background: rgba(20,100,170,0.10); }
.icon-box.teal    { background: rgba(11,122,110,0.10); }
.icon-box.green   { background: rgba(13,122,79,0.10); }
.icon-box.navy    { background: rgba(10,22,40,0.08); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 0.9em;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.35);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--slate-300);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--kec-teal);
  color: var(--white);
}
.btn-teal:hover {
  background: var(--kec-teal-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11,122,110,0.3);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm { padding: 9px 18px; font-size: 0.82em; }
.btn-lg { padding: 17px 34px; font-size: 1em; }

/* Pill badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pill-gold  { background: var(--gold-dim); color: var(--gold-dark); border: 1px solid rgba(245,158,11,0.25); }
.pill-blue  { background: rgba(20,100,170,0.10); color: var(--kec-blue); border: 1px solid rgba(20,100,170,0.20); }
.pill-teal  { background: rgba(11,122,110,0.10); color: var(--kec-teal); border: 1px solid rgba(11,122,110,0.20); }
.pill-green { background: rgba(13,122,79,0.10); color: var(--kec-green); border: 1px solid rgba(13,122,79,0.20); }

/* ── HERO COMMON ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  padding: 120px 24px 90px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.page-hero-title {
  font-size: clamp(1.8em, 5vw, 3em);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.page-hero-title span { color: var(--gold); }
.page-hero-title .teal { color: var(--kec-teal-lt); }

.page-hero-lead {
  font-size: 1.05em;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}

/* ── CTA STRIP ─────────────────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--kec-blue) 100%);
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cta-strip-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-strip-title {
  font-size: clamp(1.4em, 3.5vw, 2em);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-strip-lead {
  font-size: 0.95em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-strip-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── STAT ROW ──────────────────────────────────────────────── */
.stat-row {
  display: flex;
  gap: 0;
}

.stat-item {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2em;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num span { color: var(--gold); }

.stat-label {
  font-size: 0.78em;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }
  .nav-inner { gap: 8px; }
  .nav-logo { flex-shrink: 1; min-width: 0; }
  .nav-logo-img { width: auto; max-width: 55vw; height: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-disclaimer { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 20px; }
  .page-hero { padding: 60px 20px 80px; }
  .stat-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}
