/* Redguard design tokens — match original 1:1 */
html {
  font-size: 14px;
  scroll-padding-top: 106px;
}

body {
  line-height: 1.42857143;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  color: #575757;
  --app-h1-font-size: 2.0rem;
  --app-h2-font-size: 1.5rem;
  --app-h3-font-size: 1.05rem;
  --app-h4-font-size: 1.05rem;
  --app-h1-font-weight: 600;
  --app-h2-font-weight: 600;
  --app-h3-font-weight: bold;
  --app-h4-font-weight: normal;
}

h1, .h1 {
  font-size: var(--app-h1-font-size);
  font-weight: var(--app-h1-font-weight);
  line-height: 1.1;
  margin-top: 20px;
  margin-bottom: 10px;
}

h2, .h2 {
  font-size: var(--app-h2-font-size);
  font-weight: var(--app-h2-font-weight);
  color: #5A5A5A;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 10px;
}

h3, .h3 {
  font-size: var(--app-h3-font-size);
  font-weight: var(--app-h3-font-weight);
  margin-bottom: 10px;
  color: #5A5A5A;
}

h4, .h4 {
  font-size: var(--app-h4-font-size);
  font-weight: var(--app-h4-font-weight);
}

p {
  margin-top: 0;
  margin-bottom: 10px;
}

a, a:hover {
  color: #d81921;
  text-decoration: none;
}

img {
  max-width: 100%;
  line-height: 1;
}

html, body {
  height: 100%;
}

#outer-wrap {
  min-height: 100%;
}

#yield-wrap {
  padding-bottom: 40px;
}

/* Sticky header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 106px;
  z-index: 1030;
  background-color: #fff;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.sticky-header + * {
  margin-top: 106px;
}

/* Quickbar */
.quickbar-nav {
  padding: 7px 19px 7px 14px;
  margin: 0;
  list-style: none;
  background-color: #EAEAEA;
  border-radius: 0 0 3px 3px;
  display: flex;
}

.quickbar-nav + .quickbar-nav {
  margin-left: 28px;
}

.quickbar-nav li {
  margin: 0 0 0 5px;
  display: flex;
  align-items: center;
}

.quickbar-nav li:first-child {
  margin-left: 0;
}

.quickbar-nav li, #quickbar .quickbar-nav a {
  color: #2b2b2b;
}

.quickbar-nav a:hover {
  color: #d81921;
}

.quickbar-nav.incident {
  background-color: #D81921;
}

