/* Layout concept: a service-bench site. PCB solder-mask green + copper traces are the one bold motif (the hero board);
   everything else stays quiet, with silkscreen-style mono labels as the only decoration. */
:root {
  --bg: #F1F5EF;
  --bg-2: #E6EDE4;
  --surface: #FBFDF9;
  --fg: #0F2820;
  --muted: #486256;
  --line: #C7D5CA;
  --green: #0E5A41;
  --link: #0E5A41;
  --copper: #A5501A;
  --on-copper: #FFFFFF;
  --copper-soft: #F2E0D3;
  --board: #0E5A41;
  --footer: #3B403E;
  --trace: #E0A068;
  --pad: #E3C46F;
  --silk: #E9F1E6;
  --chip: #0F1A17;
  --wa: #25D366;
  --on-wa: #06260F;
  --radius: 6px;
  --font-display: "Bricolage Grotesque", "Hind", system-ui, sans-serif;
  --font-body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) h4 { letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(2.35rem, 6.2vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.55rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--copper); color: var(--on-copper); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: 72.5rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(2.5rem, 6vw, 5rem); }
.band--alt { background: var(--bg-2); }
.band--board { background: var(--board); color: var(--silk); }
.band--board .lead, .band--board p { color: var(--silk); }
.section-head { max-width: 42rem; display: grid; gap: 0.7rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 1.5rem; height: 2px; background: var(--copper);
  vertical-align: middle; margin-right: 0.6rem;
}
.band--board .eyebrow { color: var(--silk); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 38rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.split > * { min-width: 0; }
.stack { display: grid; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; padding-block: 0.65rem; }
.brand-mark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--fg); margin-right: auto; }
.brand-logo { display: block; height: 3.1rem; width: auto; max-width: 100%; border-radius: 4px; }
.nav { display: flex; gap: 0.1rem; align-items: center; }
.nav a {
  position: relative; text-decoration: none; color: var(--fg); font-weight: 500; font-size: 0.98rem;
  padding: 0.5rem 0.7rem; border-radius: var(--radius);
}
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.15rem; height: 3px; background: var(--copper); border-radius: 2px;
}
.tools { display: flex; gap: 0.4rem; }
.icon-btn, .pill-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem;
  background: transparent; color: var(--fg); border: 1.5px solid var(--line); border-radius: var(--radius);
  cursor: pointer; font: 600 0.92rem/1 var(--font-body);
}
.icon-btn { width: 2.5rem; }
.pill-btn { padding: 0 0.8rem; min-width: 2.9rem; }
.icon-btn:hover, .pill-btn:hover { border-color: var(--copper); }
.icon-btn svg { width: 1.2rem; height: 1.2rem; }
.menu-btn { display: none; }
@media (max-width: 62rem) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.6rem; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { left: 0.6rem; right: auto; width: 2rem; bottom: 0.35rem; }
}
@media (max-width: 26rem) { .brand-logo { height: 2.3rem; } .subnav { top: calc(env(safe-area-inset-top, 0px) + 4rem); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 2.9rem;
  padding: 0.65rem 1.15rem; border-radius: var(--radius); font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary { background: var(--copper); color: var(--on-copper); }
.btn-wa { background: var(--wa); color: var(--on-wa); }
.btn-ghost { border-color: var(--green); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--bg-2); }
.band--board .btn-ghost { border-color: var(--silk); color: var(--silk); }
.band--board .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; justify-items: start; }
.hero-copy .mono-line { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.05em; color: var(--muted); }
.board { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(8, 40, 30, 0.22)); }
.pulse { fill: none; stroke: var(--silk); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 9 91; animation: run 3.4s linear infinite; }
.pulse.d2 { animation-delay: -1.1s; }
.pulse.d3 { animation-delay: -2.2s; }
@keyframes run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; } .board { max-width: 30rem; margin-inline: auto; } }

.spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.spec > div { display: flex; flex-direction: column-reverse; gap: 0.1rem; padding: 1rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.spec dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }


/* ---------- home slider ---------- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.slide-title { font-size: clamp(2.35rem, 6.2vw, 4.3rem); font-weight: 700; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; min-width: 0; display: grid; align-content: center; opacity: 0; visibility: hidden; transition: opacity 0.55s ease, visibility 0s linear 0.55s; }
.slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.slider-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; margin-top: clamp(1.2rem, 2.5vw, 1.8rem); }
.dots { display: flex; align-items: center; }
.dot { width: 2rem; height: 2.5rem; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; padding: 0; }
.dot::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 99px; background: var(--line); box-shadow: inset 0 0 0 1.5px var(--muted); transition: width 0.25s ease, background 0.25s ease; }
.dot[aria-current="true"]::before { width: 1.7rem; background: var(--copper); box-shadow: none; }
.slider-bar .pill-btn { margin-left: 0.4rem; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } .dot::before { transition: none; } }

/* ---------- inner page hero ---------- */
.page-hero { padding-block: clamp(2.2rem, 6vw, 4.2rem) clamp(1.2rem, 3vw, 2rem); }
.page-hero .wrap { display: grid; gap: 1rem; justify-items: start; }
.trace-rule { position: relative; height: 14px; }
.trace-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line); }
.trace-rule::after {
  content: ""; position: absolute; left: 0; top: 1px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 0 4px var(--bg);
}

