/* ==========================================================================
   Apex Group — rebuild of apexgrp.us
   Colours, type and layout taken from the live site's own theme:
   brand #0054a6 · tab #fcb040 · panels #f7f7f7 · header #01090c · Poppins
   ========================================================================== */

:root{
  --blue:#0054a6;
  --blue-dark:#00417f;
  --orange:#fcb040;
  --ink:#01090c;
  --grey-bg:#f7f7f7;
  --body:#6f6f6f;
  --heading-grey:#5b5b5b;
  --line:#e4e4e4;
  --white:#fff;
  --wrap:1140px;
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--white);color:var(--body);
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:15px;line-height:1.7;font-weight:400;-webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;height:auto}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue-dark)}
p{margin:0 0 16px}
p:last-child{margin-bottom:0}
h1,h2,h3,h4,h5,h6{margin:0;font-weight:600;line-height:1.35;color:var(--blue)}
ul{margin:0;padding:0}
:focus-visible{outline:2px solid var(--orange);outline-offset:2px}

.container{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:15px}
.container-fluid{width:100%;padding-inline:0}
.text-center{text-align:center}
.skip{position:absolute;left:-9999px;background:var(--orange);color:#fff;padding:10px 16px;z-index:200}
.skip:focus{left:8px;top:8px}

/* ---------------------------------------------------------------- header */
.hdr{background:var(--ink);position:sticky;top:0;z-index:90}
.hdr-in{max-width:1500px;margin-inline:auto;padding:0 30px;height:90px;display:flex;align-items:center;gap:20px}
.logo img{width:160px;height:auto}
.mainnav{margin-left:auto;display:flex;align-items:center;gap:4px}
@media (max-width:1100px){.mainnav{display:none}}
.mainnav>li{list-style:none;position:relative}
.mainnav>li>a{
  display:block;padding:12px 16px;color:#fff;font-size:14px;font-weight:600;letter-spacing:.2px;
}
.mainnav>li>a:hover{color:var(--orange)}
.mainnav>li.on>a{color:#fff}
.mainnav .home-ico{font-size:16px;padding-inline:10px}
.mainnav .home-ico svg{width:16px;height:16px;fill:currentColor}
.submenu{
  position:absolute;top:100%;left:0;min-width:270px;background:#fff;
  border-top:2px solid var(--blue);box-shadow:0 12px 30px rgba(0,0,0,.18);
  padding:8px 0;opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .2s,transform .2s,visibility .2s;list-style:none;
}
.mainnav>li:hover .submenu,.mainnav>li:focus-within .submenu{opacity:1;visibility:visible;transform:none}
.submenu a{display:block;padding:9px 20px;color:#3a3a3a;font-size:13.5px}
.submenu a:hover{background:var(--grey-bg);color:var(--blue)}
.caret{display:inline-block;width:6px;height:6px;margin-left:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}

.burger{margin-left:auto;display:none;width:44px;height:44px;background:transparent;border:1px solid rgba(255,255,255,.35);border-radius:3px;cursor:pointer;padding:0;align-items:center;justify-content:center}
.burger span{display:block;width:20px;height:2px;background:#fff;position:relative}
.burger span::before,.burger span::after{content:"";position:absolute;left:0;width:20px;height:2px;background:#fff;transition:transform .2s,top .2s}
.burger span::before{top:-6px}.burger span::after{top:6px}
.burger[aria-expanded="true"] span{background:transparent}
.burger[aria-expanded="true"] span::before{top:0;transform:rotate(45deg)}
.burger[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg)}
@media (max-width:1100px){.burger{display:flex}}
.drawer{display:none;background:#08151c;border-top:1px solid rgba(255,255,255,.12)}
.drawer.open{display:block}
.drawer ul{list-style:none;padding:10px 30px 26px}
.drawer a{display:block;padding:11px 0;color:#e9f0f6;font-size:15px;border-bottom:1px solid rgba(255,255,255,.08)}
.drawer .sub a{padding-left:18px;font-size:14px;color:#a9c2d8}

/* ---------------------------------------------------------------- banner */
.banner{position:relative;overflow:hidden;background:#04121c}
.banner>img{width:100%;height:600px}
.banner-home{background:#04121c}
.banner-home video{width:100%;height:auto;max-height:720px;object-fit:cover;display:block}
@media (max-width:991px){.banner-home video{max-height:52vh}}
@media (max-width:991px){.banner>img{height:auto}}
.banner::before{
  content:"";position:absolute;inset:0 0 auto 0;height:110px;z-index:1;pointer-events:none;
  background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.01));
}
.tabwrap{max-width:90%;margin-left:5%;position:relative}
.tab{position:absolute;top:-20px;left:0;right:0;text-align:center;z-index:5}
.tab span{
  background:var(--orange);color:#fff;font-size:16px;padding:20px;
  display:inline-flex;align-items:center;gap:8px;line-height:1;
}
.tab span img{width:34px;height:auto;filter:brightness(0) invert(1)}
@media (max-width:767px){.tab span{font-size:12.8px;padding:14px}.tab span img{width:26px}}
@media (max-width:480px){.tab span{font-size:11px;padding:11px}}

.crumbs{padding:34px 0 0}
.crumbs ul{list-style:none;display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:#9a9a9a}
.crumbs a{color:#9a9a9a}
.crumbs a:hover{color:var(--blue)}
.crumbs li+li::before{content:"/";margin-right:8px;color:#c9c9c9}

/* ------------------------------------------------------------ typography */
.page-desc{max-width:760px;margin:0 auto;text-align:center}
.page-desc p{font-size:24px;line-height:32px;color:var(--blue);margin:0}
@media (max-width:767px){.page-desc p{font-size:19px;line-height:28px}}
.sec{padding:48px 0}
.sec-sm{padding:30px 0}
h2.blue-h{font-size:30px;line-height:1.35;color:var(--blue);font-weight:600;text-align:center}
h3.blue-h{font-size:24px;line-height:1.4;color:var(--blue);font-weight:600}
.lead-grey{max-width:760px;margin:22px auto 0;text-align:center;font-size:14px;line-height:26px;color:var(--body)}
@media (max-width:767px){h2.blue-h{font-size:23px}}

/* ------------------------------------------------------- service cards */
.cards{display:flex;flex-wrap:wrap;justify-content:center;gap:26px}
.card-col{flex:0 0 calc(33.333% - 18px);max-width:calc(33.333% - 18px);display:flex}
@media (max-width:991px){.card-col{flex-basis:calc(50% - 13px);max-width:calc(50% - 13px)}}
@media (max-width:575px){.card-col{flex-basis:100%;max-width:100%}}
.svc-card{
  border:1px solid var(--blue);padding:40px 20px;width:100%;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  transition:box-shadow .4s ease,transform .4s ease;background:#fff;
}
.svc-card:hover{box-shadow:0 10px 30px rgba(0,84,166,.14);transform:translateY(-3px)}
.svc-card .ico{height:56px;margin-bottom:18px;display:flex;align-items:center}
/* source icons are black line art; the live theme tints them with a filter */
.svc-card .ico img{
  max-height:56px;width:auto;
  filter:brightness(0) saturate(100%) invert(21%) sepia(83%) saturate(1946%)
         hue-rotate(196deg) brightness(96%) contrast(101%);
}
.svc-card h5{font-size:18px;color:var(--blue);line-height:1.4;font-weight:500;margin-bottom:14px}
.svc-card p{font-size:14px;line-height:24px;color:var(--body);text-align:center;flex:1}
.btn{
  display:inline-block;border-radius:50px;padding:9px 30px;font-size:11px;
  font-weight:600;letter-spacing:.8px;text-transform:uppercase;
  border:1px solid var(--blue);background:var(--blue);color:#fff;cursor:pointer;
  transition:background .25s,color .25s,border-color .25s;font-family:inherit;
}
.btn:hover{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff}
.btn-outline{background:transparent;color:#232323;border-color:#232323}
.btn-outline:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.btn-wrap{margin-top:24px}

/* soft-filled card variant (engineering / gis / construction detail pages) */
.svc-card.soft{border:0;background:#eaf1f9}
.svc-card.soft:hover{box-shadow:0 12px 26px rgba(0,84,166,.13)}

/* ------------------------------------------------------- home zig-zag */
.pattern-bg{background:url("assets/themes/custom/apex_new/images/pattern-wall.png") repeat center top;padding:44px 0}
.pattern-bg>h5{font-size:26px;color:var(--blue);font-weight:600;text-align:center;padding-bottom:26px}
.zig{display:flex;flex-wrap:wrap;align-items:stretch}
.zig>.half{flex:0 0 50%;max-width:50%;position:relative}
@media (max-width:991px){.zig>.half{flex-basis:100%;max-width:100%}.zig{flex-direction:column}.zig.rev{flex-direction:column}}
.zig .txt{background:var(--grey-bg);display:flex;align-items:center;justify-content:center;padding:60px 8%;min-height:340px}
@media (max-width:991px){.zig .txt{min-height:0;padding:44px 22px}}
.zig .txt .inner{text-align:center;max-width:520px}
.zig .txt h6{font-size:20px;color:var(--blue);font-weight:600;margin-bottom:14px}
.zig .txt p{font-size:14px;line-height:26px;color:var(--body)}
.zig .pic{background-size:cover;background-position:center;min-height:340px;position:relative}
@media (max-width:991px){.zig .pic{min-height:260px}}
.sep-line{display:inline-block;width:60px;height:2px;background:var(--blue);margin:28px 0 20px}
.service_icon{
  position:absolute;top:0;left:0;background:var(--blue);height:60px;width:60px;
  padding:10px;display:flex;align-items:center;justify-content:center;
}
.service_icon img{width:40px;filter:brightness(0) invert(1)}
/* notch pointing from the copy panel into the photo */
.notch{position:relative}
.notch::after{
  content:"";position:absolute;top:50%;margin-top:-15px;border:15px solid transparent;
  width:0;height:0;pointer-events:none;z-index:2;
}
.notch.n-left::after{left:0;border-left-color:var(--grey-bg);transform:translateX(-100%) scaleX(-1);border-left-color:transparent;border-right-color:var(--grey-bg)}
.notch.n-right::after{right:0;border-right-color:transparent;border-left-color:var(--grey-bg);transform:translateX(100%) scaleX(-1)}
@media (max-width:991px){.notch::after{display:none}}

/* -------------------------------------------------- home solutions grid */
.sol-band{background-size:cover;background-position:center;padding:46px 0 26px}
.sol-band>h5{font-size:26px;color:#fff;font-weight:600;text-align:center;padding-bottom:26px}
.sol-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:26px}
.sol-col{flex:0 0 calc(33.333% - 18px);max-width:calc(33.333% - 18px);display:flex;margin-bottom:4px}
@media (max-width:991px){.sol-col{flex-basis:calc(50% - 13px);max-width:calc(50% - 13px)}}
@media (max-width:575px){.sol-col{flex-basis:100%;max-width:100%}}
.sol-card{
  background:var(--grey-bg);border-radius:8px;overflow:hidden;position:relative;
  padding:46px 26px;text-align:center;width:100%;display:flex;flex-direction:column;
  isolation:isolate;
}
.sol-card .t{font-size:16px;font-weight:700;color:var(--blue);margin-bottom:20px}
.sol-card p{font-size:14px;line-height:24px;color:var(--body);flex:1;min-height:170px}
.sol-card .ov{
  position:absolute;inset:0;background:var(--blue);z-index:-1;
  transform:translateY(100%);transition:transform .4s ease;
}
.sol-card:hover .ov{transform:none}
.sol-card:hover .t,.sol-card:hover p{color:#fff}
.sol-card:hover .btn{background:#fff;color:var(--blue);border-color:#fff}

/* ---------------------------------------------------- alternating rows */
.altrows{background:var(--grey-bg);padding:36px 0}
.altrow{background:#fff;margin-bottom:26px;display:flex;flex-wrap:wrap;align-items:center}
.altrow:last-child{margin-bottom:0}
.altrow>div{flex:0 0 50%;max-width:50%}
@media (max-width:767px){.altrow>div{flex-basis:100%;max-width:100%}.altrow.rev{flex-direction:column-reverse}}
.altrow .copy{padding:34px 38px}
@media (max-width:767px){.altrow .copy{padding:26px 22px}}
.altrow .copy h4{font-size:18px;color:var(--blue);font-weight:600;margin-bottom:14px}
.altrow .copy p{font-size:14px;line-height:24px;color:var(--body)}
.altrow .copy ul{margin-top:14px;list-style:none}
.altrow .copy li{position:relative;padding-left:18px;font-size:13.5px;line-height:22px;color:var(--body);margin-bottom:8px}
.altrow .copy li::before{content:"";position:absolute;left:3px;top:9px;width:5px;height:5px;border-radius:50%;background:var(--body)}
.altrow .shot img{width:100%;height:100%;min-height:280px;object-fit:cover;display:block}
@media (max-width:767px){.altrow .shot img{min-height:220px}}

/* plain (white) alternating rows used on FDC-style pages */
.plainrows .altrow{margin-bottom:0;background:transparent}
.plainrows{background:#fff;padding:10px 0 40px}
.plainrows .copy{text-align:center}
.plainrows .copy h4{font-size:22px;line-height:1.4;margin-bottom:18px}
.plainrows .copy ul{text-align:left;max-width:400px;margin-inline:auto}

/* ------------------------------------------------------------- projects */
.tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:26px}
.tile-col{flex:0 0 calc(33.333% - 18px);max-width:calc(33.333% - 18px)}
@media (max-width:991px){.tile-col{flex-basis:calc(50% - 13px);max-width:calc(50% - 13px)}}
@media (max-width:575px){.tile-col{flex-basis:100%;max-width:100%}}
.tile{display:block;position:relative;overflow:hidden;cursor:pointer;width:100%;border:0;padding:0;background:none}
.tile img{width:100%;transition:transform .5s ease}
.tile:hover img{transform:scale(1.06)}

dialog.proj{
  border:0;border-radius:6px;padding:0;max-width:820px;width:calc(100% - 32px);
  background:#fff;box-shadow:0 30px 70px rgba(0,0,0,.4);
}
dialog.proj::backdrop{background:rgba(0,0,0,.6)}
.proj-hd{display:flex;align-items:center;gap:14px;padding:22px 28px;border-bottom:1px solid var(--line)}
.proj-hd h3{font-size:21px;flex:1}
.proj-x{width:34px;height:34px;border:1px solid var(--line);background:#fff;border-radius:3px;cursor:pointer;font-size:18px;line-height:1;color:#777}
.proj-x:hover{border-color:var(--blue);color:var(--blue)}
.proj-bd{padding:24px 28px 30px;max-height:64vh;overflow-y:auto}
.proj-bd p{font-size:14px;line-height:25px;color:var(--body)}
.proj-bd h4{font-size:15px;color:var(--blue);margin:20px 0 6px}
.proj-bd h4:first-child{margin-top:0}
.proj-bd blockquote{margin:18px 0 0;padding:16px 20px;background:var(--grey-bg);border-left:3px solid var(--blue);font-size:14px;line-height:24px}

/* ---------------------------------------------------------- leadership */
.person-row{display:flex;flex-wrap:wrap;align-items:center;gap:34px;padding:36px 0;border-bottom:1px solid var(--line)}
.person-row:last-of-type{border-bottom:1px solid var(--line)}
@media (max-width:767px){.person-row{gap:22px;flex-direction:column}.person-row.rev{flex-direction:column}}
.person-photo{flex:0 0 250px;max-width:250px;border:1px solid var(--line);padding:5px;background:#fff}
.person-photo img{width:100%}
.person-photo .li{background:var(--blue);display:flex;align-items:center;justify-content:center;padding:7px}
.person-photo .li img{width:16px}
.person-body{flex:1;min-width:260px}
.person-body h3{font-size:24px;color:var(--heading-grey);font-weight:400;margin-bottom:4px}
.person-body .role{font-size:16px;color:#2b8ae0;margin-bottom:14px}
.person-body p{font-size:13.5px;line-height:23px;color:var(--body)}
.person-body .btn{margin-top:18px}
.person-row.rev .person-body{text-align:left}

/* ------------------------------------------------------------- contact */
.contact-grid{display:flex;flex-wrap:wrap;gap:44px;align-items:flex-start}
.contact-left{flex:0 0 300px;max-width:300px}
.contact-right{flex:1;min-width:300px;max-width:420px}
@media (max-width:767px){.contact-left,.contact-right{flex-basis:100%;max-width:100%}}
.contact-left h4{font-size:17px;color:#232323;font-weight:600;margin-bottom:22px}
.contact-left .blk{font-size:13.5px;line-height:22px;color:var(--body);margin-bottom:18px}
.contact-left .blk strong{color:#232323;font-weight:500;display:block}
.req-note{font-size:13px;color:#232323;font-weight:600;margin-bottom:20px}
.fld{margin-bottom:16px}
.fld label{display:block;font-size:12.5px;font-weight:600;color:#232323;margin-bottom:6px}
.fld .star{color:#d33}
.fld input,.fld textarea{
  width:100%;border:1px solid #d4d4d4;border-radius:2px;padding:9px 11px;
  font-family:inherit;font-size:14px;color:#333;background:#fff;
}
.fld textarea{min-height:110px;resize:vertical}
.fld input:focus,.fld textarea:focus{outline:none;border-color:var(--blue)}
.send{
  width:100%;background:#8ab4dd;border:0;color:#fff;font-size:11px;font-weight:600;
  letter-spacing:1px;text-transform:uppercase;padding:12px;cursor:pointer;font-family:inherit;
  transition:background .2s;
}
.send:hover{background:var(--blue)}
.formmsg{display:none;margin-bottom:16px;padding:12px 14px;background:#eef6ee;border:1px solid #b9d9b9;font-size:13.5px;color:#2b6b2b}
.formmsg.show{display:block}

/* ------------------------------------------------- solutions wheel page */
.wheel-panel{background:var(--grey-bg);display:flex;flex-wrap:wrap;align-items:center;gap:20px;padding:40px 30px}
.wheel-copy{flex:1;min-width:280px}
.wheel-copy h3{font-size:22px;color:var(--blue);font-weight:600;margin-bottom:16px}
.wheel-copy p{font-size:14px;line-height:24px;color:var(--body);text-align:center;max-width:460px}
.wheel{flex:0 0 480px;max-width:480px;position:relative;aspect-ratio:1/1}
@media (max-width:991px){.wheel{flex-basis:100%;max-width:420px;margin-inline:auto}.wheel-copy p{text-align:left;margin-inline:0}}
.wheel .ring{position:absolute;inset:14%;border:2px solid var(--blue);border-radius:50%}
.wheel a{
  position:absolute;width:132px;margin-left:-66px;text-align:center;
  font-size:12.5px;font-weight:600;color:var(--blue);line-height:1.3;
}
.wheel a img{width:56px;height:56px;margin:0 auto 6px;border-radius:50%;background:#7f9fc4;padding:6px}
.wheel a:hover img{box-shadow:0 0 0 4px rgba(0,84,166,.18)}
.wheel .w-top{left:50%;top:2%}
.wheel .w-bottom{left:50%;bottom:2%}
.wheel .w-left{left:14%;top:50%;margin-top:-42px}
.wheel .w-right{left:86%;top:50%;margin-top:-42px}
.wheel .w-mid{left:50%;top:50%;margin-top:-42px}

/* --------------------------------------------------------------- prose */
.prose{max-width:900px;margin-inline:auto}
.prose p{font-size:15px;line-height:28px;color:var(--body)}
.prose h3{font-size:22px;color:var(--blue);margin:30px 0 12px}
.prose h4{font-size:17px;color:var(--blue);margin:24px 0 10px}
.prose ul{list-style:none;margin:14px 0}
.prose li{position:relative;padding-left:20px;font-size:14.5px;line-height:26px;color:var(--body);margin-bottom:6px}
.prose li::before{content:"";position:absolute;left:4px;top:11px;width:5px;height:5px;border-radius:50%;background:var(--blue)}
.prose .notice{border:1px solid #e0d3b6;border-left:3px solid var(--orange);background:#fdf8ee;padding:16px 18px;margin-bottom:26px}
.prose .notice p{font-size:14px;margin:0;color:#6b5a3a}
.two-col{columns:2;column-gap:40px}
@media (max-width:767px){.two-col{columns:1}}
.two-col li{break-inside:avoid}

.imgrow{display:flex;flex-wrap:wrap;gap:22px;margin-top:30px}
.imgrow img{flex:1;min-width:240px;border-radius:3px}

/* -------------------------------------------------------------- footer */
.ftr{background:var(--blue);color:#fff;padding:44px 0 0}
.ftr-cols{display:flex;flex-wrap:wrap}
.ftr-col{flex:1;min-width:150px;padding:0 22px;border-left:1px solid rgba(255,255,255,.28)}
.ftr-col:first-child{border-left:0;padding-left:0}
.ftr-col:last-child{flex:0 0 26%;border-left:1px solid rgba(255,255,255,.28)}
@media (max-width:767px){.ftr-col{flex-basis:50%;min-width:0;margin-bottom:26px;border-left:0;padding-left:0}.ftr-col:last-child{flex-basis:100%}}
.ftr h4{font-size:14px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:.4px;margin-bottom:18px}
.ftr ul{list-style:none}
.ftr li{margin-bottom:7px}
.ftr a{color:#fff;font-size:13.5px}
.ftr a:hover{color:var(--orange)}
.ftr address{font-style:normal;font-size:13.5px;line-height:22px;color:#fff}
.ftr address+address{margin-top:16px}
.ftr-btm{
  margin-top:30px;padding:16px 0;border-top:1px solid rgba(255,255,255,.22);
  display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;
  font-size:12.5px;color:#fff;
}
.ftr-btm nav{display:flex;gap:10px;align-items:center}
.ftr-btm nav a{font-size:12.5px}
.ftr-btm nav i{font-style:normal;opacity:.6}

/* SPA routing + motion */
.page{display:none}
.page.active{display:block}
@keyframes fadein{from{opacity:0}to{opacity:1}}
.fx.in{animation:fadein .7s ease both}
@media (prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;transition-duration:.001ms!important}}
