/* NagavaTech — PCB / circuit-board identity. Plain CSS, no build step. */

:root {
  --charcoal: #3b3a3e;
  --near-black: #2b2a2e;
  --pcb-green: #1b6b45;
  --pcb-green-light: #2e8b57;
  --white: #ffffff;
  --bg-light: #f4f5f4;
  --bg-light-alt: #e9ebe9;

  --text-on-light: var(--near-black);
  --text-on-light-dim: #6a696d;
  --text-on-dark: #f4f5f4;
  --text-on-dark-dim: #b9bcba;

  --border-light: #dcdedb;
  --border-dark: #4a494d;

  --radius: 4px;
  --radius-lg: 10px;
  --max-w: 1180px;

  --font-head: "Questrial", "Josefin Sans", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text-on-light);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

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

/* ---------- Circuit motif helpers ---------- */
.node-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  flex-shrink: 0;
}

.circuit-rule {
  display: block;
  width: 100%;
  height: 28px;
}

.circuit-divider {
  position: relative;
  height: 1px;
  background: var(--border-light);
  margin: 0 auto;
}
section.on-dark .circuit-divider { background: var(--border-dark); }

/* trace-style list bullets */
.trace-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trace-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
}
.trace-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--pcb-green);
}
.trace-list li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 11px;
  width: 11px;
  height: 1px;
  background: var(--pcb-green);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

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

.logo { display: flex; align-items: center; gap: 10px; color: var(--pcb-green); }
.logo .logo-mark { height: 34px; width: 34px; flex-shrink: 0; }
.logo-text {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.logo-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }

.site-footer .logo,
.hero-brand { color: var(--white); }
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-brand .hero-badge { height: 80px; width: 80px; border-radius: 18px; flex-shrink: 0; }
.hero-brand .logo-text { font-size: 30px; letter-spacing: 0.09em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--text-on-light-dim);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--pcb-green); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 700;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-on-light-dim);
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
.lang-toggle button.active { background: var(--pcb-green); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--charcoal);
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--pcb-green);
  color: var(--white);
  border-color: var(--pcb-green);
}
.btn-primary:hover { background: var(--pcb-green-light); box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.18); }

.btn-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-outline:hover { color: var(--pcb-green); border-color: var(--pcb-green); }

.btn-sm { padding: 10px 18px; font-size: 11.5px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 96px;
  text-align: center;
  background: linear-gradient(160deg, var(--near-black) 0%, var(--pcb-green) 150%);
  color: var(--white);
}

.hero .circuit-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  z-index: 0;
}

.hero .hero-inner { position: relative; z-index: 1; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero p.lead {
  color: rgba(244, 245, 244, 0.85);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 38px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.hero .btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.on-light { background: var(--bg-light); color: var(--text-on-light); }
section.on-light-alt { background: var(--bg-light-alt); color: var(--text-on-light); }
section.on-dark { background: var(--charcoal); color: var(--text-on-dark); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head .eyebrow-sm {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pcb-green-light);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(22px, 3.2vw, 32px); margin: 0 0 14px; }
.section-head p {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-on-light-dim);
  margin: 0;
}
section.on-dark .section-head p { color: var(--text-on-dark-dim); }

/* ---------- Grids / Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--pcb-green-light);
  box-shadow: 0 0 0 1px var(--pcb-green-light), 0 10px 28px rgba(27, 107, 69, 0.14);
  transform: translateY(-3px);
}

section.on-dark .card {
  background: var(--near-black);
  border-color: var(--border-dark);
}
section.on-dark .card:hover {
  box-shadow: 0 0 0 1px var(--pcb-green-light), 0 10px 28px rgba(46, 139, 87, 0.22);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--pcb-green);
  color: var(--pcb-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}
section.on-dark .card .icon { color: var(--pcb-green-light); border-color: var(--pcb-green-light); }

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.03em;
}
.card p {
  margin: 0;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-on-light-dim);
  font-size: 14.5px;
}
section.on-dark .card p { color: var(--text-on-dark-dim); }

/* ---------- Product cards ---------- */
.catalog-toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.catalog-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-on-light-dim);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.chip.active { border-color: var(--pcb-green); color: var(--pcb-green); background: rgba(27, 107, 69, 0.07); }

.search-box { position: relative; min-width: 240px; }
.search-box input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 10px 16px 10px 38px;
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 14px;
}
.search-box input:focus { outline: none; border-color: var(--pcb-green); }
.search-box::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--text-on-light-dim);
}

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.product-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.product-card:hover {
  border-color: var(--pcb-green-light);
  box-shadow: 0 0 0 1px var(--pcb-green-light), 0 10px 28px rgba(27, 107, 69, 0.14);
}

.product-card .thumb {
  aspect-ratio: 16/10;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}
