/* Code Electric LLC — Lawton, OK
   Palette grounded in the trade: a powered-down panel (slate/graphite),
   hi-vis safety yellow used with restraint, copper as the conductor accent,
   paper-white for daylight sections. No cream, no serif, no coral. */
:root {
  --ink: #15181D;          /* panel steel — near-black ground */
  --ink-2: #1F242B;        /* raised slate */
  --ink-3: #2A313A;        /* hairline-on-dark */
  --paper: #F4F2EC;        /* warm paper for light sections */
  --paper-2: #FBFAF6;
  --line: #E2DED4;         /* divider on paper */
  --text: #20242A;         /* body ink on paper */
  --text-mute: #5C636C;    /* secondary on paper */
  --text-dim: #9AA1AA;     /* tertiary / mono labels on paper */

  --hi-vis: #F4C20D;       /* safety yellow — the one signature accent */
  --hi-vis-deep: #E0AE00;
  --copper: #B5703C;       /* conductor — secondary metal hint */
  --copper-soft: #C98A52;

  --on-dark: #ECEDEF;      /* text on the panel ground */
  --on-dark-mute: #A7AEB7;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', monospace;

  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2rem;
  --sp-xl: 3rem;
  --sp-2xl: 4.5rem;

  --maxw: 1140px;
}

/* ---- Fonts (self-hosted woff2, latin) ---- */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/publicsans-latin-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/publicsans-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('fonts/splinemono-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

* { 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;
}

/* ---- Reveal (graceful no-JS: only animates under .js) ---- */
.js .reveal {
  animation: slideUp 0.55s cubic-bezier(.22,.61,.36,1) forwards;
  opacity: 0;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a { color: var(--copper); }

/* ================= SIGNATURE: the circuit rail =================
   A hairline conductor with a single hi-vis node. Replaces the
   generic centered underline; marks every section header. */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--sp-sm);
}
.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.kicker::after {
  /* the live node on the rail */
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hi-vis);
  box-shadow: 0 0 0 3px rgba(244,194,13,0.18);
  order: -1;
  flex: 0 0 auto;
}

/* ---- Header / sticky call bar ---- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(21,24,29,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--ink-3);
  z-index: 1000;
  transition: background 0.3s ease;
}
.header-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--sp-sm) var(--sp-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  text-decoration: none;
}
.logo svg { color: var(--hi-vis); width: 26px; height: 26px; }

.cta-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 44px;
  background: var(--hi-vis);
  color: var(--ink);
  text-decoration: none;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.18s ease, transform 0.18s ease;
}
.cta-call:hover { background: var(--hi-vis-deep); transform: translateY(-1px); }
.pulse {
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---- Hero ---- */
.hero {
  margin-top: 64px;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.25) contrast(1.02);
  z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(15,17,21,0.94) 0%, rgba(15,17,21,0.78) 46%, rgba(15,17,21,0.32) 100%);
}
/* hi-vis seam at the bottom edge — the conductor line */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  z-index: 4;
  background: linear-gradient(90deg, var(--hi-vis) 0 64px, var(--ink-3) 64px);
}
.hero-content {
  position: relative;
  z-index: 3;
  color: var(--on-dark);
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-lg);
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hi-vis);
  margin-bottom: var(--sp-md);
  padding-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--hi-vis);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-md);
}
.hero-subtitle {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--on-dark-mute);
  margin-bottom: var(--sp-lg);
  max-width: 34em;
}
.hero-cta {
  display: flex;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  min-height: 48px;
  min-width: 44px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary { background: var(--hi-vis); color: var(--ink); }
.btn-primary:hover { background: var(--hi-vis-deep); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.btn-secondary { background: transparent; color: var(--on-dark); border-color: rgba(236,237,239,0.35); }
.btn-secondary:hover { border-color: var(--on-dark); transform: translateY(-2px); }

.trust-strip {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(236,237,239,0.14);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-mute);
}
.trust-item svg { width: 18px; height: 18px; color: var(--hi-vis); }

/* ---- Layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-lg); }
section { padding: var(--sp-2xl) 0; }

/* section headings — LEFT aligned, no centered underline */
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: var(--sp-xl);
}

