/******************************************
/* ANIMATIONS
/*******************************************/

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10vh);
  }
  70% {
    transform: translateY(0);
  }
  100% {
    opacity: 1;
  }
}

@keyframes expandFadeIn {
  0% {
    opacity: 0;
    height: 0;
  }
  100% {
    opacity: 1;
    height: 80%;
  }
}

.fade-in {
  animation: fadeIn 0.75s linear 0s 1 normal forwards running;
}

.fade-out {
  animation: fadeOut 0.75s linear 0s 1 normal forwards running;
}

.slide-fade-in {
  animation: slideFadeIn 0.75s ease-in 0s 1 normal forwards running;
}

.expand-fade-in {
  animation: expandFadeIn 1s ease-in 0s 1 normal forwards running;
}

/******************************************
/* BASE
/*******************************************/

:root {
  --gradient1a: #d1dbe4;
  --gradient1b: #bac6cf;
  --darkgrey: #939ca3;
  --midgrey: #b5bdc4;
  --lightgrey: #e1e4e8;
}

html {
	scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

.primary-section {
  min-height: 100vh;
  padding: 10%;
  display: flex;
  flex-flow: column nowrap;
  gap: 5vh;
  justify-content: center;
}

 .primary-heading:not(.landing-heading) {
    border-left: solid 1px black;
    padding-left: 10px;
  }

  .primary-heading.mission-heading,
  .primary-heading.testimonials-heading {
    border-color: white;
  }

a {
  transition: transform 0.25s ease-out 0s;
  display: inline-block;
}

a:hover {
  transform: translateY(-0.25rem);
}

@media all and (min-width: 750px) and (hover: hover) {
  .primary-section {
    padding: 5% 10%;
  }
}

/******************************************
/* COMPONENTS
/*******************************************/

.button {
  padding: 15px 30px;
  border: none;
  border: solid 1px black;
  color: black;
  display: block;
  width: fit-content;
  white-space: nowrap;
  background: transparent;
  text-transform: uppercase;
  transition: transform 0.25s ease-out 0s;
}

.button:hover {
  transform: scale(1.05);
}

/******************************************
/* LAYOUT
/*******************************************/

/* Home */

.mobile-menu {
  position: fixed;
  right: 10%;
  top: 5%;
  height: 30px;
  width: 30px;
  border: none;
  background: url("../images/icons/menu4.png") center/cover no-repeat;
  z-index: 10;
  cursor: pointer;
}

.main-header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-around;
  height: 100vh;
  transform: translateY(-100%);
  background: linear-gradient(135deg, var(--gradient1a), var(--gradient1b));
  opacity: 0;
  transition: all 0.5s ease-out 0s;
  z-index: 9;
}

.main-header.show-menu {
  transform: translateY(0);
  opacity: 1;
}

.main-nav {
  height: 100%;
  width: 100%;
}

.nav-ul {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-evenly;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  padding: 5% 10%;
}

.landing {
  justify-content: center
}

.landing-heading,
.landing-text {
  animation-duration: 0s;
}

.landing-text {
  margin-top: 2%;
}

.home-container {
  width: 100%;
}

@media all and (min-width: 750px) and (hover: hover) {
  .mobile-menu {
    display: none;
  }

  .main-header {
    position: absolute;
    height: 60px;
    width: 100%;
    opacity: 1;
    transform: translateY(0);
    justify-content: space-between;
    padding-left: 2.5%;
    background: transparent;
    justify-content: center;
  }

  .main-nav {
    width: 80%;
  }

  .nav-ul {
    flex-flow: row wrap;
    padding: 0;
    align-items: center;
    justify-content: space-evenly;
    background: transparent;
  }

  .landing {
    align-items: center;
    justify-content: flex-start;
  }

  .landing-heading,
  .landing-text {
    animation-duration: 1.5s;
    animation-timing-function: ease-in;
  }

  .home-container {
    width: 80%;
  }
}

/* Mission */

