/* ============================================================
   CSS VARIABLES — change brand colours here
   ============================================================ */
:root {
  --yellow:      #F5C200;   /* Main accent / CTA yellow */
  --yellow-dark: #C49B00;   /* Yellow hover state */
  --black:       #0A0A0A;   /* True black */
  --dark-1:      #111111;   /* Page background */
  --dark-2:      #181818;   /* Card / section background */
  --dark-3:      #222222;   /* Lighter card background */
  --dark-4:      #2C2C2C;   /* Subtle hover background */
  --white:       #F8F6F0;   /* Off-white text */
  --red:         #C0281C;   /* Dispatch / urgent CTA red */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: var(--dark-1); color: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.section      { padding: 72px 64px; }
.section-hdr  { margin-bottom: 36px; }
.tag          { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: var(--yellow); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tag::before  { content: ''; display: block; width: 24px; height: 2px; background: var(--yellow); flex-shrink: 0; }
.heading      { font-family: 'Bebas Neue', sans-serif; font-size: clamp(40px, 5.5vw, 72px); line-height: 0.93; letter-spacing: 1px; }
.body-sm      { font-size: 16px; font-weight: 400; color: rgba(255,255,255,0.88); line-height: 1.8; margin-top: 10px; }
.btn          { display: inline-flex; align-items: center; gap: 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; padding: 13px 28px; cursor: pointer; border: none; transition: all .2s; -webkit-clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); }
.btn-yellow   { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-dark); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.btn-red      { background: var(--red); color: #fff; }
.btn-red:hover { background: #a02015; -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.22); clip-path: none; }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.pill         { display: inline-block; background: rgba(245,194,0,0.07); border: 1px solid rgba(245,194,0,0.22); font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); padding: 5px 13px; margin: 3px 3px 0 0; }
.reveal       { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
@media (max-width: 900px) { .section { padding: 52px 24px; } }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  height: 88px; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  padding: 0 44px;
  padding-left: max(44px, env(safe-area-inset-left));
  padding-right: max(44px, env(safe-area-inset-right));
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid rgba(245,194,0,0.12);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: border-color .3s;
  /* iOS Safari: force GPU compositing so the nav stays painted during scroll/modal toggle */
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  will-change: transform;
  /* iOS Safari: ensures element doesn't get accidentally hidden during repaint */
  visibility: visible !important;
  opacity: 1 !important;
}
/* Guarantee nav children remain visible regardless of parent state */
nav > * { visibility: visible !important; opacity: 1 !important; }
/* NAV LOGO — swap images/logo.png to update */
.nav-logo img { height: 78px; width: auto; display: block; }

/* Desktop nav links — horizontal row */
.nav-links { list-style: none; }
.nav-links a { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.88); -webkit-transition: color .2s; transition: color .2s; display: block; }
.nav-links a:hover { color: var(--yellow); }

/* Show as horizontal on desktop */
@media (min-width: 769px) {
  .nav-links { display: -webkit-flex; display: flex; gap: 24px; -webkit-align-items: center; align-items: center; }
}
/* nav-links mobile handled in main mobile block below */
@media (max-width: 768px) {
  .nav-links { display: none; }
}

.nav-btns { display: -webkit-flex; display: flex; gap: 10px; -webkit-align-items: center; align-items: center; }
.nbtn { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 11px 22px; cursor: pointer; border: none; -webkit-transition: all .2s; transition: all .2s; -webkit-clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; gap: 8px; }
.nbtn-y { background: var(--yellow); color: var(--black); }
.nbtn-y:hover { background: var(--yellow-dark); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.nbtn-r { background: var(--red); color: #fff; }
.nbtn-r:hover { background: #a02015; -webkit-transform: translateY(-2px); transform: translateY(-2px); }
@media (max-width: 580px) { nav { padding: 0 16px; } }

/* Hamburger button — hidden on desktop, shown on mobile via media query */
#hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 5px;
  margin-left: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  position: relative;
  z-index: 601;
}
#hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #ffffff;
  -webkit-transition: all .3s ease;
  transition: all .3s ease;
  border-radius: 2px;
  pointer-events: none;
}

/* ── Safari iOS specific fixes ── */
/* Prevent clip-path from blocking taps on Safari */
.nbtn, .btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}
/* All interactive elements — eliminate 300ms tap delay */
a, button, [onclick] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* Fix Safari iOS fixed positioning stutter */
nav {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
/* Prevent iOS font size auto-adjustment */
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ============================================================
   HERO SECTION
   To swap video: replace video/hero-video.mp4
   To change headline: find "We Move" below
   ============================================================ */
.hero { position: relative; height: 100vh; height: calc(var(--vh, 1vh) * 100); min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--black); }
.hero video { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; opacity: 0.9; -webkit-filter: contrast(1.08) saturate(1.1); filter: contrast(1.08) saturate(1.1); }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, rgba(10,10,10,0.72) 28%, rgba(10,10,10,0.05) 72%), linear-gradient(to top, rgba(10,10,10,0.80) 0%, rgba(10,10,10,0.12) 38%, transparent 65%); }
.hero-phone { position: absolute; top: 96px; right: 52px; z-index: 3; text-align: right; }
.hero-phone-lbl { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.hero-phone a { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--yellow); letter-spacing: 3px; display: block; transition: color .2s; line-height: 1; }
.hero-phone a:hover { color: var(--yellow-dark); }
.hero-body { position: relative; z-index: 2; padding: 0 64px 64px; max-width: 900px; }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(58px, 9vw, 118px); line-height: 0.88; letter-spacing: 2px; color: var(--white); margin: 10px 0 8px; }
.hero-title em { color: var(--yellow); font-style: normal; display: block; }
.hero-company { font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px, 5.5vw, 72px); color: var(--red); letter-spacing: 6px; line-height: 1; margin-bottom: 6px; display: block; }
.hero-tagline { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; color: rgba(255,255,255,0.7); letter-spacing: 3px; margin-bottom: 20px; }
.hero-desc { font-size: 17px; font-weight: 400; color: rgba(255,255,255,0.92); line-height: 1.8; max-width: 500px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { position: relative; z-index: 2; display: flex; border-top: 1px solid rgba(255,255,255,0.07); background: rgba(10,10,10,0.78); -webkit-backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hs { flex: 1; padding: 16px 24px; border-right: 1px solid rgba(255,255,255,0.06); }
.hs:last-child { border-right: none; }
.hs-num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--yellow); line-height: 1; }
.hs-lbl { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 2px; }
@media (max-width: 860px) { .hero-body { padding: 0 24px 52px; } .hero-phone { display: none; } .hero-stats { flex-wrap: wrap; } .hs { min-width: 50%; } }