/* ---- Why us ---- */
.why-us { background: var(--paper-2); border-top: 1px solid var(--line); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.why-card {
  background: var(--paper-2);
  padding: var(--sp-lg);
  transition: background 0.2s ease;
}
.why-card:hover { background: #fff; }
.icon {
  width: 40px; height: 40px;
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-bottom: 3px solid var(--hi-vis);
  font-size: 1.4rem;
  line-height: 1;
}
.icon-clock::before { content: "24/7"; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; }
.icon-check::before { content: "✓"; font-weight: 800; }
.icon-dollar::before { content: "$"; font-family: var(--font-display); font-weight: 800; }
.icon-briefcase::before { content: "⌁"; color: var(--copper); font-size: 1.5rem; }
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.why-card p { color: var(--text-mute); line-height: 1.6; font-size: 0.95rem; }

/* ---- Services ---- */
.services { background: var(--ink); color: var(--on-dark); }
.services h2 { color: var(--on-dark); }
.services .kicker { color: var(--on-dark-mute); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: var(--sp-md);
}
.service-item {
  padding: var(--sp-lg);
  background: var(--ink-2);
  border-top: 3px solid var(--copper);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.service-item:hover { transform: translateY(-3px); border-top-color: var(--hi-vis); }
.service-item h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.service-item p { color: var(--on-dark-mute); font-size: 0.93rem; line-height: 1.6; }

/* ---- Gallery ---- */
.gallery { background: var(--paper); border-top: 1px solid var(--line); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--sp-sm);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  background: var(--ink);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(0.1);
}
.gallery-item:hover img { transform: scale(1.04); filter: grayscale(0); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,17,21,0.85), transparent);
  color: var(--on-dark);
  padding: var(--sp-lg) var(--sp-md) 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gallery-placeholder {
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  color: var(--text-dim);
  text-align: center;
  gap: 0.3rem;
}
.gallery-placeholder p { font-family: var(--font-mono); font-size: 0.85rem; }
.gallery-placeholder small { font-size: 0.78rem; }

/* ---- Reviews ---- */
.reviews { background: var(--paper-2); border-top: 1px solid var(--line); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.review {
  background: #fff;
  padding: var(--sp-lg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--hi-vis);
}
.stars { color: var(--hi-vis-deep); font-size: 0.95rem; margin-bottom: var(--sp-sm); letter-spacing: 2px; }
.review p { color: var(--text); line-height: 1.65; margin-bottom: var(--sp-md); font-size: 0.96rem; }
.review-author {
  font-family: var(--font-mono);
  color: var(--text-mute);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.review-meta {
  padding-top: var(--sp-md);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.review-meta strong { color: var(--copper); }

/* ---- Visit ---- */
.visit { background: var(--ink); color: var(--on-dark); }
.visit h2 { color: var(--on-dark); }
.visit .kicker { color: var(--on-dark-mute); }
.visit-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}
.visit-info h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-md);
}
.visit-info p { margin-bottom: var(--sp-md); line-height: 1.8; color: var(--on-dark-mute); }
.visit-info .phone {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--on-dark);
}
.visit-info a { color: var(--hi-vis); text-decoration: none; }
.visit-info a:hover { text-decoration: underline; }
.hours {
  background: var(--ink-2);
  border-left: 3px solid var(--hi-vis);
  padding: var(--sp-md);
  color: var(--on-dark-mute);
}
.hours strong { color: var(--on-dark); }
.visit-cta { margin-top: var(--sp-lg); }
.visit-map-placeholder {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  padding: var(--sp-2xl) var(--sp-lg);
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visit-map-placeholder p { font-family: var(--font-mono); font-size: 0.95rem; color: var(--on-dark-mute); }

/* ---- Contact ---- */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: var(--sp-xl);
  border: 1px solid var(--line);
  border-top: 4px solid var(--hi-vis);
}
.contact-box h2 { margin: 0 0 var(--sp-sm) 0; }
.contact-box > p { color: var(--text-mute); margin-bottom: var(--sp-lg); }
.contact-form { display: flex; flex-direction: column; gap: var(--sp-md); }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-mute);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--hi-vis-deep);
  box-shadow: 0 0 0 3px rgba(244,194,13,0.22);
}
.form-group textarea { resize: vertical; }
.contact-form button { margin-top: var(--sp-xs); align-self: flex-start; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: var(--on-dark); padding: var(--sp-2xl) 0 var(--sp-lg); border-top: 3px solid var(--hi-vis); }
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
  color: var(--hi-vis);
}
.footer-col p { margin-bottom: 0.5rem; color: var(--on-dark-mute); }
.footer-col a { color: var(--on-dark); text-decoration: none; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--hi-vis); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid var(--ink-3);
  padding-top: var(--sp-lg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--on-dark-mute);
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .header-content { padding: var(--sp-sm); height: 58px; }
  .cta-call { padding: 9px 14px; font-size: 0.74rem; }
  .hero { margin-top: 58px; min-height: 520px; }
  .hero-content { padding: var(--sp-xl) var(--sp-lg); }
  .visit-content { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .why-grid, .services-grid, .gallery-grid, .reviews-grid { grid-template-columns: 1fr; }
  section { padding: var(--sp-xl) 0; }
}
@media (max-width: 480px) {
  :root { --sp-lg: 1.4rem; --sp-xl: 2rem; --sp-2xl: 2.75rem; }
  .header-content { padding: var(--sp-xs) var(--sp-sm); }
  .logo { gap: 0.45rem; font-size: 1rem; }
  .logo svg { width: 22px; height: 22px; }
  .hero { min-height: 460px; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .container { padding: 0 var(--sp-md); }
  .contact-box { padding: var(--sp-lg); }
}
