/* RK5 Electric — rk5electric.com
   Palette + type from the RK5 business card: brushed steel on charcoal iron,
   copper as the single warm accent. Display face Cinzel echoes the flared
   roman capitals of the logo mark. */

/* ---------- fonts (self-hosted, no CDN) ---------- */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/cinzel-normal-400-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-normal-100-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-italic-100-900.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-normal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-normal-500.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --iron: #1b1e23;          /* page dark — the card's charcoal */
  --iron-deep: #14171b;     /* footer / lowest layer */
  --gunmetal: #262b31;      /* raised dark surfaces, plates */
  --gunmetal-edge: #3a4149; /* borders on dark */
  --steel: #c8cdd3;         /* brushed metal, headings on dark */
  --steel-bright: #e8ebee;  /* hero metal highlight */
  --steel-dim: #9aa1aa;     /* secondary text on dark */
  --porcelain: #edeff1;     /* light section background */
  --white: #ffffff;
  --ink: #22262b;           /* text on light */
  --ink-soft: #4c535b;      /* secondary text on light */
  --copper: #c97e2e;        /* the one warm accent */
  --copper-hot: #e09a45;    /* hover / glow */
  --copper-deep: #a5631f;

  --display: 'Cinzel', 'Times New Roman', serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 6px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-deep); }
a:hover { color: var(--copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--copper); color: var(--iron); padding: 10px 16px;
  font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- corrugated dark bands ---------- */
.band-dark {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.045), transparent 60%),
    repeating-linear-gradient(180deg,
      transparent 0 20px,
      rgba(255,255,255,.02) 20px 24px,
      rgba(0,0,0,.16) 24px 30px),
    var(--iron);
  color: var(--steel);
}
.band-dark h1, .band-dark h2 { color: var(--steel-bright); }
.band-dark p { color: var(--steel-dim); }
.band-dark a:not(.btn) { color: var(--copper-hot); }

/* ---------- type ---------- */
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 52px); letter-spacing: .01em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-family: var(--body); font-weight: 700; font-size: 19px; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(17px, 2.2vw, 20px); max-width: 62ch; }

.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper); margin: 0 0 14px; display: block;
}
.band-dark .eyebrow { color: var(--copper-hot); }

/* steel-gradient display text (dark bands only) */
.steel-text {
  background: linear-gradient(172deg, #f2f4f6 0%, #c8cdd3 38%, #878e97 52%, #d7dbdf 68%, #aab0b8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 23, 27, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gunmetal-edge);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 22px;
  min-height: 76px; max-width: 1280px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand picture { flex: none; display: block; }
.brand img { height: 58px; width: auto; max-width: none; }
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 16px;
  letter-spacing: .06em; color: var(--steel-bright); display: block;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--steel-dim); display: block;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  font-weight: 500; font-size: 14.5px; text-decoration: none;
  color: var(--steel); padding: 8px 10px; border-radius: 4px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.site-nav a[aria-current="page"] { color: var(--copper-hot); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--gunmetal-edge);
  border-radius: 4px; padding: 9px 11px; cursor: pointer; color: var(--steel);
}
.nav-toggle svg { display: block; }

.header-call {
  font-weight: 700; font-size: 15px; text-decoration: none;
  color: var(--iron); background: var(--copper);
  padding: 9px 16px; border-radius: 4px; white-space: nowrap;
}
.header-call:hover { background: var(--copper-hot); color: var(--iron); }

@media (max-width: 1160px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--iron-deep); border-bottom: 1px solid var(--gunmetal-edge);
    padding: 8px 0 12px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px var(--gutter); border-radius: 0; }
}
@media (max-width: 560px) {
  .header-call span { display: none; }
  .header-call::after { content: 'Call'; }
  .brand-text { display: none; }
  .brand img { height: 50px; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 88px); }
.hero h1 { font-size: clamp(34px, 4.6vw, 66px); max-width: 22ch; }
.hero .lede { max-width: 72ch; }
.hero h1 { margin-bottom: .4em; }
.hero .lede { margin-bottom: 1.6em; }

.wire-trace {
  height: 2px; width: 100%; max-width: 540px; margin: 26px 0 30px;
  background: linear-gradient(90deg, var(--copper), var(--copper-hot));
  position: relative; transform-origin: left;
  animation: energize 1.1s cubic-bezier(.65,0,.3,1) .25s backwards;
}
.wire-trace::after {
  content: ''; position: absolute; right: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper-hot);
  box-shadow: 0 0 12px 3px rgba(224, 154, 69, .55);
}
@keyframes energize { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .wire-trace { animation: none; }
  html { scroll-behavior: auto; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-size: 16.5px; padding: 14px 26px; border-radius: 4px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--copper); color: var(--iron); }
