/* =========================================================
   Fogarty Construction — stylesheet
   Palette grounded in the existing brand red (#b63134) plus
   a charcoal/concrete/steel industrial palette pulled from
   the subject matter (excavation, demolition, heavy equipment).
   ========================================================= */

:root {
  --charcoal: #201f1d;
  --charcoal-2: #2c2b28;
  --steel: #4a4744;
  --steel-line: #d9d5cc;
  --concrete: #eceae4;
  --paper: #f8f7f4;
  --brand-red: #b63134;
  --brand-red-dark: #8f2426;
  --amber: #c8842a;
  --ink: #201f1d;
  --ink-soft: #55524c;
  --white: #ffffff;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --max-width: 1180px;
  --radius: 3px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-red); text-decoration: none; }
a:hover { color: var(--brand-red-dark); text-decoration: underline; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}
p { margin: 0 0 1em; max-width: 68ch; }
button { font-family: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--charcoal);
  color: #cfcac2;
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px;
  flex-wrap: wrap; gap: 6px 20px;
}
.topbar a { color: #cfcac2; }
.topbar a:hover { color: var(--white); }
.topbar .phone { color: var(--white); font-weight: 600; letter-spacing: 0.03em; display: inline-flex; align-items: center; gap: 5px; }
.topbar .phone::before { content: "\260E  "; }
.flag-icon { width: 16px; height: 11px; border-radius: 1px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,0.18); }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 60;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo img { height: 84px; width: auto; }
.logo { flex-shrink: 0; }

nav.primary-nav {
  background: linear-gradient(180deg, #c23f42 0%, var(--brand-red) 45%, var(--brand-red-dark) 100%);
  border-top: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
nav.primary-nav > .wrap { padding-top: 0; padding-bottom: 0; }
nav.primary-nav > .wrap > ul {
  list-style: none;
  display: flex; justify-content: center;
  gap: 4px;
}
nav.primary-nav > .wrap > ul > li { position: relative; }
nav.primary-nav > .wrap > ul > li > a {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #fff;
  padding: 17px 24px;
}
nav.primary-nav > .wrap > ul > li > a:hover,
nav.primary-nav > .wrap > ul > li.active > a {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.16);
}
nav.primary-nav .submenu {
  list-style: none;
  position: absolute; top: 100%; left: 0;
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-top: 3px solid var(--brand-red);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  display: none;
  padding: 6px 0;
}
nav.primary-nav li:hover > .submenu,
nav.primary-nav li:focus-within > .submenu { display: block; }
nav.primary-nav .submenu a {
  display: block; padding: 10px 18px;
  font-family: var(--font-body); font-size: 0.94rem;
  color: var(--ink);
}
nav.primary-nav .submenu a:hover { background: var(--concrete); color: var(--brand-red); }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--charcoal);
  padding: 8px 10px; border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block; width: 24px; height: 3px; background: var(--charcoal);
  margin: 4px 0;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 1240px) {
  .nav-toggle { display: inline-block; }
  .logo img { height: 56px; }
  header.site-header { border-bottom: 4px solid var(--brand-red); }
  nav.primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(320px, 86vw);
    height: 100vh;
    background: var(--charcoal);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    padding: 90px 0 40px;
  }
  nav.primary-nav.open { transform: translateX(0); }
  nav.primary-nav > .wrap > ul { flex-direction: column; gap: 0; }
  nav.primary-nav > .wrap > ul > li > a {
    color: #f1efe9; font-size: 1.15rem; padding: 14px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  nav.primary-nav > .wrap > ul > li > a:hover, nav.primary-nav > .wrap > ul > li.active > a {
    background: rgba(255,255,255,0.06); color: var(--white);
  }
  nav.primary-nav .submenu {
    position: static; display: block; box-shadow: none;
    border: none; background: rgba(0,0,0,0.2);
    min-width: 0;
  }
  nav.primary-nav .submenu a { color: #cfcac2; padding: 10px 40px; }
  nav.primary-nav .submenu a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
  .nav-scrim {
    display: none;
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,0.5); z-index: 55;
  }
  .nav-scrim.open { display: block; }
}

