/* global */
body {
  margin: 0;
  padding: 0;
  color: var(--color-default);
  font-family: var(--font-primary);
  font-size: var(--font-size-primary);
}

/* text slide */
.text-slider {
  .flexslider {
    margin: 0;
    background-color: #e2950a;
    border: none;
    border-radius: 0;
  }

  .slides {
    text-align: center;
    display: flex;
    align-items: center;
  }

  .text-slide a {
    color: #FFF;
    text-decoration: none;
    font-size: 16px;
    margin: 5px 0;
    display: inline-block;
  }
}

/* header */
.header {
  background-color: var(--bg-primary-color);
  z-index: 10;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

  .region {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    gap: 0 20px;
    max-width: 1280px;
    padding: 0 20px;
  }
}

/* logo */
.logo {
  .navbar-brand img {
    margin: 0;
    padding: 5px;
  }
}

/* contact menu */
.contact-menu {
  ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0 15px;
  }

  ul li a.contact-us {
    color: var(--color-black);
    background: var(--btn-primary-color);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    padding: var(--btn-spacing);
    transition: var(--ani-text-fade);
    text-transform: capitalize;

    &:hover {
      color: var(--color-default);
    }
  }

  ul li a.icon-fb {
    font-size: 0;

    &::before {
      content: var(--font-icon-fb);
      font-family: var(--font-icon-family-brands);
      font-weight: var(--font-icon-weight);
      font-size: 25px;
      display: inline-block;
      color: #fff;
      transition: var(--ani-text-fade);
    }

    &:hover::before {
      color: var(--btn-primary-color);
    }
  }
}

/* main menu */
.main-menu {
  nav {
    background-color: transparent;
  }

  ul.level-0 > li.level-1 {
    border-right: none;
  }

  ul.level-0 > li.level-1 a.level-1,
  ul.level-0 > li.level-1 span.level-1 {
    display: inline-block;
    text-decoration: none;
    font-size: 20px;
    text-transform: capitalize;
    background-color: transparent;
    position: relative;
    color: var(--color-default);
    font-family: var(--font-primary);

    &:hover,
    &:focus {
      color: var(--color-default);
      background-color: transparent;
    }

    &::after {
      content: "";
      position: absolute;
      width: 100%;
      height: 5px;
      bottom: 0;
      left: 0;
      background-color: var(--btn-primary-color);
      transform: scaleX(0);
      transform-origin: bottom left;
      transition: transform 0.3s ease-out;
    }

    &:hover::after {
      transform: scaleX(1);
    }
  }

  ul.level-0 > li.level-1.open a.level-1::after,
  ul.level-0 > li.level-1.open span.level-1::after {
    transform: scaleX(1);
  }
}

/* main menu dropdown */
.main-menu {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  ul.level-0 {
    align-items: center;
  }

  ul.level-0 > li.level-1:not(.community-portal-menu) > .tbm-submenu {
    background-color: var(--bg-primary-color);
    border: none;
    width: auto;
    min-width: 320px;
    left: auto;

    .tbm-row {
      width: 100%;
    }

    .tbm-subnav {
      display: block;
      padding: 0;
    }

    .tbm-subnav .tbm-link {
      color: var(--color-default);
      transition: var(--ani-text-fade);
      text-decoration: none;

      &:hover {
        color: var(--btn-primary-color);
      }
    }

    .nav > .nav-item > .nav-link {
      color: var(--color-default);
      text-transform: uppercase;
      font-weight: 600;
      border-bottom: 1px solid;
      margin-bottom: 8px;
      padding: 16px 8px;

      &::after {
        display: none;
      }
    }
  }
}

/* main menu mega-menu dropdown */
.sticky-active .community-portal-menu .tbm-submenu {
  top: 62px;
}

header:not(.sticky-active) .community-portal-menu .tbm-submenu {
  top: 96px;
}

.community-portal-menu {
  font-size: var(--font-size-secondary);

  .tbm-submenu {
    width: 100%;
    position: fixed;
    left: 0;    
    border: none;
    padding: 0 20px 20px;
    background-color: var(--bg-primary-color);

    .tbm-row {
      max-width: 1920px;
      margin: 0 auto;
    }

    .tbm-column,
    .tbm-row {
      width: 100%;
    }
  }

  .nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .nav .nav-item {
    flex: 1;
  }

  .nav .nav-item ul {
    padding: 0;
  }

  .nav .nav-item ul li {
    display: block;
  }

  .nav a.nav-link {
    color: var(--color-default);
    transition: var(--ani-text-fade);

    &:hover {
      color: var(--btn-primary-color);
    }

    &::after {
      display: none;
    }
  }

  .nav > .nav-item > .nav-link {
    color: var(--color-default);
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid;
    margin-bottom: 8px;
    padding: 16px 8px;

    &::after {
      display: none;
    }
  }
}

