*,
*::before,
*::after { box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  font-family:Arial,Helvetica,sans-serif;
  color:#222;
  background:#f3f4f6;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

main{flex:1 0 auto}

.container{
  max-width:1080px;
  margin:0 auto;
  padding:0 16px;
  width:100%;
}

@media (min-width:1024px){
  .container{
    min-width:1080px;
    width:clamp(1080px, 90vw, 1200px);
  }
}

img,iframe,video,svg{
  max-width:100%;
  height:auto;
  display:block;
}

a{color:inherit}

/* ===== Topbar ===== */
.topbar{
  background:#2d2f33;
  color:#e8e8e8;
  font-size:13px;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
}

.topbar-left{
  opacity:.95;
  font-style:italic;
}

.topbar-right{
  display:flex;
  gap:10px;
}

.pill,
.back-pill,
.job-pill{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:#d61f26;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  border:0;
  outline:0;
}

.pill{font-weight:700}

.job-pill{
  background:#0000cc;
  float:right;
  padding:10px 16px;
  font-size:16px;
}

.pill:hover,
.back-pill:hover,
.job-pill:hover,
.btn:hover,
.search button:hover{
  filter:brightness(.95);
}

/* ===== Header ===== */
.site-header{
  width:100%;
  padding:2px 0 0 0;
  position:relative;
  background:linear-gradient(to right,#0b3b8c 5%,#0052aa 20%,#0052aa 80%,#0b3b8c 95%);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:10px 16px;
  background:linear-gradient(to right,#c9cdd3 0%,#e9edf3 20%,#e9edf3 80%,#c9cdd3 100%);
  margin-bottom:0;
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}

.logo-link{
  display:inline-flex;
  line-height:0;
}

.site-logo{
  display:block;
  height:64px;
  width:auto;
  max-width:100%;
  max-height:100%;
}

/* ===== Primary nav ===== */
.primary-nav{
  background:linear-gradient(to right,#0b3b8c 5%,#0052aa 20%,#0052aa 80%,#0b3b8c 95%);
  padding:0;
}

.nav-inner{
  display:flex;
  gap:40px;
  padding:12px 0;
}

.primary-nav a{
  padding:11px 16px;
  line-height:1.1;
}

.nav-links{
  display:flex;
  gap:40px;
  align-items:center;
}

.navlink{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  letter-spacing:.3px;
}

.navlink:hover,
.navlink.is-active{
  text-decoration:underline;
}

/* ===== Mobile nav toggle ===== */
.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
}

.hamburger{
  width:24px;
  height:2px;
  background:#000;
  display:block;
  position:relative;
}

.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  left:0;
  width:24px;
  height:2px;
  background:#000;
}

.hamburger::before{top:-7px}
.hamburger::after{top:7px}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ===== Page shell ===== */
.page{
  padding:26px 0 40px;
}

.content-shell{
  background:#fff;
  border:1px solid #e1e4ea;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  padding:0;
  overflow:visible;
}

/* ===== Footer ===== */
footer.footer{
  background:#2d2f33;
  color:#e8e8e8;
  border-top:4px solid #0b3b8c;
  flex-shrink:0;
  position:static;
  bottom:auto;
  z-index:auto;
  background:linear-gradient(to right,#0d0f13 0%,#2d2f33 20%,#2d2f33 80%,#0d0f13 100%);
}

footer.footer .footer-inner{padding:26px 0 30px}

footer.footer .footer-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  margin-bottom:22px;
}

footer.footer .footer-left{
  display:flex;
  flex-wrap:wrap;
  gap:14px 18px;
}

footer.footer .footer-left a{
  color:#e8e8e8;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  opacity:.9;
}

footer.footer .footer-left a:hover{
  text-decoration:underline;
  opacity:1;
}

footer.footer .footer-right{
  text-align:right;
  font-size:13px;
  line-height:1.6;
  opacity:.95;
  white-space:nowrap;
}

footer.footer .footer-phone{font-weight:700}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);
  padding:22px 8px 0;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:30px;
}

