/* ============================================================
   eQube Energy Storage Solutions — shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --graphite: #1c1d21;
  --graphite-soft: #26272c;
  --graphite-line: #34363d;

  --amber: #e7a33e;
  --amber-deep: #c97f1e;
  --amber-pale: #f6d9a6;

  --indigo: #666699;
  --indigo-deep: #4d4d78;
  --indigo-pale: #e2e2ee;

  --bg: #f1f2f3;
  --bg-alt: #e7e9ec;
  --paper: #ffffff;

  --text: #1c1d21;
  --text-muted: #5b5f66;
  --text-on-dark: #f1f2f3;
  --text-on-dark-muted: #a7a9b0;

  --radius: 3px;
  --max-width: 1180px;

  --serif-none: 0; /* placeholder to keep custom-property block tidy */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }
p.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 62ch; }

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header / nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 242, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bg-alt);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 30px; width: auto; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.primary-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  margin-left: 36px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.primary-nav a:first-child { margin-left: 0; }

nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--amber);
}

.nav-cta {
  background: var(--graphite);
  color: var(--text-on-dark) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: none !important;
}

.nav-cta:hover { background: var(--indigo-deep); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* ---------- generic section rhythm ---------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 { margin-bottom: 0.4em; }

.dark-section {
  background: var(--graphite);
  color: var(--text-on-dark);
}
.dark-section .text-muted { color: var(--text-on-dark-muted); }
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--text-on-dark); }

.paper-section { background: var(--paper); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: var(--graphite);
}
.btn-primary:hover { background: var(--amber-deep); }

.btn-outline-dark {
  border-color: var(--graphite-line);
  color: var(--text-on-dark);
}
.btn-outline-dark:hover { border-color: var(--amber); color: var(--amber); }

.btn-outline-light {
  border-color: var(--bg-alt);
  color: var(--text);
}
.btn-outline-light:hover { border-color: var(--indigo); color: var(--indigo); }

/* ---------- hero (home) ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 64px;
  position: relative;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.hero .eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--indigo-deep);
  background: var(--indigo-pale);
  padding: 6px 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
}

.eyebrow-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-deep);
  flex-shrink: 0;
}

.hl {
  position: relative;
  white-space: nowrap;
}
.hl span {
  position: relative;
  z-index: 1;
}
.hl::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 3px;
  height: 0.32em;
  background: rgba(231, 163, 62, 0.35);
  z-index: 0;
}

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--amber);
  border: 1px solid rgba(231, 163, 62, 0.4);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.award-badge:hover {
  border-color: var(--amber);
  background: rgba(231, 163, 62, 0.08);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stack {
  display: flex;
  flex-direction: column;
}

/* why sodium-ion grid */

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg-alt);
  border: 1px solid var(--bg-alt);
}

.reason-card {
  background: var(--paper);
  padding: 32px 26px;
}

.reason-card .mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber-pale);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason-card .mark svg { width: 16px; height: 16px; }

.reason-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.reason-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* verticals */

.vertical-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vertical-card {
  background: var(--paper);
  border: 1px solid var(--bg-alt);
  padding: 34px 30px;
  border-radius: var(--radius);
}

.vertical-card .index {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--indigo);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.vertical-card h3 { margin-bottom: 10px; color: var(--text); }
.vertical-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* applications */

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

.app-card {
  background: var(--graphite-soft);
  border: 1px solid var(--graphite-line);
  border-radius: var(--radius);
  padding: 36px;
}

.app-card h3 { color: var(--amber); margin-bottom: 12px; font-size: 1.4rem; }
.app-card p { color: var(--text-on-dark-muted); margin-bottom: 0; }

/* cta band */

.cta-band {
  background: var(--indigo);
  color: #fff;
  padding: 72px 0;
  text-align: left;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--indigo-pale); }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- cell diagram (hero visual) ---------- */

