/* ===========================================
   NAVIGATION COMPONENT (Navbar & Footer)
   =========================================== */

/* Navbar */
.navbar-wrapper {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px); /* Glassmorphism rule from DESIGN.md */
  box-shadow: 0 1px 0 rgba(192, 199, 214, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--on-surface);
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.navbar-links {
  display: none; /* Hidden on mobile */
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }
}

.navbar-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
}

.navbar-link:hover, .navbar-link.active {
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-btn {
  padding: 0.6rem 1.5rem !important;
  font-size: 0.8rem !important;
}

.hide-mobile {
  display: none !important;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: inline-flex !important;
  }
}

.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%; /* Hidden by default */
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--surface-container-lowest);
  z-index: 200;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--surface-container-low);
}

.close-drawer {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--on-surface);
}

.drawer-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--on-surface);
  border-radius: var(--radius-lg);
  background: var(--surface-container-low);
}

.drawer-footer {
  margin-top: 2rem;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
.footer {
  background-color: #f9fafb; /* zinc-50 */
  padding: 6rem 0 0;
  border-top: 1px solid var(--surface-container);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--on-surface);
}

.footer-description {
  color: var(--secondary);
  font-size: 0.938rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--on-surface);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list a {
  color: var(--secondary);
  font-size: 0.938rem;
  font-weight: 400;
}

.footer-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom-wrapper {
  border-top: 1px solid rgba(192, 199, 214, 0.2);
}

.footer-bottom {
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.made-in-angola {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.8;
}

.made-in-text {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #9ca3af;
}

.angola-flag {
  display: flex;
  gap: 2px;
}

.angola-flag div {
  width: 12px;
  height: 8px;
}

.flag-red { background-color: #D4091C; }
.flag-black { background-color: #000000; }
.flag-yellow { background-color: #FFD100; }