/* ============================================================
   TICKER BANNER
   To add/remove items: copy or delete a <span class="ti"> below
   ============================================================ */
.ticker { background: var(--yellow); overflow: hidden; height: 40px; display: flex; align-items: center; }
.ticker-track { display: flex; -webkit-animation: ticker-scroll 42s linear infinite; animation: ticker-scroll 42s linear infinite; white-space: nowrap; }
@-webkit-keyframes ticker-scroll { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-50%); } }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ti { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--black); padding: 0 24px; display: flex; align-items: center; gap: 12px; }
.ti::after { content: '◆'; font-size: 6px; }

/* ============================================================
   ABOUT SECTION
   To swap the photo: change src="images/chance-creek.jpg"
   ============================================================ */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--dark-2); }
.about-left { padding: 72px 64px; }
.about-right { position: relative; overflow: hidden; min-height: 520px; }
.about-right img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; filter: brightness(0.78) grayscale(10%); transition: transform 8s ease; }
.about-right:hover img { -webkit-transform: scale(1.04); transform: scale(1.04); }
.about-fade { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, var(--dark-2) 0%, transparent 36%); }
.about-badge { position: absolute; bottom: 28px; right: 28px; background: var(--yellow); padding: 18px 26px; z-index: 2; }
.about-badge-num { font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--black); line-height: 1; }
.about-badge-lbl { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(0,0,0,0.75); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
.pillar { border-left: 3px solid var(--yellow); padding: 10px 14px; background: rgba(245,194,0,0.04); }
.pillar-title { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #ffffff; margin-bottom: 3px; }
.pillar-body { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.78); line-height: 1.55; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-left { padding: 52px 24px; } .about-right { min-height: 260px; } }

/* ============================================================
   SERVICES SECTION
   To add a service: copy a <div class="svc"> block below
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 28px; }
.svc { background: var(--dark-2); padding: 28px 26px; position: relative; overflow: hidden; transition: background .3s; cursor: default; }
.svc:hover { background: var(--dark-3); }
.svc::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--yellow); -webkit-transform: scaleX(0); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.svc:hover::after { -webkit-transform: scaleX(1); transform: scaleX(1); }
.svc-icon { font-size: 20px; margin-bottom: 10px; }
.svc-title { font-family: 'Barlow Condensed', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffffff; margin-bottom: 10px; line-height: 1.15; }
.svc-body { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.82); line-height: 1.7; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   EQUIPMENT & TRUCKING (side-by-side)
   ============================================================ */
.equip-truck { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.equip-panel { padding: 72px 56px; background: var(--dark-2); }
.equip-panel.alt { background: var(--dark-3); }
.eq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.eq-group-title { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--yellow); border-bottom: 1px solid rgba(245,194,0,0.18); padding-bottom: 8px; margin-bottom: 12px; }
.eq-list { list-style: none; }
.eq-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.9); transition: color .2s, padding-left .2s; cursor: default; }
.eq-item:last-child { border-bottom: none; }
.eq-item:hover { color: var(--yellow); padding-left: 6px; }
.eq-dot { width: 4px; height: 4px; background: var(--yellow); flex-shrink: 0; }
.mat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.mat { background: var(--dark-2); padding: 14px 16px; border-top: 2px solid var(--yellow); }
.mat-title { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 2px; }
.mat-sub { font-size: 11px; color: rgba(255,255,255,0.38); }
.locs { display: flex; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 900px) { .equip-truck { grid-template-columns: 1fr; } .equip-panel { padding: 52px 24px; } .eq-cols { grid-template-columns: 1fr; } }