.footer-bottom-left{
  font-size:12px;
  opacity:.85;
}

.footer-sites{
  display:flex;
  align-items:center;
  gap:46px;
  flex-wrap:wrap;
  justify-content:center;
  row-gap:18px;
}

.footer-sites img{
  height:38px;
  width:auto;
  max-width:170px;
  background:#fff;
  padding:6px 10px;
  border-radius:3px;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
}

.footer-bottom-right{
  display:flex;
  justify-content:flex-end;
}

.social-icon{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.15);
  border-radius:50%;
}

.social-icon svg{
  width:16px;
  height:16px;
  fill:#fff;
}

.social-icon:hover{background:rgba(255,255,255,.25)}
.social-icon.facebook{background:#1877F2}
.social-icon.facebook:hover{background:#0f5dc4}

/* ===== Wiring page ===== */
body.w{
  background:linear-gradient(to right,#beccde 0%,#eef2f8 20%,#eef2f8 80%,#beccde 100%);
}

.w-section{
  scroll-margin-top:110px;
  padding:80px 0;
  transition:background-color .3s ease;
}

.w-hero{
  position:relative;
  width:100%;
  margin:0;
}

.w-hero-img{
  width:100%;
  height:auto;
}

.w-hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  text-align:center;
}

.w-hero-overlay::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
}

.w-hero-text{
  position:relative;
  max-width:860px;
  color:#fff;
  text-shadow:0 0 10px #0b3b8c,0 0 20px #0b3b8c,0 0 30px #0b3b8c,0 0 40px black;
}

.w-hero-text h1{
  font-family:"Arial Narrow",Arial,Helvetica,sans-serif;
  margin:0 0 10px;
  font-size:56px;
  font-weight:100;
  line-height:1.1;
}

.w-hero-text p{
  margin:10px 0 0;
  font-size:28px;
  font-weight:100;
  line-height:1.5;
  color:#fff;
}

.w-section-intro{
  font-family:"Arial Narrow",Arial,Helvetica,sans-serif;
  text-align:center;
  max-width:min(66%,720px);
  margin:0 auto;
}

.w-section-title{
  font-size:44px;
  font-weight:100;
  line-height:1.1;
  margin:0 0 10px;
  color:#000;
}

.w-section-career{
  font-size:40px;
  font-weight:100;
  line-height:1.1;
  margin:0;
}

.w-kicker{
  text-transform:uppercase;
  letter-spacing:.06em;
}

#servicew,
#customers,
#safetyw,
#careers{
  background:#fff;
  color:#000;
}

#servicesb,
#services3b,
#contact{
  background:#010b2a;
  color:#fff;
}

#servicesb .w-section-title,
#contact .w-section-title{
  color:#fff;
}

#customers .w-section-title,
#servicew .w-section-title,
#safetyw .w-section-title,
#careers .w-section-career{
  color:#000;
}

/* ===== Photo grids ===== */
.w-photo-grid2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:40px 18px;
  margin:40px 0;
}

.w-photo-grid2 figure{
  margin:0;
  text-align:center;
}

.w-photo-grid2 img{
  width:100%;
  height:auto;
  border-radius:4px;
}

.w-photo-grid2 figcaption{
  font-family:"Arial Narrow",Arial,Helvetica,sans-serif;
  font-size:18px;
  line-height:1.2;
  font-weight:400;
  color:#666;
  margin:0 0 12px;
}

.w-photo-grid3{
  --logo-size:80px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin:30px 0 0;
}

.w-photo-grid3 figure{
  margin:0;
  display:flex;
  justify-content:center;
  align-items:center;
}

.w-photo-grid3 img{
  height:var(--logo-size);
  width:auto;
}

.w-photo-grid3 figure:first-child img{
  height:calc(var(--logo-size) * 1.5);
}

/* ===== Mission ===== */
#servicesb .w-section-intro{
  max-width:min(80%,900px);
}

