:root {
  /* TODO */
  --mid-text: #c8c6c5;
  --dark-text: #2f2826;
  --background: #fbfaf9;
  /* --mid-neutral: #f0e9e3;
  --dark-neutral: #e4d8cc; */
  --background-main: #ebeeec;
  --light-main: #419f81;
  --mid-main: #35826a;
  --dark-main: #265c4b;
  --light-accent: #feece5;

  --mid-accent: #fdded2;
  --dark-accent: #fcd0bf;

  --font-primary: "Rubik";
  --font-secondary: "Roboto Serif", serif;
}

html {
  scroll-padding-top: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  text-align: center;
  background-color: var(--background);
  color: var(--dark-text);
  font-family: var(--font-primary);

  /* outline: 2px solid red; */
}

body::-webkit-scrollbar {
  display: none;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease-out, transform 2ms ease-out;
  visibility: hidden;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* BUTTON */
.button {
  width: 9em;
  height: 2.5em;
  justify-self: center;
  color: var(--dark-text);
  border: 2px solid var(--dark-text);
  box-shadow: 5.4px 10.7px 10.7px hsl(0deg 0% 0% / 0.33);

  border-radius: 0.8em;

  font-size: 1.25em;
  text-transform: lowercase;
  text-decoration: none;
  background: transparent;
}

.button:hover,
.button:focus,
.button:active {
  background: transparent;
  border: 2px solid var(--dark-text);
  transform: translateY(2px);
  transition: transform 0.1s ease-in-out;
  text-shadow: none;
  color: var(--dark-text);
}

h3 {
  font-size: 2.5rem;
  font-weight: 350;

  letter-spacing: 0.05rem;
  font-size: 3em;
  /* color: var(--background);
  -webkit-text-stroke: 0.75px var(--dark-text); */
}

h4 {
  font-size: 2rem;
  font-weight: 200;
}

h5 {
  font-size: 1.5em;
  font-weight: 200;
}

p {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 1.05em;
}

.fa-light {
  width: 15%;
}

.fa-medium {
  width: 15%;
}

.fa-large {
  width: 30%;
}

/* NAV BAR */
/* TODO hide dropdown menu on load - flashes across screen */
/* TODO change background? */
.nav-bar {
  display: none;
}

.nav-bar a {
  text-decoration: none;
  color: var(--dark-text);
}

.logo {
  display: flex;
}

#hamburger {
  width: 45px;
  height: 30px;
  top: 1rem;
  left: 1rem;
  position: fixed;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  z-index: 100;
}

#hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--dark-text);
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
  z-index: 100;
}

#hamburger span:nth-child(1) {
  top: 4px;
}

#hamburger span:nth-child(2),
#hamburger span:nth-child(3) {
  top: 18px;
}

#hamburger span:nth-child(4) {
  top: 32px;
}

/* HAMBURGER 'X' TOGGLE */

#hamburger.open span:nth-child(1) {
  top: 18px;
  width: 0%;
  left: 50%;
}

#hamburger.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#hamburger.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#hamburger.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}

/* DROPDOWN MENU */
/* TODO transition similar to hamburger */

#menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);

  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
  z-index: 100;
}

#menu.show-menu {
  display: flex;
  position: fixed;
  height: 100vh;
  width: 100vw;

  background: var(--background);
  font-size: 1.5rem;

  z-index: 99;

  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

#menu ul {
  position: absolute;
  width: 75vw;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  font-size: 2rem;
  list-style-type: none;
  line-height: 2;
}

#menu a {
  text-decoration: none;
  color: var(--dark-text);
}

#menu a:focus,
#menu a:hover {
  opacity: 0.7;
}

/* HEADER */
/* TODO work on animations */
.header-container {
  position: relative;
  width: 100%;
  height: 90vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

  /* 
  outline: 2px solid red; */
}