.mission {
  gap: 5vh;
}

.mission-button {
  border-color: white;
}

@media all and (min-width: 750px) and (hover: hover) {
  .mission {
    gap: 5vh;
  }
}

/* Promo */

.promotion {
  position: fixed;
  width: 70%;
  height: 80%;
  top: 50%;
  left: 15%;
  transform: translateY(-50%);
  box-shadow: 0 0 50px 25px rgba(4, 4, 4, 0.5);
  background: var(--darkgrey);
  padding: 10%;
  text-align: center;
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-evenly;
  align-items: center;
  z-index: 10;
  border: solid white 1px;
  outline: solid var(--darkgrey) 20px;
}

.promotion-close {
  position: absolute;
  left: 20px;
  top: 20px;
  height: 20px;
  width: 20px;
  border: none;
  background: url("../images/icons/close.png") center/cover no-repeat;
  cursor: pointer;
}

@media all and (min-width: 750px) and (hover: hover) {
  .promotion {
    box-shadow: 0 0 100px 50px rgba(4, 4, 4, 0.5);
    padding: 5%;
  }
  .promotion-close {
    left: 5%;
    top: 5%;
    height: 30px;
    width: 30px;
  }
}

/* About */

.about-figure {
  width: 80%;
  height: auto;
  align-self: center;
  /* background-color: var(--darkgrey); */
  overflow: hidden;
  position: relative;
}

.about-figcaption {
  padding: 5%;
  position: absolute;
  z-index: 2;
  bottom: 0;
  right: 0;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: drop-shadow(-10px 10px 45px rgba(4, 4, 4, 0.9)); */
}

@media all and (min-width: 750px) and (hover: hover) {
  .about {
    display: block;
    position: relative;
  }

  .about:after {
    content: "";
    display: table;
    clear: both;
  }

  .about-heading {
    width: 100%;
    margin-bottom: 5vh;
  }

  .about-text {
    margin-bottom: 5vh;
  }

  .about-figure {
    width: 40%;
    z-index: 0;
    float: right;
    position: relative;
    margin: 0 0 20px 40px;
  }
}

/* Services */

.services-ul {
  display: flex;
  flex-flow: column nowrap;
  gap: 5vh;
}

.summary-text {
  margin-top: 5%;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}

.services-section {
  display: flex;
  flex-flow: column nowrap;
  gap: 2.5vh;
  margin: 2.5vh 0;
}

.services-figure {
  height: 25vh;
  min-height: 50vw;
  padding: 5%;
}

.services-list {
  display: flex;
  flex-flow: column nowrap;
  gap: 2vh;
  margin-top: 2vh;
  padding: 2%;
}

.services-list-item {
  background: var(--midgrey);
  padding: 2.5%;
}

.services-list-title {
  background: var(--darkgrey);
  display: block;
  margin-bottom: 5%;
}

.services-item:first-child {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}

.services-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 0%;
}

.services-image-2 {
  object-position: unset;
}

.services-button {
  margin: 2.5vh 0;
}

.link-image {
  width: 1rem;
  height: 1rem;
}

