:root {
  --bg-brown: #4f4137;
  --bg-dark: #0d0905;
  --accent-cream: #e2ddd6;
  --font-body: 'Lato', Georgia, sans-serif;
  --font-serif: Georgia, serif;
}

/* ── GENERAL ── */
html {
  overflow-x: clip;
}

body {
  background: var(--bg-brown);
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
}

/* ── HEADER ── */
.topbar {
  background: linear-gradient(to bottom, rgba(40, 26, 17, 0.82) 0%, rgba(40, 26, 17, 0) 100%);
  width: 100%;
  height: 80px;
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-evenly;
  gap: 40px;
  align-items: center;
  display: flex;
  position: fixed;
  z-index: 100;
  box-sizing: border-box;
}

.topbar img {
  width: 160px;
  transition: opacity 0.3s ease;
}

.topbar img:hover {
  opacity: 0.72;
}

.nav-button {
  color: #ffffff;
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: opacity 0.3s ease;
}

.nav-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.65);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-button:hover {
  opacity: 0.8;
}

.nav-button:hover::after {
  width: 100%;
  left: 0;
}

/* ── FOOTER ── */
.footer-bar {
  background: linear-gradient(to top, rgba(20, 13, 7, 0.85) 0%, rgba(20, 13, 7, 0) 100%);
  width: 100%;
  padding: 48px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  box-sizing: border-box;
}

.footer-bar a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 6px;
}

.footer-bar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.65);
  transition: width 0.3s ease, left 0.3s ease;
}

.footer-bar a:hover::after {
  width: 100%;
  left: 0;
}

.footer-bar img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer-bar a:hover img {
  opacity: 0.88;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
@keyframes menuItem {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 12, 6, 0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  opacity: 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 22px 60px;
  text-align: center;
  position: relative;
  transition: opacity 0.2s ease;
}

.mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease, left 0.3s ease;
}

.mobile-menu a:hover::after { width: 60%; left: 20%; }
.mobile-menu a:hover { opacity: 0.7; }

.mobile-menu.open a {
  animation: menuItem 0.38s ease forwards;
}

.mobile-menu.open a:nth-child(1) { animation-delay: 0.04s; }
.mobile-menu.open a:nth-child(2) { animation-delay: 0.11s; }
.mobile-menu.open a:nth-child(3) { animation-delay: 0.18s; }
.mobile-menu.open a:nth-child(4) { animation-delay: 0.25s; }

/* ── RESPONSIVE: MOBILE (≤768px) ── */
@media (max-width: 768px) {
  .topbar .nav-button { display: none; }
  .hamburger { display: flex; }

  .topbar {
    justify-content: space-between;
    padding: 0 20px;
  }

  .topbar img {
    width: 120px;
  }

  .footer-bar {
    gap: 14px;
    flex-wrap: wrap;
    padding: 36px 20px;
  }

  .footer-bar img {
    width: 38px;
    height: 38px;
  }
}

/* ── RESPONSIVE: SMALL MOBILE (≤480px) ── */
@media (max-width: 480px) {
  .footer-bar {
    gap: 10px;
  }

  .footer-bar img {
    width: 34px;
    height: 34px;
  }
}
