/* ===========================
   LAYOUT
   =========================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.4s ease, padding 0.4s ease,
              backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(8, 8, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--accent-light); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-deep) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  color: var(--bg-deep) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  position: relative;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  position: absolute;
  left: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle span:first-child { top: 11px; }
.nav-toggle span:last-child { top: 19px; }

.nav-toggle.is-open span:first-child { transform: rotate(45deg); top: 15px; }
.nav-toggle.is-open span:last-child { transform: rotate(-45deg); top: 15px; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 13, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 99;
}

.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.nav-overlay a:hover { color: var(--accent); }

/* ===========================
   SECTION SHARED
   =========================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.75rem;
  border-radius: 1px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-alt { /* subtle tinted overlay applied via parallax ::before if also .parallax */ }

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
  background: var(--bg-deep);
  position: relative;
  z-index: 5;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand strong { color: var(--text-secondary); }

.footer-columns { display: flex; gap: 4rem; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .section { padding: 5rem 0; }

  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-columns { gap: 2.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .footer-columns { flex-direction: column; gap: 2rem; }
}
