/* KaldeS Electronics — one-pager styles
   Accent colors taken from the logo: orange #ff8800, red #f40104 */

:root {
  --orange: #ff8800;
  --red: #f40104;
  --bg: #0f1115;
  --bg-alt: #151820;
  --surface: #1b1f29;
  --border: #2a3040;
  --text: #e8eaef;
  --muted: #9aa3b5;
  --radius: 12px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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

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

a { color: var(--orange); text-decoration: none; }
a:hover { color: #ffa640; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.wordmark { height: 24px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav a.nav-cta {
  color: var(--text);
  padding: 6px 16px;
  border: 1px solid var(--orange);
  border-radius: 999px;
}
.nav a.nav-cta:hover { background: var(--orange); color: #111; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
}
.btn-primary:hover { color: #fff; filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 112px;
  overflow: hidden;
  /* subtle PCB-style grid */
  background-image:
    linear-gradient(rgba(255, 136, 0, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 136, 0, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(244, 1, 4, .04), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero h1 .dot { color: var(--red); }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36em;
  margin: 0 0 32px;
}

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

.hero-logo { justify-self: center; }
.hero-logo img {
  width: min(300px, 60vw);
  height: auto;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 40px;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--orange); transform: translateY(-3px); }
.card h3 { font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: none;
}
.steps li {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}
.steps li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--orange);
}
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--red);
  margin-bottom: 8px;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

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

.member {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 20px 30px;
}

.avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  /* placeholder until photos are provided */
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--border);
}

.member h3 { font-size: 1.2rem; margin-bottom: 4px; }
.role { margin: 0 0 14px; color: var(--muted); }
.member-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.member-links a {
  display: block;
  color: var(--muted);
  transition: color .2s;
}
.member-links a:hover { color: var(--orange); }
.member-links svg { display: block; width: 22px; height: 22px; fill: currentColor; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .section-title::after { margin-left: auto; margin-right: auto; }
.contact .lead { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer .wordmark { height: 20px; }

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}
.social a {
  display: block;
  color: var(--muted);
  transition: color .2s;
}
.social a:hover { color: var(--orange); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

.copyright { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 140px; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .cards, .team { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

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