/*
Theme Name: Entaco Theme
Author: Chris Lomas
Description: Custom theme for Entaco Medical
Version: 1.0
*/

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-weight: 700;
}

h2 {
  color: #40B9D8;
}

h3 {
  border-bottom: 2px dotted #40B9D8;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2rem;
  cursor: pointer;
}

h3::before {
  background-image: url('/wp-content/themes/entaco-theme/images/right-carat.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  content: "";
  display: inline-block;
  height: 12px;
  margin-right: 5px;
  margin-left: -21px;
  width: 16px;
}
.home h3::before {
  background: none;
}

h3.active::before {
  background-image: url('/wp-content/themes/entaco-theme/images/down-carat.png');
  width: 12px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 90%;
}

.youarehere {
  color: #FFFFFF;
  font-size: 0.9rem;
}
.youarehere a {
  color: #FFFFFF;
  font-size: 0.9rem;
  text-decoration: none;
}

header .container {
  display: flex;
}

header .youarehere .breadcrumb {
  background: linear-gradient(to right, #40B9D8, #4bddda);
  padding: 0.6rem 0 0.6rem 10px;
  width: 80%;
}

header .spacer {
  background: #4bddda;
  width: 30%;
}

header .nav-container {
  background-color: transparent;
  padding: 0.8rem 0 0;
  width: 70%;
}

header .corner-container {
  background-image: url('/wp-content/themes/entaco-theme/images/top-corner.png');
  background-size: 100%;
  background-repeat: no-repeat;
  width: 10%;
}

header .logo-container {
  background: #4bddda;
  width: 20%;
}

header .logo-container img.logo {
  max-width: 100%;
  height: auto;
  float: right;
  padding: 0 20px 20px;
}

.primary-menu {
  padding-inline-start: 0;
  display: flex;
}

.primary-menu::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  background-image: url('/wp-content/themes/entaco-theme/images/menu-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.primary-menu>li {
  display: inline-block;
}

.primary-menu>li a {
  border-radius: 5px;
  margin-right: calc(2rem + 10px);
  padding: 10px;
}

.primary-menu>li.menu-item-has-children a {
  border-radius: 5px 0 0;
  clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%);
  padding: 10px 30px 0 10px;
}

.primary-menu>.menu-item-has-children>a::after {
  background-image: url('/wp-content/themes/entaco-theme/images/down-carat.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  content: "";
  display: inline-block;
  height: 16px;
  margin-left:5px;
  width: 16px;
}

.primary-menu>li .sub-menu {
  display: none;
  position: absolute;
  background: #ffffff;
  padding: 1rem;
  z-index: 1000;
  list-style: none;
}

.primary-menu>li>a {
  color: #000000;
  text-transform: uppercase;
  text-decoration: none;
}

.primary-menu>li:hover>a {
  background-color: #dddddd;
}

.primary-menu>li:hover .sub-menu {
  background-color: #dddddd;
  border-radius: 0 5px 5px 5px;
  display: block;
  padding: 10px 15px;
}

.primary-menu>li:hover .sub-menu>li {
  border-top: dotted #a7aaad;
  font-size: 14px;
  margin-top: 5px;
  padding-top: 5px;
}

.primary-menu>li:hover .sub-menu li:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0;
  background-image: url('/wp-content/themes/entaco-theme/images/right-carat.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
}

.primary-menu>li:hover>.sub-menu li a {
  color: #000000;
  text-decoration: none;
  padding: 10px 30px 0 0;
}

.hero-section {
  margin: 60px auto 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.content-wrapper-left {
  width: 40%;
  padding-top: 100px;
}

.content-wrapper-right {
  width: 60%;
  text-align: right;
}

.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.service-block {
  background: #f9f9f9;
  border-radius: 5px;
  flex: 1 1 calc(33% - 2rem);
  padding: 1rem;
}

footer .container {
  background-image: url('/wp-content/themes/entaco-theme/images/footer-background.png');
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
}

footer .border {
  background-image: url('/wp-content/themes/entaco-theme/images/footer-border-small.png');
  background-size: 30px;
  background-repeat: repeat-x;
  background-position: center top;
  height: 30px;
  width: 100%;
  margin-top: 30px;
}

footer .container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 0 0 50px 0;
}

footer .container>div {
  padding: 0 2rem;
  border-right: solid 1px #40B9D8;
}

footer .container>div:first-of-type , footer .container>div:last-of-type {
  border-right: none;
}

footer img {
  max-width: 100px;
}

footer .container>.footer-info, footer .container>.footer-info-mobile {
  padding: 0;
  position: relative;
}

footer .container>.footer-info-mobile {
  display: none;
}

footer .footer-info-text {
  margin: 100px 0 -30px 10px;
  width: 100%;
}

footer .footer-info p, footer .footer-info-mobile p {
  font-size: 12px;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 5px;
}

footer .footer-menu {
  padding-left: 0;
  list-style: none;
}

footer .footer-contact p, footer .footer-sitemap li a {
  font-size: 14px;
  margin: 2px 0;
  text-decoration: none;
  color: #000000;
}

footer .footer-contact p:first-of-type {
  margin-top: 18px;
}


.wpforms-container .wpforms-form * {
  text-align: left;
}

.mobile-show {
  display: none;
}

/* Basic reset */
.mobile-nav {
  display: none; /* hidden by default on mobile */
  background-color: #DDDDDD;
  padding: 20px;
  width: 90%;
  position: absolute;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
  display: none !important; /* hidden by default */
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  display: inline-block;
  z-index: 1000; /* stays on top */
}

.menu-toggle span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  left: 0;
  transition: 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* Active state = cross */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Show nav when active */
.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
}
.mobile-nav li {
  border-top: dotted #a7aaad;
  margin: 10px;
  padding-top: 5px;
}
.mobile-nav li a {
  text-decoration: none;
  color: #000000;
}

.mobile-menu {
  padding-left: 0;
}

.mobile-menu li:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 0;
  background-image: url('/wp-content/themes/entaco-theme/images/right-carat.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left top;
}


/* Tablet */
@media (max-width: 1200px) {
  .content-wrapper-left {
    width: 60%;
  }
  .content-wrapper-right {
    width: 40%;
  }
  .primary-menu>li.menu-item-has-children a {
    padding: 0 20px 0 6px;
  }
  .primary-menu>li a {
    margin: 0;
  }
}


/* Mobile */
@media (max-width: 768px) {
  /* stack columns, simplify nav */

  header .container {
    width: 100%;
  }
  header .nav-container {
    width: 50%;
  }
  header .corner-container {
    width: 20%;
  }
  header .logo-container {
    width: 30%;
  }

  .main-nav {
    display: none; /* hide main nav */
  }

  .menu-toggle {
    display: block !important;
    margin-left: 5%;
  }

  .content-wrapper {
    display: grid;
  }
  .content-wrapper-left {
    width: 100%;
    padding-bottom: 40px;
    padding-top: 40px;
  }
  .content-wrapper-right {
    width: 100%;
  }

  h3:before {
    margin-left: -17px;
  }

  footer .container {
    display: grid;
    padding-bottom: 0;
    width: 100%;
  }
  footer .container:nth-of-type(2) {
    background-image: none;
  }
  footer .container>div {
    padding: 1rem;
  }
  footer .container>.footer-info-mobile {
    display: block;
    background: linear-gradient(to right, #40B9D8, #4bddda);

  }
  footer .container>.footer-info {
    display: none;
  }
  footer .footer-info-text {
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
    margin: 0;
  }
  footer .container>div {
    border-right: none;
    border-bottom: solid 1px #40B9D8;
  }
  footer .footer-logo {
    display: none;
  }
  .footer-site-map {
    padding: 5%;
  }
  .footer-sitemap img {
    float: right;
    margin-top: 20px;
  }
  .mobile-show {
    display: block;
  }
}