/* Veteran Electric LLC — inner pages (Projects, Contact)
   Loaded after styles.css; reuses its tokens, buttons, header, footer and section rhythm. */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: kenburns 26s ease-in-out infinite alternate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
      90deg,
      rgba(7, 11, 20, 0.96) 0%,
      rgba(7, 11, 20, 0.86) 42%,
      rgba(7, 11, 20, 0.45) 100%
    ),
    linear-gradient(0deg, rgba(7, 11, 20, 0.95), transparent 45%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    50% 70% at 82% 0%,
    rgba(90, 162, 255, 0.4),
    transparent 70%
  );
  animation: skyflash 8s 2s infinite;
}
.page-hero .wrap {
  padding-block: calc(var(--head) + clamp(40px, 6vw, 80px))
    clamp(44px, 6vw, 72px);
  display: grid;
  gap: 22px;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 6.6vw, 5.4rem);
  max-width: 15ch;
}
.page-hero h1 span {
  color: var(--blue-hi);
  text-shadow: 0 0 30px rgba(31, 107, 255, 0.55);
}
.page-hero .sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--silver);
  max-width: 58ch;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.crumbs a {
  color: var(--silver);
  text-decoration: none;
}
.crumbs a:hover {
  color: #fff;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--blue-hi);
}
.crumbs [aria-current] {
  color: var(--amber);
}
@media (max-width: 760px) {
  .page-hero::before {
    background: linear-gradient(
      180deg,
      rgba(7, 11, 20, 0.7) 0%,
      rgba(7, 11, 20, 0.92) 50%,
      rgba(7, 11, 20, 0.98) 100%
    );
  }
}