/* ---------- cards & lists ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0;
}
.card p { color: var(--muted); }
a.card { text-decoration: none; color: var(--fg); transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: var(--copper); transform: translateY(-2px); }
.tag {
  justify-self: start; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--copper);
  border: 1px solid var(--copper); border-radius: 3px; padding: 0.12rem 0.5rem; line-height: 1.5;
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 0.62rem; height: 0.62rem; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 0 3px var(--copper-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  position: relative; padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  font-size: 0.95rem; color: var(--fg);
}
.chips li > a { padding: 0; border: 0; background: transparent; color: var(--fg); text-decoration: none; }
.chips li > a::after { content: ""; position: absolute; inset: 0; border-radius: 99px; }
.chips li:hover, .chips li:focus-within { border-color: var(--copper); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li { counter-increment: step; display: grid; gap: 0.4rem; align-content: start; padding-top: 0.2rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--pad); color: #2A1E05; font-family: var(--font-mono); font-weight: 600; margin-bottom: 0.3rem;
}
.steps p { color: var(--muted); }
.brands { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.brands li {
  display: grid; place-items: center; min-height: 5.6rem; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #FFFFFF;
}
.brands img { display: block; width: 100%; max-width: 8.5rem; height: 3.4rem; object-fit: contain; }
.fine { font-size: 0.88rem; color: var(--muted); }
.datasheet { display: grid; margin: 0; }
.datasheet > div { display: grid; grid-template-columns: minmax(6rem, 0.4fr) 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px dashed var(--line); }
.datasheet > div:last-child { border-bottom: 0; }
.datasheet dt { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.datasheet dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- services ---------- */
.svc-icon { display: block; width: 3.5rem; height: 3.5rem; border-radius: 14px; flex: none; }
.service-head .svc-icon { width: 4rem; height: 4rem; border-radius: 16px; }
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 4.5rem); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 0.6rem; }
.subnav .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.2rem; }
.subnav .chips a { white-space: nowrap; }
.service { display: grid; gap: 1.2rem; padding-block: clamp(1.8rem, 4vw, 3rem); border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.service:last-of-type { border-bottom: 0; }
.service-head { display: grid; gap: 0.7rem; align-content: start; justify-items: start; }
.service-head p { color: var(--muted); }
.service ul { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.6rem 1.5rem; }
@media (max-width: 52rem) { .service { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 0.65rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--copper); font-size: 1.2rem; line-height: 1.3; }
.faq[open] summary::after { content: "\2013"; }
.faq-body { padding: 0 1.2rem 1.1rem; color: var(--muted); }
.faq[hidden] { display: none; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field { display: grid; gap: 0.3rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
input, select, textarea {
  font: inherit; color: var(--fg); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.65rem 0.8rem; min-height: 2.9rem; width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--copper); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radios label { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 500; cursor: pointer; }
.radios input { width: auto; min-height: 0; accent-color: var(--copper); }
.compose-out { border: 1.5px dashed var(--copper); border-radius: var(--radius); padding: 1rem; display: grid; gap: 0.8rem; background: var(--surface); }
.compose-out[hidden] { display: none; }
.msg { margin: 0; white-space: pre-wrap; font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.55; overflow-wrap: anywhere; }

/* ---------- contact ---------- */
.contact-card { display: grid; gap: 0.5rem; }
.big-link { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: var(--silk); padding-block: 3rem 5.5rem; }
.site-footer a { color: var(--silk); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-grid > * { min-width: 0; }
.footer-grid h3 { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 0.8rem; color: var(--trace); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-grid li { min-width: 0; overflow-wrap: anywhere; }
.site-footer .brand-logo { height: 3.4rem; background: #F1F5EF; padding: 0.45rem 0.8rem; border-radius: var(--radius); }
.footer-note { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(233, 241, 230, 0.25); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ---------- floating actions ---------- */
.dock {
  position: fixed; z-index: 40; display: grid; gap: 0.6rem;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.dock a {
  width: 3.3rem; height: 3.3rem; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(5, 30, 22, 0.35); text-decoration: none; transition: transform 0.15s ease;
}
.dock a:hover { transform: scale(1.06); }
.dock svg { width: 1.6rem; height: 1.6rem; }
.dock .d-wa { background: var(--wa); color: var(--on-wa); }
.dock .d-call { background: var(--copper); color: var(--on-copper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; stroke-dashoffset: -30; }
  .btn, a.card, .dock a { transition: none; }
}