/* ============================================================
   TERRITORY BAND
   ============================================================ */
.territory { background: var(--yellow); padding: 52px 64px; display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.territory-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(44px, 6vw, 84px); line-height: 0.9; color: var(--black); letter-spacing: 2px; flex: 1; min-width: 220px; }
.territory-right { flex: 1.4; min-width: 260px; }
.territory-body { font-size: 16px; font-weight: 500; color: rgba(0,0,0,0.88); line-height: 1.7; margin-bottom: 18px; }
.t-pill { display: inline-block; background: rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.18); font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--black); padding: 5px 12px; margin: 3px 3px 0 0; }
@media (max-width: 700px) { .territory { padding: 44px 24px; } }

/* ============================================================
   PROJECTS SECTION
   To add a project photo:
     1. Upload your image to /images/
     2. Copy a .proj-tile block below and change the img src
   Placeholder tiles (no photo yet) use class "proj-tile proj-ph"
   ============================================================ */
.proj-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 3px; margin-top: 28px; }
.proj-tile { position: relative; overflow: hidden; background: var(--dark-3); }
.proj-tile.tall { grid-row: span 2; }
.proj-tile img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; filter: brightness(0.78); transition: transform .6s, filter .4s; }
.proj-tile:hover img { -webkit-transform: scale(1.06); transform: scale(1.06); filter: brightness(0.8); }
.proj-grad { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, transparent 55%); }
.proj-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 26px; z-index: 2; }
.proj-cat { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
.proj-name { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: #ffffff; line-height: 1.05; letter-spacing: 1px; }
.proj-loc { font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 3px; }
.proj-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; padding: 16px; }
.proj-ph-icon { font-size: 26px; opacity: 0.22; }
.proj-ph-name { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.2); }
.proj-ph-loc { font-size: 10px; color: rgba(255,255,255,0.12); margin-top: 2px; }
/* Notable projects list below photo grid */
.notable-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 24px; }
.notable { background: var(--dark-2); padding: 16px 20px; border-left: 3px solid rgba(245,194,0,0.28); transition: border-color .25s, background .25s; cursor: default; }
.notable:hover { border-color: var(--yellow); background: var(--dark-3); }
.notable-name { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffffff; margin-bottom: 3px; }
.notable-meta { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.7); }
@media (max-width: 860px) { .proj-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .proj-tile.tall { grid-row: span 1; min-height: 220px; } .proj-tile { min-height: 180px; } .notable-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .proj-grid { grid-template-columns: 1fr; } .notable-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CLIENTS MARQUEE
   To add/remove clients: copy or delete a <span class="chip">
   (each client must appear TWICE — once in each half of the track)
   ============================================================ */
.marquee { overflow: hidden; position: relative; margin-top: 28px; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 72px; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(to right, var(--dark-1), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--dark-1), transparent); }
.marquee-track { display: flex; -webkit-animation: marquee-scroll 34s linear infinite; animation: marquee-scroll 34s linear infinite; white-space: nowrap; }
.marquee-track:hover { -webkit-animation-play-state: paused; animation-play-state: paused; }
@-webkit-keyframes marquee-scroll { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-50%); } }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.chip { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.72); padding: 0 28px; border-right: 1px solid rgba(255,255,255,0.1); display: inline-flex; align-items: center; height: 48px; transition: color .3s; white-space: nowrap; }
.chip:hover { color: var(--yellow); }

