/* ===================================================================
   SIMTRON ELECTRIC — design tokens
   Palette pulled from the brand: deep panel navy, live-wire blue,
   hazard amber (used sparingly, the way warning tape is used on
   real switchgear — never as decoration).
   =================================================================== */
:root {
  --navy-deep: #071A30;
  --navy: #0A2540;
  --blue: #2D6CDF;
  --blue-dim: #1B3E7A;
  --amber: #FFB020;
  --bg: #F3F6F9;
  --surface: #FFFFFF;
  --line: #DFE6EC;
  --text: #16232E;
  --text-mute: #566173;
  --text-on-navy: #C9D6E5;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-s: 3px;
  --radius-m: 6px;
  --container: 1160px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--blue);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.3px;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--amber);
  margin-top: 3px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text-on-navy);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  border-bottom-color: var(--amber);
}

.header-call {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-call {
  background: var(--amber);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-s);
  border: none;
}
.btn-call:hover { background: #ffc34d; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  padding: 4px 8px;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  border: 60px solid rgba(45, 108, 223, 0.12);
  border-radius: 50%;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  color: var(--amber);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 0 0 20px;
}

.hero p.lede {
  font-size: 17px;
  color: var(--text-on-navy);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: #4380e8; }

.btn-secondary {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius-s);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover { border-color: #fff; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  max-width: 560px;
}
.hero-stats div {
  background: rgba(255,255,255,0.03);
  padding: 16px 14px;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 5px;
}
.hero-stats span {
  font-size: 11.5px;
  color: var(--text-on-navy);
  line-height: 1.3;
  display: block;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}
.hero-art .trace path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-trace 2.2s ease-out forwards;
}
.hero-art .trace path:nth-child(2) { animation-delay: 0.15s; }
.hero-art .trace path:nth-child(3) { animation-delay: 0.3s; }
.hero-art .trace path:nth-child(4) { animation-delay: 0.45s; }
.hero-art .trace path:nth-child(5) { animation-delay: 0.6s; }
.hero-art .node {
  opacity: 0;
  animation: fade-in 0.5s ease-out forwards;
  animation-delay: 1.7s;
}
@keyframes draw-trace {
  to { stroke-dashoffset: 0; }
}
@keyframes fade-in {
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .trace path { stroke-dashoffset: 0; animation: none; }
  .hero-art .node { opacity: 1; animation: none; }
}
@media (max-width: 860px) {
  .hero-art { order: -1; margin-bottom: 12px; }
  .hero-art svg { max-width: 260px; }
}

/* ---------------------------------------------------------------
   Section shared
   --------------------------------------------------------------- */
.section {
  padding: 64px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  margin: 0;
  color: var(--navy);
}
.section-head p {
  color: var(--text-mute);
  font-size: 15px;
  max-width: 44ch;
  margin: 6px 0 0;
}

/* ---------------------------------------------------------------
   Category grid + cards (populated by JS from products.json)
   --------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.category-card:hover {
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.1);
  transform: translateY(-2px);
}

.category-card .cat-icon {
  width: 46px;
  height: 46px;
  color: var(--blue);
  margin-bottom: 14px;
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--navy);
}
.category-card .cat-fullname {
  font-size: 12.5px;
  color: var(--text-mute);
  margin: 0 0 10px;
}
.category-card .cat-blurb {
  font-size: 14px;
  color: var(--text-mute);
  margin: 0 0 14px;
}

.category-card ul {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
}
.category-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  padding: 5px 0;
  color: var(--text);
}
.category-card li span.spec {
  color: var(--text-mute);
  white-space: nowrap;
}

.category-card .no-items {
  font-size: 13px;
  color: var(--text-mute);
  font-style: italic;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.category-card .cat-quote-link {
  margin-top: 16px;
  padding-top: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}
.category-card .cat-quote-link:hover { color: var(--navy); }
.category-card .cat-quote-link svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------
   Brands strip
   --------------------------------------------------------------- */
.brands {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.brands .section-head { justify-content: center; text-align: center; border-bottom: none; padding-bottom: 8px; }
.brands .section-head p { margin-left: auto; margin-right: auto; }

.brand-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.brand-card:hover {
  border-color: var(--blue);
  background: #EEF3FC;
}
.brand-mark-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}
.brand-card-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}
.brand-card-text span {
  font-size: 12px;
  color: var(--text-mute);
}

/* ---------------------------------------------------------------
   Why us
   --------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--amber);
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--navy);
}
.why-card p {
  font-size: 14px;
  color: var(--text-mute);
  margin: 0;
}

/* ---------------------------------------------------------------
   Quote / enquiry form
   --------------------------------------------------------------- */
.quote {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.quote-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.quote-copy h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 14px;
}
.quote-copy p {
  color: var(--text-mute);
  font-size: 15px;
  max-width: 42ch;
}
.quote-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.quote-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
}
.quote-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--amber);
}

.quote-form {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 30px;
}
.form-row { margin-bottom: 16px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row label span { color: var(--amber); margin-left: 2px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  border-radius: var(--radius-s);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,108,223,0.15);
}
.form-row textarea { resize: vertical; }

.btn-form-submit {
  width: 100%;
  justify-content: center;
  font-size: 15.5px;
  padding: 13px 20px;
}
.form-status {
  margin: 12px 0 0;
  font-size: 13.5px;
  min-height: 18px;
}
.form-status.success { color: #1E7A3D; }
.form-status.error { color: #B3271E; }
.form-alt {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-mute);
  text-align: center;
}
.form-alt a { color: var(--blue); font-weight: 600; }

@media (max-width: 860px) {
  .quote-wrap { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; gap: 0; }
}

/* ---------------------------------------------------------------
   Contact
   --------------------------------------------------------------- */
.contact {
  background: var(--navy-deep);
  color: var(--text-on-navy);
}
.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact h2 {
  font-family: var(--font-display);
  font-size: 30px;
  color: #fff;
  margin: 0 0 20px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.contact-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14.5px;
}
.contact-list li strong {
  color: #fff;
  display: block;
  font-size: 12px;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--amber);
}
.contact-list a:hover { color: #fff; }
.gstin {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--radius-s);
  color: var(--text-on-navy);
}
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  filter: grayscale(0.15);
}

/* ---------------------------------------------------------------
   Floating WhatsApp button
   --------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 60;
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .why-grid { grid-template-columns: 1fr; }
  .contact .wrap { grid-template-columns: 1fr; }
  .map-frame { min-height: 220px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-call .btn-call span { display: none; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 3px solid var(--amber);
  }
  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 6px 24px 16px;
  }
  .site-header.nav-open .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}
