/* Unified Header & Mobile Menu Styles - Use across all pages */

/* Body padding for fixed header */
body {
  padding-top: 80px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-links a,
.nav-links button {
  background: #000;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-links a:hover,
.nav-links button:hover {
  opacity: 0.8;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-right: 12px;
  order: -1;
  transition: all 0.3s ease;
}

.hamburger:hover {
  opacity: 0.7;
}

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

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(10px, -10px);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.mobile-menu-backdrop.active {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  z-index: 1000;
  flex-direction: column;
  overflow-y: auto;
  transition: left 0.35s ease;
}

.mobile-menu.active {
  display: flex;
  left: 0;
}

.mobile-menu-header {
  padding: 24px 28px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 32px;
  color: #1d1d1f;
  padding: 0;
  line-height: 1;
}

.mobile-menu a,
.mobile-menu button {
  padding: 20px 28px;
  text-align: left;
  border: none;
  background: white;
  cursor: pointer;
  color: #1d1d1f;
  font-size: 1.25rem;
  font-weight: 400;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: background 0.2s;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mobile-menu a:active,
.mobile-menu button:active {
  background: #f8f8f8;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hamburger {
    display: flex !important;
  }
  
  .nav-links {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  
  .header {
    padding: 12px 20px;
    min-height: 60px;
  }
  
  .logo {
    font-size: 1.3rem;
  }
}
