/* Public site chrome — nav, footer, legal-page typography.
   Follows the mockup design system (cream/charcoal, glass, pills).
   Nav + footer geometry mirrors LOCLbox_AIStudioSample/deploy/mockup.html:
   80rem centered inner container, links grouped left of center, SVG logo. */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  padding: 22px 1.5rem;
  padding-top: calc(22px + env(safe-area-inset-top));
  background: rgba(42, 42, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 80rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 3rem; }
.site-logo { display: flex; align-items: center; text-decoration: none; transform: translate(0px, -2px); }
.site-logo svg { height: 50px; width: auto; display: block; }
.site-links { display: flex; align-items: center; gap: 2rem; transform: translate(0px, 5px); }
.site-links a {
  font-size: 0.8rem; font-weight: 700; color: rgba(255, 255, 255, 0.7);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em;
  transition: color 0.2s;
}
.site-links a:hover { color: #fff; }
.pill-btn {
  background: #fff; color: var(--primary);
  padding: 0.625rem 1.5rem; border-radius: var(--radius-pill);
  font-size: 0.875rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}
.pill-btn:hover { background: var(--cream); }
.nav-inner > .pill-btn { transform: translate(0px, -1px); }

.site-footer {
  background: var(--primary); color: #ccc;
  padding: 5rem 1.5rem; margin-top: 5rem;
}
.footer-inner { max-width: 80rem; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem;
}
.footer-logo { display: inline-block; }
.footer-logo svg { height: 28px; width: auto; display: block; margin-bottom: 1.5rem; }
.footer-desc { color: rgba(255, 255, 255, 0.6); max-width: 24rem; line-height: 1.7; font-size: 0.95rem; }
.footer-col h4 {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  font-size: 0.7rem; margin-bottom: 1.5rem; color: #fff;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 1rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.35);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.5); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* Legal / long-form pages */
.legal-page {
  max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem;
}
.legal-page h1 {
  font-family: 'Outfit', sans-serif; font-size: 2.2rem; margin-bottom: 0.25rem;
}
.legal-updated { color: #888; font-size: 0.85rem; margin-bottom: 2rem; }
.legal-page h2 {
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; margin: 2rem 0 0.75rem;
}
.legal-page p, .legal-page li { line-height: 1.7; font-size: 0.95rem; margin-bottom: 0.75rem; }
.legal-page ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-page .callout {
  background: #fff; border: 1px solid #e5e2d9; border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}

/* SMS consent demo block */
.consent-demo {
  background: #fff; border: 1px solid #e5e2d9; border-radius: var(--radius-card);
  padding: 1.75rem; margin: 2rem 0;
  box-shadow: 0 8px 24px rgba(42, 42, 42, 0.06);
}
.consent-demo h3 { font-family: 'Outfit', sans-serif; font-size: 1.05rem; margin-bottom: 1rem; }
.consent-check {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--cream); border-radius: 0.75rem; padding: 1rem;
}
.consent-check input[type="checkbox"] { margin-top: 0.25rem; transform: scale(1.2); }
.consent-check label { font-size: 0.88rem; line-height: 1.6; }
.consent-demo .demo-note { font-size: 0.78rem; color: #999; margin-top: 1rem; }

/* Mobile hamburger + fullscreen overlay nav (shared by site.php nav and
   merchant.php's own .m-nav — see mobile-nav.js). Desktop (>768px) untouched. */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
  z-index: 1001;
}
.hamburger-line {
  width: 24px; height: 2px; background: #fff;
  transition: all 0.3s ease; border-radius: 2px;
}
.hamburger.is-active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(248,247,242,0.98);
  z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-overlay.open { transform: translateY(0); }
.menu-item {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 28px; font-weight: 600;
  color: #2a2a2a; text-decoration: none;
  padding: 12px 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.15s ease;
}
.mobile-overlay.open .menu-item { opacity: 1; transform: translateY(0); }
.mobile-overlay.open .menu-item:nth-child(1) { transition-delay: 0.15s; }
.mobile-overlay.open .menu-item:nth-child(2) { transition-delay: 0.22s; }
.mobile-overlay.open .menu-item:nth-child(3) { transition-delay: 0.29s; }
.mobile-overlay.open .menu-item:nth-child(4) { transition-delay: 0.36s; }
.mobile-overlay.open .menu-item:nth-child(5) { transition-delay: 0.43s; }
.mobile-overlay:not(.open) .menu-item { transition-delay: 0s; }
.menu-item:hover { color: #666; }
.menu-item--cta {
  margin-top: 16px; font-size: 14px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px; text-transform: uppercase;
  color: #888;
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }

  .site-nav {
    height: calc(56px + env(safe-area-inset-top));
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
    display: flex; align-items: center;
    position: sticky; top: 0; z-index: 1000;
    background: rgba(42,42,42,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav-inner { width: 100%; }
  .site-logo svg { height: 34px; }
  .site-links { display: none; }
  .nav-inner > .pill-btn { display: none; }
  .hamburger { display: flex; }

  .site-footer { padding: 3rem 1.5rem 2.5rem; margin-top: 3.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-top: 2rem; }
}
