/**
 * Base Layout Styles
 * Skip link, header, section base, footer, responsive
 */

/* ==========================================
   SKIP LINK (Accessibility)
   ========================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-max);
  padding: var(--space-3) var(--space-4);
  background-color: var(--accent-orange);
  color: var(--bg-primary);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  outline: none;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background-color: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-accent {
  color: var(--accent-orange);
  animation: blink 1s step-end infinite;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-list a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.nav-list a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.nav-cta {
  padding: var(--space-2) var(--space-4);
  background-color: var(--accent-orange);
  color: var(--bg-primary) !important;
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  color: var(--bg-primary) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================
   MAIN SECTIONS
   ========================================== */

.section {
  min-height: var(--section-min-height);
  padding: var(--space-16) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-content {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-number {
  display: block;
  font-size: var(--text-sm);
  color: var(--accent-orange);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-wider);
}

.section-title {
  font-size: var(--text-2xl);
  color: var(--text-primary);
}

.section-subtitle {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: var(--leading-relaxed);
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  padding: var(--space-10) var(--space-5);
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
}

.footer-logo .logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.footer-logo .logo-accent {
  color: var(--accent-orange);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.footer-secondary {
  text-align: right;
}

.footer-access {
  font-size: var(--text-sm);
  color: var(--accent-green);
  margin-bottom: var(--space-1);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ==========================================
   RESPONSIVE LAYOUTS
   ========================================== */

@media (max-width: 767px) {
  .section {
    padding: var(--space-10) var(--space-4);
  }
  
  .nav-list {
    display: none; /* Mobile menu handled by JS */
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-secondary {
    text-align: center;
  }
}