.icons {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;

  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.icon {
  position: absolute;
  width: 64px;
  height: 64px;
  will-change: top, left, transform;
}

.icon img,
.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.header-title {
  font-size: 4.5em;
  text-transform: lowercase;
  line-height: 1em;

  z-index: 10;

  animation: moveInLeft 2.5s ease-out;
}

.header-title-main {
  position: relative;
  font-weight: 400;
}

.header-title-sub {
  transform: rotateY(180deg);
  animation: flipHorizontal 1.5s forwards;
  animation-delay: 5s;
  font-weight: 300;
}

.header-headline {
  position: relative;
  width: 60vw;
  margin-top: 1em;
  font-family: var(--font-secondary);
  color: var(--dark-text);
  font-size: 1.1em;

  opacity: 0;
  animation: fadeIn 4s forwards;
  animation-delay: 6s;

  z-index: 80;
}

.header-button {
  margin-top: 4em;
  backdrop-filter: blur(2px);

  opacity: 0;
  animation: popIn 1s forwards;
  animation-delay: 6s;

  z-index: 80;
}

/* HEADER ANIMATIONS */
/* TODO only on inital load */
@keyframes float {
  0% {
    transform: translate(-50%, -50%) translate(0, 0);
  }
  50% {
    transform: translate(-50%, -50%) translate(15px, -15px);
  }
  100% {
    transform: translate(-50%, -50%) translate(0, 0);
  }
}

@keyframes moveInLeft {
  0% {
    transform: translateX(-100px);
  }

  80% {
    transform: translateX(5px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes flipHorizontal {
  0% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.75;
  }

  100% {
    opacity: 1;
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.45;
  }

  100% {
    opacity: 0.9;
  }
}

/* MAIN */
main {
  /* outline: 2px solid red; */
}

/* ABOUT US */
.about-us {
  opacity: 0.8;
  padding: 1.5em 0em;
  background-color: var(--background-main);
  background-image: url(./subtle-dots.png);
  /* outline: 2px solid red; */
}

.about-us h3 {
  margin-top: 2em;
}

.about-us h4 {
  margin: 0.75em;
  font-size: 1.4em;
  font-weight: 600;

  color: var(--dark-main);
}

.about-us p {
  padding: 0.5em 2em;
}

.about-us li {
  font-family: var(--font-primary);
  font-weight: 300;
  list-style-type: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em 0;
}

/* ARROWS */
/* TODO fix arrow fade & blue background on click*/
.arrow {
  position: absolute;
  top: 59%;
  transform: translateY(-50%);
  color: var(--dark-main);
  font-size: 0.9em;
  background: hsla(0, 0%, 100%, 0.6);
  border-radius: 0.25em;
  padding: 0.4em 0.8em;
  cursor: pointer;
  z-index: 10;
  user-select: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.arrow-left {
  left: 0.5em;
}

.arrow-right {
  right: 0.5em;
}

.arrow.hidden {
  opacity: 0.3;
  transition: 0.4s ease;
  pointer-events: none;
}

.arrow:focus {
  outline: none;
}

/* SERVICES */
.services-container {
}

.services-title {
  margin: 5em 0em -3em 0em;
}

.services-carousel {
  position: relative;
  width: 100%;
  max-width: 1024px;
  height: 450px;
  margin: 0 auto;
  perspective: 1000px;
  overflow: hidden;
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.services {
  max-width: 325px;
  height: 325px;
  padding: 1rem;
  position: absolute;
  border-radius: 8px;
  /* box-shadow: 5.4px 10.7px 10.7px hsl(0deg 0% 0% / 0.33); */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease;
}

.services h4 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  flex: 4;
  width: 100%;
  height: 100%;
  border-radius: 8px 8px 0 0;
  font-size: 1.75em;
  background-color: var(--light-main);
  color: var(--background);
}

.services-specs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0.1em 0em;
  padding: 1em 2em;
  font-family: var(--font-secondary);
  font-weight: 300;
  flex: 1;
  width: 100%;
  height: 100%;
  background-color: var(--mid-main);
  color: var(--background);
}

.services-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0.25em 2em;
  font-family: var(--font-secondary);
  font-style: italic;
  font-weight: 200;
  border-radius: 0 0 8px 8px;
  flex: 4;
  width: 100%;
  height: 100%;
  background-color: var(--dark-main);
  color: var(--background);
}

/* Active carousel positions */
.services.center {
  z-index: 10;
  transform: scale(1.05) translateZ(0);
  opacity: 1;
}

.services.left-1 {
  z-index: 5;
  transform: translateX(-240px) scale(0.9) translateZ(-100px);
  opacity: 0.5;
}

.services.right-1 {
  z-index: 5;
  transform: translateX(240px) scale(0.9) translateZ(-100px);
  opacity: 0.5;
}

.services.hidden {
  opacity: 0;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: -2.5em;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--mid-text);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dots button.active {
  background: var(--dark-text);
}

/* LIMITED TIME DEAL */
/* TODO click to calendar link */
.limited {
  margin-top: 7em;
  padding: 2em;
  background-image: url(./subtle-dots.png);
  background-color: var(--light-accent);
  /* outline: 2px solid red; */
}

.limited h3 {
  margin: 0.5em -0.25em;
  font-size: 2.75em;
}

.limited-text p {
  margin-bottom: 2em;
  padding: 0em 1em;
  color: var(--dark-text);
  font-weight: 350;
}

/* CONTACT */
.contact-wrapper {
  padding: 4em 0em 5em 0em;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(5, 1fr);
  /* outline: 2px solid red; */
}

.contact1 {
  align-self: end;

  grid-column: span 2 / span 2;
}

.contact2 {
  padding: 1.5em;
  align-self: end;

  grid-column: span 2 / span 2;
  grid-row-start: 2;
}

.contact3 {
  grid-column: span 2 / span 2;
  grid-row-start: 3;
}

.contact4 {
  margin-top: 2em;
  font-weight: 300;
  grid-column: span 2 / span 2;
  grid-row-start: 4;
}

.contact5 {
  grid-column: span 2 / span 2;
}

.submit-button {
  font-weight: 300;
}

/* FORM */
/* TODO not even sure what's happening here */
input {
  outline: none;
  border-top: none;
  border-left: none;
  border-right: none;

  /* TODO take out if doesn't fix the curve issue */
  border-radius: 0;
  font-size: 1em;
  color: var(--dark-text);

  padding: 12px;
  /* lowered from 65% to see if it takes away the curve */
  width: 60%;
}

input[type="text"],
input[type="email"],
input[type="message"] {
  background-color: var(--background);
}

/* BOOKING CALENDAR */
.calendar {
  padding: 1em 0em 3em 0em;
  background-image: url(./subtle-dots.png);
  background-color: var(--light-accent);
}

.calendar h3 {
  margin-bottom: 0.5em;
}

iframe {
  width: 85vw;
  border-radius: 0.8em;
  box-shadow: 5.4px 10.7px 10.7px hsl(0deg 0% 0% / 0.33);
}

footer {
  height: 400px;
}

/* MEDIA QUERIES */
@media only screen and (orientation: landscape) {
}

@media only screen and (min-width: 43em) {
  h3 {
    font-size: 2.5em;
  }

  .fa-medium {
    width: 10%;
  }

  .fa-large {
    width: 20%;
  }

  #hamburger {
    display: none;
  }

  /* TODO needs work */
  .nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100vw;
    height: 9vh;
    z-index: 90;

    /* outline: 2px solid red; */
  }

  .nav-bar a {
    font-size: 1.25em;
  }

  .header-container {
    height: 65vh;
  }

  .header-img {
    /* top: 0;
    height: 58vh;
    background-image: url(./istockphoto-1286859312-1024w.jpg);
    background-repeat: no-repeat; */
  }

  .header-title {
    margin-top: 1em;
    font-size: 5em;
    line-height: 0.8em;
  }

  .header-headline {
    font-size: 1.25em;
    padding: 0.5em 6em;
  }

  .header-button {
    margin-top: 5em;
  }

  /* TODO hide until header animation is finished */
  .about-us {
    padding: 0em 3em;
  }

  .about-us li {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .about-us-mq {
    display: flex;
    flex-direction: column;
    width: 75vw;
  }

  /* TODO change layout? */
  .services {
  }

  .services-title h3 {
    margin: 2em 0em 0.5em 0em;
  }

  .limited {
    width: 85vw;
    padding: 5em;
    justify-self: center;
    border-radius: 0.8em;
  }

  .limited-text p {
    font-size: 1.25em;
  }

  .contact-wrapper {
    width: 75vw;
    justify-self: center;
  }

  .calendar {
    width: 85vw;
    justify-self: center;
    border-radius: 0.8em;
  }

  iframe {
    width: 60vw;
    justify-self: center;
  }
}

@media only screen and (min-width: 56em) {
  html {
  }

  h3 {
    color: var(--dark-text);
    text-shadow: none;
  }

  nav {
    display: flex;
  }

  nav img {
    width: 3%;
  }
  .nav-bar {
    height: 5em;
  }

  .header-container {
    height: 75vh;
  }

  .header-img {
    /* height: 95vh; */
    /* background-image: url(./istockphoto-1286859312-1400w.jpg); */
  }

  .header-headline {
    width: 58vw;
  }

  .header-button {
    margin-top: 2em;
    width: 10em;
    font-size: 1em;
    border: 1.5px solid var(--dark-text);
  }

  /* TODO this section needs something to make it less meh */
  .about-us h3 {
    margin-bottom: 2rem;
  }

  .about-us p {
    font-size: 0.9em;
  }

  .services-title h3 {
    margin-bottom: 0.5em;
  }

  .services-title h3,
  .limited h3,
  .calendar h3 {
    color: var(--dark-text);
  }

  .mq {
    margin-top: 3em;
    display: flex;
    flex-direction: row;
    align-items: baseline;
  }

  .limited {
    width: 50vw;
    background-image: none;
    background-color: var(--background);
    border-right: 1px solid var(--dark-text);
    border-radius: 0;
  }

  .limited p {
    font-size: 1.05em;
  }

  .contact-wrapper {
    width: 50vw;
    background-color: var(--background);
  }

  .calendar {
    margin-top: 6em;
    width: 75vw;
    border-radius: 0;
  }

  iframe {
    border-radius: 0;
  }
}

@media only screen and (min-width: 68em) {
  .fa-medium {
    width: 7%;
  }

  .header-container {
    height: 80vh;
  }

  .header-img {
  }

  .header-title {
    margin-top: 2em;
    font-size: 6em;
  }

  .header-headline {
    margin-top: 3em;
    width: 38vw;
  }

  .about-us li {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-us-mq {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-us p {
    width: 60vw;
    font-size: 1.25em;
  }

  .calendar {
    width: 60vw;
  }

  iframe {
    width: 50vw;
  }
}