.quickbar-nav.incident span {
  font-weight: bold;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quickbar-nav.incident a:hover span {
  color: #fff;
  opacity: 0.9;
}

.quickbar-nav.incident span img {
  height: 15px;
}

.quickbar-nav .divider {
  opacity: 0.55;
}

/* Navbar */
.navbar.navbar-default {
  position: relative;
  margin: 0 0 4px 0;
  padding: 0 0 17px 0;
  border: 0;
  background-color: #ffffff;
  height: 58px;
}

.navbar.navbar-default .navbar-brand {
  margin: -6px 0 0 0;
  padding: 0;
  width: 230px;
}

.navbar .navbar-brand img {
  margin-top: 3px;
  max-width: 100%;
}

.navbar.navbar-default .navbar-nav {
  margin-top: 19px;
}

.navbar.navbar-default .navbar-nav > li > a {
  margin: 0 0 0 25px;
  padding: 0;
  font-size: 1.125em;
  color: #2b2b2b;
  text-transform: uppercase;
}

.navbar.navbar-default .navbar-nav > li.active > a,
.navbar.navbar-default .navbar-nav > li > a:hover {
  color: #d81920;
  background-color: transparent;
}

.navbar.navbar-default .nav-link.dropdown-toggle::after {
  content: none;
}

.navbar.navbar-default .navbar-toggler {
  border: none;
  margin-top: 14px;
  box-shadow: none;
  background-color: transparent;
}

.navbar.navbar-default .navbar-toggler .icon-bar {
  width: 22px;
  height: 2px;
  background-color: #2f2d2e;
  display: block;
}

.navbar.navbar-default .navbar-toggler .icon-bar + .icon-bar {
  margin-top: 4px;
}

.navbar .dropdown-menu {
  padding-left: 6px;
  top: 100%;
  border: none;
  margin-top: 5px;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.navbar .dropdown-menu.megamenu {
  padding: 0 1.5rem 1.5rem 1.5rem;
  min-width: 340px;
}

.navbar .has-megamenu {
  position: static !important;
}

.navbar .megamenu {
  right: 0;
  width: 1112px;
  left: auto !important;
}

.col-megamenu .title {
  font-size: 0.95rem;
  color: #5A5A5A;
  margin: 12px 0 8px;
}

.megamenu-list {
  margin-left: 0;
  position: relative;
  list-style: none;
  padding-bottom: 10px;
}

.megamenu-list > li {
  padding-left: 1.1rem;
}

.megamenu-list > li::before {
  content: "■";
  font-size: 0.5em;
  padding-top: 0.5em;
  position: absolute;
  left: 0;
  color: #d81921;
}

.megamenu-list a {
  color: #575757;
}

.megamenu-list a:hover {
  color: #d81921;
}

.navbar .dropdown-menu.normalmenu {
  left: 23px !important;
}

.navbar .dropdown-item {
  color: #575757;
}

.navbar .dropdown-item:hover {
  color: #d81921;
  background-color: #f5f5f5;
}

/* Page header */
.page-header {
  position: relative;
  margin: 0 0 65px 0;
  height: 170px;
  display: flex;
  align-items: center;
  background: #292728 url("page-header-grey.jpg") no-repeat center;
  background-size: cover;
}

.page-header .container h1 {
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
  margin: 16px 0 13px 0;
}

/* Text blocks */
.textblock {
  margin-bottom: 10px;
}

.textblock ul {
  list-style: none;
  margin-left: 20px;
  padding-left: 0;
}

.textblock ul > li {
  padding-left: 10px;
  position: relative;
}

.textblock ul > li::before {
  content: "■ ";
  color: #d81921;
  padding-right: 0.4em;
  position: absolute;
  transform: translate(-25px, -0.1em);
}

.textblock-title {
  color: #5A5A5A;
}

/* References */
.services-reference {
  border-radius: 25px;
  border: 2px solid #c1c1c1;
  height: 100px;
  transition: all .2s ease-in;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.services-reference:hover {
  border: 2px solid #575757;
}

.services-reference img {
  margin: 0;
  max-height: 85%;
  max-width: 85%;
}

/* Buttons */
.btn {
  border-radius: 25px;
}

.btn-default {
  color: #ffffff;
  border: 0;
  background-color: #d81921;
}

.btn-default:hover,
.btn-default:focus {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.btn-lg {
  padding: 10px 19px;
  border-radius: 25px;
  font-size: 1.3rem;
}

.btn-md {
  padding: 8px 16px;
  font-size: 1.15rem;
  border-radius: 25px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Accordion */
.service-accordion .col-md-9 {
  font-size: 30px;
  display: flex;
  align-items: center;
  padding-top: 13px;
  padding-bottom: 13px;
}

.service-accordion .col-md-9 h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.service-accordion p {
  text-align: justify;
  padding-right: 20px;
}

.accordion-items {
  perspective: 900;
  padding: 0;
  margin: 0;
}

.accordion-items .accordion-item {
  position: relative;
  padding: 10px 0;
  margin: 0;
  border-top: 1px dotted #c1c1c1;
  z-index: 2;
  animation: flipdown 0.5s ease both;
}

.accordion-items .accordion-item:nth-of-type(1) { animation-delay: 0.5s; }
.accordion-items .accordion-item:nth-of-type(2) { animation-delay: 0.75s; }
.accordion-items .accordion-item:nth-of-type(3) { animation-delay: 1s; }
.accordion-items .accordion-item:nth-of-type(4) { animation-delay: 1.25s; }
.accordion-items .accordion-item:nth-of-type(5) { animation-delay: 1.5s; }
.accordion-items .accordion-item:nth-of-type(6) { animation-delay: 1.75s; }

.accordion-items .accordion-item:last-of-type {
  padding-bottom: 0;
}

.accordion-items .accordion-item h3.accordion-title {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-right: 15px;
  position: relative;
  cursor: pointer;
  font-weight: bold;
  color: #5A5A5A;
}

.accordion-items .accordion-item i {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(-6px, 0);
  margin-top: 10px;
  width: 9px;
  height: 9px;
  display: block;
}

.accordion-items .accordion-item i::before,
.accordion-items .accordion-item i::after {
  content: "";
  position: absolute;
  background-color: #d81921;
  width: 3px;
  height: 9px;
  transition: all 0.25s ease-in-out;
}

.accordion-items .accordion-item i::before {
  transform: translate(-2px, 0) rotate(45deg);
}

.accordion-items .accordion-item i::after {
  transform: translate(2px, 0) rotate(-45deg);
}

.accordion-items .accordion-item input[type=checkbox] {
  position: absolute;
  cursor: pointer;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
}

.accordion-items .accordion-item:has(input[type=checkbox]:checked) .accordion-content {
  max-height: 0;
  display: none;
  opacity: 0;
  transform: translate(0, 50%);
  margin: 0;
}

.accordion-items .accordion-item input[type=checkbox]:checked ~ i::before {
  transform: translate(2px, 0) rotate(45deg);
}

.accordion-items .accordion-item input[type=checkbox]:checked ~ i::after {
  transform: translate(-2px, 0) rotate(-45deg);
}

.accordion-content {
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translate(0, 0);
  z-index: 2;
}

@keyframes flipdown {
  0% {
    opacity: 0;
    transform-origin: top center;
    transform: rotateX(-90deg);
  }
  55% {
    transform-origin: top center;
    transform: rotateX(20deg);
  }
  70% {
    transform-origin: top center;
    transform: rotateX(-10deg);
  }
  85% {
    transform-origin: top center;
    transform: rotateX(5deg);
  }
  100% {
    opacity: 1;
    transform-origin: top center;
    transform: rotateX(0deg);
  }
}

/* Footer */
.footer.footer-primary {
  padding-top: 60px;
  border-top: 1px solid #c1c1c1;
  margin-top: 40px;
}

.footer address {
  color: #000;
  margin-bottom: 0;
  font-style: normal;
}

.footer .social-media {
  padding-bottom: 6px;
}

.footer .social-media a {
  margin-right: 10px;
}

.footer.footer-secondary {
  height: 47px;
  padding: 16px 0;
  background-color: #2f2d2e;
  color: #ffffff;
  margin-top: 30px;
}

.footer.footer-secondary a {
  color: #fff;
}

.footer.footer-secondary a:hover {
  color: #fff;
  text-decoration: underline;
}

.upper {
  text-transform: uppercase;
}

.upper a {
  color: #000;
}

.upper a:hover {
  color: #d81921;
}

@media (max-width: 767px) {
  .footer.footer-primary {
    padding-top: 30px;
  }

  .navbar.navbar-default {
    height: auto;
  }

  .navbar.navbar-default .navbar-nav {
    width: 100%;
    margin-top: 33px;
    margin-bottom: 19px;
  }

  .navbar.navbar-default .navbar-nav > li > a {
    margin-left: 15px;
    margin-bottom: 14px;
  }

  .navbar .megamenu {
    width: 100%;
  }

  .page-header {
    margin: 0 0 30px 0;
    height: 120px;
  }

  .service-accordion .col-md-9 h2 {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .footer address {
    font-size: 0.813em;
  }

  .footer .social-media img {
    width: 21px;
    height: 21px;
  }

  .footer .social-media a {
    margin-right: 0;
  }
}