/* ---------- Hero / Slider ---------- */
.hero-frame {
  background: var(--charcoal);
  padding: 48px 24px 40px;
}
.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 22px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-left {
  flex: 1 1 560px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--charcoal-2);
  min-height: 160px;
  aspect-ratio: 17 / 5;
  border-radius: 6px;
  box-shadow: 0 14px 22px -12px rgba(0,0,0,0.65);
}
.hero-slider .slide {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slider .slide.is-active { opacity: 1; }
.hero-dots {
  position: absolute; z-index: 3; right: 14px; bottom: 12px;
  display: flex; gap: 7px;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8); background: transparent;
  padding: 0; cursor: pointer;
}
.hero-dots button.is-active { background: var(--brand-red); border-color: var(--brand-red); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(20,19,17,0.45); color: var(--white);
  border: none; width: 36px; height: 36px; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
}
.hero-arrow:hover { background: rgba(182,49,52,0.85); }
.hero-arrow.prev { left: 0; }
.hero-arrow.next { right: 0; }

.hero-copy {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: var(--white);
}
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  text-transform: uppercase;
  margin: 0 0 0.35em;
}
.hero-copy p { color: #e7e4dc; max-width: 54ch; font-size: 1.02rem; margin: 0; }
.hero-copy .btn { margin-top: 16px; align-self: flex-start; }

/* blueprint tracing of the old depot's gable woodwork, filling the empty space beside the copy */
.blueprint-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Hero side panel: equipment cycler + weather ---------- */
.hero-side {
  flex: 0 1 320px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.equip-cycle {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--steel-line);
  border-radius: 6px;
  padding-top: 24px;
  height: 110px;
  flex-shrink: 0;
  box-shadow: 0 10px 22px -12px rgba(0,0,0,0.5);
}
.equip-cycle-tag {
  position: absolute; top: 8px; left: 12px; z-index: 2;
  font-family: var(--font-display); font-size: 0.68rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft);
}
.equip-cycle::before, .equip-cycle::after {
  content: ""; position: absolute; top: 24px; bottom: 0; width: 46px; z-index: 2;
  pointer-events: none;
}
.equip-cycle::before { left: 0; background: linear-gradient(to right, var(--paper) 45%, rgba(248,247,244,0)); }
.equip-cycle::after { right: 0; background: linear-gradient(to left, var(--paper) 45%, rgba(248,247,244,0)); }
.equip-cycle-track {
  display: flex; align-items: center; gap: 32px;
  flex: 1;
  width: max-content;
  animation: equip-scroll 26s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.equip-cycle:hover .equip-cycle-track { animation-play-state: paused; }
.equip-cycle-track img {
  height: 34px; width: auto; max-width: 110px; object-fit: contain; flex-shrink: 0;
}
@keyframes equip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Quick puff of diesel smoke from the header logo during engine start-up */
.logo { position: relative; }
.logo-smoke {
  position: absolute; top: 6px; left: 100%; width: 4px; height: 4px;
  pointer-events: none;
}
.smoke-puff {
  position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle, rgba(35,33,30,0.88) 0%, rgba(35,33,30,0.5) 55%, rgba(35,33,30,0) 100%);
  opacity: 0;
  pointer-events: none;
}
.logo-smoke.is-smoking .smoke-puff.p1 { animation: logo-smoke-burst 0.9s ease-out 1; }
.logo-smoke.is-smoking .smoke-puff.p2 { animation: logo-smoke-burst 0.9s ease-out 1; animation-delay: 0.55s; }
.logo-smoke.is-smoking .smoke-puff.p3 { animation: logo-smoke-burst 0.9s ease-out 1; animation-delay: 1.1s; }
.logo-smoke.is-streaming .smoke-puff.s1 { animation: logo-smoke-stream 1.1s ease-out infinite; }
.logo-smoke.is-streaming .smoke-puff.s2 { animation: logo-smoke-stream 1.1s ease-out infinite; animation-delay: 0.37s; }
.logo-smoke.is-streaming .smoke-puff.s3 { animation: logo-smoke-stream 1.1s ease-out infinite; animation-delay: 0.74s; }
.logo-smoke.is-revving .smoke-puff.s1 { animation: logo-smoke-rev 0.5s ease-out infinite; }
.logo-smoke.is-revving .smoke-puff.s2 { animation: logo-smoke-rev 0.5s ease-out infinite; animation-delay: 0.17s; }
.logo-smoke.is-revving .smoke-puff.s3 { animation: logo-smoke-rev 0.5s ease-out infinite; animation-delay: 0.34s; }
@keyframes logo-smoke-burst {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  14%  { opacity: 0.7; }
  100% { opacity: 0; transform: translate(34px, -28px) scale(2.6); }
}
@keyframes logo-smoke-stream {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  16%  { opacity: 0.55; }
  100% { opacity: 0; transform: translate(30px, -26px) scale(2.2); }
}
@keyframes logo-smoke-rev {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.5); }
  12%  { opacity: 0.85; }
  100% { opacity: 0; transform: translate(40px, -34px) scale(3); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-smoke.is-smoking .smoke-puff,
  .logo-smoke.is-streaming .smoke-puff,
  .logo-smoke.is-revving .smoke-puff { animation: none; }
}