/* ============================================================
   CERTIFICATIONS
   To swap a logo: update the src="images/..." in each cert-card
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 28px; }
.cert-card { background: var(--dark-3); padding: 32px 30px; border-top: 3px solid var(--yellow); }
.cert-logo { height: 80px; display: flex; align-items: center; margin-bottom: 16px; }
.cert-logo img { max-height: 80px; width: auto; max-width: 180px; -o-object-fit: contain; object-fit: contain; }
.cert-name { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1px; color: var(--yellow); margin-bottom: 8px; }
.cert-desc { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.85); line-height: 1.75; }
@media (max-width: 700px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .cert-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HEALTH & SAFETY  +  DESIGN CAPABILITIES (side-by-side)
   ============================================================ */
.safety-design { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2px; }
.safety-panel { padding: 72px 56px; }
.safety-panel.dark1 { background: var(--dark-1); }
.safety-panel.dark2 { background: var(--dark-2); }
.cor-box { background: var(--yellow); padding: 24px 28px; margin-top: 28px; }
.cor-box-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; color: var(--black); letter-spacing: 1px; margin-bottom: 6px; }
.cor-box-body { font-size: 14px; font-weight: 500; color: rgba(0,0,0,0.85); line-height: 1.7; }
.safety-pts { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.safety-pt { display: flex; gap: 14px; align-items: flex-start; background: var(--dark-2); padding: 14px 18px; transition: background .25s; }
.safety-pt:hover { background: var(--dark-3); }
.safety-icon { font-size: 18px; flex-shrink: 0; width: 30px; text-align: center; margin-top: 1px; }
.safety-pt-title { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ffffff; margin-bottom: 3px; }
.safety-pt-body { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.82); line-height: 1.65; }
.design-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 28px; }
.design-card { background: var(--dark-3); padding: 24px 22px; border-bottom: 3px solid transparent; transition: border-color .3s, background .3s; cursor: default; }
.design-card:hover { background: var(--dark-4); border-color: var(--yellow); }
.design-icon { font-size: 22px; margin-bottom: 12px; }
.design-title { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #ffffff; margin-bottom: 8px; }
.design-body { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.82); line-height: 1.65; }
@media (max-width: 860px) { .safety-design { grid-template-columns: 1fr; } .safety-panel { padding: 52px 24px; } }