/* slider */
.slider {
  .flexslider {
    margin: 0;
    border: none;
  }

  .item-list ul {
    margin: 0;
    padding: 0;
  }
  
  .item-list li {
    margin: 0;
    padding: 0;
  }

  .paragraph {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }

  .wrapper {
    position: absolute;
    margin: 0 100px;
  }

  .slide {
    flex: 1;
    width: 100%;
  }

  .slide-text {
    line-height: 95px;
    color: var(--color-default);
    font-family: var(--font-heading);
    font-size: 76px;
    font-weight: 600;
  }

  .slide-link a {
    margin-top: 50px;
  }

  .media {
    position: relative;

    &::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgb(18, 69, 7, 0.2);
      pointer-events: none;
    }
  }

  .media video,
  .media img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100vh;
  }

  .media .video {
    position: relative;

    &::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--bg-none);
    }
  }
}

/* blocks region */
.blocks {
  background-color: var(--bg-primary-color);

  .region {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 20px;
  }

  .block:last-child {
    margin-bottom: 50px;
  }
}

/* services blocks */
.view-services {
  .view-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
  }

  .view-row {
    flex: var(--calc-blocks);
    min-width: 300px;
    margin-bottom: 20px;

    &:hover .photo img {
      transform: var(--ani-block-img-scale);
    }

    &:hover .title a::after {
      transform: scaleX(1);
    }
  }

  .photo {
    overflow: hidden;

    img {
      transition: var(--ani-block-img-zoom);
    }
  }

  .title {
    margin: 15px 0 10px;

    a {
      font-size: 30px;
      font-weight: 600;
      text-decoration: none;
      color: var(--color-default);
      position: relative;
      display: block;

      &::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 3px;
        bottom: -5px;
        left: 0;
        background-color: var(--btn-primary-color);
        transform: scaleX(0);
        transform-origin: bottom left;
        transition: var(--ani-block-text-border);
      }
    }
  }

  .description {
    color: var(--color-default);
    font-size: var(--font-size-secondary);
  }

  .read-more {
    text-decoration: none;
    color: orange;
    text-transform: uppercase;
    font-size: 15px;
    transition: var(--ani-text-fade);

    &:hover {
      color: var(--color-default);
    }
  }
}

/* quick-links blocks */
.view-quick-links {
  .view-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
  }

  .view-row {
    flex: var(--calc-blocks);
    min-width: 300px;
    margin-bottom: 20px;

    &:hover .photo img {
      transform: var(--ani-block-img-scale);
    }

    &:hover .title a::after {
      transform: scaleX(1);
    }
  }

  .photo {
    overflow: hidden;

    img {
      transition: var(--ani-block-img-zoom);
    }
  }

  .title {
    margin: 15px 0 10px;

    a {
      font-size: 30px;
      font-weight: 600;
      text-decoration: none;
      color: var(--color-default);
      position: relative;
      display: block;

      &::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 3px;
        bottom: -5px;
        left: 0;
        background-color: var(--btn-primary-color);
        transform: scaleX(0);
        transform-origin: bottom left;
        transition: var(--ani-block-text-border);
      }
    }
  }

  .description {
    color: var(--color-default);
    font-size: var(--font-size-secondary);
  }

  .read-more {
    text-decoration: none;
    color: orange;
    text-transform: uppercase;
    font-size: 15px;
    transition: var(--ani-text-fade);

    &:hover {
      color: var(--color-default);
    }
  }
}

/* meetings */
.meetings {
  background-image: url("../img/bg-meetings.jpg");
}

/* stats */
.stats {
  background-color: var(--bg-primary-color);

  .region {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 20px;
  }

  .stats-main {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
  }

  .stats-item {
    flex: 1;
  }

  .numbers {
    display: flex;
    gap: 1px;
    align-items: center;
    font-size: 48px;
    font-weight: 600;
  }

  .title {
    font-weight: 600;
    margin: 10px 0;
  }

  .text {
    font-size: var(--font-size-secondary);
  }

  .block:last-child {
    margin-bottom: 100px;
  }
}