.btn-primary:hover { background: var(--copper-hot); color: var(--iron); }
.btn-ghost { border-color: var(--gunmetal-edge); color: var(--steel); }
.btn-ghost:hover { border-color: var(--steel-dim); color: var(--white); }
.on-light .btn-ghost { border-color: #c3c9cf; color: var(--ink); }
.on-light .btn-ghost:hover { border-color: var(--ink-soft); }

/* ---------- stamped nameplate (signature element) ---------- */
.nameplate {
  background: linear-gradient(168deg, #2c3238 0%, #23282e 55%, #2a3036 100%);
  border: 1px solid #12151a;
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.45),
    inset 1px 0 0 rgba(255,255,255,.04),
    0 10px 30px rgba(0,0,0,.35);
  padding: 26px 30px;
  position: relative;
  font-family: var(--mono);
  color: var(--steel);
  max-width: 460px;
}
.nameplate::before, .nameplate::after,
.nameplate .rivet-b::before, .nameplate .rivet-b::after {
  content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8dce0, #7d848d 55%, #3d434a);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,.5), 0 1px 1px rgba(255,255,255,.08);
}
.nameplate::before { top: 10px; left: 10px; }
.nameplate::after { top: 10px; right: 10px; }
.nameplate .rivet-b::before { bottom: 10px; left: 10px; }
.nameplate .rivet-b::after { bottom: 10px; right: 10px; }
.nameplate .np-co {
  font-size: 15px; font-weight: 500; letter-spacing: .14em;
  color: var(--steel-bright); text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 -1px 0 rgba(255,255,255,.06);
  margin: 0 0 10px; border-bottom: 1px solid rgba(255,255,255,.09);
  padding-bottom: 10px;
}
.nameplate .np-row {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; letter-spacing: .04em; margin: 7px 0; color: var(--steel-dim);
}
.nameplate .np-row strong { color: var(--steel); font-weight: 500; white-space: nowrap; }
.nameplate .np-verify {
  margin-top: 12px; font-size: 11.5px; letter-spacing: .06em; color: var(--steel-dim);
}
.nameplate .np-verify a { color: var(--copper-hot); text-decoration-thickness: 1px; }
@media (max-width: 480px) {
  .nameplate { padding: 22px 20px; }
  .nameplate .np-row { flex-direction: column; gap: 2px; }
}

/* ---------- trust bar ---------- */
.trust-bar { background: var(--iron-deep); border-block: 1px solid var(--gunmetal-edge); }
.trust-bar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding-block: 20px;
}
.trust-item { font-family: var(--mono); }
.trust-item .t-label {
  display: block; font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--steel-dim); margin-bottom: 3px;
}
.trust-item .t-value { font-size: 14.5px; color: var(--steel-bright); letter-spacing: .03em; }
@media (max-width: 820px) {
  .trust-bar .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(52px, 8vw, 96px); }
.section-head { max-width: 68ch; margin-bottom: clamp(28px, 4vw, 44px); }

/* service cards */
.card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.card {
  background: var(--white); border: 1px solid #d8dce0;
  border-radius: var(--radius); padding: 26px 24px 22px;
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover {
  border-color: var(--copper); color: var(--ink);
  box-shadow: 0 12px 28px rgba(27, 30, 35, .10);
  transform: translateY(-2px);
}
.card svg { color: var(--copper-deep); margin-bottom: 16px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 14px; }
.card .card-go {
  margin-top: auto; font-weight: 700; font-size: 14.5px; color: var(--copper-deep);
}
.card:hover .card-go { color: var(--copper); }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .card-grid { grid-template-columns: 1fr; } }

/* license chain (home dark section) */
.license-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.chain { list-style: none; margin: 0; padding: 0; position: relative; }
.chain::before {
  content: ''; position: absolute; left: 17px; top: 26px; bottom: 26px;
  width: 2px; background: linear-gradient(180deg, var(--copper), var(--copper-deep));
}
.chain li {
  position: relative; padding: 0 0 26px 54px;
}
.chain li:last-child { padding-bottom: 0; }
.chain .chain-dot {
  position: absolute; left: 8px; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--gunmetal);
  border: 2px solid var(--copper);
  box-shadow: 0 0 10px rgba(201, 126, 46, .35);
}
.chain .chain-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--steel-dim); display: block; margin-bottom: 2px;
}
.chain .chain-value { color: var(--steel-bright); font-weight: 600; font-size: 17px; }
.chain .chain-note { font-size: 14px; color: var(--steel-dim); margin-top: 2px; }
@media (max-width: 820px) { .license-grid { grid-template-columns: 1fr; } }