/* Stat meters under the hero */
.meters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(199, 209, 224, 0.14);
  border: 1px solid rgba(199, 209, 224, 0.14);
  max-width: 900px;
}
.meter {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.meter b {
  font: 800 clamp(2rem, 3.6vw, 2.8rem) / 1 var(--font-display);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.meter b small {
  font-size: 0.5em;
  color: var(--blue-hi);
  margin-left: 2px;
}
.meter span {
  font: 500 0.72rem/1.35 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}
@media (max-width: 760px) {
  .meters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Featured project ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 920px) {
  .feature {
    grid-template-columns: 1fr;
  }
}
.feature-media {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 60px -34px rgba(7, 11, 20, 0.7);
  max-width: 480px;
}
.feature-media img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.feature-media figcaption {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid rgba(255, 159, 28, 0.6);
  font: 500 0.7rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.callouts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.callouts li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
}
.callouts .k {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--blue-hi);
  font: 500 0.8rem/1 var(--font-mono);
}
.callouts b {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.callouts p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Gallery extras ---------- */
.filters button .ct {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font: 500 0.72rem/1 var(--font-mono);
}
.filters button[aria-pressed="true"] .ct {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.gallery-note {
  margin-top: 16px;
  font: 500 0.8rem/1.5 var(--font-mono);
  color: var(--muted);
}

/* ---------- Category cards ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 860px) {
  .cats {
    grid-template-columns: 1fr;
  }
}
.cat {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 12px;
  background: #0b1427;
  border: 1px solid rgba(199, 209, 224, 0.14);
  transition: border-color 0.25s, transform 0.25s;
}
.cat:hover {
  border-color: var(--blue-hi);
  transform: translateY(-3px);
}
.cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
}
.cat-body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 22px 24px;
}
.cat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.cat-top span:last-child {
  color: var(--mist);
}
.cat h3 {
  font-size: 1.6rem;
}
.cat p {
  color: var(--silver);
  font-size: 0.94rem;
  line-height: 1.55;
}
.cat ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.cat li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #e6ecf5;
  font-size: 0.9rem;
  line-height: 1.45;
}
.cat li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px rgba(255, 159, 28, 0.8);
}
.cat a {
  justify-self: start;
  margin-top: 4px;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cat a:hover {
  color: var(--amber-hi);
  text-decoration: underline;
}
@media (max-width: 520px) {
  .cat {
    grid-template-columns: 1fr;
  }
  .cat img {
    height: 180px;
  }
}

/* ---------- Standards checklist (inspection tag) ---------- */
.standards {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 920px) {
  .standards {
    grid-template-columns: 1fr;
  }
}
.tag-card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -34px rgba(7, 11, 20, 0.5);
}
.tag-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.tag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--text);
  font: 500 0.74rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tag-head b {
  color: var(--ok);
}
.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.tag-list li:last-child {
  border-bottom: 0;
}
.tag-list svg {
  width: 22px;
  height: 22px;
  color: var(--ok);
  margin-top: 2px;
}
.tag-list b {
  display: block;
  font-weight: 600;
}
.tag-list span {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Prep checklist (project planner) ---------- */
.prep {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 920px) {
  .prep {
    grid-template-columns: 1fr;
  }
}
.prep-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 24px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
}
.prep-card:nth-child(2) {
  border-top-color: var(--amber);
}
.prep-card:nth-child(3) {
  border-top-color: var(--ok);
}
.prep-card svg {
  width: 30px;
  height: 30px;
  color: var(--blue);
}
.prep-card h3 {
  font-size: 1.5rem;
}
.prep-card ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact: channels ---------- */
.channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1000px) {
  .channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .channels {
    grid-template-columns: 1fr;
  }
}
.channel {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px 22px;
  border-radius: 12px;
  background: rgba(13, 24, 48, 0.82);
  border: 1px solid rgba(199, 209, 224, 0.16);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.channel:hover {
  border-color: var(--blue-hi);
  transform: translateY(-3px);
  background: rgba(17, 32, 64, 0.9);
}
.channel.primary {
  border-color: rgba(255, 159, 28, 0.6);
  background: linear-gradient(
    160deg,
    rgba(255, 159, 28, 0.18),
    rgba(13, 24, 48, 0.85) 60%
  );
}
.channel.primary:hover {
  border-color: var(--amber);
}
.channel .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border: 1px solid rgba(90, 162, 255, 0.4);
  color: var(--blue-hi);
}
.channel.primary .ic {
  border-color: rgba(255, 159, 28, 0.6);
  color: var(--amber);
}
.channel .ic svg {
  width: 22px;
  height: 22px;
}
.channel .k {
  font: 500 0.7rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.channel.primary .k {
  color: var(--amber);
}
.channel b {
  font: 800 1.55rem/1.05 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.channel p {
  color: var(--silver);
  font-size: 0.9rem;
  line-height: 1.5;
}
.channel .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}
.channel .go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.channel:hover .go svg {
  transform: translateX(3px);
}

/* ---------- Contact: timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--blue-hi) 0 6px,
    transparent 6px 10px
  );
  background-size: 2px 20px;
  animation: flowv 0.6s linear infinite;
  opacity: 0.6;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 22px;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline .dot {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  border: 2px solid var(--blue-hi);
  color: #fff;
  font: 500 0.8rem/1 var(--font-mono);
}
.timeline li:last-child .dot {
  border-color: var(--ok);
}
.timeline b {
  display: block;
  font: 800 1.3rem/1.1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 4px 0 4px;
}
.timeline p {
  color: var(--silver);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ---------- Contact: photo guide ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1000px) {
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .shots {
    grid-template-columns: 1fr;
  }
}
.shot {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 20px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.shot .frame {
  position: relative;
  height: 110px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--blue-hi);
  overflow: hidden;
}
.shot .frame::before,
.shot .frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--amber);
}
.shot .frame::before {
  left: 10px;
  top: 10px;
  border-right: 0;
  border-bottom: 0;
}
.shot .frame::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}
.shot .frame svg {
  width: 42px;
  height: 42px;
}
.shot h3 {
  font-size: 1.3rem;
}
.shot p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Contact: safety box ---------- */
.safety {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 12px;
  background: #fff6f2;
  border: 1.5px solid rgba(196, 50, 10, 0.35);
  border-left: 6px solid var(--err);
}
.safety .ic {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--err);
  color: #fff;
}
.safety .ic svg {
  width: 28px;
  height: 28px;
}
.safety h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.safety .cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 14px;
}
.safety h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--err);
}
.safety ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 5px;
  color: #3a2a24;
  font-size: 0.95rem;
}
.safety .fine {
  grid-column: 1/-1;
  font-size: 0.86rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .safety {
    grid-template-columns: 1fr;
  }
  .safety .cols {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact: town checker ---------- */
.checker {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 30px 60px -34px rgba(7, 11, 20, 0.7);
}
.checker label {
  font: 500 0.74rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.checker-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.checker input {
  flex: 1 1 220px;
  min-height: 54px;
  padding: 13px 16px;
  border-radius: var(--r);
  border: 1.5px solid rgba(199, 209, 224, 0.25);
  background: #0b1427;
  color: #fff;
  font: 400 1rem/1.4 var(--font-body);
}
.checker input::placeholder {
  color: var(--mist);
}
.checker input:focus {
  outline: none;
  border-color: var(--blue-hi);
  box-shadow: 0 0 0 3px rgba(90, 162, 255, 0.2);
}
.verdict {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(199, 209, 224, 0.14);
  color: var(--silver);
  font-size: 0.95rem;
}
.verdict i {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--mist);
}
.verdict.yes {
  border-color: rgba(18, 183, 106, 0.5);
  color: #fff;
}
.verdict.yes i {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.verdict.maybe {
  border-color: rgba(255, 159, 28, 0.55);
  color: #fff;
}
.verdict.maybe i {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}
.verdict a {
  color: var(--amber);
}
.checker .towns li {
  background: #0b1427;
  border-color: rgba(199, 209, 224, 0.16);
  color: var(--silver);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.checker .towns li:hover,
.checker .towns li.hit {
  border-color: var(--blue-hi);
  color: #fff;
}
.checker .towns li:first-child {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- Contact: availability board ---------- */
.board {
  display: grid;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.board-row:last-child {
  border-bottom: 0;
}
.board-row b {
  font-weight: 600;
}
.board-row small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: #ecfdf3;
  color: #067647;
}
.state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.state.blue {
  background: #eaf1ff;
  color: #1557d6;
}
.state.amber {
  background: #fff1db;
  color: #8a4b00;
}

/* ---------- Shared: CTA panel ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 14px;
  background: linear-gradient(115deg, #0a1a3f 0%, var(--ink) 70%);
  color: #fff;
  box-shadow: 0 34px 70px -34px rgba(7, 11, 20, 0.7);
}
.cta-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 320px;
  height: 240px;
  background: url("img/mark.webp") center/contain no-repeat;
  opacity: 0.08;
  transform: rotate(-8deg);
  pointer-events: none;
}
.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.cta-panel p {
  color: var(--silver);
  margin-top: 10px;
  max-width: 52ch;
}
.cta-panel .btn-row {
  position: relative;
  z-index: 1;
}
.cta-panel .btn-line {
  color: #fff;
  border-color: rgba(199, 209, 224, 0.6);
}
.cta-panel .btn-line:hover {
  background: #fff;
  color: var(--ink);
}
@media (max-width: 860px) {
  .cta-panel {
    grid-template-columns: 1fr;
  }
}

/* Contact form column on its own page */
.form-col {
  display: grid;
  gap: 22px;
  align-content: start;
}
.aside-stack {
  display: grid;
  gap: 26px;
  align-content: start;
}
.aside-stack .eyebrow {
  margin-bottom: -6px;
}
.on-dark h2.small {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}
.faq-dark {
  display: grid;
  gap: 10px;
}
.checker .towns li {
  padding: 0;
}
.checker .towns button {
  padding: 7px 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
}
@media (max-width: 760px) {
  .page-hero .btn-row .btn {
    flex: 1 1 100%;
  }
}
