/* ═══════════════════════════════════════════════════════
   Copper Stream Electric — "Forged" design system (v2)
   Ground-up rebuild 2026-07-19. Warm graphite + copper,
   editorial layout, hairline current-lines. No glow-cards.
   ═══════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted) ── */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ── */
:root {
  --ink: #0F0D0B;          /* warm brown-black page ground */
  --ink-2: #171310;        /* elevated surface */
  --ink-3: #1F1A15;        /* highest surface */
  --bone: #EDE6DC;         /* primary text — warm porcelain */
  --bone-dim: #ADA396;
  --mute: #6E6459;
  --copper: #C87533;
  --copper-hot: #E39A5B;
  --copper-deep: #8F5222;
  --line: rgba(237, 230, 220, 0.09);
  --copper-line: rgba(200, 117, 51, 0.45);
  --ok: #7FB069;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --container: 1240px;
  --pad: clamp(72px, 12vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.4s;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.75;
  background: var(--ink);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; border: none; outline: none; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }

/* ── The current-line: the site's signature ── */
.current-rule {
  height: 1px;
  border: none;
  background:
    linear-gradient(90deg,
      transparent 0%,
      var(--copper-line) 20%,
      #FFD9A8 50%,
      var(--copper-line) 80%,
      transparent 100%) 0 0 / 200% 100%,
    var(--line);
  animation: current-flow 6s linear infinite;
}
@keyframes current-flow {
  from { background-position: 200% 0, 0 0; }
  to   { background-position: -200% 0, 0 0; }
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper-hot);
  margin-bottom: 22px;
}
.kicker::after { content: ''; flex: 0 0 56px; height: 1px; background: var(--copper-line); }
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--copper-hot); margin-bottom: 22px;
}
.section-label::before { content: none; }
.section-label::after { content: ''; flex: 0 0 56px; height: 1px; background: var(--copper-line); }

.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  color: var(--bone);
  margin-bottom: 24px;
  max-width: 18ch;
}
.section-title .highlight, .highlight {
  background: linear-gradient(100deg, var(--copper-hot), var(--copper) 60%, var(--copper-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-subtitle { color: var(--bone-dim); max-width: 58ch; font-size: 1.06rem; }
.prose p { color: var(--bone-dim); margin-bottom: 1.1em; max-width: 62ch; }
.prose strong { color: var(--bone); font-weight: 600; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  border-radius: 3px;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--copper); color: #16100A; }
.btn-primary:hover { background: var(--copper-hot); transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--line); color: var(--bone); }
.btn-secondary:hover { border-color: var(--copper-line); color: var(--copper-hot); }
.btn-icon { width: 18px; height: 18px; }

/* ── Navigation ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.nav::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.nav.scrolled { background: rgba(15, 13, 11, 0.9); backdrop-filter: blur(18px); padding: 12px 0; }
.nav.scrolled::after { opacity: 1; }
.nav .container { display: flex; align-items: center; gap: 36px; }
.nav-logo { margin-right: auto; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bone-dim);
  padding: 4px 0;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--copper);
}
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  color: var(--copper-hot);
}
.nav-phone svg { width: 16px; height: 16px; }
.nav-estimate-btn { padding: 11px 22px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--bone); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero (home) ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--ink) 30%, rgba(15,13,11,0.55) 62%, rgba(15,13,11,0.25) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero-description { color: var(--bone-dim); max-width: 54ch; font-size: 1.1rem; margin-bottom: 38px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-rule { max-width: 520px; margin-bottom: 22px; }
.hero-points { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-points span {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ── Page hero (subpages) ── */
.page-hero {
  position: relative;
  padding: 170px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-photo { position: absolute; inset: 0; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.16; }
.page-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(15,13,11,0.4) 55%, var(--ink) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { font-size: 0.85rem; color: var(--mute); margin-bottom: 18px; }
.crumbs a { color: var(--bone-dim); }
.crumbs a:hover { color: var(--copper-hot); }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); max-width: 20ch; margin-bottom: 20px; }
.page-hero-sub { color: var(--bone-dim); max-width: 60ch; font-size: 1.06rem; }

/* ── Sections ── */
.section-pad { padding: var(--pad) 0; position: relative; }
.section-pad.alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.two-col img { border-radius: 4px; border: 1px solid var(--line); }

/* ── Checklists ── */
.checklist { margin: 26px 0; display: grid; gap: 13px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--bone-dim);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 16px;
  height: 1px;
  background: var(--copper);
}

/* ── Steps ── */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 18px; }
.step-card { background: var(--ink); padding: 34px 28px; transition: background var(--dur) var(--ease); }
.step-card:hover { background: var(--ink-2); }
.step-num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--copper-line);
  line-height: 1;
  margin-bottom: 18px;
}
.step-card h4 { font-size: 1.05rem; margin-bottom: 10px; }
.step-card p { font-size: 0.92rem; color: var(--bone-dim); line-height: 1.65; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--copper);
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 24px; color: var(--bone-dim); max-width: 64ch; }

