/* 
 * LAYOUT STYLES
 * Header, navigation, footer, and shared layout elements
 */

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(10px);
  z-index: 20;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  position: relative;
}

.top-bar {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .8rem;
  margin-bottom: 0;
}

.lang-switch img {
  width: 20px;
  height: auto;
  display: block;
  border-radius: 3px;
}

.nav-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  position: relative;
  transition: all .3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--brand-2);
}

.nav-links a.active {
  color: var(--brand-2);
}

.nav-links a.btn.primary.active {
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.logo:hover {
  transform: none;
}

.logo-svg {
  height: 44px;
  fill: white;
  transition: fill .3s ease;
}

.logo:hover .logo-svg {
  fill: var(--brand-2);
}


/* Mobile hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 30;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}

.nav-links.show {
  display: flex !important;
  flex-direction: column;
  gap: .5rem;
  position: absolute;
  top: 100%;
  right: 0;
  background: #171724;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
}

/* Footer */
footer {
  background: #000000;
  padding: .2rem 1rem 0rem;
  border-top: 2px solid var(--brand-2);
}

.footer-copyright {
  text-align: center;
  color: #666;
  font-size: .75rem;
  margin-top: .5rem;
  padding-bottom: .5rem;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-items {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10rem; /* user preference — do not reduce */
  flex-wrap: wrap;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.footer-items a {
  color: #ccc;
  font-weight: 500;
  transition: color .25s ease;
  display: flex;
  align-items: center;
}

.footer-items a:hover {
  color: var(--brand-2);
}

.footer-social-link {
  transition: color .25s ease, transform .25s ease;
}

.footer-group-social a:hover {
  transform: scale(1.15);
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
}

.footer-group-sitemap {
  gap: .4rem;
}

.footer-group-social {
  flex-direction: row;
  gap: .8rem;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-items {
    gap: 2rem;
    justify-content: flex-start;
    padding-left: 1rem;
  }
}