#servicesb p{
  margin:0;
  color:#fff;
  line-height:1.5;
}

/* ===== Stats section ===== */
#services3b{
  padding:80px 0;
}

#services3b .stats-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  text-align:center;
  max-width:1080px;
  margin:0 auto 40px;
}

#services3b .stat-card{
  padding:20px 0;
}

#services3b h2{
  margin:0 0 10px;
  color:#fff;
  font-size:clamp(42px,6vw,72px);
  line-height:1;
}

#services3b p{
  margin:0;
  color:#fff;
  font-size:clamp(16px,2vw,22px);
  line-height:1.4;
}

#services3b .stats-image{
  max-width:1080px;
  margin:0 auto;
}

#services3b .stats-image img{
  width:100%;
  height:auto;
  border-radius:4px;
}

/* ===== Content stack after stats ===== */
.content-stack{
  max-width:900px;
  margin:0 auto;
  display:grid;
  gap:40px;
}

.content-stack figure{
  margin:0;
  text-align:center;
}

.content-stack img{
  width:100%;
  height:auto;
  border-radius:4px;
}

.content-stack figcaption{
  margin-top:12px;
  color:#333;
  font-size:18px;
  line-height:1.5;
}

/* ===== CTA ===== */
.cta-section{
  background:#fff;
  text-align:center;
  padding:50px 0;
}

.cta-section p{
  margin:0 0 20px;
  color:#000;
  font-size:28px;
  line-height:1.4;
}

.cta-section a{
  display:inline-block;
  padding:10px 18px;
  border-radius:999px;
  background:#d61f26;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}

/* ===== Safety / article ===== */
.article-wrap{
  max-width:900px;
  margin:0 auto;
}

.article-wrap h3,
.article-wrap h4,
.article-wrap h5{
  margin:0 0 16px;
  color:#111;
}

.article-wrap p{
  margin:0 0 18px;
  color:#222;
  line-height:1.7;
}

.article-wrap ul{
  margin:0 0 24px 20px;
}

.ptc-stat{
  margin:30px 0;
  padding:24px;
  border:1px solid #d6dae4;
  border-radius:12px;
  text-align:center;
  background:#f7f9fc;
}

.ptc-stat .ptc-label{
  margin:0 0 10px;
  font-weight:700;
  color:#000;
}

.ptc-stat .ptc-percent{
  font-size:72px;
  font-weight:800;
  line-height:1;
  color:#0b3b8c;
}

/* ===== Contact form ===== */
.w-form-wrap{
  display:flex;
  justify-content:center;
  margin:40px 0 0;
}

.rcl-form{
  background:#0b3b8c;
  border:0;
  box-shadow:none;
  color:#fff;
  width:100%;
  max-width:720px;
  border-radius:10px;
}

.rcl-form--single{
  max-width:640px;
  padding:12px 14px;
  margin:12px 0;
}

.rcl-form--labels-left .rcl-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}

.rcl-form--labels-left label{
  width:120px;
  font-size:.85rem;
  font-weight:600;
  color:#fff;
  flex-shrink:0;
}

.rcl-form--labels-left input,
.rcl-form--labels-left textarea{
  flex:1;
  padding:7px 9px;
  font:inherit;
  border:1px solid rgba(0,0,0,.35);
  border-radius:6px;
  background:#fff;
  color:#000;
}

.rcl-form--labels-left textarea{
  resize:vertical;
  min-height:110px;
}

.rcl-form--labels-left input:focus,
.rcl-form--labels-left textarea:focus{
  border-color:#0b3b8c;
  box-shadow:0 0 0 3px rgba(11,59,140,.25);
  outline:0;
}

.rcl-btn{
  margin-top:6px;
  padding:8px 16px;
  font-weight:600;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#0b3b8c;
  cursor:pointer;
}

.rcl-note{
  color:rgba(255,255,255,.85);
  margin-top:24px;
  font-size:.8rem;
  line-height:1.4;
}

