/* ============================================================
   Shared navbar + footer + fonts for all Ahfy pages
   Pulled from the homepage design (ahfy-combined) so every
   page shares one consistent header, footer and font family.
   ============================================================ */

:root {
  --bg: #faf8f7;
  --bg-card: #ffffff;
  --bg-card2: #f0eeed;
  --bg-section: #f3f0ee;
  --text-primary: #1f1f21;
  --text-secondary: #55504d;
  --text-disabled: #a09890;
  --salmon: #fcceb4;
  --accent: #ff9052;
  --accent-hover: #e87a40;
  --border: #e8e3de;
  --shadow-soft: 0 10px 40px rgba(31, 31, 33, 0.08);
  --shadow-card: 0 2px 12px rgba(31, 31, 33, 0.06);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius-pill: 45px;
}

/* ─── NAV ─────────────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin: 16px auto 0;
  width: min(100% - 32px, 1180px);
  font-family: var(--font);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav .brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--salmon);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--bg-section);
  color: var(--text-primary);
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  place-items: center;
  font-size: 16px;
  font-family: var(--font);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.menu-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.nav .btn,
.footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.nav .btn-primary,
.footer .btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.nav .btn-primary:hover,
.footer .btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ─── MOBILE PANEL ────────────────────────────────────── */
.mobile-panel {
  display: none;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-family: var(--font);
}

.mobile-panel a {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-panel a:last-child {
  border-bottom: none;
}

.mobile-panel.open {
  display: block;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .nav-wrap {
    top: 10px;
  }
  .nav .btn-primary {
    display: none;
  }
}

/* ─── FOOTER STORE BADGES ─────────────────────────────── */
.footer-store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.footer-store-badges .store-badge {
  height: 44px;
  width: auto;
  display: block;
}

.footer-store-badges .store-badge-link {
  display: inline-flex;
}

/* ─── FOOTER SOCIAL ICONS ─────────────────────────────── */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