@media all and (min-width: 750px) and (hover: hover) {
  .services-section {
    display: grid;
    grid: auto 1fr 1fr / 1fr 1fr;
    gap: 5vh;
    align-items: start;
  }

  .services-section .service-title {
    grid-area: 1 / 1 / 2 / 3 ;
  }

  .services-section .services-figure {
    grid-area: 2 / 1 / 3 / 2 ;
  }

  .services-section .summary-text {
    grid-area: 3 / 1 / 4 / 2 ;
  }

  .services-section .services-list {
    grid-area: 2 / 2 / 4 / 3 ;
  }

  .services-section-2 .services-figure {
    grid-area: 2 / 2 / 3 / 3 ;
  }

  .services-section-2 .summary-text {
    grid-area: 3 / 2 / 4 / 3 ;
  }

  .services-section-2 .services-list {
    grid-area: 2 / 1 / 4 / 2 ;
  }

  .services-button {
    margin: 5vh 0;
  }

  .services-figure {
    height: 50vh;
    min-height: 50vh;
    z-index: 0;
    padding: 0;
    transition: box-shadow 0.25s linear 0s;
  }

  .services-section:hover .services-figure {
    box-shadow: -10px 10px 15px 5px rgba(90, 90, 90, 0.2);
  }

  .services-section:hover .services-figure-2 {
    box-shadow: 10px 10px 15px 5px rgba(90, 90, 90, 0.2);
  }

  .services-figure::before {
    position: absolute;
    z-index: -1;
    content: "";
    display: block;
    height: 40%;
    width: 20%;
    background: var(--darkgrey);
    transform: translate(-20%, -10%);
  }

  .services-figure-2::before {
    /* background: var(--midgrey); */
    transform: translate(110%, -10%);
  }

  /* .services-figure-2 {
    order: -1;
  } */
}

/* Podcast */

.podcast-section {
  display: block;
  width: 80%;
  height: auto;
  align-self: center;
  position: relative;
}

.podcast-figure,
.podcast-icon {
  width: 100%;
}

.podcast-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podcast-ul {
  width: 100%;
  margin-top: 10%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-evenly;
  filter: drop-shadow(0px 10px 5px rgba(4, 4, 4, 0.2))
}

.podcast-icon {
  width: 50px;
  height: 50px;
}

@media all and (min-width: 750px) and (hover: hover) {
  .podcast {
    display: block;
    position: relative;
  }

  .podcast:after {
    content: "";
    display: table;
    clear: both;
  }

  .podcast-section {
    width: 40%;
    float: right;
    margin: 0 0 20px 40px;
  }

  .podcast-ul {
    margin-top: 5%;
    /* justify-content: space-evenly; */
  }

  .podcast-heading {
    width: 100%;
    margin-bottom: 5vh;
  }

  .podcast-text {
    margin-bottom: 5vh;
  }
  
  .podcast-icon {
    width: 75px;
    height: 75px;
  }
}

/* Testimonials */

.testimonials {
  align-items: center;
  position: relative;
  padding-bottom: calc(40px + 10%);
}

.testimonials-heading {
  align-self: flex-start;
}

.testimonials-container {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  align-items: center;
}

.testimonials-item:first-of-type {
  transition: margin-left 0.5s;
}

.testimonials-item {
  width: 100%;
  flex-shrink: 0;
}

.testimonials-name {
  display: block;
  margin: 20px;
}

