.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm { max-width: 800px; }

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: #111827;
  letter-spacing: -0.025em;
}

.logo:hover { text-decoration: none; color: var(--primary-color); }
.logo-icon { display: flex; align-items: center; justify-content: center; background: var(--primary-color); color: white; border-radius: 0.5rem; width: 36px; height: 36px; }

.primary-nav .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.primary-nav a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
}

.primary-nav a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-color);
  position: relative;
  transition: background 0.2s;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-color);
  transition: top 0.2s, transform 0.2s;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

.main-content {
  min-height: calc(100vh - 400px);
  padding: 4rem 0;
}

.site-footer {
  background: #111827;
  color: #f9fafb;
  padding: 5rem 0 2rem;
  margin-top: 4rem;
}

.site-footer a { color: #d1d5db; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

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

.footer-brand p { color: #9ca3af; margin-top: 1rem; max-width: 300px; line-height: 1.6; }
.footer-brand .logo { color: #fff; }

.footer-links h3 { color: #fff; font-size: 1.125rem; margin-bottom: 1.5rem; font-weight: 600; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.875rem; }

.footer-bottom {
  text-align: center;
  border-top: 1px solid #374151;
  padding-top: 2rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  }
  
  .primary-nav.is-open { display: block; }
  
  .primary-nav .nav-list { flex-direction: column; gap: 0; }
  
  .primary-nav a { display: block; padding: 1.25rem 1.5rem; border-top: 1px solid var(--border-color); font-size: 1.125rem;}
  
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .main-content { padding: 2.5rem 0; }
}
