/***************************/
/***** HERO-BACKGROUND *****/
/***************************/
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  height: 100dvh;
  min-height: 100vh;
  width: 100%;
  background-image:
    linear-gradient(180deg, rgba(17, 19, 23, 0.04), rgba(0, 0, 0, 0.4)),
    url("../assets/img/hudebni-kurzy-kremze-klet.png");
  background-size: cover;
  background-position: 10% 100%;
  background-repeat: no-repeat;
}

@media (min-width: 680px) {
  .hero-bg {
    background-position: center;
  }
}

header,
main,
section,
footer {
  position: relative;
}

/******************************/
/********* NAVIGATION *********/
/******************************/
nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  list-style: none;
}

nav ul li {
  height: 50px;
}

nav ul li a {
  position: relative;
  text-decoration: none;
  color: var(--light);
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  letter-spacing: 0.8px;
}

.displayOnDesktop {
  display: none;
}

.desktopNav {
  padding-left: 2rem;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
  .displayOnDesktop {
    display: flex;
  }
}

/* SIDEBAR */
.sidebar {
  z-index: 3000;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);

  transform: translateX(-100%);
  transition: transform 0s ease-in-out;
}

.sidebar.active {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .sidebar {
    left: 0;
    right: auto;
    width: 35vw;
    transition: transform 0.3s ease-in-out;
  }
}

.sidebar li {
  width: 100%;
}

.sidebar li a {
  width: 100%;
  justify-content: flex-start;
  padding-left: 2rem;
  font-size: 1.25rem;
  font-size: clamp(1.25rem, 1vw, 2rem);

  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.2);

  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
}

.sidebar li a:hover {
  opacity: 0.9;
  transform: translateX(2px);
}

/* O KLETI */
.sidebar li.o-kleti {
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  margin: 0.25rem 0;
}

.sidebar li.o-kleti a {
  opacity: 0.7;
  font-weight: 350;
  font-size: 18px;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
}

.sidebar li.o-kleti a:hover {
  opacity: 0.9;
  transform: translateX(2px);
}

/* CROSS */
.sidebar .cross a {
  justify-content: flex-end;
  padding-right: 2rem;
}

.sidebar .cross svg {
  fill: var(--light);
  width: 1.55rem;
  height: 1.55rem;
}

/* NAV HOVER */
nav ul li:not(.hamburger):not(.cross) a::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

nav ul li:not(.hamburger):not(.cross) a:hover::after {
  transform: scaleX(1);
}

.sidebar .cross:hover svg {
  fill: var(--accent);
}

/* HAMBURGER */
.hamburger {
  display: block;
  position: fixed;
  top: 0.7rem;
  right: 2rem;
  z-index: 2000;
}

.hamburger a {
  width: clamp(2.75rem, 5vw, 3.25rem);
  height: clamp(2.75rem, 5vw, 3.25rem);

  display: flex;
  justify-content: center;
  align-items: center;

  box-sizing: border-box;
  background-color: var(--accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 0;
  will-change: transform;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hamburger svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  fill: var(--light);
}

.hamburger:hover a {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .hamburger {
    left: 2rem;
    right: auto;
  }
}

@media (min-width: 992px) {
  .hamburger {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease,
      visibility 0.4s;
  }

  .hamburger.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* NO-SCROLL */
body.no-scroll {
  overflow: hidden;
}

/************************/
/********* HERO *********/
/***********************/
.hero {
  position: relative;
}

.heading {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scroll-text {
  height: 80vh;
  width: 100%;
  max-width: 600px;
  padding-top: clamp(1.2rem, 10vw, 4rem);
  padding-top: clamp(1.2rem, 3vw, 2rem);
}

/* LOGO */
.hero .logo-container {
  padding-bottom: 4rem;
}

.hero-content .logo-container img {
  width: 140px;
  width: clamp(140px, 12vw, 200px);
}

@media (min-width: 992px) {
  .hero .logo-container {
    padding-bottom: 3rem;
  }
}

/* HERO CONTENT */
.hero .hero-content {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  align-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--light);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero .hero-content .hero-tag {
  text-transform: uppercase;
  letter-spacing: 4px;
  opacity: 0.8;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero .hero-content h1 {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.05;

  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .hero-content h2 {
  max-width: 700px;
  margin: 1.5rem 0 2.5rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* SCROLL-FADE */
.hero-content .scroll-text .scroll-fade {
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  font-size: clamp(1.7rem, 3vw, 2rem);
  line-height: 1.4;
}

.hero-content .scroll-text .scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition:
    transform 0.8s ease,
    opacity 0.8s ease;
}

.hero-content .scroll-text .scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* safe display on mobile */

@media (max-width: 768px) {
  header {
    padding-top: env(safe-area-inset-top);
  }

  .hero-content {
    padding-top: calc(1rem + env(safe-area-inset-top));
  }

  .sidebar {
    padding-top: calc(2rem + env(safe-area-inset-top));
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  .hamburger {
    top: calc(0.7rem + env(safe-area-inset-top));
  }
}
