/*
 * Theme structure: header, navigation, search, footer and layout wrappers.
 * Loaded after the parent and child style.css. Content/block styles live in
 * site.css, which loads after plugin styles.
 *
 * This file is the source of truth. The old styles.scss had drifted from it
 * and was removed.
 */

/* --------------------------------------------------------------
Page and post titles
-------------------------------------------------------------- */

/* Pages hide their title; posts (rendered inside <article>) show it */
.entry-header,
.entry-title {
  display: none !important;
}
.hfeed article .post-content > .entry-header,
.hfeed article .entry-title {
  display: block !important;
}

.featured-image {
  display: none;
}
.navigation.post-navigation {
  display: none !important;
}

.case_studies figcaption {
  display: none;
}

h1 {
  clear: both;
  font-weight: 600;
  line-height: 1.2;
}

/* --------------------------------------------------------------
Layout wrappers
-------------------------------------------------------------- */

.site-content {
  padding-bottom: 0;
}

.body_wrapper,
.body-wrapper {
  width: 1200px;
  margin: 0 auto;
}
.body-wrapper {
  max-width: 1200px;
}
@media screen and (max-width: 1200px) {
  .body_wrapper,
  .body-wrapper {
    width: 100%;
    padding: 0 30px;
  }
}

.content-full-width {
  width: 1200px !important;
  max-width: 1200px !important;
  margin: 0 auto;
}
@media screen and (max-width: 1200px) {
  .content-full-width {
    width: 100% !important;
    padding: 0 20px !important;
  }
}

/* --------------------------------------------------------------
Header: top bar
-------------------------------------------------------------- */

#top-menu {
  background: #4E0006;
}

.top-bar {
  background: #4E0006;
  justify-content: space-between;
}
.top-bar > div {
  display: flex;
}
@media screen and (max-width: 1200px) {
  .top-bar > div {
    justify-content: space-between;
  }
}
.top-bar .logo {
  width: 25%;
  max-width: 250px;
}
@media screen and (max-width: 1200px) {
  .top-bar .logo {
    width: 50%;
  }
}
.top-bar .logo .site-title-wrap {
  width: 100%;
  max-width: 100% !important;
}
.top-bar .logo img {
  width: 100%;
  height: auto;
  display: block;
}
.top-bar .nav {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
@media screen and (max-width: 1200px) {
  .top-bar .nav {
    display: none;
  }
}
.top-bar .nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top-bar .nav li {
  margin-right: 15px;
}
.top-bar .nav li:last-child {
  margin-right: 0;
}
.top-bar .nav a {
  color: #FFF;
  display: block;
  padding: 7px 20px;
}
.top-bar .nav .btn {
  background: #FFF;
  transition: all ease 0.5s;
}
.top-bar .nav .btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #4E0006;
}
.top-bar .nav .btn a {
  color: #4E0006;
}
.top-bar .nav .phone a {
  display: flex;
  align-items: center;
}
.top-bar .nav .phone a:before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background: url("phone-icon.svg") no-repeat;
  margin-right: 10px;
}

/* "Free Tank Replacement Consult" button in the secondary menu */
#menu-item-10633 a {
  background-color: white;
  color: #4E0006;
  font-weight: 400;
  transition: all .2s ease;
}
#menu-item-10633 a:hover {
  background-color: #e7ced0;
}

.top-bar .btn--search {
  position: relative;
}
@media screen and (max-width: 720px) {
  .top-bar .btn--search {
    display: none;
  }
}
.top-bar .btn--search:before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  background: url("magni-icon.svg") no-repeat;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
@media screen and (max-width: 1200px) {
  .top-bar .btn--search:before {
    display: none;
  }
}

/* --------------------------------------------------------------
Header: search modal
-------------------------------------------------------------- */

