.home-body {
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  background: #0f1a14;
  color: #1b1b1b;
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

.home-body ::selection {
  background: rgba(15, 26, 20, 0.85);
  color: #f5f1e8;
}

.home-hero {
  height: 100vh;
  padding: clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: url("../img/home.jpg") center 5%/cover no-repeat;
  position: relative;
}

.home-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(245, 241, 232, 0.9);
  position: relative;
  z-index: 1;
}

.home-brand {
  font-family: "Poppins", "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 32px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.home-location {
  font-size: 10px;
}

.home-theme-toggle {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 3;
}

.theme-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.theme-toggle {
  border: none;
  background: rgba(15, 26, 20, 0.25);
  color: #f5f1e8;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-toggle-square {
  width: 32px;
  height: 32px;
  border-radius: 0;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(245, 241, 232, 0.7);
}

.theme-toggle-square:hover {
  background: rgba(15, 26, 20, 0.45);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.theme-toggle-square .material-icons {
  font-size: 18px;
  line-height: 1;
}

.theme-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.75);
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  padding: 0;
  transition: max-width 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
}

.theme-label-day {
  text-align: left;
}

.theme-label-night {
  text-align: right;
}

.theme-label-night,
.dark .theme-label-day {
  max-width: 0;
  opacity: 0;
  padding: 0;
}

.dark .theme-label-night {
  max-width: calc(var(--label-night-width, 0px) + 8px);
  opacity: 1;
  padding-right: 8px;
}

.theme-label-day {
  max-width: calc(var(--label-day-width, 0px) + 8px);
  opacity: 1;
  padding-left: 8px;
}

.home-cta {
  padding: 22px 64px;
  border-radius: 0;
  background: transparent;
  color: #f5f1e8;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 241, 232, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 241, 232, 1);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
}

.home-center {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.home-footer {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.home-footer .home-location {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.85);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 12, 0.2) 0%, rgba(10, 16, 12, 0.6) 100%);
}

.dark .home-hero {
  background-image: url("../img/home_night.jpg");
}

.dark .home-hero::before {
  background: linear-gradient(180deg, rgba(5, 8, 7, 0.35) 0%, rgba(5, 8, 7, 0.7) 100%);
}

@media (max-width: 980px) {
  .home-location {
    display: none;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 16px;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .home-header {
    letter-spacing: 0.24em;
  }

  .home-footer {
    margin-bottom: 48px;
  }

  .home-footer .home-location {
    display: block;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-align: center;
    max-width: 90%;
  }

  .home-theme-toggle {
    right: 16px;
    bottom: 16px;
  }

  .theme-toggle-wrap.theme-toggle-mobile .theme-label {
    display: none;
  }

  .theme-toggle-wrap.theme-toggle-mobile .theme-toggle {
    background: transparent;
    box-shadow: none;
  }

  .theme-toggle-wrap.theme-toggle-mobile .theme-toggle:hover {
    transform: none;
  }

  .theme-toggle-square {
    width: 24px;
    height: 24px;
    box-shadow: none;
  }

  .theme-toggle-square .material-icons {
    font-size: 16px;
  }
}
