/* eectec website v1 — single stylesheet
   B2B engineering-credibility style: deep navy + white + one accent.
   No external dependencies; system font stack only. */

:root {
  --navy: #0B1F3A;        /* primary deep navy */
  --navy-2: #132C52;      /* lighter navy for panels */
  --ink: #1C2733;         /* body text on white */
  --muted: #5A6A7E;       /* secondary text */
  --accent: #00D18F;      /* electric green accent */
  --accent-dark: #00A873; /* accent on white, AA contrast */
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --line: #E3E8EF;
  --todo-bg: #FFF3B0;     /* placeholder highlight */
  --todo-ink: #6B5300;
  --radius: 4px;
  --wrap: 1080px;
  --header-h: 61px;       /* sticky header height; synced by JS on products page */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

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

h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: 2.2rem; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 60;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo img { display: block; height: 22px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a {
  color: #D6DEEA;
  font-size: 0.98rem;
  text-decoration: none;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.btn-nav {
  background: var(--accent);
  color: var(--navy) !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius);
}
.btn-nav:hover { background: #00E9A0; text-decoration: none; }
.lang-switch {
  border: 1px solid rgba(214,222,234,0.45);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: 0.9rem;
  line-height: 1;
}
.lang-switch:hover { border-color: #fff; color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 64px 0 56px; }
.hero h1 { color: #fff; font-size: 2.5rem; max-width: 820px; }
.hero-eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }
.hero .sub { color: #C9D4E3; font-size: 1.15rem; max-width: 760px; margin-bottom: 28px; }
.page-head { background: var(--navy); color: #fff; padding: 48px 0 40px; }
.page-head h1 { color: #fff; }
.page-head p { color: #C9D4E3; max-width: 800px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #00E9A0; }
.btn-secondary { background: transparent; color: #fff; border-color: #4A5E7C; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
section.alt { background: var(--bg-soft); }
.section-title { margin-bottom: 28px; }

/* Proof bar */
.proof-bar { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 28px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proof-item { font-size: 0.95rem; color: var(--ink); }
.proof-item strong { color: var(--navy); }
.proof-item .tick { color: var(--accent-dark); font-weight: 700; margin-right: 6px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-top: 0; }
.card-link { font-weight: 600; }
.card .card-link { margin-top: auto; }

/* Why eectec */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item { border-left: 3px solid var(--accent); padding-left: 18px; }
.why-item strong { color: var(--navy); }

/* Dark CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9D4E3; }

/* ---------- Product page ---------- */
.spec-list { padding-left: 20px; margin: 0 0 16px; }
.spec-list li { margin-bottom: 6px; }
.product-block { border-top: 1px solid var(--line); padding-top: 36px; margin-top: 36px; }
.product-block:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* Numbered process steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 0 22px 56px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--accent);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
}
.steps h3 { margin-bottom: 4px; }

/* Facts table (About) */
.facts { border-collapse: collapse; width: 100%; max-width: 760px; }
.facts th, .facts td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--navy); white-space: nowrap; width: 180px; font-weight: 600; }

/* ---------- Photos ---------- */
.photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 16px 0;
}
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.photo-grid figure { margin: 0; }
.photo-grid .photo { margin: 0 0 6px; }
figcaption { font-size: 0.88rem; color: var(--muted); }

/* Hard-number stat band */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-label { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 4px; }

/* ---------- Placeholders ---------- */
/* Image placeholder block — no fake images, ever */
.ph {
  border: 2px dashed #9AA8BC;
  background: var(--bg-soft);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  padding: 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin: 16px 0;
}
.ph-wide { min-height: 260px; }
/* Pending-content marker — loud yellow so Simon spots every gap */
.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* ---------- Product cards (products v2) ---------- */
.sticky-head {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(11, 31, 58, 0.25);
}
.sticky-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sticky-head h1 { font-size: 1.3rem; margin: 0; white-space: nowrap; }
.sticky-head .chip-row { margin-top: 0; }
.sticky-head .chip { padding: 5px 14px; font-size: 0.88rem; }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
  font-weight: 600;
}
.chip.active:hover { color: var(--navy); }
#controllers, #systems, #in-development, #storage, #eu-boards, #gb-boards, #connectivity { scroll-margin-top: calc(var(--header-h) + 72px); }
#local-assembly { scroll-margin-top: calc(var(--header-h) + 16px); }
.ph-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #9AA8BC;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  padding: 16px;
}
.section-note { font-size: 0.92rem; color: var(--muted); margin-top: 18px; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chip {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #3D5578;
  border-radius: 999px;
  color: #D6DEEA;
  font-size: 0.92rem;
}
.chip:hover { border-color: var(--accent); color: #fff; text-decoration: none; }
.stat-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 24px 0; }
.section-lead { color: var(--muted); max-width: 720px; margin-bottom: 4px; }
.section-lead.full { max-width: none; }
.pcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.pcard {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
}
.pcard:hover { box-shadow: 0 6px 22px rgba(11, 31, 58, 0.10); }
.pcard-media {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: block;
}
.pcard-num {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  padding: 12px;
}
.pcard-num .big { font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1.1; letter-spacing: -0.01em; }
.pcard-num .sub { color: #C9D4E3; font-size: 0.95rem; margin-top: 8px; }
.pcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.pcard h3 { margin: 0 0 6px; font-size: 1.08rem; }
.pcard .hero-spec { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.pcard ul { padding-left: 18px; margin: 0 0 14px; font-size: 0.92rem; }
.pcard ul li { margin-bottom: 5px; }
.pcard p { font-size: 0.95rem; }
.pcard .card-link { margin-top: auto; font-weight: 600; font-size: 0.95rem; }
.dev-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- Form ---------- */
.form-card { max-width: 640px; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #B8C4D4;
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent-dark);
}
.form-notice {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  color: var(--navy);
  font-weight: 600;
}
.form-notice.show { display: block; }
.privacy-note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #B9C6D8;
  padding: 44px 0 32px;
  font-size: 0.92rem;
  margin-top: 40px;
}
.site-footer p { max-width: none; }
.site-footer .copyright { color: #7C8CA3; margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) and (min-width: 769px) {
  .pcard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  h1 { font-size: 1.7rem; }
  .proof-grid, .card-grid, .why-grid { grid-template-columns: 1fr; }
  .pcard-grid, .dev-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-row { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 16px; }
  .facts th { width: auto; }
  :root { --header-h: 104px; }
}