.testimonials-button {
  height: 40px;
  width: 40px;
  border: solid 1px white;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

  .testimonials-button {
    position: absolute;
    bottom: 40px;
  }

.left-testimonials-button {
  left: 30%;
}

.right-testimonials-button {
  right: 30%;
}

@media all and (min-width: 750px) {
  .testimonials {
    padding-bottom: 5%;
  }

  .testimonials-container {
    width: 80%;
  }

  .testimonials-button {
    bottom: unset;
    top: 50%;
    transition: transform 0.25s ease-out 0s;
  }

  .testimonials-button:hover {
    transform: scale(1.05);
  }

  .left-testimonials-button {
    left: 10%;
  }

  .right-testimonials-button {
    right: 10%;
  }

}


/* Contact */

.contact form {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  height: 50vh;
}

.contact textarea {
  width: 100%;
  margin-bottom: 10px;
  height: 80%;
  padding: 5%;
  border: none;
  resize: none;
}

.contact button {
  cursor: pointer;
  margin-top: 2.5vh;
}

.contact-figure {
  width: 80%;
  height: auto;
  align-self: center;
  overflow: hidden;
  position: relative;
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media all and (min-width: 750px) {
  .contact {
    display: block;
    position: relative;
  }

  .contact:after {
    content: "";
    display: table;
    clear: both;
  }

  .contact-heading {
    width: 100%;
    margin-bottom: 5vh;
  }

  .contact-text {
    margin-bottom: 5vh;
  }

  .contact-figure {
    width: 40%;
    z-index: 0;
    float: right;
    position: relative;
    margin: 0 0 20px 40px;
  }

  .contact address {
    width: 80%;
  }

  .contact form {
    align-items: flex-end;
  }

  .contact textarea {
    width: 80%;
    padding: 2%;
  }
}

/* Footer */

.footer {
  padding: 2.5%;
  min-height: 0;
  align-items: center;
  gap: 2.5vh;
}

.footer {
    padding: 2.5% 5%;
    flex-flow: row wrap;
    justify-content: flex-end;
  }

.footer-image {
  width: 35px;
  height: 35px;
}

.footer-image-1 {
  width: auto;
}

.footer-image-3 {
  padding: 5px;
}

@media all and (min-width: 750px) {
  .footer {
    padding: 1.25% 5%;
  }
}

/******************************************
/* THEME
/*******************************************/

.primary-section {
  background: #e1e4e8;
}

.about,
.podcast,
.contact {
  background: linear-gradient(135deg, var(--gradient1a), var(--gradient1b));
}

.podcast {
  background: linear-gradient(135deg, var(--midgrey), var(--darkgrey));
}

.landing {
  background: var(--lightgrey)url("../images/compressed/bg2.webp") center/cover no-repeat;
  background-blend-mode: multiply;
}

.footer {
  background: var(--darkgrey);
}

.mission {
  background: rgba(4, 4, 4, 0.6) url("../images/compressed/bg.webp") center/cover no-repeat;
  background-blend-mode: multiply;
}

.testimonials {
  background: rgba(4, 4, 4, 0.6) url("../images/compressed/bg1.webp") left/cover no-repeat;
  background-blend-mode: multiply;
}

@media all and (hover: hover) {
  .landing {
    background-position: left 90%;
  }

  .mission,
  .testimonials {
    background-attachment: fixed;
  }
}

/******************************************
/* TYPOGRAPHY
/*******************************************/

html,
form > * {
  font-family: "Manrope", sans-serif;
  font-size: 100%;
  color: black;
}

h1,
h2,
h3,
.nav-link,
.button,
.highlight,
.testimonials-name {
  font-family: 'Cormorant', serif;
  font-size: 125%;
}

.about-figcaption,
.text {
  line-height: 1.5rem;
}

.testimonials-name {
  line-height: 2rem;
}

.italic {
  font-style: italic;
}

.bold {
  font-weight: bold;
}

.about-figcaption {
  font-size: 1rem;
}

.landing-text,
.testimonials-button {
  font-size: 1.2rem;
}

.primary-heading {
  font-size: 1.25rem;
}

.landing-heading {
  font-size: 3rem;
  line-height: 4.5rem;
}

.landing-heading,
.landing-text {
  color: rgba(4, 4, 4, 0.95);
  text-shadow: 5px 5px 7.5px grey;
}

.primary-heading,
.nav-link,
.service-title,
.testimonials-name,
.button {
  font-weight: bold;
  text-transform: uppercase;
}

/* .about-figcaption, */
.testimonials-name,
.mission,
.mission-button,
.testimonials * {
  color: white;
}

.highlight,
.about-figcaption {
  color: rgba(255, 255, 255, 0.8)
}

a {
  color: inherit;
}

.home-container,
.summary-text,
.services-list,
.service-title,
.testimonials-item {
  text-align: center;
}

.about-figcaption {
  text-align: right;
  filter: invert(0.75);
  mix-blend-mode: multiply;
}

@media all and (min-width: 750px) and (hover: hover) {
  .primary-heading {
    font-size: 2rem;
    opacity: 0.5;
  }

  .landing-heading {
    font-size: 5rem;
    line-height: 6rem;
  }

  .highlight {
    font-size: 1.5rem;
  }

  .about-text,
  .podcast-text,
  .contact-text {
    text-align: right;
  }
}
