/* ===== WilsonLowVoltage — design system ===== */

:root {
  --bg: #0a0e14;
  --bg-alt: #0d131c;
  --surface: #121a26;
  --surface-2: #16202e;
  --border: #223047;
  --text: #e7edf5;
  --text-muted: #93a3b8;
  --accent: #34d3ff;
  --accent-dim: #1c7fa3;
  --action: #ffb020;
  --action-dim: #cc8c17;
  --success: #35d399;
  --font-head: "Space Grotesk", "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  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);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--action);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-action {
  background: var(--action);
  color: #1a1200;
}
.btn-action:hover { background: #ffc250; }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .brand-icon {
  height: 42px;
  width: auto;
  display: block;
}
.brand .brand-word {
  height: 24px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  min-width: 240px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 10;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--surface-2); color: var(--accent); }
.dropdown > a::after { content: " \25BE"; font-size: 0.7em; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-phone {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.nav-phone small { display: block; color: var(--text-muted); font-weight: 400; font-size: .72rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  background: radial-gradient(circle at 20% 20%, rgba(52, 211, 255, 0.12), transparent 45%),
              radial-gradient(circle at 80% 70%, rgba(255, 176, 32, 0.08), transparent 40%),
              var(--bg);
}

.hero-circuit {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  background-image: url("../img/circuit-pattern.svg");
  background-size: 400px 400px;
  background-repeat: repeat;
  animation: drift 40s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 400px 400px; }
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-grid.single-col {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text);
}
.hero-stats div span { font-size: 0.82rem; color: var(--text-muted); }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.75);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,0) 40%, rgba(10,14,20,0.85) 100%),
              linear-gradient(120deg, rgba(52,211,255,0.25), transparent 60%);
}

.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(52,211,255,0.12), transparent 55%), var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { justify-content: center; }
.page-hero p.lead { max-width: 60ch; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 0 50px; }
.section-head.center { margin: 0 auto 50px; text-align: center; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-dim); }

.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(52, 211, 255, 0.12);
  color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }

.card a.card-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.feature-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  margin-bottom: 30px;
}
.feature-row .card-icon { margin-bottom: 0; width: 44px; height: 44px; }
.feature-row h3 { margin-bottom: 6px; }
.feature-row p { margin-bottom: 0; }

/* ---------- Process ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step .step-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0.9;
  position: absolute;
  top: 14px; right: 18px;
}
.step h3 { margin-top: 10px; }

/* ---------- Brand strip ---------- */
.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brand-strip span {
  font-family: var(--font-head);
  color: var(--text-muted);
  font-size: 1rem;
  opacity: 0.7;
  letter-spacing: 0.03em;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.stars { color: var(--action); letter-spacing: 3px; margin-bottom: 14px; }
.testimonial .who {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}
.testimonial .who span { display: block; color: var(--text-muted); font-weight: 400; font-size: .82rem; }

.placeholder-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 18px;
  opacity: 0.7;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, rgba(52,211,255,0.1), rgba(255,176,32,0.08)), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin-bottom: 0; }

/* ---------- Service area list ---------- */
.area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.area-list li {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 500;
}
.county-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-tag {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(10,14,20,0.75);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-head);
}
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.filter-bar button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: 20px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-bar button.active, .filter-bar button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }
#form-status { margin-top: 16px; font-size: 0.9rem; }
#form-status.success { color: var(--success); }
#form-status.error { color: var(--action); }

.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 0.95rem; }

/* ---------- Blog ---------- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-card img { aspect-ratio: 16/9; object-fit: cover; }
.post-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(52,211,255,0.1), rgba(255,176,32,0.08));
  color: var(--accent);
}
.post-placeholder svg { width: 36px; height: 36px; opacity: 0.7; }

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(52,211,255,0.08), rgba(255,176,32,0.06));
  color: var(--accent);
}
.media-placeholder svg { width: 44px; height: 44px; opacity: 0.5; }
.post-card-body { padding: 26px; }
.post-meta { font-size: 0.78rem; color: var(--accent); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.post-card h3 a:hover { color: var(--accent); }

.post-body {
  max-width: 720px;
  margin: 0 auto;
}
.post-body h2 { margin-top: 1.4em; }
.post-body p, .post-body li { color: var(--text-muted); font-size: 1.02rem; }
.post-body ul { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.footer-brand p { max-width: 32ch; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/9; }
  .grid-3, .grid-4, .process-steps, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-list { grid-template-columns: repeat(2, 1fr); }
}

/* Nav collapses to hamburger earlier than the grid breakpoints below —
   the full nav (8 items + phone + CTA) stops fitting around ~1100px. */
@media (max-width: 1080px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .navbar-inner { gap: 10px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn { padding: 11px 14px; font-size: 0.82rem; }
  .nav-toggle { padding: 8px 0; }
  .navbar.open .nav-links {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 30px;
    gap: 20px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav-links a { white-space: normal; }
  .dropdown { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 0 14px;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .dropdown-menu a { padding: 0; font-size: 0.9rem; }
}

@media (max-width: 720px) {
  .navbar .brand-icon { height: 34px; }
  .navbar .brand-word { height: 19px; }
  .grid-2, .grid-3, .grid-4, .process-steps, .gallery-grid, .form-row, .area-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .navbar .container { padding: 0 14px; }
  .navbar-inner { gap: 6px; }
  .navbar .brand { gap: 8px; }
  .navbar .brand-icon { height: 28px; }
  .navbar .brand-word { height: 16px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 9px 9px; font-size: 0.74rem; }
  .cta-band .btn { width: 100%; }
}
