/* ============================================
   VST ELECTRICAL SERVICES — Stylesheet
   Palette: charcoal-ink + safety amber + electric blue
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (labels)
   ============================================ */

:root {
  --ink: #14171C;
  --ink-soft: #20242B;
  --paper: #F4F1E9;
  --paper-deep: #E7E2D5;
  --amber: #F5B731;
  --blue: #4C8DFF;
  --steel: #8A93A1;
  --text: #1B1E24;
  --line: rgba(20, 23, 28, 0.12);
  --line-light: rgba(244, 241, 233, 0.14);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1200px;
  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================
   TYPE HELPERS
   ============================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-title.center { text-align: center; }

.section-sub {
  margin-top: 16px;
  max-width: 560px;
  color: #565d68;
  font-size: 1.02rem;
}

.section-sub.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section {
  padding: 96px 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(245, 183, 49, 0.7);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--amber);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 233, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.logo span {
  color: var(--blue);
  margin-left: 6px;
}

.logo-light {
  color: var(--paper);
}

.logo-light span {
  color: var(--amber);
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 0.94rem;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0%;
  background: var(--amber);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-call {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.call-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 183, 49, 0.7);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 183, 49, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(245, 183, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 183, 49, 0); }
}

.call-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
}

.call-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.call-number {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 110px;
  background:
    radial-gradient(560px 380px at 90% 0%, rgba(76, 141, 255, 0.12) 0%, transparent 70%),
    radial-gradient(520px 480px at 4% 100%, rgba(245, 183, 49, 0.16) 0%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero-sub {
  max-width: 480px;
  color: #565d68;
  font-size: 1.06rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-tags {
  list-style: none;
  display: flex;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.hero-tags li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(244, 241, 233, 0.6);
}

.hero-media {
  position: relative;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(20,23,28,0.06) 0 12px, rgba(20,23,28,0.015) 12px 24px),
    var(--paper-deep);
  border: 1.5px dashed var(--steel);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.hero-image {
  aspect-ratio: 4 / 5;
  width: 100%;
}

/* "Rating plate" signature element */
.plate {
  position: absolute;
  left: -36px;
  bottom: -32px;
  width: 240px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px -20px rgba(20, 23, 28, 0.6);
  border: 1px solid rgba(244, 241, 233, 0.12);
}

.plate::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow:
    192px 0 0 var(--steel),
    0 196px 0 var(--steel),
    192px 196px 0 var(--steel);
}

.plate-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 7px 0;
  border-bottom: 1px solid rgba(244, 241, 233, 0.12);
}

.plate-row:last-child {
  border-bottom: none;
}

.plate-row span:first-child {
  color: var(--amber);
}

.plate-row span:last-child {
  text-align: right;
  color: rgba(244, 241, 233, 0.86);
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  background: var(--paper);
  position: relative;
}

.card-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.repair-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.repair-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px -22px rgba(20, 23, 28, 0.35);
  border-color: var(--blue);
}

.repair-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.repair-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.repair-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.repair-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.repair-card p {
  color: #5a626d;
  font-size: 0.92rem;
}

.services-note {
  margin-top: 40px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--steel);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PROCESS
   ============================================ */

.process {
  background: var(--ink);
  color: var(--paper);
}

.process .section-title {
  color: var(--paper);
}

.process .eyebrow {
  color: var(--amber);
}

.process-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-step {
  padding: 32px 26px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(244, 241, 233, 0.03);
}

.step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin-bottom: 18px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.process-step p {
  color: rgba(244, 241, 233, 0.72);
  font-size: 0.96rem;
}

/* ============================================
   WHY US
   ============================================ */

.why-us {
  background: var(--paper);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.why-copy {
  position: sticky;
  top: 110px;
}

.why-list {
  display: grid;
  gap: 28px;
}

.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.why-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.why-num {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--blue);
  width: 48px;
}

.why-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.why-item p {
  color: #5a626d;
  font-size: 0.96rem;
}

/* ============================================
   OUR WORK
   ============================================ */

.work {
  background: var(--paper-deep);
}

.work-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
}

.work-image {
  height: 100%;
}

.work-wide {
  grid-column: span 2;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  background: var(--paper);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.info-list {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.info-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 2px;
}

.info-value {
  font-weight: 500;
  color: var(--ink);
}

.info-value a:hover {
  color: var(--blue);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 20px;
  align-content: start;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 72px 32px 48px;
}

.footer-brand p {
  margin-top: 16px;
  color: rgba(244, 241, 233, 0.62);
  font-size: 0.94rem;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.footer-col p {
  font-size: 0.92rem;
  color: rgba(244, 241, 233, 0.78);
  margin-bottom: 10px;
  line-height: 1.55;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding: 24px 32px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(244, 241, 233, 0.5);
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hero-inner,
  .why-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .why-copy {
    position: static;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-wide {
    grid-column: span 2;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 20px;
  }

  .header-inner {
    height: 72px;
  }

  .card-grid,
  .process-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-wide {
    grid-column: span 1;
  }

  .plate {
    position: static;
    margin-top: 20px;
    width: 100%;
  }

  .plate::before {
    display: none;
  }

  .info-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .call-dot {
    animation: none;
  }

  * {
    transition: none !important;
  }
}
