/* =====================================================
   Smart Energy Hub — Custom Stylesheet
   smartenergyhub.nu · 2026
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ---- Root Variables ---- */
:root {
  --brand-50:  #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-300: #86efac;
  --brand-400: #4ade80;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #15803d;
  --brand-800: #166534;
  --brand-900: #14532d;

  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;

  --transition-base: 0.25s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1e293b;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ---- */
.font-display { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; }

/* ---- Navbar ---- */
#navbar {
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-600);
  transition: width var(--transition-base);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ---- Hero ---- */
.hero-overlay {
  background: linear-gradient(
    100deg,
    rgba(15,23,42,0.92) 0%,
    rgba(15,23,42,0.78) 55%,
    rgba(15,23,42,0.35) 100%
  );
}

/* ---- KPI Strip ---- */
.kpi-strip {
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 100%);
}
.kpi-item {
  border-right: 1px solid rgba(255,255,255,0.18);
}
.kpi-item:last-child { border-right: none; }

/* ---- Section Labels ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 1rem;
}

/* ---- Cards ---- */
.card-hover {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

/* ---- Track Badge ---- */
.track-badge-a {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.track-badge-b {
  background: var(--brand-100);
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
}
.track-badge-primary {
  background: var(--brand-600);
  color: #fff;
}

/* ---- Roadmap ---- */
.roadmap-line {
  position: relative;
}
.roadmap-line::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-200) 100%);
}
.roadmap-line:last-child::before { display: none; }

.phase-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ---- Governance Table ---- */
.gov-table th {
  background: var(--navy-800);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 16px;
}
.gov-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.875rem;
  vertical-align: top;
}
.gov-table tr:last-child td { border-bottom: none; }
.gov-table tr:nth-child(even) td { background: #f8fafc; }

/* ---- CTA Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-600);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  box-shadow: 0 4px 16px rgba(22,163,74,0.30);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--brand-700);
  box-shadow: 0 6px 24px rgba(22,163,74,0.40);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--brand-700);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: 2px solid var(--brand-600);
  transition: background var(--transition-base), color var(--transition-base);
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--brand-600);
  color: #fff;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: background var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
}

/* ---- Highlight Box ---- */
.highlight-box {
  border-left: 4px solid var(--brand-500);
  background: var(--brand-50);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}
.highlight-box-blue {
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}
.highlight-box-amber {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

/* ---- Proof Block ---- */
.proof-block {
  background: var(--navy-900);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
}

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding: 100px 0 60px;
}

/* ---- Mobile menu ---- */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ---- Form ---- */
.form-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: #1e293b;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}
.form-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* ---- Footnote / disclaimer ---- */
.disclaimer {
  font-size: 0.75rem;
  color: #94a3b8;
  font-style: italic;
}

/* ---- Scroll animation (JS-driven) ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Active nav page indicator ---- */
.nav-page-active {
  color: var(--brand-600) !important;
  font-weight: 700;
}

/* ---- Divider ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0 30%, #e2e8f0 70%, transparent);
}

/* ---- Footer ---- */
.footer-bg {
  background: var(--navy-900);
}

/* ---- Utility ---- */
.text-balance { text-wrap: balance; }

/* ---- Design Placeholder ---- */
/* Reusable placeholder for visual design assets not yet delivered */
.design-placeholder {
  background: #f8fafc;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(148,163,184,0.12) 8px,
    rgba(148,163,184,0.12) 16px
  );
  border: 2px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  min-height: 200px;
}
.design-placeholder .placeholder-icon {
  font-size: 2.5rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.design-placeholder .placeholder-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.design-placeholder .placeholder-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 480px;
}

/* ---- Track C Badge ---- */
.track-badge-c {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

/* ---- Highlight Box Purple ---- */
.highlight-box-purple {
  border-left: 4px solid #a855f7;
  background: #faf5ff;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}

@media (max-width: 768px) {
  .kpi-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.18);
  }
  .kpi-item:last-child { border-bottom: none; }
  .roadmap-line::before { left: 20px; top: 44px; }
  .phase-dot { width: 40px; height: 40px; font-size: 0.875rem; }
}