/* ===== Lightbox ===== */
.lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.95);
  z-index:99999;
}

.lightbox-content{
  position:absolute;
  max-width:90%;
  max-height:90%;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}

.lightbox-close{
  position:fixed;
  top:20px;
  right:30px;
  font-size:48px;
  color:#fff;
  background:none;
  border:none;
  cursor:pointer;
  z-index:100000;
}

.lightbox-close:hover{opacity:.7}
.lightbox-img{cursor:pointer}

/* ===== Utility colors ===== */
.cred{color:#cc0000}
.cblue{color:#0000cc}
.cgreen{color:#00cc00}
.cwhite{color:#ff0000}
.cblack{color:#000000}

/* ===== Mobile ===== */
@media (max-width:768px){
  .page{padding:0}

  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    padding:10px 0;
  }

  .topbar-left{
    font-size:12px;
    line-height:1.25;
  }

  .topbar-right{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:flex-end;
  }

  .topbar-right .pill{
    padding:6px 10px;
    font-size:12px;
  }

  .nav-toggle{
    display:block;
    padding:12px;
    cursor:pointer;
    position:absolute;
    top:0;
    right:16px;
    transform:translateY(-75px);
    z-index:999;
    border:0;
    background:transparent;
  }

  .site-header .nav-toggle .hamburger,
  .site-header .nav-toggle .hamburger::before,
  .site-header .nav-toggle .hamburger::after{
    background-color:#0b3b8c !important;
    height:4px;
    width:32px;
  }

  .site-header .primary-nav{
    background:transparent;
    padding:0;
    height:0;
    overflow:visible;
  }

  .primary-nav .nav-inner{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    position:relative;
    gap:18px;
    flex-wrap:wrap;
  }

  .nav-links{
    position:absolute;
    top:100%;
    right:0;
    left:auto;
    width:min(320px,90vw);
    z-index:1500;
    background:#0b3b8c;
    display:block !important;
    max-height:0;
    overflow:hidden;
    opacity:0;
    transform:translateY(-6px);
    transition:max-height 220ms ease,opacity 180ms ease,transform 220ms ease;
  }

  .nav-links a:not(:last-child){
    border-bottom:1px solid rgba(255,255,255,.25);
  }

  .nav-links.open{
    max-height:70vh;
    opacity:1;
    transform:translateY(0);
  }

  .nav-links a{
    display:block;
    padding:18px 20px;
    font-size:16px;
    font-weight:700;
    letter-spacing:.4px;
    border-top:1px solid rgba(255,255,255,.25);
    color:#fff !important;
  }

  .nav-links a:first-child{border-top:0}

  .footer-bottom{
    grid-template-columns:1fr;
    text-align:center;
  }

  .footer-bottom-right{justify-content:center}

  footer.footer .footer-top{
    flex-direction:column;
  }

  footer.footer .footer-right{
    text-align:left;
    white-space:normal;
  }

  .w-section{
    padding:48px 0;
  }

  .w-section-intro{
    max-width:100%;
    margin:0 auto;
    padding:0 6px;
    text-align:center;
    font-family:Arial,Helvetica,sans-serif;
  }

  .w-hero-overlay{padding:16px}

  .w-hero-text h1{
    font-size:28px;
    line-height:1.12;
    font-weight:400;
  }

  .w-hero-text p{
    font-size:15px;
    line-height:1.35;
    font-weight:300;
  }

  .w-section-title{
    font-size:28px !important;
    line-height:1.3 !important;
  }

  .w-photo-grid2{
    grid-template-columns:1fr;
    gap:24px;
    margin:24px 0;
  }

  .w-photo-grid3{
    grid-template-columns:1fr;
  }

  #services3b .stats-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .content-stack{
    gap:28px;
  }

  .rcl-form--labels-left .rcl-row{
    flex-direction:column;
    align-items:stretch;
    gap:4px;
  }

  .rcl-form--labels-left label{
    width:auto;
  }
}
