/* ============================================================
   seattle-chrome.css — Shared Seattle-inspired chrome
   Layout / motion only. Brand colors preserved.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&display=swap');

:root {
  --sb-heading: 'Oswald', 'DM Sans', sans-serif;
  --sb-body: 'DM Sans', system-ui, sans-serif;
  --sb-cream: #f8f7f2;
  --sb-ink: #2c1e1a;
  --sb-muted: #8b7355;
  --sb-accent: #c9924a;
  --sb-footer: #1a1a1a;
  --sb-nav-h: 72px;
}

/* ── Navbar — Seattle clean bar ─────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--sb-nav-h);
  background: #ffffff;
  border-bottom: 1px solid #efefef;
  backdrop-filter: none;
  transition: box-shadow 0.22s ease;
}
.navbar.scrolled {
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1380px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 64px);
  height: 100%;
}

.navbar__logo { flex-shrink: 0; z-index: 2; }
.navbar__logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.navbar__link {
  font-family: var(--sb-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sb-ink);
  padding: 8px 12px;
  position: relative;
  transition: color 0.2s ease;
}
.navbar__link::after { display: none !important; }
.navbar__link:hover,
.navbar__link.active {
  color: var(--color-green, #0d542b);
}

.navbar__item > .navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-chevron {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  transition: transform 0.22s ease;
}
.navbar__item:hover .nav-chevron,
.navbar__item:focus-within .nav-chevron,
.navbar__item.mobile-open .nav-chevron {
  transform: rotate(180deg);
}

/* Desktop dropdown */
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 0;
  padding: 0;
  min-width: 240px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2000;
  overflow: hidden;
}
.navbar__item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
.navbar__item:hover .navbar__dropdown,
.navbar__item:focus-within .navbar__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.navbar__dropdown::before { display: none; }

.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  color: var(--sb-ink);
  font-family: var(--sb-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.16s ease, color 0.16s ease;
}
.navbar__dropdown-item:last-child { border-bottom: none; }
.navbar__dropdown-item:hover {
  background: #faf8f5;
  color: var(--color-green, #0d542b);
}
.navbar__dropdown-divider { display: none; }

.dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropdown-icon img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-item__desc { display: none; }
.dropdown-item__name {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.navbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}

#desktopNotifBell {
  border-radius: 2px !important;
}

/* Hamburger — visible mobile only */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
  order: -1;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sb-accent);
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

/* Kill legacy bottom nav / popups */
.mobile-bottom-nav,
.mobile-nav-popup,
.mobile-nav-popup-overlay {
  display: none !important;
}

/* ── Mobile accordion drawer ────────────────────────────── */
@media (max-width: 860px) {
  body { padding-bottom: 0 !important; }

  .navbar__hamburger { display: flex; }

  .navbar__inner {
    justify-content: space-between;
    padding-inline: 12px 16px;
  }

  .navbar__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar__nav {
    display: none;
    position: fixed;
    top: var(--sb-nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #ffffff;
    padding: 0;
    overflow-y: auto;
    z-index: 999;
    animation: sbDrawerIn 0.28s ease;
  }

  .navbar.nav-open .navbar__nav {
    display: flex;
  }

  .navbar__link,
  .navbar__item > .navbar__link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #ececec;
    font-size: 14px;
    font-weight: 500;
    color: #6b6b6b;
    letter-spacing: 0.08em;
  }
  .navbar__link:hover,
  .navbar__link.active {
    color: var(--sb-ink);
  }

  .navbar__item {
    display: block;
    width: 100%;
  }

  /* Desktop-style dropdown hidden on mobile; accordion panel used instead */
  .navbar__dropdown {
    display: none !important;
  }
  #menuDropdownItem.mobile-open > .sb-accordion-panel {
    display: block;
  }
  #brandsDropdownItem.mobile-open > .navbar__dropdown {
    display: block !important;
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    min-width: 100%;
    background: #fff;
  }
  .navbar__item::after { display: none; }

  .navbar__dropdown-item {
    padding: 14px 20px 14px 36px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #888;
  }

  .navbar__search {
    margin-left: auto;
    gap: 6px;
  }
  #signInLink,
  #cartLink {
    display: none !important;
  }
  #accountItem { display: none !important; }

  /* Auth/cart live inside mobile drawer via .sb-mobile-auth */
  .sb-mobile-auth {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .sb-mobile-auth .navbar__link {
    color: #6b6b6b;
  }

  .navbar__search {
    display: flex !important;
    margin-left: auto !important;
    gap: 6px !important;
  }

  #desktopNotifBell {
    width: 36px;
    height: 36px;
    border-radius: 2px !important;
  }
}

