/* Raglen System Balance — styles matched to the original WordPress (The7) theme */

:root {
  --navy: #0f3e80;
  --heading: #3a3a3a;
  --text: #555555;
  --link: #1ebbf0;
  --page-bg: #eeeeee;
  --rule: #999999;
  --wrap: 1250px;       /* includes 50px side padding = 1150px content */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 400 20px/30px "Open Sans", Helvetica, Arial, Verdana, sans-serif;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--link); text-decoration: underline; }
a:hover { text-decoration: none; }

p { margin: 0 0 10px; }

h1, h2, h3, h4 {
  font-family: Roboto, Helvetica, Arial, Verdana, sans-serif;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 10px;
}
h1 { font-size: 34px; line-height: 44px; }
h3 { font-size: 24px; line-height: 34px; }
h4 { font-size: 20px; line-height: 30px; }

/* Section heading with the thin grey rule underneath */
.rule-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.wf-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 50px;
}

/* ---------- Header ---------- */

.header-holder { height: 134px; }

.masthead {
  position: relative;
  z-index: 100;
  height: 134px;
  background: #fff url("../images/header-bg.png") repeat 50% 100%;
  box-shadow: 0 0 15px 1px rgba(0, 0, 0, .07);
}

.masthead .wf-wrap {
  position: relative;
  height: 100%;
}

.branding {
  position: absolute;
  left: 50px;
  top: 15px;
  line-height: 0;
}
.branding img { width: 116px; height: 83px; }
.logo-float, .logo-mobile { display: none; }

.header-contact {
  position: absolute;
  right: 50px;
  top: 32px;
  font: 400 13px/17px Roboto, Helvetica, Arial, Verdana, sans-serif;
  color: #333;
}
.header-contact p { margin: 0; }

.main-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 69px;
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: flex;
  align-items: center;
  margin: 18px 14px;
  padding: 4px;
  color: var(--heading);
  text-decoration: none;
  font: 700 17px/21px Roboto, Helvetica, Arial, Verdana, sans-serif;
}
.main-nav li:first-child a { margin-left: 0; }
.main-nav li:last-child a { margin-right: 0; }
.main-nav .fa {
  font-size: 14px;
  width: 14px;
  text-align: center;
  margin-right: 6px;
}
.main-nav .menu-text { position: relative; }
.main-nav .menu-text::before {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -6px;
  height: 2px;
  background: var(--navy);
  transition: left .25s, right .25s;
}
.main-nav a:hover,
.main-nav .act a { color: var(--navy); }
.main-nav a:hover .menu-text::before,
.main-nav .act .menu-text::before { left: 0; right: 0; }

/* Compact header that fades in once you scroll past the top header */
.masthead.stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: #fff;
  animation: fadeIn .3s ease;
}
.masthead.stuck .branding { top: 7px; }
.masthead.stuck .logo-main { display: none; }
.masthead.stuck .logo-float { display: block; width: 72px; height: 52px; }
.masthead.stuck .header-contact { display: none; }
.masthead.stuck .main-nav {
  top: 0;
  left: auto;
  right: 50px;
  height: 65px;
  align-items: center;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.nav-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: #333;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: currentColor;
}
.nav-toggle span { top: 13px; }
.nav-toggle span::before { content: ""; top: -9px; }
.nav-toggle span::after { content: ""; top: 9px; }

/* ---------- Home slideshow ---------- */

.slideshow {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1920 / 700;
  container-type: inline-size;
  background: var(--page-bg);
}
.slideshow > img,
.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.slideshow .slide-bg {
  width: 142.12%;
  height: auto;
  right: auto;
  bottom: auto;
}
.slideshow .slide-x {
  left: -1.85%;
  top: 1.2%;
  width: 100.9%;
  height: 100.8%;
}
.slideshow .slide {
  opacity: 0;
  transform: translateX(100%);
  transition: transform .9s ease, opacity .9s ease;
}
.slideshow .slide.active { opacity: 1; transform: none; }
.slideshow .slide.leaving { opacity: 0; transform: translateX(-100%); }

.slide-text h2,
.slide-text p {
  position: absolute;
  left: 43.97%;
  margin: 0;
  white-space: nowrap;
  color: #0c0c0c;
}
.slide-text h2 {
  top: 22.5%;
  width: 36.2%;
  padding: .296cqw;
  background: rgba(239, 239, 239, .7);
  color: #000;
  font: 900 2.59cqw/3.257cqw Lato, Helvetica, Arial, sans-serif;
}
.slide-text p {
  top: 32.9%;
  left: 44.04%;
  width: 36.3%;
  background: rgba(244, 244, 244, .7);
  font: 700 1.48cqw/2.07cqw Lato, Helvetica, Arial, sans-serif;
}