.search-toggle svg {
  fill: #fff;
}
.search-toggle .toggle-text {
  display: none;
}
.search-modal {
  background: rgba(0, 0, 0, .2);
  opacity: 0;
  position: fixed;
  bottom: 0;
  left: -9999rem;
  top: 0;
  transition: opacity .2s linear, left 0s linear .2s;
  width: 100%;
  z-index: 99999;
  display: block;
}
.search-modal.active {
  left: 0;
  opacity: 1;
  transition: opacity .2s linear;
}
.search-modal-inner {
  transform: translateY(-100%);
  transition: transform .15s linear, box-shadow .15s linear;
}
.search-modal-inner.modal-inner {
  width: 100%;
}
.search-modal.active .search-modal-inner {
  box-shadow: 0 0 2rem 0 rgb(0 0 0 / 8%);
  transform: translateY(0);
  transition: transform .25s ease-in-out, box-shadow .1s linear .25s;
}
.search-modal-inner .section-inner {
  display: flex;
  justify-content: space-between;
  max-width: 208rem;
}
.search-modal-inner.modal-inner .search-field,
.search-modal-inner.modal-inner .section-inner {
  height: 80px;
}
.search-modal form {
  margin: 0;
  position: relative;
  width: 100%;
}
.search-modal .search-submit {
  position: absolute;
  right: -9999rem;
  top: 50%;
  transform: translateY(-50%);
}
button.search-untoggle {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  padding: 0 2.5rem;
}
.search-modal button.search-untoggle {
  color: inherit;
}
.search-modal.active .search-untoggle {
  animation: popIn .3s .2s both;
}
.search-untoggle svg {
  fill: white;
}

/* Search results page */
.search.search-results #page {
  padding-top: 4% !important;
  padding-bottom: 4% !important;
}
.search.search-results #primary {
  width: 90% !important;
  max-width: 1600px !important;
}

/* --------------------------------------------------------------
Navigation: main (Max Mega Menu) and mobile
-------------------------------------------------------------- */

.navigator-main {
  background: #FFF;
  position: relative;
  transition: all ease 0.5s;
}
.navigator-main:after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  box-shadow: 0 4px 2px 0px rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 110;
}
@media screen and (max-width: 720px) {
  .navigator-main:after {
    display: none;
  }
}

.mega-sub-menu {
  background: white !important;
}
.mega-sub-menu h4,
.mega-sub-menu h4 a {
  text-transform: capitalize;
}
#mega-menu-item-custom_html-13 h4.mega-block-title a {
  text-transform: uppercase !important;
}
/*
 * Mega menu column headings keep the browser's default sans-serif instead of
 * the Crimson Text used for other h4s (see site.css). Linked headings still
 * get Karla from the "*" rule.
 */
h4.mega-block-title,
h4.mega-block-title span,
h4.mega-block-title strong {
  font-family: sans-serif !important;
}
/* The mobile menu replaces the mega menu below 1200px */
@media (max-width: 1200px) {
  .mega-menu-wrap {
    display: none !important;
  }
}

.navigator-mobile {
  background: #FFF;
  position: fixed;
  transition: all ease 0.5s;
  top: 0;
  left: -110%;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
}
.navigator-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 50px;
}
.navigator-mobile li {
  border-bottom: solid 1px rgba(0, 0, 0, 0.1);
}
.navigator-mobile li a {
  padding: 5px 20px !important;
  display: block;
  font-size: 16px !important;
  font-weight: 700;
  color: #000;
}
#menu-mobilemenu > li > a {
  color: #4e0006;
}
#menu-mobilemenu .sub-menu {
  margin: 0 0 0 20px;
}
/* Toggled by showNav()/hideNav() in header.php */
.hide-menu {
  left: -110% !important;
}
.show-menu {
  left: 0 !important;
  overflow: auto;
}

