/* ============================================================
   AUSTRAINER — Navigation & Footer
   ============================================================ */

/* --- Site Nav --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.site-nav.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-8);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-svg { width: 36px; height: 36px; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-name {
  font-family: var(--font-display, sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}
[data-theme='dark'] .nav-logo-name { color: var(--color-text); }
.nav-logo-name span { color: var(--color-primary); }
.nav-logo-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  padding-block: var(--space-2);
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-primary); }

/* Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* Burger */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--color-text);
  border: none; background: none; cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.nav-burger:hover { background: var(--color-surface-2); }

/* Mobile menu */
@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-4) 0;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: var(--space-3) var(--space-6);
    width: 100%;
  }
  .nav-actions .btn { display: none; }
}

/* ---- Site Footer ---- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-10);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .footer-logo-name {
  font-family: var(--font-display, sans-serif);
  font-size: var(--text-lg);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-1);
}
.footer-brand .footer-logo-name span { color: var(--color-gold); }
.footer-brand .footer-tagline {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-5);
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-display, sans-serif);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col ul a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--color-gold); }
.footer-col address {
  font-style: normal;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  max-width: none;
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  text-decoration: underline;
}
.footer-bottom a:hover { color: var(--color-gold); }

/* Fade-in animation */
[data-fade] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-fade][data-delay='1'] { transition-delay: 0.1s; }
[data-fade][data-delay='2'] { transition-delay: 0.2s; }
[data-fade][data-delay='3'] { transition-delay: 0.3s; }
[data-fade][data-delay='4'] { transition-delay: 0.4s; }
