/* ============================================
   3 Day Website — Shared Nav & Footer Styles
   Canonical source: homepage (index.html)
   ============================================ */

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 39, 0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

nav.scrolled {
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border-subtle);
}

/* Sub-pages: nav starts solid (no transparent-to-solid scroll) */
body.subpage nav {
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border-subtle);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--color-text-primary);
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-logo-text-day {
  color: #FFFFFF;
}

.nav-logo-text-website {
  color: #94A3B8;
  font-weight: 700;
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

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

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-body-sm);
  font-family: var(--font-mono);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--color-accent-primary); }
.nav-phone svg { flex-shrink: 0; }

/* Mobile-only nav items (hidden on desktop) */
.nav-mobile-phone,
.nav-mobile-cta { display: none; }

.nav-cta {
  background: var(--color-cta-fill);
  color: var(--color-cta-text);
  padding: 10px var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-body-sm);
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.25);
  color: var(--color-cta-text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   RESPONSIVE NAVIGATION
   ============================================ */
@media (max-width: 768px) {
  nav {
    padding: var(--space-md) var(--space-lg);
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 21, 56, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-subtle);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 450px;
  }

  .nav-links a {
    display: block;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border-subtle);
  }

  /* Hide desktop phone & CTA on mobile — they're in the hamburger menu now */
  .nav-phone,
  .nav-cta {
    display: none;
  }

  /* Show mobile-only items inside the menu */
  .nav-mobile-phone,
  .nav-mobile-cta { display: list-item; }

  .nav-mobile-phone a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent-primary) !important;
    font-family: var(--font-mono);
    font-size: var(--text-body-sm);
  }
  .nav-mobile-phone a svg {
    flex-shrink: 0;
  }

  .nav-mobile-cta a {
    display: block;
    background: var(--color-cta-fill);
    color: var(--color-cta-text) !important;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-body-sm);
    border-radius: var(--radius-md);
    margin: var(--space-md) var(--space-lg);
    padding: 12px;
  }
}


/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-3xl) var(--space-2xl);
  overflow-x: clip;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}

.footer-column h4 .footer-toggle {
  display: none; /* hidden on desktop */
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column a {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--color-accent-primary);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--color-text-primary);
}

.footer-tagline {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}

.footer-bottom a {
  color: var(--color-accent-primary);
  text-decoration: none;
}

@media (max-width: 768px) {
  footer {
    padding: var(--space-2xl) var(--space-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Brand column always visible, with bottom border */
  .footer-column:first-child {
    padding-bottom: var(--space-lg);
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  /* Collapsible footer columns on mobile */
  .footer-column.footer-collapsible {
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 0;
  }

  .footer-column.footer-collapsible h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: var(--space-lg) 0;
    margin-bottom: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-column.footer-collapsible h4 .footer-toggle {
    display: inline-block;
    font-size: 18px;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
  }

  .footer-column.footer-collapsible.open h4 .footer-toggle {
    transform: rotate(45deg);
  }

  .footer-column.footer-collapsible .footer-col-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .footer-column.footer-collapsible.open .footer-col-links {
    max-height: 200px;
  }

  .footer-column.footer-collapsible .footer-col-links a {
    display: block;
    padding: var(--space-sm) 0;
  }

  .footer-column.footer-collapsible .footer-col-links a:last-child {
    padding-bottom: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}