/* ---------- Weather / "startup" dashboard widget ---------- */
.weather-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--charcoal-2);
  border-radius: 6px;
  padding: 14px 16px 15px;
  color: var(--white);
  box-shadow: 0 10px 22px -12px rgba(0,0,0,0.55);
}
.weather-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0.55; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 24px);
}
.weather-card > * { position: relative; z-index: 1; }
.weather-head {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: #cfcac2;
  padding-bottom: 9px; margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,140,40,0.2);
  box-shadow: 0 1px 8px rgba(255,140,40,0.18);
}
.weather-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #8a3a1f; flex-shrink: 0;
  transition: background 0.4s ease;
}
.weather-dot.is-live {
  background: #3ad17d;
  animation: weather-pulse 2.2s ease-out infinite;
}
.dash-icons {
  position: absolute; right: 10px; bottom: 7px; z-index: 2;
  display: flex; gap: 8px;
}
.dash-icon {
  width: 15px; height: 15px; color: #4a4744;
  transition: color 0.4s ease, filter 0.4s ease;
  filter: none;
}
.dash-icon svg { width: 100%; height: 100%; display: block; }
.dash-icon.rabbit.is-lit { color: #ffab1f; filter: drop-shadow(0 0 3px rgba(255,171,31,0.7)); }
@keyframes weather-pulse {
  0% { box-shadow: 0 0 0 0 rgba(58,209,125,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(58,209,125,0); }
  100% { box-shadow: 0 0 0 0 rgba(58,209,125,0); }
}
.rivet {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 32%, #9a9793, #2c2b28 72%);
  box-shadow: 0 1px 1px rgba(0,0,0,0.7);
}
.rivet-tl { top: 7px; left: 7px; }
.rivet-tr { top: 7px; right: 7px; }
.rivet-bl { bottom: 7px; left: 7px; }
.rivet-br { bottom: 7px; right: 7px; }

/* Digital dashboard-style temperature readout, styled after an equipment gauge cluster */
.dash-readout {
  position: relative;
  margin-top: 12px;
  background: #0a0c0a;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 4px;
  padding: 7px 12px 6px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  box-shadow: inset 0 2px 7px rgba(0,0,0,0.85), inset 0 0 14px rgba(0,0,0,0.6);
}
.dash-label {
  font-family: var(--font-body); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: #8a6425;
  transition: opacity 0.25s ease;
}
.dash-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  width: 100%; gap: 10px;
}
.dash-value {
  font-family: "Courier New", monospace; font-weight: 700;
  font-size: 2.45rem; line-height: 1.15; letter-spacing: 0.03em;
  color: #ffab1f;
  text-shadow: 0 0 6px rgba(255,171,31,0.85), 0 0 16px rgba(255,171,31,0.4);
}
.dash-value.is-cranking { animation: crank-flicker 0.18s steps(1) infinite; }
@keyframes crank-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.dash-status-badge {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  padding-bottom: 5px; flex-shrink: 0;
}
.dash-status-label {
  font-family: var(--font-body); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: #6b665e;
  white-space: nowrap;
}
.dash-status-value {
  display: flex; align-items: center; gap: 5px;
  font-family: "Courier New", monospace; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: #7a756c;
  transition: color 0.4s ease;
  white-space: nowrap;
}
.dash-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #5c5951; flex-shrink: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.dash-status-value.is-running { color: #3ad17d; }
.dash-status-value.is-running .dash-status-dot {
  background: #3ad17d; box-shadow: 0 0 6px 1px rgba(58,209,125,0.65);
  animation: weather-pulse 2.2s ease-out infinite;
}
.dash-status {
  font-family: "Courier New", monospace; font-size: 0.75rem; letter-spacing: 0.02em;
  color: #c98f2e; padding-top: 4px; margin-top: 3px; width: 100%;
  padding-right: 48px;
  border-top: 1px dashed rgba(255,171,31,0.18);
  text-shadow: 0 0 4px rgba(255,171,31,0.35);
}

/* Fuel / power / boost / rpm gauges, styled as vertical equipment bar gauges */
.dash-gauges {
  display: flex; justify-content: center; gap: 14px;
  margin-top: 14px;
}
.gauge-v { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.gauge-v-track {
  position: relative; width: 12px; height: 72px; border-radius: 3px;
  background: #0a0c0a; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.85);
  overflow: hidden;
}
.gauge-v-ticks {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: repeating-linear-gradient(to top, rgba(255,255,255,0.16) 0 1px, transparent 1px 9px);
}
.gauge-v-max {
  position: absolute; top: 3px; left: 1px; right: 1px; height: 3px; border-radius: 1px;
  background: #e2434a; box-shadow: 0 0 4px rgba(226,67,74,0.85); z-index: 2;
}
.gauge-v-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%; z-index: 1;
  transition: height 1.6s cubic-bezier(0.4,0,0.2,1);
}
.gauge-v-fill.fuel { background: linear-gradient(0deg,var(--brand-red-dark),var(--brand-red)); box-shadow: 0 0 5px rgba(143,36,38,0.45); }
.gauge-v-fill.pwr { background: linear-gradient(0deg,#122747,#274d80); box-shadow: 0 0 5px rgba(39,77,128,0.4); }
.gauge-v-fill.boost { background: linear-gradient(0deg,var(--brand-red-dark),var(--brand-red)); box-shadow: 0 0 5px rgba(143,36,38,0.45); }
.gauge-v-fill.rpm { background: linear-gradient(0deg,#122747,#274d80); box-shadow: 0 0 5px rgba(39,77,128,0.4); }
.gauge-v-foot { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.gauge-v-label {
  font-family: var(--font-body); font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: #a8a49c;
}
.gauge-v-val { font-family: "Courier New", monospace; font-size: 0.69rem; color: #cfcac2; }

.weather-meta {
  display: flex; gap: 10px; margin-top: 10px;
  font-size: 0.76rem; color: #cfcac2; flex-wrap: wrap;
}
.dash-mini {
  font-family: "Courier New", monospace; font-size: 0.73rem; letter-spacing: 0.03em;
  background: #0a0c0a; border: 1px solid rgba(255,255,255,0.09); border-radius: 3px;
  padding: 3px 7px; color: #ffab1f; text-shadow: 0 0 5px rgba(255,171,31,0.7);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.8);
}
.dash-mini strong { font-weight: 700; }

/* "Fogarty Construction" nameplate, welded in with a subtle looping torch sweep */
.weld-plate {
  position: relative;
  margin: auto 0;
  padding: 13px 16px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #26241f 0%, #2c2b28 45%, #1e1d1b 100%);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.05), inset 0 -1px 4px rgba(0,0,0,0.6);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.weld-plate:hover {
  border-color: rgba(191,233,255,0.25);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.05), inset 0 -1px 4px rgba(0,0,0,0.6), 0 0 10px rgba(191,233,255,0.12);
}
.weld-text-wrap {
  position: relative; display: block; text-align: center;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.weld-text-base { display: block; color: #4a4744; }
.weld-text-lit {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: block;
  color: #f2f0ec;
  text-shadow: 0 0 6px rgba(191,233,255,0.65), 0 0 2px rgba(255,255,255,0.85);
  clip-path: inset(0 100% 0 0);
  animation: weld-clip 2.2s 0.15s ease-out 1 forwards;
}
.weld-spark {
  position: absolute; top: 50%; left: 1%;
  width: 5px; height: 5px; border-radius: 50%; margin-top: -2px;
  background: radial-gradient(circle, #ffffff 0%, #bfe9ff 40%, rgba(139,203,255,0) 72%);
  box-shadow: 0 0 6px 2px rgba(180,225,255,0.9), 0 0 14px 5px rgba(255,255,255,0.45);
  opacity: 0;
  animation: weld-spark-move 2.2s 0.15s ease-out 1 forwards;
}
@keyframes weld-clip {
  0%   { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0% 0 0); }
}
@keyframes weld-spark-move {
  0%   { left: 1%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { left: 99%; opacity: 1; }
  100% { left: 99%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .weld-text-lit { animation: none; clip-path: inset(0 0% 0 0); }
  .weld-spark { display: none; }
}

.weather-coords {
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-family: "Courier New", monospace; font-size: 0.7rem; letter-spacing: 0.02em;
  color: var(--brand-red); opacity: 0.95;
}
.weather-coords svg { width: 11px; height: 11px; flex-shrink: 0; }
.weather-updated { color: #8a827a; margin-left: auto; opacity: 0.85; }

@media (max-width: 900px) {
  .hero-slider { aspect-ratio: 17 / 5; }
  .hero-side { flex-basis: 100%; flex-direction: row; }
  .equip-cycle { flex: 1 1 50%; height: auto; }
  .weather-card { flex: 1 1 50%; }
}
.mobile-weather-section { display: none; }
@media (max-width: 640px) {
  .topbar { display: none; }
  .hero-frame { padding: 30px 16px 30px; }
  .logo img { height: 46px; }
  .hero-top { display: block; }
  .hero-left { display: block; width: 100%; max-width: 100%; min-width: 0; flex: none; }
  .hero-slider { width: 100%; max-width: 100%; }
  .hero-copy { display: block; width: 100%; max-width: 100%; margin-top: 24px; }
  .hero-side { display: block; width: 100%; max-width: 100%; margin-top: 16px; }
  .equip-cycle { width: 100%; max-width: 100%; height: 96px; margin-bottom: 16px; }
  .weather-card { width: 100%; max-width: 100%; }
  .hero-copy .btn { display: none; }
  .hero-arrow { width: 30px; height: 30px; font-size: 1rem; }
  .mobile-weather-section { display: block; padding: 36px 0; }
}


/* ---------- Trust strip ---------- */
.trust-strip {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.trust-item:first-child { border-left: none; }
.trust-item img { width: 26px; height: 26px; filter: invert(1) brightness(1.4); flex-shrink: 0; }
.trust-item span { color: #f1efe9; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.01em; }
@media (max-width: 720px) {
  .trust-strip .wrap { grid-template-columns: 1fr; }
  .trust-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
  .trust-item:first-child { border-top: none; }
}

/* ---------- Section basics ---------- */
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.section.on-concrete { background: var(--concrete); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.section-head .bar { width: 34px; height: 6px; background: var(--brand-red); flex-shrink: 0; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Services index grid ---------- */
.service-index { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--steel-line); border: 1px solid var(--steel-line); }
.service-index li { background: var(--white); }
.service-index a {
  display: flex; gap: 16px; padding: 22px 22px;
  color: var(--ink); align-items: baseline;
  height: 100%;
}
.service-index a:hover { background: var(--concrete); text-decoration: none; }
.service-index .num {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--steel-line);
  min-width: 2.2ch;
}
.service-index a:hover .num { color: var(--brand-red); }
.service-index .name { font-family: var(--font-display); font-size: 1.08rem; color: var(--charcoal); }
@media (max-width: 700px) {
  .service-index { grid-template-columns: 1fr; }
}

/* ---------- Cards / feature columns (home lower section) ---------- */
.feature-cols {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.feature-cols .col h3 { font-size: 1.15rem; }
.feature-cols .col p { color: var(--ink-soft); }
@media (max-width: 780px) {
  .feature-cols { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  background: var(--brand-red); color: var(--white);
  padding: 12px 22px; border: none; border-radius: var(--radius);
  letter-spacing: 0.02em; font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--brand-red-dark); color: var(--white); text-decoration: none; }
.btn.outline {
  background: transparent; color: var(--white); border: 2px solid var(--white);
}
.btn.outline:hover { background: var(--white); color: var(--charcoal); }
.btn.dark { background: var(--charcoal); }
.btn.dark:hover { background: #000; }
.btn.outline-red { background: transparent; color: var(--brand-red); border: 2px solid var(--brand-red); }
.btn.outline-red:hover { background: var(--brand-red); color: var(--white); }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
}
.page-hero .photo {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-size: cover; background-position: center;
  opacity: 0.38;
}
.page-hero .inner { position: relative; z-index: 1; padding: 40px 0 34px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.5rem, 3.4vw, 2.3rem); text-transform: uppercase; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: #cfcac2; margin-bottom: 10px; }
.breadcrumb a { color: #cfcac2; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Content layout ---------- */
.content-layout {
  display: grid; grid-template-columns: 2fr 1fr; gap: 44px;
  align-items: start;
}
@media (max-width: 860px) {
  .content-layout { grid-template-columns: 1fr; }
}
.sidebar {
  background: var(--white); border: 1px solid var(--steel-line);
  padding: 22px;
}
.sidebar h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--brand-red); padding-bottom: 10px; margin-bottom: 12px; }
.sidebar ul { list-style: none; }
.sidebar li { border-bottom: 1px solid var(--steel-line); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { display: block; padding: 9px 2px; color: var(--ink); }
.sidebar a:hover { color: var(--brand-red); text-decoration: none; }
.sidebar .call-out {
  margin-top: 18px; padding: 16px; background: var(--charcoal); color: var(--white); text-align: center;
}
.sidebar .call-out .num { font-family: var(--font-display); font-size: 1.3rem; display: block; margin: 6px 0 12px; }

.specialty-list { list-style: none; margin: 20px 0; }
.specialty-list li {
  padding: 10px 0 10px 26px; border-bottom: 1px solid var(--steel-line);
  position: relative;
}
.specialty-list li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 10px; height: 10px; background: var(--brand-red);
}
.specialty-list li:last-child { border-bottom: none; }

/* ---------- Technical diagram figure (pole barn anatomy, etc.) ---------- */
.tech-diagram {
  margin: 18px 0 0; padding: 14px; background: var(--charcoal);
  border-radius: 6px; border: 1px solid var(--steel-line);
}
.tech-diagram img { display: block; width: 100%; height: auto; border-radius: 3px; }
.tech-diagram figcaption {
  margin-top: 10px; font-size: 0.85rem; color: #cfcac2; line-height: 1.5;
}

/* ---------- Brand / equipment manufacturer grid ---------- */
.brand-grid {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin: 22px 0 0; padding: 0;
}
.brand-grid li {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--steel-line); border-radius: 6px;
  padding: 18px 14px; min-height: 90px;
}
.brand-grid img { max-width: 100%; max-height: 42px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 640px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Photo grids / lightbox ---------- */
.photo-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.photo-grid button {
  padding: 0; border: none; background: none; cursor: zoom-in; display: block; width: 100%;
  aspect-ratio: 4/3; overflow: hidden; position: relative;
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.photo-grid button:hover img { transform: scale(1.06); }
@media (max-width: 700px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-category { margin-bottom: 44px; }
.gallery-category h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.gallery-category h2::after { content: ""; flex: 1; height: 2px; background: var(--steel-line); }

.lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(12,11,10,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox .cap { color: #e7e4dc; text-align: center; margin-top: 12px; font-size: 0.95rem; }
.lightbox button.close {
  position: absolute; top: 18px; right: 22px; background: none; border: none;
  color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox button.lnav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: none; color: var(--white);
  width: 48px; height: 48px; font-size: 1.6rem; cursor: pointer;
}
.lightbox button.lnav:hover { background: rgba(182,49,52,0.8); }
.lightbox button.lprev { left: 18px; }
.lightbox button.lnext { right: 18px; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-block { background: var(--charcoal); color: var(--white); padding: 28px; }
.info-block h3 { color: var(--white); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.info-block p { color: #d8d4cb; }
.info-block a { color: var(--white); font-weight: 600; }
.info-block .addr { margin-bottom: 18px; }

form.contact-form { background: var(--white); border: 1px solid var(--steel-line); padding: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--steel-line); background: var(--paper);
  padding: 11px 12px; font-family: var(--font-body); font-size: 1rem; border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { border-color: var(--brand-red); outline: none; background: var(--white); }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: -6px; }

/* ---------- Blog / notice post ---------- */
.post-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 6px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--charcoal); color: #cfcac2; }
.footer-top { padding: 44px 0 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; } }
.footer-top h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--brand-red); padding-bottom: 10px; margin-bottom: 14px; }
.footer-top ul { list-style: none; }
.footer-top li { margin-bottom: 8px; }
.footer-top a { color: #cfcac2; }
.footer-top a:hover { color: var(--white); }
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { color: #b7b2a8; font-size: 0.92rem; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 34px; height: 34px; border: 1px solid #55524c; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #cfcac2; font-size: 0.85rem;
}
.social-row a:hover { border-color: var(--brand-red); color: var(--white); background: var(--brand-red); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0 90px;
  font-size: 0.85rem; color: #948f86;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
@media (min-width: 641px) { .footer-bottom { padding-bottom: 20px; } }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
}
@media (max-width: 640px) {
  .mobile-call-bar {
    display: none;
  }
}
