/* ============================================================
   Barger Electric — bargerelectricnwa.com
   Design system: charcoal / white / orange, Rajdhani display,
   wire-inspired details, restrained motion.
   ============================================================ */

:root {
  --charcoal: #232323;
  --charcoal-2: #2c2c2c;
  --ink: #1a1a1a;
  --white: #ffffff;
  --paper: #f6f5f2;
  --paper-2: #efede8;
  --orange: #fd6711;          /* logo orange — graphic accents, text on charcoal */
  --orange-strong: #c14e0a;   /* accessible orange — buttons & text on white */
  --orange-strong-hover: #a64308;
  --text: #333333;
  --muted: #5f5b56;
  --muted-on-dark: #b9b5ae;
  --line: #e2ded7;
  --line-dark: #3a3a3a;
  --radius: 6px;
  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(26, 26, 26, .05), 0 8px 24px rgba(26, 26, 26, .07);
  --ease: cubic-bezier(.44, 0, .56, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--orange-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-strong-hover); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.1rem; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: .75rem 1.25rem;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--white); }

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--charcoal); color: var(--muted-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark strong { color: var(--white); }
.section--dark a:not(.btn) { color: var(--orange); }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-strong);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
}
.section--dark .eyebrow { color: var(--orange); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head p { font-size: 1.1rem; color: var(--muted); margin-bottom: 0; }
.section--dark .section-head p { color: var(--muted-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  min-height: 52px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--orange-strong); color: var(--white); }
.btn--primary:hover { background: var(--orange-strong-hover); color: var(--white); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--ink); color: var(--white); }
.btn--outline { border-color: var(--charcoal); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--orange-strong); color: var(--orange-strong); }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn--outline-light:hover { border-color: var(--orange); color: var(--orange); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 132px; height: auto; }
@media (max-width: 900px) { .brand img { width: 118px; } }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a.nav-link:hover { color: var(--orange-strong); }
.main-nav a.nav-link[aria-current="page"] { color: var(--orange-strong); border-bottom-color: var(--orange); }
.header-cta { display: inline-flex; align-items: center; gap: .75rem; }
.header-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--orange-strong); }
.header-cta .btn { padding: .6rem 1.15rem; min-height: 44px; font-size: .95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .header-phone { display: none; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a.nav-link { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .main-nav a.nav-link[aria-current="page"] { border-bottom-color: var(--line); color: var(--orange-strong); }
  .main-nav .nav-cta-mobile { margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
}
@media (min-width: 901px) {
  .main-nav .nav-cta-mobile { display: none; }
}

/* Keep navigation usable until its event handlers are installed. */
@media (max-width: 900px) {
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .main-nav {
    display: flex;
    position: static;
    width: 100%;
    box-shadow: none;
  }
  .main-nav.is-open { max-height: calc(100dvh - 7rem); overflow-y: auto; padding-bottom: 6rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .5;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 .u-swash { position: relative; white-space: nowrap; color: var(--orange-strong); }
.hero h1 .u-swash svg {
  position: absolute;
  left: -2%;
  bottom: -.22em;
  width: 104%;
  height: .36em;
  overflow: visible;
}
.hero h1 .u-swash svg path {
  stroke: var(--orange);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
}
.hero h1 .u-swash svg .spark { stroke-width: 4; }
.hero h1 .u-swash svg .spark--yellow { stroke: #ffc93c; }
.hero h1 .u-swash svg .spark-dot { fill: var(--orange); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.75rem; }
.hero .btn-row { margin-bottom: 1rem; }
.hero-note { font-size: .95rem; color: var(--muted); margin: 0; }

/* Fact panel (charcoal card) */
.fact-panel {
  background: var(--charcoal);
  color: var(--muted-on-dark);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  position: relative;
}
.fact-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 2rem; right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.fact-panel h2 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .7rem 0;
  margin: 0;
  border-bottom: 1px solid var(--line-dark);
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list .node {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: .5rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(253, 103, 17, .18);
}
.fact-list strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.08rem; letter-spacing: .04em; text-transform: uppercase; }
.fact-list span { font-size: .95rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Wire divider ---------- */
.wire-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-block: 0;
  color: var(--line);
}
.wire-divider::before, .wire-divider::after {
  content: "";
  height: 2px;
  background: currentColor;
  flex: 1;
}
.wire-divider .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

/* ---------- Duo cards (residential / commercial) ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

.duo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  text-decoration: none;
  color: var(--text);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.duo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange); color: var(--text); }
.duo-card .tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-strong);
  margin-bottom: .5rem;
}
.duo-card h3 { font-size: 1.7rem; text-transform: uppercase; margin-bottom: .35rem; }
.duo-card p { color: var(--muted); }
.duo-card ul { color: var(--text); margin-bottom: 1.5rem; }
.duo-card .go {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-strong);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.duo-card .go svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.duo-card:hover .go svg { transform: translateX(5px); }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .card-grid--2 { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  color: var(--orange-strong);
}
.svc-card h3 { margin-bottom: .4rem; }
.svc-card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Experience band ---------- */
.exp-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .exp-grid { grid-template-columns: 1fr; } }
.exp-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 16vw, 11rem);
  line-height: .9;
  color: var(--orange);
  margin: 0;
}
.exp-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.value-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.value-list li { display: flex; gap: .9rem; margin: 0; align-items: flex-start; }
.value-list .node { flex: none; width: 10px; height: 10px; margin-top: .5rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(253,103,17,.18); }
.value-list strong { color: var(--white); }

/* ---------- Service area chips ---------- */
.area-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 0;
  margin: 0 0 1.25rem;
}
.area-chips li {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}
.section--dark .area-chips li { background: transparent; border-color: var(--line-dark); color: var(--white); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: .03em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: "";
  position: absolute;
  background: var(--orange-strong);
  top: 50%; left: 50%;
  transition: transform .2s var(--ease);
}
.faq summary .plus::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.faq summary .plus::after { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq details p { padding: 0 0 1.25rem; margin: 0; color: var(--muted); max-width: 44rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .section-head { margin-inline: auto; text-align: center; }
.cta-band .eyebrow { justify-content: center; }
.cta-band .btn-row { justify-content: center; }
.cta-band .alt { margin-top: 1.25rem; font-size: 1rem; color: var(--muted-on-dark); }
.cta-band .alt a { color: var(--orange); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.field .req { color: var(--orange-strong); }
.field .hint { font-size: .88rem; color: var(--muted); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #89847d;
  border-radius: var(--radius);
  padding: .8rem .95rem;
  width: 100%;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange-strong);
  box-shadow: 0 0 0 3px rgba(193, 78, 10, .15);
}
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .error { font-size: .88rem; color: #b3261e; display: none; }
.field.show-error .error { display: block; }

fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-chip { position: relative; }
.radio-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.radio-chip span {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.1rem;
  border: 1.5px solid #89847d;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .95rem;
  color: var(--text);
  transition: all .15s var(--ease);
}
.radio-chip input:checked + span {
  border-color: var(--orange-strong);
  background: var(--orange-strong);
  color: var(--white);
}
.radio-chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-weight: 500;
}
.form-status.is-success { display: block; background: #e9f5ec; border: 1px solid #bfe3c9; color: #1d6b34; }
.form-status.is-error { display: block; background: #fdecea; border: 1px solid #f5c6c0; color: #8c1d18; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Contact page layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}
.contact-card .icon { flex: none; width: 26px; height: 26px; color: var(--orange-strong); margin-top: .2rem; }
.contact-card h3 { font-size: 1.1rem; margin: 0 0 .15rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.contact-card a { font-weight: 600; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--charcoal);
  color: var(--muted-on-dark);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); margin-bottom: .4em; }
.page-hero p { font-size: 1.15rem; max-width: 44rem; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--orange); }
.page-hero .hero-wires { opacity: .25; }

/* ---------- Prose lists with nodes ---------- */
.node-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.node-list li { display: flex; gap: .8rem; margin: 0; align-items: flex-start; }
.node-list .node { flex: none; width: 9px; height: 9px; margin-top: .55rem; border-radius: 50%; background: var(--orange-strong); box-shadow: 0 0 0 4px rgba(193,78,10,.12); }
.section--dark .node-list .node { background: var(--orange); box-shadow: 0 0 0 4px rgba(253,103,17,.18); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--muted-on-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem) 6rem;
  font-size: .98rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo-chip {
  display: inline-block;
  background: var(--white);
  border-radius: 8px;
  padding: .6rem .9rem;
  margin-bottom: 1rem;
}
.footer-logo-chip img { width: 132px; }
.site-footer h2, .site-footer h3 {
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: var(--muted-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-tag { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .75rem; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  font-size: .9rem;
}

/* ---------- Mobile call/text bar ---------- */
.mobile-action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: .75rem;
  padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(35, 35, 35, .97);
  backdrop-filter: blur(6px);
}
.mobile-action-bar .btn { flex: 1; min-height: 50px; }
@media (max-width: 760px) {
  .mobile-action-bar { display: flex; }
  body { padding-bottom: 4.4rem; }
}

/* ---------- Reveal animation (only when JS is available) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

html.js .u-swash svg .wire-line {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  transition: stroke-dashoffset .9s var(--ease) .35s;
}
html.js .is-loaded .u-swash svg .wire-line, html.js .reveal.is-visible .u-swash svg .wire-line { stroke-dashoffset: 0; }

/* Spark burst at the end of the wire */
@keyframes spark-flicker {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
.u-swash .spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: spark-flicker 1.5s ease-in-out infinite;
}
.u-swash .sparks .spark:nth-child(2) { animation-delay: .3s; }
.u-swash .sparks .spark:nth-child(3) { animation-delay: .6s; }
.u-swash .spark-dot { animation: node-pulse 1.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .u-swash svg path { stroke-dashoffset: 0; }
}

/* ============================================================
   ANIMATION UPGRADE — entrance choreography, flowing current,
   hover energy. All gated behind html.js and reduced-motion.
   ============================================================ */

/* ---------- Keyframes ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}
@keyframes line-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes wire-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes current-flow {
  to { stroke-dashoffset: -256; }
}
@keyframes node-pulse {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}
@keyframes node-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(253, 103, 17, .18); }
  50%      { box-shadow: 0 0 0 9px rgba(253, 103, 17, .3); }
}
@keyframes icon-zap {
  0%   { transform: scale(1) rotate(0); }
  35%  { transform: scale(1.14) rotate(-4deg); }
  70%  { transform: scale(.97) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253, 103, 17, .5); }
  55%      { box-shadow: 0 0 0 10px rgba(253, 103, 17, 0); }
}
@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-90px, 70px) scale(1.15); }
}

/* ---------- Hero entrance choreography ---------- */
html.js .hero .eyebrow  { animation: rise-in .7s var(--ease) .05s both; }
html.js .hero h1        { animation: rise-in .8s var(--ease) .18s both; }
html.js .hero-sub       { animation: rise-in .8s var(--ease) .34s both; }
html.js .hero .btn-row  { animation: rise-in .8s var(--ease) .5s both; }
html.js .hero-note      { animation: rise-in .8s var(--ease) .64s both; }
html.js .hero .eyebrow::before {
  transform-origin: left;
  animation: line-grow .55s var(--ease) .55s both;
}

/* Interior page heroes get a lighter entrance */
html.js .page-hero .eyebrow { animation: rise-in .6s var(--ease) .05s both; }
html.js .page-hero h1       { animation: rise-in .7s var(--ease) .16s both; }
html.js .page-hero p        { animation: rise-in .7s var(--ease) .3s both; }
html.js .page-hero .eyebrow::before {
  transform-origin: left;
  animation: line-grow .5s var(--ease) .45s both;
}

/* ---------- Wire motifs: draw-in + flowing current ---------- */
html.js .hero-wires .wire-base {
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  animation: wire-draw 1.9s var(--ease) forwards;
}
html.js .hero-wires .wire-base:nth-child(2) { animation-delay: .15s; }
html.js .hero-wires .wire-base:nth-child(3) { animation-delay: .3s; }
html.js .hero-wires .wire-base:nth-child(4) { animation-delay: .45s; }
html.js .hero-wires .wire-base:nth-child(5) { animation-delay: .6s; }

.hero-wires .flow {
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 16 240;
  opacity: .85;
  animation: current-flow 5s linear infinite;
}
.hero-wires .pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 2.4s ease-in-out infinite;
}

/* ---------- Buttons: shine sweep + glow ---------- */
.btn { position: relative; overflow: hidden; }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg);
  transition: left .55s var(--ease);
  pointer-events: none;
}
.btn--primary:hover::after { left: 135%; }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(193, 78, 10, .38); }
.btn--dark:hover { box-shadow: 0 8px 22px rgba(26, 26, 26, .3); }
.btn--outline:hover, .btn--outline-light:hover { box-shadow: 0 6px 18px rgba(193, 78, 10, .18); }

