/* ── navigation.css — loaded on EVERY page ───────────────────────────────────
   On non-home pages (no slideshow.css): provides solid dark-green header.
   On home page: slideshow.css overrides with transparent/pill logic.
   ─────────────────────────────────────────────────────────────────────────── */

/* Default solid header — non-home pages */
header {
  height: 72px;
  position: sticky;
  top: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.045), transparent 65%),
              rgba(10,35,20,.96);
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 6px 28px rgba(0,0,0,.1), inset 0 1px rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  z-index: 30;
}

/* Nav links */
header nav a { color: rgba(238,239,227,.8); transition: color .2s; }
header nav a:hover,
header nav a[aria-current] { color: #fff; }

/* Logo */
.logo--inline {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.logo--inline span {
  display: block;
  margin: 0 0 .08em .5em;
  padding-left: 0;
}
header .logo { font-size: 1.8rem; }
header .logo span { font-size: .6rem; margin: 0 0 .08em .5em; }

/* Floating WhatsApp — quiet motion that keeps the action discoverable. */
.floating {
  isolation: isolate;
  overflow: visible;
  background-image: url('/whatsapp.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 27px;
  box-shadow: 0 8px 24px rgba(0,0,0,.24), 0 0 0 1px rgba(255,255,255,.1) inset;
  transition: transform .24s cubic-bezier(.22,1,.36,1), box-shadow .24s ease, background .24s ease;
}
.floating > svg { opacity: 0; }
.floating::before {
  content: '';
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 1px solid rgba(124,255,58,.44);
  border-radius: inherit;
  pointer-events: none;
  animation: whatsapp-breathe 2.8s ease-out infinite;
}
.floating:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 12px 30px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.16) inset;
  transform: translateY(-3px);
}
.floating:hover svg { transform: scale(1.08) rotate(-5deg); }
.floating svg { transition: transform .24s cubic-bezier(.22,1,.36,1); }
@keyframes whatsapp-breathe {
  0%, 100% { opacity: .5; transform: scale(1); }
  55% { opacity: 0; transform: scale(1.32); }
}

/* Mobile full-screen navigation overlay */
.mobile-navigation {
  position: fixed; inset: 0;
  margin: 0; width: 100%; max-width: none;
  height: 100dvh; max-height: none;
  padding: 0; border: 0;
  color: #f2f3ea;
  background: linear-gradient(140deg, rgba(255,255,255,.08), transparent 45%),
              rgba(9,31,18,.9);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity .32s ease, transform .42s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-navigation::backdrop { background: rgba(6,19,9,.55); backdrop-filter: blur(8px); }
.mobile-navigation.is-open { opacity: 1; transform: none; }

.mobile-nav-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 max(24px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom));
}
.mobile-nav-top {
  height: 72px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-nav-close {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  font-size: 1.4rem; color: #fff;
  display: grid; place-items: center;
  transition: background .2s, transform .28s cubic-bezier(.22,1,.36,1);
}
.mobile-nav-close:hover { background: rgba(255,255,255,.14); transform: rotate(90deg); }

.mobile-navigation nav {
  display: flex; flex-direction: column;
  margin: auto 0; counter-reset: nav;
}
.mobile-navigation nav a {
  counter-increment: nav;
  display: flex; align-items: center; gap: 18px;
  padding: clamp(14px, 3vh, 26px) 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: clamp(2.4rem, 10.5vw, 4.2rem);
  font-weight: 400; letter-spacing: -.045em; line-height: 1.08;
  opacity: 0; transform: translateY(20px);
  transition: opacity .26s ease, transform .36s cubic-bezier(.22,1,.36,1), color .2s;
  text-decoration: none; color: inherit;
}
.mobile-navigation nav a::before {
  content: '0' counter(nav);
  font-size: .6rem; letter-spacing: .08em;
  color: rgba(182,197,175,.65); flex-shrink: 0;
}
.mobile-navigation nav a::after {
  content: '↗'; margin-left: auto;
  font-size: 1.4rem; color: rgba(189,203,180,.5);
}
.mobile-navigation.is-open nav a {
  opacity: 1; transform: none;
  transition-delay: calc(var(--order) * 48ms + 55ms);
}
.mobile-navigation nav a[aria-current],
.mobile-navigation nav a:hover { color: var(--accent); }

.mobile-nav-cart {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 13px 16px;
  border: 1px solid rgba(124,255,58,.38);
  border-radius: 4px;
  background: rgba(124,255,58,.08);
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  text-align: left;
  transition: background .2s ease, transform .2s ease;
}
.mobile-nav-cart:hover { background: rgba(124,255,58,.16); transform: translateY(-2px); }
.mobile-nav-cart svg { width: 22px; height: 22px; }
.mobile-nav-cart-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--background);
  font-size: .72rem;
}

/* Mobile breakpoint */
@media (max-width: 900px) {
  header { height: 64px; }
  header .logo { font-size: 1.55rem; }
  header .logo span { font-size: .56rem; margin: 0 0 .08em .5em; }
  header nav, header nav.open { display: none; }
  header .menu-trigger {
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    margin-left: 5px;
    background: rgba(255,255,255,.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-navigation,
  .mobile-navigation nav a,
  .mobile-nav-close,
  .mobile-nav-cart,
  .floating,
  .floating svg { transition: none !important; transform: none !important; }
  .floating::before { animation: none; }
}
