/* 
  Theme Name: Main Theme One
  Author: Jean Oosthuizen
  Version: 1.0
*/
:root {
  --primary-one: #F4F8F9;
  --primary-two: #1c1c1c;
  --highlight: #DAA520;
  --highlight-rgb: 218, 165, 32;
  --highlight-hover: #dea924;
}
html{
  font-size: 62.5%;
}
body {
  margin: 0px;
  background-color: var(--primary-one);
  color: var(--primary-two);
  display: flex;
  flex-direction: column;
  font-family: Overpass, sans-serif;
}
.contact-link, .contact-link:visited{
  color: black;
}


/* nav menus */
.navbar {
  margin:0;
  padding:0;
}
.navbar li {
  list-style:none;
  float:left;
  font-size: 2rem;
}
.main-nav-container{
  position:sticky;
  top:0;
  width: 100%;
  margin: 0 auto;
  background-color: var(--primary-two);
  z-index:10;
}
.main-nav-container .navbar{
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-nav-container ul.navbar li.current-menu-item a{
  background-color: var(--highlight);
  color: var(--primary-two);
}
.main-nav-container ul li:hover {
  background-color: var(--highlight);
}
.main-nav-container .navbar li a:link,
.main-nav-container .navbar li a:visited{
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--primary-one);
}


/* content container */
main {
  background: #ddd;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  font-size: 1.6rem;
  line-height: 2.4rem;
  text-align: center;
  color: black;
}
main section {
  width: 100%;
  background: var(--primary-one);
  padding: 40px 0px;
}
main section:nth-child(1) {
  padding: 0;
}
main section h2 {
  font-size: 3rem;
  font-weight: 700;
}
main section li {
  text-align: left;
}

/* generic classes */
.col-3 {
  width: calc(25% - 2px);
}
.col-6 {
  width: calc(50% - 2px);
}
.col-9 {
  width: calc(75% - 2px);
}
.col-12 {
  width: 100%;
}

/* ---------section types----------- */
/* two column */
section .two-column {
  display: flex;
  flex-direction: row;
}
section .two-column .column{
  width: 50%;
  margin-left: 5%;
  margin-right: 5%;
  align-content: center;
}

/* simple single column */
.small-width-section {
  width: 60%;
  min-width: 460px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* faces */
.face-grid{
  display: grid;
  gap: 2px 2px;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  width: 100%;
}
.face-cell{
  height: 0;
  padding-bottom: 100%;
  position: relative;
  overflow: hidden;
}
.face-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height:100%;
}

/* hero */
.hero-logo {
  margin-top: 5px;
  margin-right: 0px;
  height: 85px;
}
.hero-section {
  color: white;
  width: 100%;
  text-align: center;
}
.hero-section h1 {
  margin-bottom: 0;
  font-weight: 700;
  font-size: 4.6rem;
  text-align: left;
  line-height: 45px;
}
.hero-section p {
  margin-top: 0;
  font-size: 1.5rem;
  text-align: left;
  padding: 5px 0px;
}
.hero-section .img-box {
  background-image: url('assets/images/vibe-background.jpg');
  background-position: top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  height: calc(90vh - 43px);
}
.hero-section .hero-component-container-spacer {
  padding-top: 4vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 20vh);
}
.hero-section .hero-text-container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px;

  border-radius: 15px;
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, rgba(43, 43, 43, 0.3), rgba(43, 43, 43, 0.25));
}
.hero-section .hero-text-container .hero-component {
  filter: drop-shadow(2px 4px 6px black);
}
.hero-section .hero-cta-container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px;
}
.hero-section .cta-button {
  width: 200px;
  height: 80px;
  background-color: rgba(var(--highlight-rgb), 1);
  font-size: 2rem;
  border-radius: 5px;
  border: none;
  box-shadow: 3px 10px 16px rgba(0, 0, 0, 1);
}
.hero-section .cta-button:hover{
  box-shadow: 4.5px 15px 20px rgba(0, 0, 0, 1);
  cursor: pointer;
  background: var(--highlight-hover);
}


/* service card section */
.service-cards {
  border: 1px solid var(--primary-two);
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  margin-left: 5%;
  margin-right: 5%;
}
.service-card {
  position: relative;
  border: 1px solid var(--primary-two);
  width: 50%;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  filter: drop-shadow(0px 0px 0px black);
  transition-duration: 0.7s;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: rgba(0, 0, 0, 0.6);
  filter: blur(8px);
  z-index: 1;
}
.service-card:hover {
  transition-duration: 0.5s;
  filter: drop-shadow(2px 4px 6px black);
}
.service-card-text {
  text-align: left;
  color: white;
  z-index: 2;
  padding: 0 0 3rem 4rem;
}
.service-card-text p,
.service-card-text h3 {
  margin: 0;
}
.service-card:nth-of-type(1) {
  border-radius: 20px 0 0 20px;
  background-image: url('assets/images/transport-cropped-2.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.service-card:nth-of-type(2) {
  border-radius: 0 20px 20px 0;
  background-image: url('assets/images/repairs.jpg');
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
}


/* machine post */
.crumbs {
  width: 100%;
  border: 1px solid black;
  height: 50px;
}
.post-wrapper {
  width: 70%;
  margin: 2rem auto 0 auto;
}
.machine-blurb {
  display: flex;
}
.post-images {
  width: 34%;
}
.blurb-text {
  width: 66%;
}
.post-content div {
  border: 1px solid black;
}
.post-images img {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 400px;
  margin-right: auto;
  margin-left: auto;
}
.blurb-text h1 {
  font-size: 4.6rem;
}


/* -------viewport adaptivity------- */
@media (max-width: 768px) {
  .machine-blurb {
    flex-direction: column;
  }
  .post-images,
  .blurb-text {
    width: 100%;
  }

  .service-cards {
    flex-direction: column;
  }
  .service-card {
    width: 100%;
    min-height: 340px;
    transition-duration: 0s;
  }
  .service-card:hover {
    transition-duration: 0s;
  }
  .service-card:nth-of-type(1) {
    border-radius: 20px 20px 0 0;
  }
  .service-card:nth-of-type(2) {
    border-radius: 0 0 20px 20px;
  }
  .service-card:hover {
    filter: drop-shadow(0px 0px 0px black);
  }

  .small-width-section {
    width: 80%;
    min-width: unset;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  section .two-column:not(.strict){
    flex-direction:column;
  }
  section .two-column:not(.strict) .column{
    width:90%;
  }
}