/* Box Model Hack */
* {
  box-sizing: border-box;
}

/* Clear fix hack */
.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clear {
  clear: both;
}

/******************************************
/* BASE STYLES
/*******************************************/
.html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

:root {
  --heading-text: #36454f;
  --primary-text: #4a5568;
  --primary-background: #e0dfd7;
  --accent-color: #182d00;
  --dark: #19191a;
  --font-family: "Ibarra Real Nova", serif;
}

.container {
  padding: 3rem 5rem;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
p,
.values li {
  margin-bottom: 2.4rem;
  line-height: 1.8;
  font-family: "Roboto";
  font-size: 1.3rem;
  color: var(--primary-text);
  letter-spacing: 0.05rem;
}
ul {
  list-style: none;
  padding: 0;
}

@media (max-width: 800px) {
  .container {
    padding: 4rem 1.25rem;
  }
}
/******************************************
/* LAYOUT/HEADER
/*******************************************/
header {
  height: fit-content;
  margin: 0.8rem;
  font-family: var(--font-family);
}

nav {
  align-items: center;
  margin-left: 2.5rem;
}
nav,
nav ul {
  display: flex;
  background-color: #fffefa;
  justify-content: space-between;
  text-transform: uppercase;
  color: var(--heading-text);
  font-weight: 300;
}

nav h1 {
  letter-spacing: 0.08em;
  font-weight: 500;
}

nav ul {
  gap: 4rem;
  text-decoration: none;
}

a {
  color: var(--heading-text);
  text-decoration: none;
  font-weight: 300;
}

nav li a {
  font-size: 0.85rem;
}

.btn {
  background-color: var(--accent-color);
  color: var(--primary-background);
  padding: 0.8rem 1.6rem;
  text-transform: uppercase;
}
.header .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
}

footer {
  height: fit-content;
}
/* Hamburger lines */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  height: 50px;
  width: 50px;
  margin-left: auto;
  position: relative;
}

.hamburger span {
  width: 25px;
  height: 1px;
  background: var(--heading-text);
  display: block;
}
@media (max-width: 800px) {
  header {
    margin: 1rem 1.25rem;
    margin: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: #fffefa;
  }

  h1 {
    font-size: 0.9rem;
  }
  nav {
    margin-left: 0;
  }
  nav ul {
    gap: 2rem;
  }
  nav li:last-child a {
    background-color: var(--primary-background);
    color: var(--heading-text);
    padding: 0;
    margin-top: 48px;
    font-size: 14px;
    letter-spacing: 0.15em;
    opacity: 0.85;
  }
  .hamburger {
    display: flex;
    padding-top: 16px;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-background);
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    font-size: 1.2rem;
    transition: 0.3s ease-in;
  }

  nav ul.active {
    display: flex;
    right: 0;
  }

  nav {
    padding: 1rem;
    display: flex;
  }
  nav li a {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }
}
/******************************************
/* HERO SECTION
/*******************************************/
.hero {
  height: fit-content;
  background-image: url("../img/hero-background-img.webp");
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
}

.heading {
  font-family: var(--font-family);
  color: var(--heading-text);
  font-weight: 500;
  margin-bottom: 3.2rem;
}

.hero h2 {
  font-size: 4.6rem;
  text-align: left;
  font-family: var(--font-family);
  color: var(--heading-text);
  font-weight: 500;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .hero {
    padding-top: -1rem;
    padding-bottom: 2rem;
    margin-top: 7rem;
  }

  .hero {
    height: 350px;
    background-image: url("../img/hero-background-img.webp");
    object-fit: cover;
    background-position: center;
  }
  .hero h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
    line-height: 1.25;
    max-width: 90%;
  }
  p,
  a {
    font-size: 1rem;
    line-height: 2.5;
  }
}

/******************************************
/* ABOUT SECTION
/*******************************************/
.about {
  background-color: var(--primary-background);
}
.about h3 {
  text-align: center;
  font-size: 1rem;
}
.about-col {
  display: flex;
  align-items: center;
  padding-top: 3.2rem;
}

.about-col div,
.about-col img {
  flex: 1;
}

.about-col img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 50%;
  height: 500px;
}
@media (max-width: 800px) {
  .about-col {
    display: block;
    padding-top: 0;
    /* text-align: center; */
  }
  .about div,
  .about img {
    width: 100%;
  }

  .about h3 {
    font-size: 0.6rem;
  }
  .about img {
    margin-top: 2.5rem;
    border-radius: 2px;
  }
}
/******************************************
/* EXPERIENCE SECTION
/*******************************************/
.experience h3,
.membership h3,
.values h3,
.final-cta h3 {
  font-size: 1.5rem;
}

.experience {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
    url("../img/experience-section-background-img.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 1000px;
}

.experience {
  padding-top: 5rem;
  padding-bottom: 4rem;
}
.experience h3,
.experience li {
  color: var(--primary-background);
  letter-spacing: 0.05rem;
}

.experience li,
.values p {
  margin-bottom: 1.6rem;
  font-size: 1.3rem;
}

@media (max-width: 800px) {
  .experience {
    padding-top: 1rem;
  }

  .experience h3 {
    margin-bottom: 2rem;
  }

  .experience ul li {
    margin-bottom: 1.25rem;
  }

  .experience {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
      url("../img/experience-section-background-img.webp");
    height: 600px;
    object-fit: cover;
    margin-top: 3rem;
  }

  .experience li {
    font-size: 1rem;
  }
}
/******************************************
/* MEMBERSHIP SECTION
/*******************************************/
.membership {
  overflow: hidden;
  height: fit-content;
  background-image: url("../img/hero-background-img.webp");
  background-size: cover;
  background-position: right 0px top 0px;
  background-repeat: no-repeat;
  text-align: center;
}

.membership p:first-of-type,
.membership p:last-child {
  font-size: 1rem;
}
.membership p:nth-last-of-type(2) {
  margin-bottom: auto;
}

.membership p:first-of-type {
  margin-bottom: 1.6rem;
}

.membership p:last-child {
  margin-top: 1.6rem;
}

hr {
  color: #c0b5aa;
  width: 30%;
}

@media (max-width: 800px) {
  .membership {
    background-image: url("../img/creamy-background.webp");
  }
  .membership p:first-of-type,
  .membership p:last-child {
    font-size: 0.6rem;
  }
  .membership p:first-of-type {
    margin-bottom: 0.8rem;
  }

  .membership p:last-child {
    margin-top: 0.8rem;
  }
  .membership p {
    line-height: 1.8;
  }
  hr {
    width: 65%;
  }
}

/******************************************
/* VALUES SECTION
/*******************************************/
.values {
  overflow: hidden;
  height: fit-content;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
    url("../img/hero-background-img.webp");
  background-size: cover;
  background-position: right 0px top 0px;
  background-repeat: no-repeat;
}

.values hr {
  color: #dedcd4;
  width: 100%;
}

@media (max-width: 800px) {
  .values {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
      url("../img/creamy-background.webp");
  }
  .values ul {
    width: 90%;
  }

  .values hr {
    margin: 3rem 0;
  }
}
/******************************************
/* FINAL-CTA SECTION
/*******************************************/
.final-cta {
  overflow: hidden;
  height: fit-content;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/hero-background-img.webp");
  background-size: cover;
  background-position: right 0px top 0px;
  background-repeat: no-repeat;
  text-align: center;
}

.final-cta-2 {
  overflow: hidden;
  height: 500px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("../img/about-background-img.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.final-cta-2 {
  display: flex;
  justify-content: start;
  align-items: end;
}

.final-cta-2 p {
  margin-top: 2.4rem;
  color: var(--primary-background);
}

@media (max-width: 800px) {
  .final-cta p {
    margin-bottom: 0;
  }
  .final-cta .container {
    padding-bottom: 0;
  }
  .final-cta-2 a {
    margin-top: 2rem;
  }
  .final-cta-2 {
    text-align: center;
  }
}
