/* Header layout and navigation */

.site-header {
  width: 100%;
  height: auto;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
}

/*
  Horizontal spacing comes from .container in grid.css.
  Do NOT add left/right padding here so all pages match.
*/
.header-inner {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem; /* vertical padding only */
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.brand-logo {
  width: 30px;
  height: 30px;
}

.brand-name {
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: #333;
  border-radius: 999px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.nav-link:hover {
  color: var(--color-text-main);
}

.nav-link-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #f0e0d5;
}

.nav-link.is-active {
  color: var(--color-text-main);
}

.store-btns {
  width: fit-content;
  height: auto;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.header-store-btn img {
  width: auto;
  height: 56px;
}

.store-icon {
  height: 56px;
  width: auto;
}

/* =============================
   VISIBILITY RULES FOR BADGES
   ============================= */

/* Desktop & tablet: hide store badges in header on all pages */
@media (min-width: 769px) {
  .site-header .store-btns,
  .site-header .header-store-btn,
  .site-header .header-store-btn img,
  .site-header .store-icon {
    display: none !important;
  }
}

/* Mobile: show badges in the hamburger menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1.25rem 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .store-btns {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    display: flex;
  }

  .header-store-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
}
