/* ============================================
   Nav + Footer — shared chrome
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 239, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, background 200ms;
}

.nav.scrolled {
  border-bottom-color: var(--rule);
}

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

.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-logo .nav-wm {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.nav-logo .flo {
  font-style: italic;
  color: var(--orange);
}

.nav-glyph {
  width: 48px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.footer-brand .nav-logo {
  gap: 6px;
}

.footer-brand .nav-glyph {
  width: 60px;
  height: 50px;
}

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

.nav-link {
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 180ms;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 260ms var(--ease-out);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active { color: var(--ink); }

.nav-cta {
  padding: 10px 20px;
  background: var(--orange);
  color: white;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms, transform 200ms;
  box-shadow: 0 2px 6px rgba(232, 122, 78, 0.2);
}

.nav-cta:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-mobile-toggle svg { width: 20px; height: 20px; }

/* Hide mobile-only CTA on desktop */
.nav-link-cta { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }

  .nav.mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 16px var(--page-pad) 20px;
  }

  .nav.mobile-open .nav-link {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--rule);
  }

  .nav.mobile-open .nav-link:last-child { border-bottom: none; }

  /* "Find your flo" CTA pill at bottom of mobile menu */
  .nav-link-cta {
    display: block;
    margin-top: 8px;
    padding: 11px 20px !important;
    background: var(--orange);
    color: white !important;
    border-radius: var(--r-pill);
    font-weight: 500;
    text-align: center;
    width: 100%;
    border-bottom: none !important;
    box-shadow: 0 2px 6px rgba(232,122,78,0.25);
    transition: background 200ms;
  }
  .nav-link-cta:hover { background: var(--orange-deep); }
  .nav-link-cta::after { display: none !important; }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--night);
  color: rgba(250, 245, 239, 0.7);
  padding: var(--s-9) 0 var(--s-6);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--night-rule);
}

.footer-brand .nav-logo {
  color: var(--cream);
  font-size: 28px;
}

.footer-brand p {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(250, 245, 239, 0.55);
  max-width: 32ch;
}

.footer-col h4 {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250, 245, 239, 0.45);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(250, 245, 239, 0.7);
  transition: color 180ms;
}

.footer-col a:hover { color: var(--orange-glow); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(250, 245, 239, 0.4);
  letter-spacing: 0.04em;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2.4s var(--ease-in-out) infinite;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
