/* Container System */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

/* Site Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 12px var(--brand-glow);
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  min-width: 40px;
  min-height: 40px;
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    box-shadow: var(--elevated-shadow);
    z-index: 99;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex;
    animation: slideDownMenu 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 44px;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link:active {
    background-color: var(--bg-surface-hover);
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content & Section Layouts */
.main-content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-color-subtle);
}

.section:last-of-type {
  border-bottom: none;
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.section-header.text-center {
  text-align: center;
  align-items: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--brand-primary);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
