/*
Theme Name: MEWP Smart
Author: The Design Bank
Author URI: https://thedesignbank.co.uk
Description: The Design Bank custom theme for WordPress
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

/* Main styles for generic elements */

@import url("https://fonts.googleapis.com/css2?family=Stack+Sans+Headline:wght@200..700&family=Stack+Sans+Text:wght@200..700&display=swap");

:root {
  --orange: #f88a20;
  --white: #fff;
  --black: #000;
  --headingFont: "Stack Sans Headline", sans-serif;
  --paragraphFont: "Stack Sans Text", sans-serif;
  --borderRadius: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--headingFont);
}

h1 {
  font-size: 82px;
  line-height: 82px;
}

h2 {
  font-size: 64px;
  line-height: 65px;
}

h3 {
  font-size: 24px;
  line-height: auto;
}

h4 {
  font-size: 36px;
  line-height: auto;
}

p {
  font-family: var(--paragraphFont);
  font-size: 16px;
  line-height: 20px;
  color: var(--black);
  font-weight: 300;
}

@media (max-width: 768px) {
  h2 {
    font-size: 36px;
    line-height: 36px;
  }
  p {
    font-size: 12px;
    line-height: 16px;
  }
}

.button {
  background-color: var(--orange);
  padding: 0.5rem 3.75rem;
  color: var(--white);
  border: 0.15rem solid var(--orange);
  border-radius: var(--borderRadius);
  text-decoration: none;
}

.button:hover {
  background-color: var(--white);
  color: var(--black);
  border: 0.15rem solid var(--black);
}

a {
  color: var(--black);
  text-decoration: none;
}

a:hover {
  color: var(--orange);
}

ul {
  list-style-type: none;
  padding-left: 0;
}

.borderLeft {
  border-left: 1px solid var(--black);
}

@media (max-width: 991px) {
  .borderLeft {
    border-left: none;
  }
}

/* Notice Banner */

.notice-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.notice-popup {
  position: relative;
  background: var(--orange);
  max-width: 700px;
  width: 90%;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.notice-content p {
  color: var(--white);
}
.notice-content p span {
  width: 100%;
  display: inline-block;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--white);
}

.close-btn:hover {
  opacity: 0.7;
}

/* Header Banner */

header {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}

.headerBackground {
  display: flex;
  justify-content: center;
  position: relative;
  width: 120%;
  max-width: 2000px;
  height: 75vh;
  overflow: hidden;
  border-radius: var(--borderRadius);
  background-position: center center;
  background-size: cover;
}

.headerBackground .content {
  position: absolute;
  bottom: 10rem;
  left: 25rem;
  max-width: 45rem;
}

.headerBackground .content h1 {
  font-size: 24px;
  line-height: initial;
  color: var(--orange);
}

.headerBackground .content h2 {
  font-size: 82px;
  line-height: 82px;
  color: var(--white);
}

@media (max-width: 1340px) {
  .headerBackground .content {
    left: auto;
  }
  .headerBackground .content h2 {
    font-size: 3rem;
    line-height: 3rem;
  }
}
@media (max-width: 768px) {
  .headerBackground {
    height: 75vh;
  }
}

/* Main Menu */

.menuBar {
  background: var(--white);
  padding: 0.5rem;
  border-radius: var(--borderRadius);
  margin-top: 2rem;
  z-index: 5;
}

#menu-main-menu img {
  display: inline-block;
  padding-right: 2rem;
}

#menu-main-menu li {
  display: inline-block;
  margin: 0;
  flex: 1;
  padding: 0 1rem;
}

.logo {
  max-height: 60px;
  width: auto;
  padding: 0 0.8rem;
}

#menu-main-menu li a {
  display: block;
  padding: 0.5rem;
  text-align: center;
  text-wrap: nowrap;
}

#menu-main-menu .button {
  padding: 0rem 1rem;
}

@media (max-width: 991px) {
  .menuBar .logo {
    max-width: 65%;
  }
  #menu-main-menu li:not(:last-child) a {
    text-align: left;
  }
  #menu-main-menu li {
    margin: 1rem 0 0 0;
  }
  .navbar-toggler:focus {
    box-shadow: none !important;
    outline: none;
  }
}

/* About Us Sliders */

.slidingContent {
  margin: 5rem auto;
}

.slidingContent h3 {
  color: var(--orange);
  width: fit-content;
  border-bottom: 1px solid black;
  padding-bottom: 1rem;
}

.slidingContent h4 {
  font-weight: normal;
  min-height: 130px;
}

