/* ============================================================
   Black Horse Repairs — static site styles
   Dark electronics / technology theme
   ============================================================ */

:root {
  --bg: #0a0e14;
  --bg-soft: #0e131b;
  --surface: #121924;
  --surface-2: #17202d;
  --border: #223041;
  --border-soft: #1a2633;

  --text: #e8eef5;
  --muted: #93a2b3;
  --muted-2: #6c7c8d;

  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-2: #34d399;
  --accent-3: #818cf8;

  --grad: linear-gradient(135deg, #22d3ee 0%, #38bdf8 45%, #818cf8 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(129, 140, 248, .16));

  --radius: 14px;
  --radius-sm: 9px;

  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --glow: 0 0 0 1px rgba(34, 211, 238, .35), 0 10px 40px rgba(34, 211, 238, .12);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --header-h: 72px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle circuit grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(34, 211, 238, .09), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(129, 140, 248, .08), transparent 55%),
    linear-gradient(var(--bg), var(--bg));
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: #fff;
  margin: 0 0 .6em;
}

p { margin: 0 0 1em; }

::selection { background: rgba(34, 211, 238, .28); }

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

/* ---------- utility ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: .7;
}

.section__title { font-size: clamp(28px, 4vw, 42px); }
.section__lede { color: var(--muted); font-size: 17px; }

.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--grad);
  color: #041018;
  box-shadow: 0 8px 26px rgba(34, 211, 238, .28);
}
.btn--primary:hover { color: #041018; box-shadow: 0 12px 34px rgba(34, 211, 238, .42); transform: translateY(-2px); }

.btn--ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.btn--sm { padding: 9px 18px; font-size: 14px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 20, .82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand img { height: 42px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand__tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.nav__ext { font-size: 11px; opacity: .7; }

.nav-toggle {
  display: none;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(10, 14, 20, .98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}
.mobile-menu .nav__link { padding: 12px 10px; border-radius: 10px; }

@media (max-width: 860px) {
  .nav--desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.is-open { display: flex; }
}

/* ---------- hero slider ---------- */
.hero {
  position: relative;
  height: min(78vh, 680px);
  min-height: 520px;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.02);
  animation: heroZoom 9s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, .72) 0%, rgba(10, 14, 20, .35) 38%, rgba(10, 14, 20, .78) 100%),
    radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(10, 14, 20, .45) 100%);
}
.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
  margin-inline: auto;
  padding: 40px 24px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .35);
  background: rgba(10, 14, 20, .55);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(34px, 6vw, 66px);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.hero__title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub {
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  color: #d4dde6;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(10, 14, 20, .45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hero__arrow:hover { background: var(--accent); color: #041018; border-color: transparent; }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow--prev { left: 22px; }
.hero__arrow--next { right: 22px; }

.hero__dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: width .22s ease, background .22s ease;
}
.hero__dot.is-active { width: 26px; background: var(--accent); }

.hero__counter {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.75);
}
@media (max-width: 680px) {
  .hero { height: min(92vh, 600px); }
  .hero__arrow { display: none; }
  .hero__counter { display: none; }
}

/* ---------- feature strip / stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 26px 22px;
}
.stat__value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, .4);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, .25);
  color: var(--accent);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- core values ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .value-grid { grid-template-columns: 1fr; } }

.value-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 140px at 50% -20%, rgba(34, 211, 238, .10), transparent 70%);
  opacity: 0;
  transition: opacity .22s ease;
}
.value-card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, .4); box-shadow: var(--shadow); }
.value-card:hover::before { opacity: 1; }
.value-card__num {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--muted-2);
}
.value-card .card__icon { position: relative; }
.value-card h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 16px 0 10px;
}
.value-card p { position: relative; color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- software / product cards ---------- */
.soft-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.soft-card:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, .4); box-shadow: var(--shadow); }
.soft-card__media {
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
}
.soft-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.soft-card:hover .soft-card__media img { transform: scale(1.06); }
.soft-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.soft-card__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(52, 211, 153, .3);
  background: rgba(52, 211, 153, .08);
  padding: 4px 10px;
  border-radius: 999px;
}
.soft-card h3 { font-size: 20px; margin: 0; }
.soft-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 54px 40px;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 88% 20%, rgba(34, 211, 238, .18), transparent 60%),
    radial-gradient(600px 300px at 8% 90%, rgba(129, 140, 248, .14), transparent 55%),
    var(--surface);
}
.cta h2 { font-size: clamp(26px, 3.6vw, 38px); max-width: 640px; }
.cta p { color: var(--muted); max-width: 620px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- split (about) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split__media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.list-check svg { flex: none; width: 22px; height: 22px; color: var(--accent-2); margin-top: 2px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 110px 0 84px;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 360px at 80% -20%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(600px 320px at 10% 110%, rgba(129, 140, 248, .12), transparent 55%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 14px; }
.page-hero p { color: var(--muted); max-width: 680px; font-size: 18px; }
.breadcrumbs { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumbs a { color: var(--accent); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 14px;
  transition: border-color .18s ease, transform .18s ease;
}
.contact-card:hover { border-color: rgba(34, 211, 238, .4); transform: translateY(-2px); }
.contact-card__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(34, 211, 238, .25);
  color: var(--accent);
}
.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card h3 { font-size: 16px; margin: 0 0 3px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-card a { color: var(--text); }
.contact-card a:hover { color: var(--accent); }

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px;
}
.form-panel h2 { font-size: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; letter-spacing: .01em; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: #080c11;
  padding: 72px 0 30px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 14.5px; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); font-size: 14.5px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 13.5px;
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(18, 25, 36, .9);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background .18s ease, color .18s ease, transform .18s ease, opacity .2s ease;
}
.to-top:hover { background: var(--accent); color: #041018; transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }
