/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  display: none;
}

/* BASE */
body {
  font-family: "termina", sans-serif;
  background-color: #dbdbdb;
  overflow-x: hidden;
  color: #171717;
}

a {
  text-decoration: none;
  color: white;
  font-size: inherit;
  display: block;
  margin-bottom: 0.5rem;
}

/* TYPO */
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.25;
}


h1 {
  font-size: clamp(4rem, 5vw, 6rem);
}

h2 {
  font-size: clamp(3rem, 4vw, 5rem);
}

h3 {
  font-size: clamp(1.25rem, 1.75vw, 2.5rem);
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url("./hero.jpg") no-repeat center center;
  background-size: cover;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  z-index: 9999;
}

.nav-logo,
.nav-toggler {
  padding: 1rem;
  cursor: pointer;
  z-index: 10000;
}

.nav-logo img {
  width: 70px;
  height: 70px;
}

/* HAMBURGER */
.nav-toggler {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggler span {
  width: 40px;
  height: 2px;
  background-color: #e8491f;
  transition: all 0.4s ease;
}

.nav-toggler.open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggler.open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* NAV OVERLAY */
.nav-content {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.nav-bg {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: top;
}

.nav-bg:nth-child(1) {
  background-color: #e8491f;
}

.nav-bg:nth-child(2) {
  background-color: #7a2710;
}

.nav-bg:nth-child(3) {
  background-color: #be3c19;
}

.nav-bg:nth-child(4) {
  background-color: #e0471d;
}

/* NAV CONTENT */
.nav-items {
  pointer-events: auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  height: 100%;
  padding: 8rem;
  background-color: #b1b1b1;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.nav-items-col:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-items-col:last-child {
  display: flex;
  gap: 4rem;
}

/* NAV LINKS */
.nav-primary-links a {
  font-size: 3rem;
  font-weight: 700;
}

.nav-secondary-links a,
.nav-socials a {
  font-size: 1.2rem;
}

.nav-legal a {
  color: #555;
  font-size: 0.9rem;
}

/* SECTIONS */
section {
  position: relative;
  width: 100%;
  height: 100svh;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.one {
  background-color: #dbdbdb;
}

.two {
  background-color: #dbdbdb;
  color: white;
}

.three {
  background-color: #dbdbdb;
  color: white;
}

/* FOOTER */
footer {
  position: relative;
  width: 100%;
  height: 75svh;
  background-color: #be3c19;
  color: white;
  overflow: hidden;
}

.footer-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform;
}

/* THREE.JS BACKGROUND */
#footer-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

#footer-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* FOOTER CONTENT */
.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.footer-row {
  display: flex;
  justify-content: space-between;
}

.footer-row:nth-child(1) .footer-col:nth-child(1) {
  flex: 3;
}

.footer-row:nth-child(1) .footer-col:nth-child(2) {
  flex: 2;
  display: flex;
  gap: 2rem;
}

.footer-sub-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-row h2 {
  width: 75%;
}

.footer-headline {
  width: 75%;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
}

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  .nav-items {
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
  }

  .nav-primary-links a {
    font-size: 2rem;
  }

  .footer-headline {
    font-size: 2rem;
  }

  .nav-secondary-links,
  .nav-legal {
    display: none;
  }
}

/* RESPONSIVE FOOTER */
@media (max-width: 1000px) {
  .footer-row:nth-child(1) {
    flex-direction: column;
    gap: 4rem;
  }

  .footer-row:nth-child(1) .footer-col:nth-child(2) {
    flex-direction: column;
  }

  .footer-row h2 {
    width: 100%;
  }
}