/* ===========================================================
   VOLTA EMS — Energy Monitoring System
   Shared stylesheet
   Brand colors derived from logo gradients:
   Green: #6FA703 -> #024D15   Blue: #047CC4 -> #00245E
   =========================================================== */

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

:root {
  /* --- EnerGenGrid brand colors (from logo.svg) --- */
  --green-deep: #024D15;
  --green: #2F9E14;
  --green-light: #6FA703;
  --blue-deep: #00245E;
  --blue: #047CC4;
  --blue-light: #0367AB;

  --ink: #0e1525;
  --ink-soft: #44506a;
  --ink-faint: #8893a7;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8f4;
  --bg-tint: #eef5e9;

  --grad-brand: linear-gradient(120deg, #024D15 0%, #047CC4 100%);
  --grad-green: linear-gradient(165deg, #6FA703 0%, #024D15 100%);
  --grad-blue: linear-gradient(165deg, #047CC4 0%, #00245E 100%);

  --shadow-sm: 0 1px 3px rgba(14, 21, 37, .06), 0 1px 2px rgba(14, 21, 37, .04);
  --shadow-md: 0 8px 30px rgba(14, 21, 37, .08);
  --shadow-lg: 0 24px 60px rgba(14, 21, 37, .12);

  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1200px;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Spline Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Section heading kit ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  padding: 7px 14px;
  background: var(--bg-tint);
  border-radius: 100px;
}
.eyebrow.is-blue { color: var(--blue); background: #eaf3fb; }
.eyebrow::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 18px 0 14px;
}
.section-head p { color: var(--ink-soft); font-size: 1.07rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  padding: 14px 26px; border-radius: 100px;
  cursor: pointer; border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 24px rgba(4,124,196,.28); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(4,124,196,.36); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green-light); color: var(--green); transform: translateY(-3px); }
.btn-light { background: rgba(255,255,255,.14); color:#fff; border:1.5px solid rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.24); transform: translateY(-3px); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 38px; width: auto; }
.brand-mark { height: 36px; width: 36px; }
.footer-logo {
  display: inline-block; background: #fff;
  padding: 12px 18px; border-radius: 12px;
}
.footer-logo img { height: 34px; width: auto; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; }
.brand-name span {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: .96rem;
  color: var(--ink-soft); padding: 9px 15px; border-radius: 9px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--green); background: var(--bg-soft); }
.nav-links a.active { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width:22px; height:2px; background: var(--ink); margin:5px 0; border-radius:2px; transition:.3s; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--ink); color: #c3cad9;
  padding: 76px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand-name { color:#fff; }
.footer-brand p { margin-top: 16px; max-width: 280px; font-size: .95rem; color: #8b94a8; }
.footer-col h4 { color:#fff; font-size: .98rem; margin-bottom: 18px; }
.footer-col a { display:block; padding: 6px 0; font-size:.94rem; color:#9aa3b7; transition: color .2s; }
.footer-col a:hover { color: var(--green-light); }
.footer-bottom {
  display:flex; justify-content: space-between; align-items:center;
  padding-top: 28px; font-size: .88rem; color:#717c92; flex-wrap: wrap; gap: 12px;
}
.social { display:flex; gap:10px; }
.social a {
  width:38px; height:38px; border-radius:10px;
  background: rgba(255,255,255,.07); display:grid; place-items:center;
  transition: background .2s, transform .2s;
}
.social a:hover { background: var(--grad-brand); transform: translateY(-3px); }
.social svg { width:17px; height:17px; fill:#c3cad9; }
.social a:hover svg { fill:#fff; }

/* ===========================================================
   REVEAL ANIMATION
   =========================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background:#fff; padding: 16px 24px 26px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; font-size: 1.02rem; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .section { padding: 78px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
