/*
  Energy Savers Hub — Shared Stylesheet
  Design: Deep Navy Authority + Electric Blue Accents on Warm Neutral
  Palette:
    --navy:       #0d1f3c   (primary brand, headers, footer)
    --blue:       #1a6fc4   (accent, links, highlights)
    --blue-light: #3b9eff   (hover states, glows)
    --amber:      #e07b2a   (CTA buttons)
    --amber-dark: #c46820   (CTA hover)
    --bg:         #f7f5f0   (warm neutral page background)
    --bg-alt:     #edeae3   (alternate section background)
    --white:      #ffffff
    --ink:        #1a1a2e   (body text)
    --ink-soft:   #3d3d55   (secondary text)
    --ink-muted:  #6b6b80   (captions, meta)
    --border:     #d8d5cc
  Typography:
    Headings: Georgia, serif (built-in, no CDN needed)
    Body:     system-ui, -apple-system, sans-serif
*/

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: #f7f5f0;
  color: #1a1a2e;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #1a6fc4;
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover {
  color: #3b9eff;
  text-decoration: underline;
}

/* ============================================================
   CUSTOM EASING
============================================================ */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================================
   LAYOUT HELPERS
============================================================ */
.wrap {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.wrap--narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================================
   SITE HEADER / NAV
============================================================ */
.site-header {
  background: #0d1f3c;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: #1a6fc4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo .logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo .logo-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.site-logo .logo-tagline {
  font-size: 10px;
  color: #7ba7d4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: #b8cfe8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 160ms;
}

.site-nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 240ms var(--ease-out), opacity 160ms;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: #0a1628;
  border-top: 1px solid #1e3a5f;
  padding: 16px 24px 20px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: #b8cfe8;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid #1e3a5f;
  text-decoration: none;
  transition: color 160ms;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: #ffffff;
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d1f3c;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_solar_home.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.38;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 24px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3b9eff;
  margin-bottom: 16px;
  border-left: 3px solid #3b9eff;
  padding-left: 10px;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: bold;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: #3b9eff;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: #c8ddf0;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 560px;
}

/* ============================================================
   CTA BUTTON
============================================================ */
.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: #e07b2a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 0 #a85518, 0 6px 20px rgba(224,123,42,0.4);
  transition: background 160ms var(--ease-out),
              transform 160ms var(--ease-out),
              box-shadow 160ms var(--ease-out);
}

.btn-primary:hover {
  background: #c46820;
  box-shadow: 0 4px 0 #a85518, 0 8px 28px rgba(224,123,42,0.5);
  text-decoration: none;
  color: #ffffff;
}

.btn-primary:active {
  transform: scale(0.97) translateY(2px);
  box-shadow: 0 2px 0 #a85518, 0 4px 10px rgba(224,123,42,0.3);
}

/* ============================================================
   SECTION SHARED STYLES
============================================================ */
section {
  padding: 72px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a6fc4;
  margin-bottom: 12px;
}

.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: bold;
  color: #0d1f3c;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-lead {
  font-size: 18px;
  color: #3d3d55;
  line-height: 1.75;
  max-width: 640px;
}

/* ============================================================
   MISSION SECTION
============================================================ */
.mission {
  background: #ffffff;
  border-top: 4px solid #1a6fc4;
}

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission-image {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(13,31,60,0.18);
}

.mission-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.mission-text .section-lead {
  max-width: 100%;
}

.mission-text p {
  color: #3d3d55;
  line-height: 1.8;
  margin-bottom: 16px;
}

.mission-text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FEATURED TOPICS GRID
============================================================ */
.topics {
  background: #edeae3;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.topic-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,31,60,0.08);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(13,31,60,0.14);
}

.topic-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #1a3a6c;
}

.topic-card-body {
  padding: 20px 22px 24px;
}

.topic-icon {
  width: 40px;
  height: 40px;
  background: #e8f0fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.topic-icon svg {
  width: 22px;
  height: 22px;
  fill: #1a6fc4;
}

.topic-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: bold;
  color: #0d1f3c;
  margin-bottom: 8px;
  line-height: 1.25;
}

.topic-card p {
  font-size: 14px;
  color: #6b6b80;
  line-height: 1.65;
}

/* ============================================================
   TRUST SECTION
============================================================ */
.trust {
  background: #0d1f3c;
  color: #c8ddf0;
}

.trust .section-label {
  color: #3b9eff;
}

.trust .section-title {
  color: #ffffff;
}

.trust-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.trust-item {
  border-left: 3px solid #1a6fc4;
  padding-left: 20px;
}

.trust-item h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
}

.trust-item p {
  font-size: 15px;
  color: #8aaec8;
  line-height: 1.75;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #060f1e;
  color: #6b7f96;
  padding: 40px 0 32px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-bottom: 16px;
}

.footer-links a {
  color: #8aaec8;
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-copy {
  font-size: 13px;
  color: #4a5a6a;
  margin-bottom: 0;
}

/* ============================================================
   LEGAL PAGES (privacy, terms, about)
============================================================ */
.legal-hero {
  background: #0d1f3c;
  padding: 56px 0 48px;
}

.legal-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 4vw, 40px);
  color: #ffffff;
  font-weight: bold;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.legal-hero p {
  color: #7ba7d4;
  font-size: 15px;
}

.legal-body {
  background: #ffffff;
  padding: 64px 0 80px;
}

.legal-body h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  color: #0d1f3c;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d8d5cc;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: #3d3d55;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-body ul {
  color: #3d3d55;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-body ul li {
  margin-bottom: 6px;
}

.legal-body strong {
  color: #0d1f3c;
}

.legal-body a {
  color: #1a6fc4;
}

/* ============================================================
   ABOUT PAGE — EXTRA STYLES
============================================================ */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.value-card {
  background: #f7f5f0;
  border-radius: 8px;
  padding: 28px 24px;
  border-top: 3px solid #1a6fc4;
}

.value-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  color: #0d1f3c;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: #6b6b80;
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
============================================================ */

/* Tablet */
@media (max-width: 900px) {
  .mission-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .about-values {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 600px) {
  section {
    padding: 48px 0;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 480px;
  }

  .hero-content {
    padding: 56px 24px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .trust-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .mission-image img {
    height: 220px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 28px;
  }

  .btn-primary {
    display: block;
    text-align: center;
    padding: 16px 24px;
  }
}