/* ---------- Page title bar ---------- */

.page-title {
  background: var(--navy);
  min-height: 120px;
  display: flex;
  align-items: center;
}
.page-title .wf-wrap { width: 100%; padding-top: 25px; padding-bottom: 20px; }
.page-title h1 { color: #fff; margin: 0; }

/* ---------- Main content ---------- */

#main { padding: 70px 0; }

.cols {
  display: grid;
  gap: 30px;
}
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); padding: 0 5px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.spacer-20 { height: 20px; }
.top-gap-60 { padding-top: 60px; }
.top-gap-40 { padding-top: 40px; }
.top-gap-70 { padding-top: 70px; }

/* Home + Services bullets: navy dots */
.standard-arrow {
  list-style: none;
  margin: 0;
  padding: 0;
}
.standard-arrow li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}
.standard-arrow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--navy);
}

/* Past Projects bullets use the small Raglen dot image */
.dot-list {
  margin: 0 0 10px 20px;
  padding: 0;
  list-style: url("../images/raglenDot.png");
}
.project-row + .project-row { margin-top: 55px; }
.project-row.row-3 { margin-top: 24px; }
.project-row .empty-col img { display: block; width: 14px; height: 14px; }

/* Home: Member Of logos */
.member-logos {
  display: grid;
  grid-template-columns: 126px 126px;
  gap: 19px 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}
.member-logos img { display: block; width: 126px; height: 126px; object-fit: contain; }

.head-img { display: block; width: 100%; }

/* Contacts */
.staff { margin-bottom: 25px; }
.staff h4 { text-transform: uppercase; }
.staff-grid { margin-top: 35px; row-gap: 0; }

/* Certifications */
.certs { column-gap: 10px; row-gap: 152px; align-items: center; justify-items: center; }
.certs a { display: block; line-height: 0; }
.certs img { display: block; width: auto; height: 428px; max-width: none; }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: #fff;
}
.footer .wf-wrap {
  display: flex;
  align-items: center;
  min-height: 91px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.footer .footer-logo { line-height: 0; margin-right: 15px; }
.footer .footer-logo img { width: 72px; height: 51px; }
.footer .copyright { flex: 1; }
.footer .aabc { line-height: 0; }
.footer .aabc img { width: 38px; height: 40px; }

.scroll-top {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 101;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.scroll-top.on { opacity: 1; visibility: visible; }
.scroll-top:hover { background: rgba(0, 0, 0, .4); }

/* ---------- Mobile ---------- */

.mobile-menu, .menu-overlay { display: none; }

@media (max-width: 991px) {
  .header-holder { height: 64px; }
  .masthead, .masthead.stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    animation: none;
  }
  .masthead .wf-wrap { padding: 0; }
  .branding, .masthead.stuck .branding { left: 20px; top: 0; }
  .branding .logo-main, .masthead.stuck .logo-float { display: none; }
  .branding .logo-mobile { display: block; width: 90px; height: 64px; }
  .header-contact, .main-nav { display: none; }
  .nav-toggle { display: block; }

  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 201;
    width: 300px;
    max-width: 85vw;
    padding: 45px 30px 30px;
    background: #26282c;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .menu-open .menu-overlay { opacity: 1; visibility: visible; }
  .menu-open .mobile-menu { transform: none; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu a {
    display: flex;
    align-items: center;
    height: 50px;
    color: #fff;
    text-decoration: none;
    font: 700 16px/20px Roboto, Helvetica, Arial, Verdana, sans-serif;
  }
  .mobile-menu .act a, .mobile-menu a:hover { color: var(--navy); }
  .mobile-menu .fa { font-size: 16px; width: 16px; margin-right: 8px; text-align: center; }
  .menu-close {
    position: absolute;
    top: 15px;
    right: 13px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: var(--navy);
    color: #fff;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
  }

  .wf-wrap { padding: 0 20px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; padding: 0; }
  .cols-4 .empty-col { display: none; }
  .certs { row-gap: 30px; padding: 0; }
  .certs img { width: 100%; height: auto; max-width: 100%; }
}


/* The original Services page's left column sits 50px further left than the grid */
@media (min-width: 992px) {
  .services-cols { margin-left: -45px; gap: 0; grid-template-columns: calc(50% + 39.5px) 1fr; }
  .services-cols > :first-child { margin-right: -20px; }
}

/* Extra space the original pages leave above the footer */
.tail-22 { padding-bottom: 22px; }
.tail-25 { padding-bottom: 25px; }
.tail-35 { padding-bottom: 35px; }
.tail-100 { padding-bottom: 100px; }
