/* =============================================
   SolarFoundry — Shared Stylesheet
   Brand: Navy #1A2E4A | Gold #F5A623 | Blue #2D9CDB
   ============================================= */

:root {
  --navy: #1A2E4A;
  --gold: #F5A623;
  --gold-dark: #D48F1A;
  --blue: #2D9CDB;
  --surface: #F7F9FC;
  --text: #2C3E50;
  --muted: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --success: #27AE60;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ---- NAVIGATION ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--navy); background: var(--surface); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,166,35,0.35) !important; }

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open a { display: block; padding: 0.75rem 1rem; }
  .nav-mobile-toggle { display: block; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  font-family: inherit;
  text-align: center;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: #0f1f31;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,46,74,0.3);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3rem 2rem 1.5rem;
  margin-top: 5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer-brand .nav-logo {
  color: var(--white);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- UTILITY ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 2rem; }
.section-sm { padding: 3.5rem 2rem; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.bg-surface { background: var(--surface); }
.bg-navy { background: var(--navy); }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ---- TRUST BADGE ---- */
.trust-strip {
  background: var(--navy);
  padding: 0.875rem 2rem;
}
.trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  color: rgba(255,255,255,0.85);
  font-size: 0.825rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-item::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* ---- GRID LAYOUTS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- DRAFT BANNER ---- */
.draft-banner {
  background: #FFF3CD;
  border-bottom: 3px solid #FFC107;
  padding: 0.875rem 1.5rem;
  text-align: center;
  font-weight: 600;
  color: #856404;
  font-size: 0.9rem;
}
