/* =============================================
   magicco.ai — shared.css
   Shared nav + footer styles for all magicco.ai pages.
   All values are hardcoded (no var() references) so this
   file is self-contained and safe to load on any page
   regardless of that page's own CSS variable definitions.
   ============================================= */

/* === Container utility === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === Navigation === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 220ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 220ms cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(8, 10, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: #1E242C;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-logo span {
  color: #5B8EF0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  color: #6B7A8F;
  transition: color 220ms cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: #EDF2F7;
}

.nav-cta {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  background: #5B8EF0;
  padding: 9px 22px;
  border-radius: 6px;
  transition: background 220ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 220ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-cta:hover {
  background: #3A6BD4 !important;
  transform: translateY(-1px);
}

/* === Footer === */
footer {
  padding: 40px 0;
  border-top: 1px solid #1E242C;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: #EDF2F7;
  letter-spacing: -0.03em;
}

.footer-logo span {
  color: #5B8EF0;
}

.footer-copy {
  font-size: 0.8rem;
  color: #4A5568;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: #4A5568;
  transition: color 220ms cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.footer-links a:hover {
  color: #6B7A8F;
}

/* === Hamburger button === */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 200ms ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 200ms ease;
  transform-origin: center;
}

/* Animated X when open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Mobile full-screen overlay menu === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: #080A0C;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.mobile-menu-links li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.mobile-menu.open .mobile-menu-links li {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance */
.mobile-menu.open .mobile-menu-links li:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.open .mobile-menu-links li:nth-child(2) { transition-delay: 100ms; }
.mobile-menu.open .mobile-menu-links li:nth-child(3) { transition-delay: 140ms; }
.mobile-menu.open .mobile-menu-links li:nth-child(4) { transition-delay: 180ms; }

.mobile-menu-links a {
  font-size: 1.6rem;
  font-weight: 600;
  color: #6B7A8F;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 180ms ease;
  display: block;
  padding: 10px 24px;
  text-align: center;
}

.mobile-menu-links a:hover {
  color: #EDF2F7;
}

.mobile-menu-cta {
  margin-top: 16px;
  font-size: 1.3rem !important;
  color: #FFFFFF !important;
  background: #5B8EF0;
  padding: 14px 36px !important;
  border-radius: 8px;
  transition: background 220ms ease !important;
}

.mobile-menu-cta:hover {
  background: #3A6BD4;
  color: #FFFFFF !important;
}

/* === Responsive === */
@media (max-width: 900px) {
  nav {
    z-index: 200;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