/* Mobile call button gently pulses to draw the thumb */
.mobile-action-bar .btn--primary { animation: cta-pulse 2.8s ease-in-out infinite; }

/* ---------- Cards: top-line sweep + icon zap ---------- */
.svc-card, .duo-card { position: relative; overflow: hidden; }
.svc-card::before, .duo-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #ffb47e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.svc-card:hover::before, .duo-card:hover::before { transform: scaleX(1); }
.svc-card:hover .icon { animation: icon-zap .55s var(--ease); }
.svc-card .icon { transition: color .2s var(--ease); }

/* ---------- Fact panel: staggered list + glowing nodes ---------- */
html.js .fact-list li {
  opacity: 0;
  transform: translateX(22px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html.js .fact-panel.is-visible .fact-list li { opacity: 1; transform: none; }
html.js .fact-panel.is-visible .fact-list li:nth-child(1) { transition-delay: .1s; }
html.js .fact-panel.is-visible .fact-list li:nth-child(2) { transition-delay: .22s; }
html.js .fact-panel.is-visible .fact-list li:nth-child(3) { transition-delay: .34s; }
html.js .fact-panel.is-visible .fact-list li:nth-child(4) { transition-delay: .46s; }
html.js .fact-panel.is-visible .fact-list li:nth-child(5) { transition-delay: .58s; }
.fact-list .node { animation: node-glow 2.6s ease-in-out infinite; }
.fact-list li:nth-child(2) .node { animation-delay: .5s; }
.fact-list li:nth-child(3) .node { animation-delay: 1s; }
.fact-list li:nth-child(4) .node { animation-delay: 1.5s; }
.fact-list li:nth-child(5) .node { animation-delay: 2s; }

/* ---------- Experience number glow ---------- */
.exp-number { text-shadow: 0 0 26px rgba(253, 103, 17, .35); }

/* ---------- Service area chips: staggered pop ---------- */
html.js .area-chips li {
  opacity: 0;
  transform: scale(.8);
  transition: opacity .45s var(--ease), transform .45s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
html.js .area-chips.is-visible li { opacity: 1; transform: scale(1); }
html.js .area-chips.is-visible li:nth-child(1) { transition-delay: .05s; }
html.js .area-chips.is-visible li:nth-child(2) { transition-delay: .13s; }
html.js .area-chips.is-visible li:nth-child(3) { transition-delay: .21s; }
html.js .area-chips.is-visible li:nth-child(4) { transition-delay: .29s; }
html.js .area-chips.is-visible li:nth-child(5) { transition-delay: .37s; }
html.js .area-chips.is-visible li:nth-child(6) { transition-delay: .45s; }
.area-chips li:hover { border-color: var(--orange); color: var(--orange-strong); transform: translateY(-2px); }
.section--dark .area-chips li:hover { color: var(--orange); }

/* ---------- Eyebrow line grows in on scroll ---------- */
html.js .section-head .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease) .25s;
}
html.js .section-head.is-visible .eyebrow::before { transform: scaleX(1); }

/* ---------- FAQ: plus rotates into an x ---------- */
.faq summary .plus { transition: transform .25s var(--ease); }
.faq details[open] summary .plus { transform: rotate(135deg); }
.faq details[open] summary { color: var(--orange-strong); }

/* ---------- CTA band: drifting warm glow ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 103, 17, .14), transparent 65%);
  top: -240px;
  right: -160px;
  pointer-events: none;
  animation: glow-drift 9s ease-in-out infinite alternate;
}
.cta-band .container { position: relative; z-index: 1; }

/* ---------- Header: compact + shadow on scroll ---------- */
.header-inner { transition: min-height .25s var(--ease); }
.site-header { transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 4px 22px rgba(26, 26, 26, .1); }
.site-header.is-scrolled .header-inner { min-height: 60px; }

/* ---------- Desktop nav: underline sweep ---------- */
@media (min-width: 901px) {
  .main-nav a.nav-link { position: relative; border-bottom: none; }
  .main-nav a.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--ease);
  }
  .main-nav a.nav-link:hover::after,
  .main-nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
}