/* Hamburger button */
.btn--nav {
  display: none;
  width: 30px;
  height: auto;
  padding: 0;
  background: transparent;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
@media screen and (max-width: 1200px) {
  .btn--nav {
    display: flex;
  }
}
.btn--nav span {
  width: 100%;
  height: 3px;
  background: #FFF;
  display: block;
  margin-bottom: 4px;
}

/* Close button inside the mobile menu */
.btn--close {
  background: none;
  display: none;
  width: 30px;
  height: 30px;
  position: absolute;
  top: 10px;
  right: 10px;
}
@media screen and (max-width: 1200px) {
  .btn--close {
    display: block;
  }
}
.btn--close span {
  width: 80%;
  height: 3px;
  background: #000;
  display: block;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.btn--close span:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}
.btn--close span:nth-child(2) {
  transform: translateY(-50%) rotate(-45deg);
}

/* --------------------------------------------------------------
Footer: widget columns
-------------------------------------------------------------- */

.footer-top {
  background: #FFF;
  border-top: solid 1px #707070;
  padding: 70px 0 40px;
}
@media screen and (max-width: 720px) {
  .footer-top {
    padding: 25px 0;
  }
}
.footer-top > div {
  display: flex;
  flex-direction: row;
}
@media screen and (max-width: 720px) {
  .footer-top > div {
    flex-direction: column;
  }
}
.footer-top .footer_widget {
  width: 22.3%;
  min-width: 22.3%;
  padding-right: 50px;
}
.footer-top .footer_widget:nth-child(2) {
  min-width: 29%;
}
.footer-top .footer_widget:nth-child(3) {
  min-width: 16%;
}
@media screen and (max-width: 720px) {
  .footer-top .footer_widget {
    width: 100%;
    min-width: 100%;
    text-align: center;
    margin-bottom: 20px;
    padding-right: 0;
  }
  .footer-top .footer_widget:last-child {
    margin-bottom: 0;
  }
}
@media (min-width: 654px) and (max-width: 948px) {
  #block-18 {
    width: 600px;
  }
}
.footer-top .footer_widget:last-child {
  padding-right: 0;
}
.footer-top .footer_widget h1, .footer-top .footer_widget h2, .footer-top .footer_widget h3, .footer-top .footer_widget h4, .footer-top .footer_widget h5, .footer-top .footer_widget h6 {
  color: #4E0006;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 30px;
}
.footer-top .footer_widget p {
  font-size: 16px;
  margin-bottom: 6px;
}
.footer-top .footer_widget a {
  color: #4E0006;
}
.footer-top .footer_widget a:hover {
  text-decoration: underline;
}
.footer-top .footer_widget ul {
  list-style: none;
  padding: 0;
  margin-left: 0;
}
.footer-top .footer_widget li {
  margin-bottom: 6px;
}
.footer-top .footer_widget li a {
  color: #000;
}
.footer-top .footer_widget li a:hover {
  text-decoration: underline;
}
.footer-top .footer_widget .wp-block-button__link {
  background: #4E0006;
  color: #FFF;
}
.footer-top .footer_widget .wp-block-button__link:hover {
  text-decoration: none;
}
.footer-top .footer_widget.identity {
  width: 33%;
  min-width: 33%;
}
@media screen and (max-width: 720px) {
  .footer-top .footer_widget.identity {
    width: 100%;
  }
}
.footer-top .footer_widget.identity h1, .footer-top .footer_widget.identity h2, .footer-top .footer_widget.identity h3, .footer-top .footer_widget.identity h4, .footer-top .footer_widget.identity h5, .footer-top .footer_widget.identity h6 {
  color: #000;
  font-size: 24px;
  font-weight: 400;
}
@media screen and (max-width: 720px) {
  .footer-top .wp-block-button {
    margin: 25px auto;
  }
  .footer-top .wp-block-social-links {
    display: flex;
    justify-content: center;
  }
}

/* --------------------------------------------------------------
Footer: bottom bar
-------------------------------------------------------------- */

.footer-bottom {
  background: #415988;
  font-size: 12px;
  padding: 15px 0;
  color: #FFF;
}
@media screen and (max-width: 720px) {
  .footer-bottom {
    text-align: center;
  }
}
.footer-bottom > div {
  display: flex;
}
@media screen and (max-width: 720px) {
  .footer-bottom > div {
    flex-direction: column;
  }
}
.footer-bottom a {
  color: #FFF;
}
.footer-bottom a:hover {
  text-decoration: underline;
}
.footer-bottom ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media screen and (max-width: 720px) {
  .footer-bottom ul {
    flex-direction: column;
  }
}
.footer-bottom li {
  margin-right: 10px;
}
.footer-bottom .tagline {
  margin-right: 15px;
}

/* --------------------------------------------------------------
Hero headings (mobile)
-------------------------------------------------------------- */

@media screen and (max-width: 720px) {
  .karla-font-header-2 h2,
  .karla-font-header h2 {
    font-size: 30px !important;
  }
}