/* ============================================================
   CAREERS SECTION
   To update pay rates: find the .job-rate spans below and edit
   To add a position: copy a .job-card block
   ============================================================ */
.careers-wrap { background: var(--dark-3); padding: 72px 64px; }
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 28px; }
.job-card { background: var(--dark-2); padding: 26px 24px; border-top: 3px solid var(--yellow); transition: background .25s; cursor: default; }
.job-card:hover { background: var(--dark-1); }
.job-title { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--white); letter-spacing: 1px; line-height: 1; margin-bottom: 6px; }
.job-rate { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 700; color: var(--yellow); margin-bottom: 12px; }
.job-perks { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.job-perks li { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.85); display: flex; gap: 7px; align-items: flex-start; }
.job-perks li::before { content: '✓'; color: var(--yellow); font-size: 10px; margin-top: 2px; flex-shrink: 0; }
.job-apply { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); cursor: pointer; background: none; border: none; padding: 0; transition: opacity .2s; }
.job-apply:hover { opacity: 0.65; }
.careers-cta { background: var(--yellow); padding: 28px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.careers-cta-title { font-family: 'Bebas Neue', sans-serif; font-size: 26px; color: var(--black); letter-spacing: 1px; margin-bottom: 4px; }
.careers-cta-body { font-size: 15px; font-weight: 500; color: rgba(0,0,0,0.85); max-width: 500px; line-height: 1.65; }
.benefits { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.82); }
@media (max-width: 860px) { .careers-wrap { padding: 52px 24px; } .jobs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .jobs-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; }
.contact-left { background: var(--dark-2); padding: 72px 56px; }
.contact-right { background: var(--dark-3); padding: 72px 56px; }
.c-office-name { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--yellow); margin-bottom: 5px; margin-top: 20px; }
.c-office-detail { font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.88); line-height: 1.75; }
.c-office-detail a { color: var(--white); transition: color .2s; }
.c-office-detail a:hover { color: var(--yellow); }
/* Form Tabs */
.form-tabs { display: flex; gap: 2px; margin: 16px 0 20px; }
.form-tab { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 8px 18px; cursor: pointer; border: none; background: var(--dark-4); color: rgba(255,255,255,0.72); transition: all .2s; -webkit-clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%); clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%); }
.form-tab.active { background: var(--yellow); color: var(--black); }
.form-panel { display: none; flex-direction: column; gap: 12px; }
.form-panel.active { display: flex; }
.fr2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { display: flex; flex-direction: column; gap: 4px; }
.fl { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.fi, .fsel, .fta { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); color: var(--white); font-family: 'Barlow', sans-serif; font-size: 14px; padding: 10px 13px; outline: none; transition: border-color .2s; width: 100%; appearance: none; }
.fi:focus, .fsel:focus, .fta:focus { border-color: var(--yellow); }
.fsel option { background: var(--dark-2); }
.fta { min-height: 90px; resize: vertical; }
.file-zone { border: 1px dashed rgba(255,255,255,0.13); padding: 16px; text-align: center; cursor: pointer; transition: border-color .2s; background: rgba(255,255,255,0.02); }
.file-zone:hover { border-color: var(--yellow); }
.file-zone input { display: none; }
.fz-icon { font-size: 20px; margin-bottom: 4px; }
.fz-text { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.fz-sub { font-size: 11px; color: rgba(255,255,255,0.2); margin-top: 2px; }
.file-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.file-item { background: rgba(245,194,0,0.07); border: 1px solid rgba(245,194,0,0.18); padding: 6px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: rgba(255,255,255,0.55); }
.file-remove { background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer; font-size: 14px; padding: 0; }
.file-remove:hover { color: var(--red); }
.dispatch-note { background: var(--dark-4); padding: 12px 16px; border-left: 3px solid var(--red); font-size: 13px; color: rgba(255,255,255,0.48); }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } .contact-left, .contact-right { padding: 52px 24px; } .fr2 { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--black); padding: 48px 64px 24px; border-top: 1px solid rgba(245,194,0,0.1); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.fb-logo img { height: 84px; width: auto; margin-bottom: 12px; }
.fb-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 10px; }
.fb-body { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.6); line-height: 1.75; }
.fc-title { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.fc-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.fc-links a { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.62); transition: color .2s; }
.fc-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; font-size: 12px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,0.16); margin-left: 16px; }
.footer-bottom a:hover { color: rgba(255,255,255,0.45); }
@media (max-width: 860px) { footer { padding: 44px 24px 20px; } .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.84); z-index: 500; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-overlay.open { display: -webkit-flex; display: flex; }
/* Prevent body scroll when modal is open. scrollbar-gutter keeps layout stable so nav buttons don't shift. */
html { scrollbar-gutter: stable; }
body.modal-open { overflow: hidden; }
.modal { background: var(--dark-2); max-width: 540px; width: 92%; padding: 40px; position: relative; border-top: 4px solid var(--yellow); max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: rgba(255,255,255,0.35); font-size: 20px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--white); }
.modal-title { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--white); letter-spacing: 1px; margin-bottom: 4px; }
.modal-sub { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.78); margin-bottom: 22px; line-height: 1.6; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   MOBILE — Safari iOS + Android comprehensive fix
   ============================================================ */
