/**
 * BambooTide — site-wide header spacing
 * Fixes cramped “nut-to-butt” nav: logo glued to Home, Contact into CTAs, etc.
 */

/* Wider bar + horizontal breathing room */
nav.nav-blur > div {
  max-width: 80rem; /* ~max-w-7xl */
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Top row: never jam the three clusters together */
nav.nav-blur > div > .flex.justify-between.items-center,
nav.nav-blur > div > div.flex.items-center {
  gap: 1rem 1.5rem;
  flex-wrap: nowrap;
  align-items: center;
}

/* Logo — fixed size, never collapse into first link */
nav.nav-blur a[href="/"] img,
nav.nav-blur a[href="./"] img,
nav.nav-blur a[href="Index.html"] img,
nav.nav-blur a[href="/Index.html"] img {
  height: 2.25rem;
  width: auto;
  display: block;
}

nav.nav-blur > div > div > a.flex.items-center,
nav.nav-blur > div > div > a[href="/"] {
  flex-shrink: 0;
  margin-right: 0.25rem;
  padding-right: 0.25rem;
}

/* Primary link cluster (Home … Contact) */
nav.nav-blur .desktop-nav-links,
nav.nav-blur > div > div > .hidden.md\:flex.items-center.gap-8,
nav.nav-blur div.hidden.md\:flex.items-center.gap-8 {
  gap: 1.15rem !important;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  flex-wrap: nowrap;
  font-size: 0.875rem; /* text-sm — less width pressure */
  letter-spacing: 0.01em;
}

/* Extra air on very wide screens */
@media (min-width: 1400px) {
  nav.nav-blur .desktop-nav-links,
  nav.nav-blur div.hidden.md\:flex.items-center.gap-8 {
    gap: 1.5rem !important;
  }
}

/* Every nav child stays on one line (stops “Eco Products” stacking) */
nav.nav-blur .desktop-nav-links > *,
nav.nav-blur div.hidden.md\:flex.items-center.gap-8 > * {
  flex-shrink: 0;
  white-space: nowrap;
}

nav.nav-blur .desktop-nav-links a,
nav.nav-blur .desktop-nav-links button,
nav.nav-blur div.hidden.md\:flex.items-center.gap-8 > a,
nav.nav-blur div.hidden.md\:flex.items-center.gap-8 > .relative > button {
  white-space: nowrap;
}

/* Pill CTAs (Goal Garden / Play) — slightly tighter padding so row fits */
nav.nav-blur a[href*="goal-garden"].rounded-full,
nav.nav-blur a[href*="tide-and-crown"].rounded-full {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* Right CTA cluster (Free account / Shop) */
nav.nav-blur .desktop-nav-ctas,
nav.nav-blur div.hidden.md\:flex.items-center.gap-2 {
  gap: 0.65rem !important;
  flex-shrink: 0;
  margin-left: 0.35rem;
}

nav.nav-blur .desktop-nav-ctas a,
nav.nav-blur div.hidden.md\:flex.items-center.gap-2 > a {
  white-space: nowrap;
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

/* Separate Contact from Free account when both sit near the edge */
nav.nav-blur a[href="/contact"],
nav.nav-blur a[href="contact.html"] {
  margin-right: 0.15rem;
}

/* Standalone “Shop on Amazon” (pages without Free account cluster) */
nav.nav-blur > div > div > a[href*="amazon.com/shops"] {
  flex-shrink: 0;
  margin-left: 0.5rem;
  white-space: nowrap;
  padding-left: 0.95rem !important;
  padding-right: 0.95rem !important;
}

/* Logo image sizing consistency */
nav.nav-blur img[alt="BambooTide"] {
  height: 2.25rem !important;
  width: auto !important;
  max-width: none;
}

/*
 * Below xl (~1280px): desktop link row is too crowded.
 * Force hamburger so items never sit nut-to-butt on tablets/laptops.
 */
@media (max-width: 1279px) {
  nav.nav-blur .desktop-nav-links,
  nav.nav-blur div.hidden.md\:flex.items-center.gap-8,
  nav.nav-blur div.hidden.md\:flex.items-center.gap-2,
  nav.nav-blur .desktop-nav-ctas {
    display: none !important;
  }

  nav.nav-blur #mobile-menu-button {
    display: inline-flex !important;
  }
}

/* xl+: show desktop clusters again */
@media (min-width: 1280px) {
  nav.nav-blur .desktop-nav-links,
  nav.nav-blur div.hidden.md\:flex.items-center.gap-8 {
    display: flex !important;
  }

  nav.nav-blur .desktop-nav-ctas,
  nav.nav-blur div.hidden.md\:flex.items-center.gap-2 {
    display: flex !important;
  }

  nav.nav-blur #mobile-menu-button {
    display: none !important;
  }
}

/* Our Story hub tab bar — always centered; never host auth chips */
nav[aria-label="Our Story section"],
nav.story-hub-nav {
  text-align: center;
}

nav[aria-label="Our Story section"] > div,
nav.story-hub-nav > div {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 0.5rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

nav[aria-label="Our Story section"] [data-bt-auth-chip],
nav.story-hub-nav [data-bt-auth-chip] {
  display: none !important;
}

/* ── Site-wide footer polish ── */
footer.bt-site-footer {
  margin-top: 0;
  background-color: #0a2220;
  color: #fff;
}

footer.bt-site-footer a {
  text-decoration: none;
}

footer.bt-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.bt-site-footer .font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Print: hide heavy footer chrome on guide pages that already use no-print */
@media print {
  footer.bt-site-footer {
    display: none !important;
  }
}
