.container {
  width: min(100% - 40px, var(--container-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);

  transform: translateY(0);

  transition:
    transform 0.35s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

/* Applied by JavaScript while scrolling down */
.site-header.header-hidden {
  transform: translateY(-100%);
}

/* Optional shadow after scrolling */
.site-header.header-scrolled {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.header-container {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.logo-link,
.footer-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  width: 145px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  padding: 32px 0;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 23px;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Button */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background-color: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  display: block;
  border-radius: 10px;
  background-color: #111111;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.menu-toggle span + span {
  margin-top: 6px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Footer */

.site-footer {
  background-color: #092d19;
  color: var(--text-white);
}

.footer-main {
  padding: 40px 0 55px;
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  align-items: start;
  gap: 60px;
}

.footer-brand {
  max-width: 340px;
}

.footer-logo-link {
  display: inline-flex;
  margin-bottom: 22px;
}

.footer-logo {
  width: 145px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-column h3 {
  margin-bottom: 8px;
  color: var(--text-white);
  font-size: 0.95rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  transition:
    color var(--transition),
    transform var(--transition);
}

.footer-column a:hover {
  color: #62dc7d;
  transform: translateX(4px);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-bottom p,
.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.74rem;
}

.footer-legal {
  display: flex;
  gap: 22px;
}

.footer-legal a:hover {
  color: var(--text-white);
}