.about-card {
  position: relative;
  display: flex;
  min-height: 500px;
  padding: 40px;
  overflow: hidden;
  align-items: flex-end;
}

.about-content {
  position: relative;
  z-index: 2;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-card p {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.about-card:hover .about-content {
  transform: translateY(-250px);
}

.about-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

.about-card:hover .about-content h3 {
  border-bottom-color: transparent;
  padding-bottom: 0;
}

@media (max-width: 991px) {
  .about-slider {
    display: block;
  }

  .about-slider .col-12 {
    padding: 0 10px;
  }

  .about-card {
    display: block;
    min-height: auto;
    padding: 30px;
  }

  .about-content {
    transform: none;
    transition: none;
  }

  .about-card p {
    position: static;
    opacity: 1;
    max-height: none;
    margin-top: 1.5rem;
    transform: none;
  }

  .slidingContent h4 {
    min-height: auto;
  }

  .about-card:hover .about-content,
  .about-card:hover p {
    transform: none;
  }

  .slick-next::before,
  .slick-prev::before {
    color: #000;
  }
}

@media (max-width: 600px) {
  .about-slider {
    position: relative;
    padding: 0 40px; /* creates room for arrows */
  }

  .about-slider .slick-prev {
    left: 10px;
    z-index: 10;
  }

  .about-slider .slick-next {
    right: 15px;
    z-index: 10;
  }

  .about-slider .slick-prev,
  .about-slider .slick-next {
    width: 32px;
    height: 32px;
  }
}

/* Illustration Block  */

.illustration {
  margin-bottom: 5rem;
}

.illustration .video-section {
  display: flex;
  justify-content: center;
}

.illustration .video-wrapper {
  position: relative;
  width: 120%;
  max-width: 1500px;
  overflow: hidden;
  border-radius: var(--borderRadius);
}

.illustration .video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.illustration .video-wrapper .heading {
  position: absolute;
  top: 8rem;
  left: 13.5rem;
  color: #fff;
  z-index: 2;
  max-width: 500px;
}

.illustration .video-wrapper .content {
  position: absolute;
  bottom: 10rem;
  right: 11.5rem;
  z-index: 2;
  max-width: 355px;
}

.illustration .video-wrapper .content p {
  color: #fff;
}

@media (max-width: 768px) {
  .illustration {
    margin-bottom: 1rem;
  }
  .illustration .video-section {
    margin-bottom: 2rem;
    min-height: 70vh;
  }
  .video-wrapper {
    width: 100% !important;
  }
  .illustration .video-wrapper video {
    object-fit: unset;
  }
  .illustration .video-wrapper .heading {
    top: 1rem;
    left: unset;
    text-align: center;
  }
  .illustration .video-wrapper .content {
    bottom: unset;
    top: 15vh;
    padding: 1rem;
    font-size: 12px;
    right: unset;
  }
}

/* Homepage Products */

.products h2 {
  margin: 1rem auto 5rem;
}

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  transition: background-image 0.35s ease;
  height: 100vh;
  max-height: 900px;
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--borderRadius);
}

.hero-tab {
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.hero-tab.active {
  opacity: 1;
}

.hero-menu,
.hero-content {
  position: absolute;
  z-index: 2;
}

.hero-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  top: 5rem;
}

.hero-tab {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  text-align: left;
  opacity: 0.75;
  transition: 0.3s;
  font-family: var(--headingFont);
  border-bottom: 1px solid var(--white);
  width: calc(100% + 20px);
}

.hero-tab.active,
.hero-tab:hover {
  opacity: 1;
}

.hero-content {
  right: 0;
  bottom: 0;
  border-top-left-radius: var(--borderRadius);
  max-width: 50%;
  background: white;
  padding: 60px;
}