/* jobs */
.jobs {
  background-image: url("../img/bg-jobs.jpg");
}

/* content pages */
main {
  background-color: var(--bg-primary-color);

  .region-content {
    max-width: 1280px;
    margin: 0 auto;
  }

  h1 {
    font-size: 60px;
    margin: 30px 0;
    border-bottom: 2px solid #FFF;
    padding-bottom: 20px;
    font-family: var(--font-heading);
  }

  .node a {
    color: var(--color-orange);
    transition: var(--ani-text-fade);

    &:hover {
      text-decoration: none;
      color: var(--color-default);
    }
  }
}

/* colorbox */
#cboxCurrent {
  bottom: -3px;
}

/* webforms */
.webform-employment {
  width: 100%;
  max-width: 640px;

  .webform-type-fieldset > legend {
    font-size: 26px;
    border-bottom: 1px solid #fff;
    width: 100%;
    text-transform: uppercase;
  }

  .form-date {
    width: auto;
    min-width: 50%;
  }

  .btn-primary {
    background-color: var(--btn-primary-color);
    border: none;

    &:hover {
      color: var(--color-black);
    }

    &:active {
      background-color: var(--btn-primary-color);
    }
  }
}

/* maps */
.gmap {
  position: relative;
  z-index: 0;

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 159, 19, 0.4);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: color;
  }
}

.map-block {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;

  .map-address-wrapper {
    position: absolute;
    margin: 90px;
    background-color: var(--color-orange);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 475px;
    z-index: 1;
  }

  .map-email::before {
    content: var(--font-icon-email);
  }

  .map-phone::before {
    content: var(--font-icon-phone);
  }

  .map-address::before {
    content: var(--font-icon-address);
  }

  .map-label {
    color: var(--color-black);
    font-weight: 600;
  }

  .map-link a {
    color: var(--color-black);
    font-size: var(--font-size-secondary);
    transition: var(--ani-text-fade);

    &:hover {
      color: var(--color-default);
      text-decoration: none;
    }
  }

  .map-address-text {
    color: var(--color-black);
    font-size: var(--font-size-secondary);
  }
}

/* footer */
footer {
  padding: 0;
  background-color: var(--bg-primary-color);

  .container-fluid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .region {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .region-sub-footer {
    max-width: none;
    margin: 0 20px;
    padding: 50px;
    width: auto;
  }
}

/* footer menu */
.footer-community-portal {
  margin: 0 20px;

  h2 {
    font-size: 60px;
    font-weight: 600;
    color: var(--color-default);
    font-family: var(--font-heading);
    text-transform: capitalize;
    text-align: center;
    margin: 50px 0;
  }

  .nav > .nav-item > .nav-link {
    color: var(--color-default);
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid;
    margin-bottom: 8px;
    padding: 16px 8px;
  }

  .nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .nav-item {
    flex: 1;
    display: block;

    ul {
      padding: 0;
    }
  }

  .nav-link {
    color: var(--color-default);
    font-size: var(--font-size-secondary);
    transition: var(--ani-text-fade);

    &:hover {
      color: var(--btn-primary-color);
    }

    &::after {
      display: none;
    }
  }
}

/* sub footer */
.sub-footer {
  width: 100%;
  margin-top: 50px;
  max-width: 1920px;
}

.region-sub-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid;
  border-bottom: 1px solid;


  .footer-logo {
    width: 100%;
    max-width: 250px;
  }

  .city-of-walker {
    flex: 1;
  }

  .contact-info {
    font-size: var(--font-size-secondary);
  }
}

/* city of walker footer menu */
.city-of-walker {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;

  h2 {
    font-size: 60px;
    font-weight: 600;
    color: var(--color-default);
    font-family: var(--font-heading);
    text-transform: capitalize;
    text-align: center;
    margin: 25px 0;
  }

  .navbar-nav > .nav-item > .nav-link {
    text-transform: uppercase;
    font-weight: 600;
    padding: 16px 8px;
  }

  .navbar-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .nav-item {
    display: block;

    ul {
      padding: 0;
    }
  }

  .nav-link {
    font-size: var(--font-size-secondary);
    transition: var(--ani-text-fade);

    &:hover {
      color: var(--btn-primary-color);
    }

    &::after {
      display: none;
    }
  }
}

/* copyright */
.copyright {
  max-width: 1920px;

  .region {
    width: auto;
    margin: 0 20px;
  }

  p {
    text-align: center;
    margin: 0;
    font-size: 14px;
    margin: 20px;
  }
}