/* ── Price bands ── */
.price-band { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.price-row {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.5fr;
  gap: 18px;
  align-items: baseline;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.price-row:hover { background: var(--ink-2); }
.price-name { font-weight: 600; }
.price-range { font-family: var(--display); font-weight: 600; font-size: 1.14rem; color: var(--copper-hot); white-space: nowrap; }
.price-note { color: var(--mute); font-size: 0.92rem; }
.price-disclaimer { padding: 16px 30px; color: var(--mute); font-size: 0.84rem; background: var(--ink-2); }

/* ── Case / feature panels ── */
.case-card, .feature-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  background: var(--ink);
}
.case-card:hover, .feature-card:hover { border-color: var(--copper-line); transform: translateY(-2px); }
.case-card img { aspect-ratio: 16/10; object-fit: cover; border: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.case-body { padding: 26px 28px; }
.case-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.case-body p { color: var(--bone-dim); font-size: 0.95rem; }

/* ── CTA band ── */
.cta-band { border-top: 1px solid var(--line); padding: 84px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FFD9A8 50%, transparent) 0 0 / 200% 100%;
  animation: current-flow 6s linear infinite;
}
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); max-width: 24ch; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Forms ── */
.contact-form { display: grid; gap: 20px; margin-top: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: grid; gap: 8px; }
.form-group label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.form-group input, .form-group textarea, .form-group select {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 16px;
  color: var(--bone);
  transition: border-color var(--dur) var(--ease);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--copper); }
.form-group select { appearance: none; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 76px 0 36px; background: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--mute); font-size: 0.92rem; max-width: 40ch; }
.footer-column h4 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-hot);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-column ul { display: grid; gap: 11px; }
.footer-column a { color: var(--bone-dim); font-size: 0.94rem; transition: color var(--dur) var(--ease); }
.footer-column a:hover { color: var(--bone); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--mute);
  font-size: 0.84rem;
}

/* ── Reveal motion (fade-once, JS adds .visible) ── */
.js .fade-in, .js .fade-in-left, .js .fade-in-right {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.js .fade-in-left { transform: translateX(-14px); }
.js .fade-in-right { transform: translateX(14px); }
.js .visible { opacity: 1; transform: none; }
.js .delay-1 { transition-delay: 0.1s; }
.js .delay-2 { transition-delay: 0.2s; }
.js .delay-3 { transition-delay: 0.3s; }

/* ── Home: services index ── */
.svc-index { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.svc-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px 34px;
  background: var(--ink);
  transition: background var(--dur) var(--ease);
}
.svc-row:hover { background: var(--ink-2); }
.svc-row:hover .svc-go { color: var(--copper-hot); transform: translateX(4px); }
.svc-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.5rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--copper-line);
}
.svc-row h3 { font-size: 1.2rem; margin-bottom: 6px; }
.svc-row p { color: var(--bone-dim); font-size: 0.94rem; max-width: 70ch; }
.svc-go { font-family: var(--display); color: var(--mute); transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }

/* ── Home: proof strip / stats ── */
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.proof-cell { background: var(--ink); padding: 34px 30px; }
.proof-cell .n { font-family: var(--display); font-size: 2.2rem; font-weight: 600; color: var(--copper-hot); line-height: 1.1; }
.proof-cell .l { color: var(--mute); font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; font-family: var(--display); }

/* ── Reviews ── */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.review-card { border-left: 2px solid var(--copper); padding: 8px 0 8px 26px; }
.review-card blockquote { color: var(--bone-dim); font-size: 1rem; margin-bottom: 14px; }
.review-card cite { font-style: normal; font-family: var(--display); font-size: 0.88rem; color: var(--mute); }
.review-card cite strong { color: var(--bone); font-weight: 600; }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid figure { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform 0.6s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption { padding: 14px 18px; font-size: 0.88rem; color: var(--mute); border-top: 1px solid var(--line); }

/* ── Contact info block ── */
.contact-info { display: grid; gap: 22px; }
.contact-info .ci { border: 1px solid var(--line); border-radius: 4px; padding: 24px 26px; }
.contact-info .ci h4 { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper-hot); margin-bottom: 8px; font-weight: 500; }
.contact-info .ci a, .contact-info .ci p { color: var(--bone-dim); }
.contact-info .ci a:hover { color: var(--copper-hot); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-phone span { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 1.3rem;
    z-index: 999;
  }
  .review-grid { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr auto; }
  .svc-num { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 22px; }
}

/* ── Motion discipline ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .fade-in, .js .fade-in-left, .js .fade-in-right { opacity: 1 !important; transform: none !important; }
  .current-rule, .cta-band::before { animation: none !important; }
}
