/* ZODACK shared shell — header + footer for all secondary pages.
   Header is namespaced with "zs-". The footer uses the SAME classes and
   styles as the homepage footer so both always look identical. */

/* ---------- Sticky-header safety ----------
   Several pages set `overflow-x: hidden` on both <html> and <body>, which turns
   <body> into a scroll container and silently breaks `position: sticky`.
   Keep the sideways-scroll guard on <html> only and let <body> stay visible. */
html:root { overflow-x: hidden !important; }
html body { overflow-x: visible !important; overflow-y: visible !important; }

/* ---------- Header ---------- */
.zs-header {
  position: sticky !important; top: 0 !important; z-index: 40 !important;
  width: 100%; height: 70px;
  background: #F6F6F4; border-bottom: 1px solid #E2E4E8;
  font-family: 'Inter', sans-serif;
}
.zs-header * { box-sizing: border-box; }
.zs-header-inner {
  height: 100%; width: 100%; margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.zs-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px;
  letter-spacing: -0.03em; line-height: 1.2; white-space: nowrap;
  color: #0D0E11; text-decoration: none;
}
.zs-nav { display: none; }
.zs-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }

.zs-icon-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 8px; border: 0; background: transparent; cursor: pointer;
  color: #0D0E11; text-decoration: none;
  transition: transform .18s cubic-bezier(.175,.885,.32,1.275), opacity .15s ease;
}
.zs-icon-btn:hover { opacity: .75; }
.zs-icon-btn:active { transform: scale(.88); opacity: .6; }

/* Mobile menu: opacity/visibility transition = no jarring jump */
.zs-mobile {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 24px 20px;
  background: #F6F6F4; border-bottom: 1px solid #E2E4E8;
  box-shadow: 0 16px 32px rgba(13,14,17,.10);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.zs-mobile.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s;
}
.zs-mobile-link {
  padding: 14px 0; border-bottom: 1px solid #F0F1F3;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  color: #0D0E11; text-decoration: none;
}
.zs-mobile-link[aria-current="page"] { color: #FF003C; }

/* ---------- Desktop (>=1024px): nav centered, NO hamburger ---------- */
@media (min-width: 640px) {
  .zs-logo { font-size: 24px; }
}
@media (min-width: 1024px) {
  .zs-header-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 40px;
  }
  .zs-nav { display: flex; align-items: center; gap: 4px; }
  .zs-nav-link {
    padding: 8px 12px; font-size: 13px; font-weight: 700; text-transform: uppercase;
    color: #121212; text-decoration: none; transition: color .2s ease;
    position: relative;
  }
  /* Hover: clean black line slides in underneath */
  .zs-nav-link::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: #0D0E11; transform: scaleX(0); transform-origin: left center;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  }
  .zs-nav-link:hover::after,
  .zs-nav-link:focus-visible::after { transform: scaleX(1); }
  .zs-nav-link:hover { color: #0D0E11; }
  .zs-actions { gap: 12px; }
  .zs-burger, .zs-mobile { display: none; }
}

/* ---------- Dark hero banner for policy pages (matches FAQ / Care) ---------- */
.z-policy-banner {
  background-color: #0D0E11 !important; color: #FFFFFF !important;
  padding: 20px 20px !important; text-align: center !important;
  width: 100% !important; box-sizing: border-box !important;
  min-height: 3cm !important; /* slimmer banner (was ~3.5cm) */
  display: flex !important; flex-direction: column !important; justify-content: center !important;
}
.z-policy-banner h1 {
  font-family: 'Syne', sans-serif !important; font-size: 24px !important;
  font-weight: 800 !important; letter-spacing: -0.02em !important;
  color: #FFFFFF !important; margin: 0 !important;
}

/* Same ~3cm banner height on the other secondary pages (higher specificity than
   each page's own inline <style>, so no per-page edits are needed). */
body .care-hero-banner, body .faq-hero-banner, body .contact-hero-banner,
body .track-hero-banner, body .refer-hero-banner, body .fresh-hero-banner,
body .about-hero-banner, body .dna-hero-banner {
  min-height: 3cm !important; padding-top: 20px !important; padding-bottom: 20px !important;
  display: flex !important; flex-direction: column !important; justify-content: center !important;
  box-sizing: border-box !important;
}
@media (min-width: 640px) {
  .z-policy-banner h1 { font-size: 34px !important; }
}
.z-policy-banner p {
  font-family: 'Inter', sans-serif !important; font-size: 11px !important;
  letter-spacing: 0.15em !important; text-transform: uppercase !important;
  color: #929FAE !important; margin: 0 !important;
}

/* ---------- Footer (identical to homepage footer) ---------- */
.z-footer-root {
  background-color: #07080A !important; color: #8C98A4 !important;
  padding-top: 48px !important; padding-bottom: 32px !important;
  border-top: 1px solid #161922 !important; width: 100% !important;
  font-family: 'Inter', sans-serif !important;
  margin: 0 !important;
}
.z-footer-root, .z-footer-root * { box-sizing: border-box !important; }
.z-footer-root h4, .z-footer-root p { font-family: 'Inter', sans-serif !important; }
.z-footer-root .z-container {
  width: 100% !important; max-width: 100% !important; margin: 0 !important;
  padding-left: 12px !important; padding-right: 12px !important;
}
@media (min-width: 640px) {
  .z-footer-root .z-container { padding-left: 40px !important; padding-right: 40px !important; }
}
/* Policy meta (Effective Date / Website) — two clean lines above the policy text */
.policy-meta-lines {
  display: block; margin: 0 0 24px; padding: 0 0 14px;
  border-bottom: 1px solid #D1D5DB;
  font-family: 'Inter', sans-serif;
}
div.policy-meta-lines p {
  margin: 0 0 4px !important; font-size: 13px !important; line-height: 1.5 !important;
  color: #4B5563 !important; letter-spacing: 0 !important; text-transform: none !important;
}
div.policy-meta-lines p:last-child { margin-bottom: 0 !important; }
.policy-meta-lines strong { color: #0D0E11; font-weight: 700; }

.neon-glow-link { color: #929FAE !important; text-decoration: none !important; font-size: 14px !important; line-height: 2.2 !important; display: inline-flex !important; align-items: center !important; gap: 10px !important; transition: all 0.25s ease !important; }
.neon-glow-link:hover { color: #FFFFFF !important; text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); transform: translateX(3px) !important; }
.neon-highlight { color: #FFE600 !important; font-weight: 700 !important; text-decoration: none !important; transition: all 0.25s ease !important; display: inline-block !important; }
.neon-highlight:hover { color: #FFFFFF !important; }
.neon-highlight-gray { color: #929FAE !important; font-weight: 600 !important; text-decoration: none !important; }