.cell-diagram {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.hero-visual-frame {
  position: relative;
  padding: 30px;
}

.hero-visual-frame::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(231, 163, 62, 0.16), transparent 68%);
  filter: blur(6px);
  z-index: 0;
}

.hero-visual-frame .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--amber);
  opacity: 0.55;
  z-index: 2;
}
.corner.tl { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.corner.tr { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.corner.bl { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.corner.br { bottom: 0; right: 0; border-bottom: 2px solid; border-right: 2px solid; }

.hero-visual-frame svg { position: relative; z-index: 1; }

/* ---------- floating stat card (breaks hero/section boundary) ---------- */

.stat-card-wrap {
  position: relative;
  z-index: 6;
  margin-top: 40px;
  margin-bottom: -64px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-radius: 6px;
  border: 1px solid var(--bg-alt);
  box-shadow: 0 24px 48px rgba(20, 20, 25, 0.28);
  overflow: hidden;
}

.stat {
  padding: 28px 26px;
  border-right: 1px solid var(--bg-alt);
}
.stat:last-child { border-right: none; }

.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--amber-deep);
  display: block;
  margin-bottom: 6px;
  line-height: 1.2;
}

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

/* ---------- footer ---------- */

footer.site-footer {
  background: var(--graphite);
  color: var(--text-on-dark-muted);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--graphite-line);
}

.footer-grid .brand img { height: 26px; }
.footer-grid p { font-size: 0.9rem; max-width: 34ch; }

.footer-col h4 {
  color: var(--text-on-dark);
  font-size: 0.85rem;
  text-transform: none;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 5px 0;
  color: var(--text-on-dark-muted);
}
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- about page ---------- */

.about-hero {
  padding: 72px 0 56px;
}

.mission-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.mission-block .big-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text);
}

.approach-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.approach-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--bg-alt);
}

.approach-item .tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--indigo);
  font-weight: 600;
  padding-top: 2px;
}

.approach-item h3 { margin-bottom: 6px; font-size: 1.05rem; }
.approach-item p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--paper);
  border: 1px solid var(--bg-alt);
  border-radius: var(--radius);
  padding: 36px;
}

.team-card .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--indigo);
  margin-bottom: 22px;
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 { margin-bottom: 2px; color: var(--text); }
.team-card .role {
  color: var(--amber-deep);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
  display: block;
}

.team-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.team-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

.team-card .bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- news page ---------- */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  background: var(--paper);
  border: 1px solid var(--bg-alt);
  border-radius: var(--radius);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
}

.news-item .news-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item .news-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.news-item .news-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--amber-deep);
  background: var(--amber-pale);
  padding: 4px 10px;
  border-radius: var(--radius);
  align-self: flex-start;
}

.news-item h3 { margin-bottom: 10px; }
.news-item p { color: var(--text-muted); margin-bottom: 0; }

.news-item .news-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--indigo);
  border-bottom: 1px solid var(--indigo-pale);
}
.news-item .news-link:hover { border-color: var(--indigo); }

.news-empty-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-top: 8px;
}

@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- contact page ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.contact-side {
  background: var(--graphite);
  color: var(--text-on-dark);
  padding: 56px 48px;
}

.contact-side h2 { color: #fff; }
.contact-side p { color: var(--text-on-dark-muted); }

.contact-channels {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.channel-item .label {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 4px;
}

.channel-item .value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--amber);
}

.contact-form-side { padding: 56px 48px; }

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-row select,
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bg-alt);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-row select:focus,
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--indigo);
  outline-offset: 1px;
}

/* ---------- utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--bg-alt);
    padding: 12px 32px 20px;
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { width: 100%; padding: 10px 0; margin-left: 0; }
  .nav-cta { margin-top: 8px; }
  .menu-toggle { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero .hero-visual { order: -1; max-width: 300px; margin: 0 auto; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--bg-alt); }
  .stat-card-wrap { margin-bottom: -128px; }

  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .vertical-list { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .mission-block { grid-template-columns: 1fr; }
  .approach-item { grid-template-columns: 1fr; gap: 8px; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