@media (min-width: 861px) {
  .sb-mobile-auth { display: none !important; }
  .navbar__hamburger { display: none !important; }
  .sb-accordion-panel { display: none !important; }
  .account-item .account-dropdown {
    left: auto;
    right: 0;
    transform: translateY(-6px);
  }
  .account-item:hover .account-dropdown,
  .account-item:focus-within .account-dropdown {
    transform: translateY(0);
  }
}

@keyframes sbDrawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Accordion nested feel */
.sb-accordion-panel {
  display: none;
  background: #fafafa;
}
.navbar__item.mobile-open > .sb-accordion-panel,
.sb-accordion-item.mobile-open > .sb-accordion-panel {
  display: block;
  animation: sbAccord 0.25s ease;
}
@keyframes sbAccord {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 600px; }
}

.sb-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 14px 36px;
  border: none;
  border-bottom: 1px solid #ececec;
  background: transparent;
  font-family: var(--sb-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b6b;
  cursor: pointer;
  text-align: left;
}
.sb-accordion-link {
  display: block;
  padding: 12px 20px 12px 52px;
  border-bottom: 1px solid #f0f0f0;
  font-family: var(--sb-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
.sb-accordion-link:hover {
  color: var(--color-green, #0d542b);
  background: #f5f5f5;
}

/* ── Footer — dark Seattle columns ──────────────────────── */
.footer {
  background: var(--sb-footer) !important;
  border-top: none !important;
  padding-top: 56px !important;
  font-family: var(--sb-heading) !important;
  color: #fff;
}
.footer__inner {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px !important;
  max-width: 1100px !important;
  margin-inline: auto !important;
  padding: 0 clamp(20px, 5vw, 64px) 48px !important;
  text-align: center;
}
.footer__brand,
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer__logo {
  width: 56px;
  height: 56px;
  filter: brightness(0) invert(1);
}
.footer__tagline,
.footer__brand-desc {
  display: none;
}
.footer__heading {
  font-family: var(--sb-heading) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  margin-bottom: 4px !important;
}
.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding: 0;
  margin: 0;
}
.footer__link,
.footer__brand-item-name {
  font-family: var(--sb-heading) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  transition: opacity 0.2s ease !important;
}
.footer__link:hover,
.footer__brand-item:hover .footer__brand-item-name {
  opacity: 0.7 !important;
  color: #fff !important;
}
.footer__brand-item-desc,
.footer__brand-dot { display: none !important; }
.footer__brand-item {
  display: block;
  transform: none !important;
}
.footer__contact {
  font-family: var(--sb-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  justify-content: center;
}
.footer__contact svg { color: var(--sb-accent) !important; opacity: 1 !important; }
.footer__socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.footer__social {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 0;
  background: transparent !important;
  color: #fff !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer__social:hover {
  background: #fff !important;
  color: var(--sb-footer) !important;
  transform: translateY(-2px);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: transparent !important;
  max-width: 1100px;
  margin-inline: auto;
  padding: 20px clamp(20px, 5vw, 64px) 28px !important;
}
.footer__copyright,
.footer__bottom-links .footer__link {
  color: rgba(255, 255, 255, 0.55) !important;
  font-family: var(--sb-body) !important;
  font-size: 12px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.footer__bottom-sep { color: rgba(255, 255, 255, 0.35) !important; }

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-bottom: 36px !important;
  }
  .footer__list { gap: 18px; }
  .footer__link {
    font-size: 14px !important;
    padding: 4px 0;
  }
}

/* ── Back to top ────────────────────────────────────────── */
.sb-back-top {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 900;
  width: 40px;
  height: 40px;
  background: var(--sb-accent);
  border: none;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.sb-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.sb-back-top:hover {
  background: var(--color-green, #0d542b);
}
.sb-back-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shared reveal used site-wide */
.sb-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.sb-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
