/* ═══════════════════════════════════════════
   GOATSat · NAV + FOOTER COMPONENTS
   nav.css
═══════════════════════════════════════════ */

/* ─────────────────────────────────
   NAVIGATION
───────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(3,7,16,0.72);
  border-bottom: 1px solid var(--border-0);
  transition: border-color var(--t-base), background var(--t-base);
}
[data-theme="light"] #nav {
  background: rgba(245,248,255,0.82);
}
#nav.scrolled {
  border-bottom-color: var(--border-1);
  background: rgba(3,7,16,0.88);
}
[data-theme="light"] #nav.scrolled {
  background: rgba(245,248,255,0.96);
  box-shadow: 0 1px 16px rgba(15,40,100,0.08);
}

.nav-inner {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 var(--px);
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}

/* ── Logo ── */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo__badge {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 800; color: #fff;
  box-shadow: 0 0 16px rgba(59,130,246,0.45);
  flex-shrink: 0;
}
.nav-logo__img {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}
.nav-logo__text {
  font-family: var(--font-display); font-size: 19px;
  font-weight: 800; letter-spacing: -0.025em;
  color: var(--text-0);
}

/* ── Desktop Links ── */
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px; font-weight: 500;
  color: var(--text-1); text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--t-fast);
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1.5px; background: var(--blue-500);
  transition: right var(--t-base);
}
.nav-links a:hover { color: var(--text-0); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--text-0); }
.nav-links a.active::after { right: 0; }

/* ── Right side ── */
.nav-right {
  display: flex; align-items: center; gap: 10px;
}

/* Colombian flag */
.col-flag {
  display: flex; flex-direction: column;
  width: 22px; height: 14px;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.col-flag span { display: block; }
.col-flag span:nth-child(1) { flex: 2; background: var(--col-yellow); height: 57%; }
.col-flag span:nth-child(2) { background: var(--col-blue); height: 21.5%; }
.col-flag span:nth-child(3) { background: var(--col-red); height: 21.5%; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--bg-card); border: 1px solid var(--border-0);
  color: var(--text-1); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  transition: border-color var(--t-base), background var(--t-base);
}
.theme-toggle:hover { border-color: var(--border-1); color: var(--text-0); }

/* ── Hamburger (mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  background: var(--bg-card); border: 1px solid var(--border-0);
  border-radius: var(--r-sm); padding: 8px 9px;
  cursor: pointer;
  transition: border-color var(--t-base);
  flex-shrink: 0;
  align-items: center; justify-content: center;
}
.nav-hamburger:hover { border-color: var(--border-1); }
.hamburger-line {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-1); border-radius: 99px;
  transition: transform var(--t-base), opacity var(--t-base), width var(--t-base);
  transform-origin: center;
}
.nav-hamburger.open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile Menu Drawer ── */
.nav-mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  z-index: 199;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-1);
  padding: 24px var(--px) 28px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav-mobile-menu.open {
  transform: none; opacity: 1; pointer-events: auto;
}
.nav-mobile-menu a {
  font-size: 16px; font-weight: 600;
  color: var(--text-0); text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-0);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.nav-mobile-menu a:last-of-type { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--blue-300); }
.nav-mobile-menu .mobile-cta {
  margin-top: 12px; width: 100%;
  text-align: center;
  padding: 14px;
  border-bottom: none;
}

/* ── Breadcrumb for sub-pages ── */
.page-crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-family: var(--font-mono); color: var(--text-2);
  margin-bottom: 20px;
}
.page-crumb a { text-decoration: none; color: var(--blue-300); transition: color var(--t-fast); }
.page-crumb a:hover { color: var(--text-0); }
.page-crumb span { color: var(--text-2); }

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-0);
  padding: 64px 0 36px;
  position: relative; z-index: 2;
  background: var(--bg-0);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand__name {
  font-family: var(--font-display); font-size: 20px;
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-0); margin-bottom: 8px;
}
.footer-brand__tagline {
  font-size: 13.5px; color: var(--text-1);
  line-height: 1.6; max-width: 260px; margin-bottom: 16px;
}
.footer-brand__meta {
  font-size: 11px; font-family: var(--font-mono);
  color: var(--text-2); display: flex; gap: 8px; align-items: center;
}
.footer-brand__meta span { color: var(--border-1); }

.footer-nav h4 {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 18px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 13.5px; color: var(--text-1);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-nav a:hover { color: var(--text-0); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-0);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.footer-copy {
  font-size: 11.5px; font-family: var(--font-mono);
  color: var(--text-2); line-height: 1.5;
}

/* Colombian signature */
.col-signature {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.col-bars {
  display: flex; flex-direction: column; gap: 3px; width: 22px;
}
.col-bars span {
  height: 3px; border-radius: 99px; display: block;
}
.col-bars span:nth-child(1) { background: var(--col-yellow); width: 100%; }
.col-bars span:nth-child(2) { background: var(--col-blue); width: 72%; }
.col-bars span:nth-child(3) { background: var(--col-red); width: 50%; }
.col-signature__text {
  font-size: 11px; font-family: var(--font-mono); color: var(--text-2);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-right .btn { display: none; }
}