@media (max-width: 768px) {

  /* NAV — fixed compact single row, no wrapping ever */
  nav {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0 14px !important;
    -webkit-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow: visible !important;
  }
  .nav-logo img { height: 42px !important; width: auto !important; }
  .nav-btns { gap: 5px !important; -webkit-flex-shrink: 0 !important; flex-shrink: 0 !important; }
  .nbtn { font-size: 9px !important; padding: 7px 10px !important; letter-spacing: 1px !important; -webkit-flex-shrink: 0 !important; flex-shrink: 0 !important; }

  /* HAMBURGER — force show */
  #hamburger { display: -webkit-flex !important; display: flex !important; -webkit-flex-shrink: 0 !important; flex-shrink: 0 !important; margin-left: 6px !important; }

  /* NAV DROPDOWN */
  /* Mobile nav dropdown */
  .nav-links {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(10,10,10,0.98) !important;
    z-index: 599 !important;
    border-bottom: 3px solid #F5C200 !important;
    -webkit-box-shadow: 0 8px 32px rgba(0,0,0,0.7) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7) !important;
  }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.08) !important; width: 100% !important; list-style: none !important; }
  .nav-links a {
    display: block !important;
    padding: 18px 24px !important;
    font-size: 16px !important;
    letter-spacing: 3px !important;
    color: rgba(255,255,255,0.92) !important;
    width: 100% !important;
    text-transform: uppercase !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 600 !important;
  }
  .nav-links a:active { background: rgba(245,194,0,0.1) !important; color: var(--yellow) !important; }

  /* HERO — switch to flex-start so content shows at top, below nav */
  .hero {
    -webkit-justify-content: flex-start !important;
    justify-content: flex-start !important;
    min-height: 100vh !important;
  }
  .hero-body {
    padding-top: 76px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    -webkit-box-sizing: border-box !important;
    box-sizing: border-box !important;
  }
  .hero-stats { margin-top: auto !important; -webkit-flex-wrap: wrap !important; flex-wrap: wrap !important; }
  .hero-company { font-size: clamp(20px, 6vw, 34px) !important; letter-spacing: 2px !important; margin-bottom: 6px !important; }
  .hero-title { font-size: clamp(38px, 10vw, 62px) !important; margin-top: 6px !important; margin-bottom: 6px !important; }
  .hero-tagline { font-size: 12px !important; margin-bottom: 10px !important; }
  .hero-desc { font-size: 13px !important; max-width: 100% !important; margin-bottom: 16px !important; line-height: 1.6 !important; }
  .hero-actions { -webkit-flex-direction: column !important; flex-direction: column !important; gap: 8px !important; }
  .hero-actions .btn { -webkit-justify-content: center !important; justify-content: center !important; width: 100% !important; }
  .hero-phone { display: none !important; }
  .hs { min-width: 50% !important; padding: 10px 12px !important; }
  .hs-num { font-size: 22px !important; }
  .hs-lbl { font-size: 8px !important; }

  /* ABOUT */
  .about { grid-template-columns: 1fr !important; }
  .about-left { padding: 48px 20px !important; }
  .about-right { min-height: 220px !important; }
  .pillars { grid-template-columns: 1fr !important; }

  /* SERVICES */
  .svc-grid { grid-template-columns: 1fr !important; }

  /* EQUIPMENT */
  .equip-truck { grid-template-columns: 1fr !important; }
  .equip-panel { padding: 44px 20px !important; }
  .eq-cols { grid-template-columns: 1fr !important; }

  /* TERRITORY */
  .territory { padding: 40px 20px !important; -webkit-flex-direction: column !important; flex-direction: column !important; gap: 20px !important; }

  /* PROJECTS */
  .proj-grid { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .proj-tile.tall { grid-row: span 1 !important; min-height: 220px !important; }
  .proj-tile { min-height: 180px !important; }
  .notable-grid { grid-template-columns: 1fr !important; }

  /* CERTIFICATIONS */
  .cert-grid { grid-template-columns: 1fr !important; }

  /* SAFETY + DESIGN */
  .safety-design { grid-template-columns: 1fr !important; }
  .safety-panel { padding: 44px 20px !important; }
  .design-grid { grid-template-columns: 1fr 1fr !important; }

  /* CAREERS */
  .careers-wrap { padding: 44px 20px !important; }
  .jobs-grid { grid-template-columns: 1fr !important; }
  .careers-cta { -webkit-flex-direction: column !important; flex-direction: column !important; padding: 20px !important; }

  /* CONTACT */
  .contact-wrap { grid-template-columns: 1fr !important; }
  .contact-left { padding: 44px 20px !important; }
  .contact-right { padding: 44px 20px !important; }

  /* FOOTER */
  footer { padding: 36px 20px 20px !important; }
  .footer-top { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* MODAL */
  .modal { padding: 24px 18px !important; width: 96% !important; max-height: 85vh !important; }

  /* TICKER */
  .ticker { height: 34px !important; }
  .ti { font-size: 10px !important; padding: 0 14px !important; }

  /* SECTION */
  .section { padding: 48px 20px !important; }
}

@media (max-width: 480px) {
  .hero-company { font-size: clamp(20px, 6vw, 32px); }
  .hero-title { font-size: clamp(42px, 11vw, 64px); }
  .design-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .hs { min-width: 50%; }
  .btn { font-size: 11px; padding: 12px 20px; }
  .nbtn { font-size: 9px; padding: 6px 10px; }
}

/* ============================================================
   ACCESSIBILITY — Reduced Motion Support
   Respects the user's OS setting (Settings → Accessibility →
   Reduce Motion on iOS/macOS, similar on Windows/Android).
   Kills decorative animation while keeping the interface usable.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions globally */
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Show reveal elements immediately — no fade-in animation */
  .reveal {
    opacity: 1 !important;
    -webkit-transform: none !important;
    transform: none !important;
  }

  /* Stop the ticker and marquee tracks (they otherwise scroll infinitely) */
  .ticker-track,
  .marquee-track {
    -webkit-animation: none !important;
    animation: none !important;
  }

  /* Stop autoplay video — user can play manually if desired */
  video[autoplay] {
    /* Browsers honor this with the prefers-reduced-motion media query */
  }

  /* Disable smooth scroll behavior on html element */
  html {
    scroll-behavior: auto !important;
  }
}
