/* JDE Electrical Contractors - static rebuild of the former WordPress/Enfold site */
*,*::before,*::after{box-sizing:border-box}
html{background:#333 url(../images/ios-linen-light.png) top center repeat;-webkit-text-size-adjust:100%}
body{margin:0;font:13px/1.65 "Open Sans",Helvetica,Arial,sans-serif;color:#666}
img{max-width:100%;height:auto;border:0;vertical-align:middle}
a{color:#2d5c88;text-decoration:none}
a:hover{color:#3d71a1;text-decoration:underline}
p{margin:.85em 0}
strong,b{font-weight:700;color:#222}
h1,h2,h3,h4{color:#222;font-weight:600;line-height:1.1;margin:0}
ul{margin:.85em 0;padding:0 0 0 14px}
li{margin:0 0 .5em;padding-left:2px}
#wrap{width:90%;max-width:1310px;margin:0 auto;background:#fff;overflow:hidden;overflow:clip}
.container{max-width:1310px;margin:0 auto;padding:0 50px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:10px;top:10px;background:#fff;padding:8px;z-index:99}

/* header (inner pages) */
.site-header{background:#fff;border-bottom:1px solid #e1e1e1}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:var(--hh,88px)}
.logo img{height:calc(var(--hh,88px) - 4px);width:auto;display:block}
.nav ul{list-style:none;margin:0;padding:0;display:flex}
.nav li{margin:0;padding:0}
.nav a{display:block;padding:0 13px;font-size:13px;font-weight:600;color:#808080;line-height:1;border-left:1px solid #e1e1e1}
.nav li:first-child a{border-left:0}
.nav a:hover,.nav a[aria-current]{color:#000;text-decoration:none}
.nav-toggle{display:none;background:none;border:0;padding:10px;cursor:pointer}
.nav-toggle span{display:block;width:26px;height:3px;background:#444;margin:5px 0}
.title-bar{background:#fcfcfc;border-bottom:1px solid #e1e1e1;color:#666}
.title-bar .container{display:flex;align-items:center;justify-content:space-between;min-height:56px;gap:20px}
.title-bar h1{font-size:16px;font-weight:400;color:#222;line-height:1.3}
.breadcrumb{font-size:11px;color:#8f8f8f}
.breadcrumb a{color:#8f8f8f}

/* home top */
.home-top .container{padding-top:58px;padding-bottom:58px;text-align:right}
.home-top p{margin:0;color:#0055a6;text-transform:uppercase}
.home-top a{color:#0055a6;text-decoration:underline}
.home-nav{border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1;background:#fff}
.home-nav .container{display:flex;justify-content:flex-end;align-items:center;min-height:52px;padding-right:0}
.home-nav .nav a{font-weight:400;color:#666}

/* sections */
.section{padding:50px 0}
.section.tight{padding:30px 0}
.section.huge{padding:130px 0}
.bg{background-size:cover;background-position:center center;background-repeat:no-repeat}
.bg.bottom{background-position:bottom center}
.white,.white h1,.white h2,.white h3,.white strong,.white a{color:#fff}
.center{text-align:center}
.heading{padding-bottom:10px}
.heading h2,.heading h1{font-size:34px;text-transform:uppercase;letter-spacing:1px}
.heading h2.small{font-size:28px}
.heading h3{font-size:20px;line-height:1.3}
.heading h3.light{font-weight:400}
.heading .sub{font-size:15px;line-height:1.4;margin-top:6px}
.heading .sub p{margin:.3em 0}
.hr{border:0;border-top:1px solid #e1e1e1;margin:25px 0}
.hr.fat{border-top-width:2px}
.row{display:flex;flex-wrap:wrap;gap:0 6%}
.col-2-3{flex:0 0 64%;max-width:64%}
.col-1-3{flex:0 0 30%;max-width:30%}
.cols-3{display:grid;grid-template-columns:repeat(3,1fr);gap:0 6%}
.cols-2{display:grid;grid-template-columns:repeat(2,1fr);gap:0 6%}
.cells{display:grid}
.cells.c3{grid-template-columns:repeat(3,1fr)}
.cells.c4{grid-template-columns:repeat(4,1fr)}
.cell{padding:30px;text-align:center}
.big{font-size:24px;line-height:1.5}
.big strong{color:#2d5c88}
.white .big strong{color:#fff}

/* buttons */
.btn{display:inline-block;padding:15px 30px 13px;border-radius:3px;font-size:13px;font-weight:700;line-height:1.2;text-transform:none;border:0;cursor:pointer;font-family:inherit}
.btn:hover{opacity:.85;text-decoration:none}
.btn.red{background:#ee1c25;color:#fff}
.btn.whitebtn{background:#fff;color:#0055a6}
.btn.blue{background:#2d5c88;color:#fff;border-bottom:1px solid #1e4a73}

/* home */
.hero{padding:50px 0 30px}
.hero .row{align-items:flex-start}
.hero .hero-logo{flex:0 0 30%;max-width:30%;text-align:center}
.hero .hero-logo img{width:300px}
.hero .hero-title{flex:0 0 64%;max-width:64%}
.hero h1{font-size:50px;font-weight:700;text-transform:none;letter-spacing:0;line-height:1.1;padding-top:10px}
.hero .strap{font-size:20px;font-weight:700;color:#222;text-align:center;line-height:1.3;margin:45px 0 25px}
.callouts .cell h3{font-size:20px;font-weight:400;margin-top:25px}
.callouts .cell.mid{padding-top:40px}
.callouts img{width:auto;height:92px}
.features{padding:50px 0 55px}
.feature{display:flex;flex-direction:column;align-items:center;text-align:center}
.feature img{width:147px;height:147px;margin-bottom:45px}
.feature h3{font-size:20px;font-weight:700;line-height:1.3}
.feature p{font-size:15px;line-height:1.4;margin:6px 0 40px}
.feature .btn{margin-top:auto}
.logos .cell{display:flex;align-items:center;justify-content:center;padding:30px 15px}

/* about */
.page-hero{padding:50px 0 70px;border-bottom:1px solid #e1e1e1}
.lead h3{font-size:20px;font-weight:400;line-height:1.3;color:#222}
.lead .sub{font-size:15px;line-height:1.4}
.iconbox{margin-bottom:30px}
.iconbox h3{font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:1px;display:flex;align-items:center;gap:10px;margin-bottom:12px}
.iconbox svg{width:20px;height:20px;flex:0 0 20px;fill:#222}
.iconbox p{margin:0}
.accred .cell{padding:20px 5px 0}
.accred-text .cell{padding:10px 5px 30px;background:url(../images/box-bgr@2x-1.png) center top/185px auto no-repeat;min-height:120px}
.accred-text p{margin:0}
.charity .heading{margin-bottom:10px}
.charity ul{font-size:13px}

/* our work */
.gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:15px;padding:15px;background:#ebebeb;perspective:1200px}
.gallery a{display:block;overflow:hidden;aspect-ratio:4/3}
.gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:all .4s ease-in-out}
@media (hover:hover){
  .gallery img{opacity:.7}
  .gallery a:hover img{opacity:1;transform:scale(1.05)}
}
/* fly-in as the gallery scrolls into view (same keyframes and timing as the original Enfold masonry) */
@keyframes masonry-show{0%{transform:translateZ(300px) translateY(200px) rotateX(-70deg);opacity:.1}100%{transform:translateZ(0) translateY(0) rotateX(0);opacity:1}}
@media (prefers-reduced-motion:no-preference){
  .js .gallery a{opacity:0}
  .js .gallery a.in{opacity:1;animation:masonry-show .8s 1 cubic-bezier(.175,.885,.32,1.075) backwards}
}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;z-index:100;cursor:zoom-out}
.lightbox img{max-width:92vw;max-height:92vh}
.testimonials{position:relative;padding-bottom:10px}
.tslide{display:grid;grid-template-columns:repeat(2,1fr);gap:0 6%}
.js .tslide{display:none}
.js .tslide.active{display:grid}
.testimonial{padding:20px 15px;font-size:13px}
.testimonial .who{margin-top:14px;font-weight:700;color:#222}
.testimonial .who span{display:block;font-weight:400;color:#919191;font-size:12px}
.tnav{display:none;justify-content:center;gap:10px;margin-top:10px}
.js .tnav{display:flex}
.tnav button{width:34px;height:34px;border:1px solid #e1e1e1;background:#fcfcfc;color:#666;cursor:pointer;font-size:16px;border-radius:2px}
.tnav button:hover{background:#2d5c88;color:#fff}

/* contact */
.contact-form h3{font-size:18px;margin-bottom:8px}
.contact-form label{display:block;font-size:11px;font-weight:600;color:#222;margin:14px 0 5px}
.contact-form input,.contact-form textarea{width:100%;padding:13px;border:1px solid #e1e1e1;background:#fcfcfc;border-radius:2px;font:inherit;color:#666}
.contact-form textarea{min-height:170px;resize:vertical}
.contact-form .btn{margin-top:25px;padding:15px 55px}
.hp{position:absolute;left:-9999px}
.contact-side{padding-top:80px}
.iconlist{list-style:none;margin:0;padding:0}
.iconlist li{display:flex;gap:30px;align-items:flex-start;margin-bottom:25px;padding:0}
.iconlist .ico{flex:0 0 60px;width:60px;height:60px;border-radius:50%;background:#e1e1e1;display:flex;align-items:center;justify-content:center}
.iconlist svg{width:24px;height:24px;fill:#fff}
.iconlist .txt{padding-top:10px}
.iconlist p{margin:0}
.map{margin:40px 0 0}
.map iframe{width:100%;aspect-ratio:16/9;border:0;display:block}
.careers h3{font-size:20px;font-weight:600}
.careers .sub{font-size:15px}
.careers .sub p{margin:.5em 0}

/* privacy */
.plain h3{font-size:20px;margin:1.4em 0 .5em}
.plain h3:first-child{margin-top:0}

/* footer */
.socket{background:#333;color:#eee;font-size:11px;border-top:1px solid #444}
.socket .container{display:flex;justify-content:space-between;align-items:center;min-height:52px;gap:20px;flex-wrap:wrap}
.socket a{color:#fff;font-weight:600}
.socket ul{list-style:none;margin:0;padding:0;display:flex}
.socket li{margin:0;padding:0 0 0 20px}

@media (max-width:989px){
  #wrap{width:100%}
  .container{padding:0 7.5%}
}
@media (max-width:767px){
  .nav-toggle{display:block}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1;z-index:50}
  .nav.open{display:block}
  .nav ul{flex-direction:column}
  .nav a,.home-nav .nav a{padding:16px 7.5%;border-left:0;border-bottom:1px solid #f1f1f1;font-size:14px}
  .site-header,.home-nav{position:relative}
  .home-nav .container{padding-right:7.5%}
  .row{display:block}
  .col-2-3,.col-1-3,.hero .hero-logo,.hero .hero-title{max-width:100%}
  .cols-3,.cols-2,.cells.c3,.tslide{grid-template-columns:1fr}
  .cells.c4{grid-template-columns:repeat(2,1fr)}
  .gallery{grid-template-columns:repeat(2,1fr)}
  .hero h1{font-size:30px;text-align:center;padding-top:20px}
  .hero .hero-logo img{width:220px}
  .heading h1,.heading h2{font-size:24px}
  .heading h2.small{font-size:20px}
  .section.huge{padding:60px 0}
  .home-top .container{padding-top:25px;padding-bottom:25px;text-align:center}
  .feature{margin-bottom:45px}
  .feature img{margin-bottom:20px}
  .feature p{margin-bottom:20px}
  .contact-side{padding-top:40px}
  .breadcrumb{display:none}
  .socket .container{justify-content:center;padding-top:12px;padding-bottom:12px;text-align:center}
  .accred-text .cell{background:none;min-height:0}
}

/* parallax backgrounds (enabled by js/site.js on desktop widths) */
.has-pbg{position:relative;overflow:hidden;background-image:none!important}
.pbg{position:absolute;left:0;right:0;bottom:0;background-size:cover;background-position:center center;background-repeat:no-repeat;will-change:transform;pointer-events:none}
.pbg.bottom{background-position:bottom center}
.has-pbg>.container{position:relative;z-index:1}

/* sticky header that shrinks to half height as the page scrolls (desktop), as on the original site */
@media (min-width:768px){
  .site-header{position:sticky;top:0;z-index:60;margin-bottom:calc(88px - var(--hh,88px))}
  .home-nav{position:sticky;top:0;z-index:60}
}
@media (max-width:767px){.site-header{--hh:88px!important}}