.hero-content .moreBlock {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content .moreBlock .button {
  margin-bottom: 20px;
}

.hero-content h3 {
  font-size: 64px;
  margin-bottom: 20px;
}

@media (max-width: 1400px) {
  .hero-content {
    max-width: 75%;
  }
}

@media (max-width: 991px) {
  .hero-content {
    max-width: 90%;
  }
  .hero {
    height: 75vh;
  }
}

@media (max-width: 768px) {
  .products h2 {
    margin: 1rem auto 2.5rem;
  }
  .hero-menu {
    flex-direction: row; /* mobile horizontal */
    overflow-x: auto; /* allow scrolling if buttons don't fit */
    gap: 10px;
    width: 100%;
    white-space: nowrap;
    margin-left: -16px;
  }

  .hero-tab {
    font-size: 16px;
    flex: 1;
    width: 100%;
    text-align: center;
  }
  .hero {
    padding: 1rem;
  }
  .hero-content {
    bottom: 0;
    right: unset;
    max-width: 100%;
    margin-left: -16px;
    border-top-right-radius: var(--borderRadius);
    padding: 1rem;
  }
  .hero-content h3 {
    font-size: 36px;
    line-height: 36px;
  }
  .hero-content .button {
    text-align: center;
  }
}

/* Gallery Section */

.gallery h2 {
  margin: 5rem auto;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 100px;
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 20px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item:nth-child(6n + 1) {
  grid-column: 1;
  grid-row: span 3;
}

.gallery-item:nth-child(6n + 2) {
  grid-column: 2;
  grid-row: span 6;
}

.gallery-item:nth-child(6n + 3) {
  grid-column: 3;
  grid-row: span 4;
}

.gallery-item:nth-child(6n + 4) {
  grid-column: 4;
  grid-row: span 6;
}

.gallery-item:nth-child(6n + 5) {
  grid-column: 1;
  grid-row: span 3;
}

.gallery-item:nth-child(6n + 6) {
  grid-column: 3;
  grid-row: span 2;
}

#load-more {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .gallery h2 {
    margin: 2rem auto;
  }
  .masonry-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 100px;
    gap: 10px;
  }

  .gallery-item {
    overflow: hidden;
    border-radius: 20px;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .gallery-item:nth-child(6n + 1) {
    grid-column: 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(6n + 2) {
    grid-column: 2;
    grid-row: span 3;
  }

  .gallery-item:nth-child(6n + 3) {
    grid-column: 1;
    grid-row: span 2;
  }

  .gallery-item:nth-child(6n + 4) {
    grid-column: 1;
    grid-row: span 3;
  }

  .gallery-item:nth-child(6n + 5) {
    grid-column: 2;
    grid-row: span 1;
  }

  .gallery-item:nth-child(6n + 6) {
    grid-column: 2;
    grid-row: span 2;
  }
}

/* Get in touch */

.contact {
  margin: 2rem auto;
}

.contact h2 {
  margin: 3rem auto 5rem;
}

input,
textarea {
  border-radius: var(--borderRadius);
  width: 100%;
  padding: 0.75rem;
}

.formSubmit {
  margin-top: 5rem;
}

.formSubmit input {
  width: initial;
}

@media (max-width: 768px) {
  .contact {
    margin-bottom: 0;
  }
  .contact h2 {
    margin: 0rem auto 2rem;
  }
  .contactForm {
    margin-top: 3rem;
  }
  .map {
    height: 40vh;
  }
  .formSubmit {
    margin-top: 2rem;
    text-align: center;
  }
  .formSubmit input {
    margin: 0 auto;
  }
  .wpcf7-spinner {
    display: none;
  }
}

/* Address Bar */

.addressBar {
  margin: 3rem auto 5rem;
}

.addressBar div {
  display: inline-block;
}

.addressBar .address {
  padding-right: 2rem;
  border-right: 1px solid var(--black);
}

.addressBar .phoneNumber {
  padding-left: 2rem;
  padding-right: 2rem;
  border-right: 1px solid var(--black);
}

.addressBar .emailAddress {
  padding-left: 2rem;
}

@media (max-width: 768px) {
  .addressBar {
    margin: 3rem auto;
  }
  .addressBar .phoneNumber,
  .addressBar .address,
  .addressBar .emailAddress {
    border-right: none;
    padding: 0;
    margin: 0 auto 1rem;
    display: block;
  }
}

/* Footer */

.footerMain {
  border: 0.15rem solid var(--black);
  padding: 3rem;
  margin-bottom: 2rem;
  border-radius: var(--borderRadius);
}

.social-icon {
  width: 34px;
  height: 34px;
  background-image: url("assets/images/socialIcons-mixed.svg");
  background-repeat: no-repeat;
  display: inline-block;
  margin-left: 1rem;
  background-size: 150px 68px;
}

.facebook {
  background-position: left -34px;
}
.facebook:hover {
  background-position: left 0;
}

.linkedin {
  background-position: right -34px;
}
.linkedin:hover {
  background-position: right 0;
}

.instagram {
  background-position: center -34px;
}

.instagram:hover {
  background-position: center 0;
}

@media (max-width: 768px) {
  .footerMain {
    max-width: 95%;
  }
  .footerLogo {
    margin-bottom: 3rem;
  }
  .footerProducts,
  .footerNavigate {
    text-align: center;
  }
  .footerSocial {
    margin-top: 2rem;
    text-align: center;
  }
  .social-icon:first-child {
    margin-left: 0;
  }
}
