/* ══════════════════════════════
   NAV
   ══════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}
nav.scrolled {
  background: rgba(255, 251, 245, 0.95);
  box-shadow: 0 1px 0 var(--gray-200);
}
@supports (backdrop-filter: blur(16px)) {
  nav.scrolled {
    background: rgba(255, 251, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--navy);
  text-decoration: none;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--teal-600);
  color: var(--white);
  border-radius: 10px;
}
.logo-mark svg { width: 22px; height: 22px; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate-dark);
  transition: color var(--duration-fast);
  text-decoration: none;
}
.nav-links a:hover { color: var(--teal-600); }

.nav-cta {
  background: var(--teal-600) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--teal-700) !important;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.mobile-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
}

/* ══════════════════════════════
   MOBILE MENU
   ══════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.mobile-menu a:hover { color: var(--teal-600); }

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
}
.mobile-close svg { width: 28px; height: 28px; }

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: var(--space-20) var(--space-6) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  margin-top: var(--space-4);
  max-width: 320px;
}
.footer-brand .nav-logo { color: var(--white); }
.footer-brand .logo-mark { background: var(--teal-500); }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col h4 {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--gray-400);
  transition: color var(--duration-fast);
}
.footer-col a:hover { color: var(--teal-400); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: var(--space-12) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-sm);
}
.footer-bottom a { color: var(--teal-400); }
.footer-bottom a:hover { color: var(--teal-300); }

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