.product-card .thumb img { max-height: 100%; }

.product-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .cat-tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pcb-green);
}
.product-card h3 { margin: 0; font-size: 16px; }
.product-card .desc {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-on-light-dim);
  font-size: 13.5px;
  margin: 0;
  flex: 1;
}
.product-card .specs.trace-list { margin-top: 2px; }
.product-card .specs.trace-list li { font-size: 12.5px; color: var(--text-on-light-dim); }

.product-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.product-card .price { font-family: var(--font-head); font-size: 19px; color: var(--near-black); }
.product-card .price small {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  font-size: 11px;
  color: var(--text-on-light-dim);
  font-weight: 400;
}
.product-card .actions { display: flex; gap: 8px; }
.product-card .actions .btn { flex: 1; }

.empty-state {
  text-align: center;
  color: var(--text-on-light-dim);
  padding: 64px 20px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--near-black);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial p {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  font-style: italic;
  color: var(--text-on-dark-dim);
  margin: 0 0 18px;
  font-size: 14.5px;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--pcb-green-light);
  flex-shrink: 0;
}
.testimonial .name { font-family: var(--font-head); font-weight: 400; font-size: 13px; letter-spacing: 0.03em; color: var(--white); }
.testimonial .role { font-family: var(--font-body); font-size: 12px; color: var(--text-on-dark-dim); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  border: 1px solid var(--pcb-green);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  background: var(--near-black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin: 0 0 14px; font-size: clamp(20px, 3vw, 28px); }
.cta-band p {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-on-dark-dim);
  margin: 0 0 30px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--near-black); color: var(--text-on-dark); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-dim);
  margin: 0 0 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-grid ul a {
  font-family: var(--font-body);
  color: var(--text-on-dark-dim);
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
}
.footer-grid ul a:hover { color: var(--pcb-green-light); }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-on-dark-dim);
  font-size: 14px;
  max-width: 320px;
}
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #7c7a7f;
  font-family: var(--font-body);
  font-size: 13px;
}

/* ---------- Pages: generic content ---------- */
.page-header {
  padding: 72px 0 48px;
  text-align: center;
  background: var(--near-black);
  color: var(--white);
  border-bottom: 3px solid var(--pcb-green);
}
.page-header h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 14px; }
.page-header p {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-on-dark-dim);
  max-width: 560px;
  margin: 0 auto;
}

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 44px; font-size: 19px; }
.prose p, .prose li {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-on-light-dim);
  font-size: 15px;
}
.prose a { color: var(--pcb-green); text-decoration: underline; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-grid .logo-mark-lg { width: 180px; height: 180px; color: var(--pcb-green); margin: 0 auto; }
.stat-row { display: flex; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-head); font-size: 28px; color: var(--pcb-green); }
.stat span {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  font-size: 12.5px;
  color: var(--text-on-light-dim);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-on-light-dim);
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--pcb-green); }
.form-note { font-family: var(--font-body); font-size: 12.5px; color: var(--text-on-light-dim); margin-top: 10px; }
.form-status { font-family: var(--font-body); font-size: 14px; margin-top: 14px; display: none; }
.form-status.ok { color: var(--pcb-green); display: block; }
.form-status.err { color: #b4453c; display: block; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.contact-info .card { margin-bottom: 16px; }
.contact-info .card .contact-row { display: flex; align-items: center; gap: 10px; }
.contact-info .card a { color: var(--pcb-green); font-weight: 600; font-family: var(--font-body); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--near-black);
  color: var(--white);
}
.error-page .logo-mark { width: 64px; height: 64px; color: var(--pcb-green-light); margin-bottom: 20px; }
.error-page .code {
  font-family: var(--font-head);
  font-size: clamp(64px, 12vw, 120px);
  color: var(--pcb-green-light);
  line-height: 1;
}
.error-page p { color: var(--text-on-dark-dim); font-family: var(--font-body); text-transform: none; letter-spacing: normal; }

/* ---------- Circuit hero animation ---------- */
.circuit-bg .trace {
  fill: none;
  stroke: rgba(244, 245, 244, 0.5);
  stroke-width: 1.4;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: traceOn 2.6s ease forwards;
}
.circuit-bg .node {
  fill: var(--near-black);
  stroke: rgba(244, 245, 244, 0.65);
  stroke-width: 1.4;
  opacity: 0;
  animation: nodeOn 0.4s ease forwards;
}

@keyframes traceOn { to { stroke-dashoffset: 0; } }
@keyframes nodeOn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .circuit-bg .trace { stroke-dashoffset: 0; animation: none; }
  .circuit-bg .node { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Animations ---------- */
.fade-up { animation: fadeUp 0.6s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .grid-3, .grid-2, .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 56px; }
  section { padding: 60px 0; }

  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
  }
}