/* emergency strip */
.emergency { background: var(--gunmetal); border-block: 1px solid var(--gunmetal-edge); }
.emergency .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px;
  padding-block: 26px;
}
.emergency h2 { font-family: var(--body); font-weight: 700; font-size: 19px; margin: 0; color: var(--steel-bright); }
.emergency p { margin: 0; color: var(--steel-dim); flex: 1 1 320px; font-size: 15.5px; }

/* service area */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 14px; list-style: none; }
.area-list li {
  font-family: var(--mono); font-size: 14px; letter-spacing: .04em;
  background: var(--white); border: 1px solid #d8dce0; border-radius: 999px;
  padding: 7px 16px; color: var(--ink);
}
.area-note { color: var(--ink-soft); font-size: 15px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .35em; }
.cta-band .lede { margin-inline: auto; margin-bottom: 1.5em; }
.cta-band .cta-row { justify-content: center; }

/* ---------- interior pages ---------- */
.page-hero { padding: clamp(44px, 7vw, 72px) 0; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lede { margin-bottom: 1.4em; }
.page-hero .cta-row { margin-top: 4px; }

.split {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 36px; }
.check-list li {
  break-inside: avoid; padding: 9px 0 9px 30px; position: relative;
  border-bottom: 1px solid #dde0e4; font-size: 16px;
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 14px; height: 9px;
  border-left: 2.5px solid var(--copper); border-bottom: 2.5px solid var(--copper);
  transform: rotate(-45deg);
}
@media (max-width: 640px) { .check-list { columns: 1; } }

.aside-panel {
  background: var(--white); border: 1px solid #d8dce0; border-radius: var(--radius);
  padding: 26px 26px 22px;
}
.aside-panel h3 { margin-bottom: 12px; }
.aside-panel p { font-size: 15.5px; color: var(--ink-soft); }
.aside-panel .btn { margin-top: 6px; }

/* about */
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 44px rgba(27,30,35,.18); }
.about-photo img { width: 100%; }
.about-photo figcaption { font-size: 13.5px; color: var(--ink-soft); padding: 10px 4px 0; }
.cred-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cred-table th, .cred-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #dde0e4; }
.cred-table th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.cred-table td:first-child { font-weight: 600; }
.cred-table .mono { font-family: var(--mono); font-size: 14px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.contact-card {
  background: var(--white); border: 1px solid #d8dce0; border-radius: var(--radius);
  padding: 26px 24px; text-align: center;
}
.contact-card .c-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 8px;
}
.contact-card a.c-big {
  font-family: var(--body); font-weight: 800; font-size: clamp(19px, 2.4vw, 24px);
  color: var(--ink); text-decoration: none; word-break: break-word;
}
.contact-card a.c-big:hover { color: var(--copper-deep); }
.contact-card p { font-size: 14.5px; color: var(--ink-soft); margin: 8px 0 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--iron-deep); color: var(--steel-dim); padding: clamp(40px, 6vw, 64px) 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: clamp(28px, 4vw, 56px); margin-bottom: 36px;
}
.site-footer .nameplate { padding: 20px 24px; max-width: none; }
.site-footer .nameplate .np-co { font-size: 13px; }
.site-footer h3 {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--steel-dim); font-weight: 500; margin-bottom: 14px;
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--steel); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--white); }
.footer-contact { font-style: normal; font-size: 15px; line-height: 1.9; }
.footer-contact a { color: var(--steel); text-decoration: none; }
.footer-contact a:hover { color: var(--white); }
.footer-legal {
  border-top: 1px solid var(--gunmetal-edge); padding-top: 22px;
  font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between;
}
.footer-legal a { color: var(--steel-dim); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- work gallery ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.work-item {
  margin: 0; background: var(--white); border: 1px solid #d8dce0;
  border-radius: var(--radius); overflow: hidden;
}
.work-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-item figcaption { font-size: 14px; color: var(--ink-soft); padding: 10px 14px 12px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .work-grid { grid-template-columns: 1fr; } }
