/* ─── SHARED NAV ─────────────────────────────────────────── */
/* Edit this file once — applies to every page              */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 48px;
  background: #F4F0E9;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-color: #E5DCCD; }

.nav-left { display: flex; gap: 28px; align-items: center; min-width: 0; }
.nav-right { display: flex; gap: 28px; justify-content: flex-end; align-items: center; min-width: 0; }

.nav-left a, .nav-right a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0E1E3A;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-left a:hover, .nav-right a:hover { color: #0E1E3A; text-decoration: underline; text-underline-offset: 4px; }
.nav-left a.active { color: #0E1E3A; }

.wordmark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #0E1E3A;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .amp {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0;
  vertical-align: middle;
  margin: 0 2px;
}

/* ─── NAV RESPONSIVE ──────────────────────────────────────── */
/* The nav must stay ONE ROW at every width — pages hardcode  */
/* padding-top: 80px for the fixed bar, so a taller nav would */
/* slide under their content. Tighten instead of wrapping.    */

/* Laptops (most common collision point) */
@media (max-width: 1400px) {
  nav { padding: 24px 32px; }
  .nav-left, .nav-right { gap: 20px; }
  .wordmark { font-size: 16px; letter-spacing: 0.20em; }
  .wordmark .amp { font-size: 23px; }
}

@media (max-width: 1180px) {
  nav { padding: 24px 24px; }
  .nav-left, .nav-right { gap: 14px; }
  .nav-left a, .nav-right a { font-size: 12px; letter-spacing: 0.09em; }
  .wordmark { font-size: 14px; letter-spacing: 0.14em; }
  .wordmark .amp { font-size: 20px; }
}

/* Below this the full wordmark can't fit — collapse it to the
   standalone & mark (brand-direction-v3 §4). font-size: 0 hides
   the "Haul"/"Stash" text nodes, which no selector can reach. */
@media (max-width: 1000px) {
  nav { padding: 22px 16px; }
  .nav-left, .nav-right { gap: 12px; }
  .nav-left a, .nav-right a { font-size: 11px; letter-spacing: 0.07em; }
  .wordmark { font-size: 0; letter-spacing: 0; }
  .wordmark .amp { font-size: 24px; margin: 0; }
}

/* Narrower than any sensible tightening: let the bar scroll
   sideways rather than overlap. Not a substitute for a proper
   mobile menu — see the note in website-plan.md. */
@media (max-width: 760px) {
  nav { overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: #0E1E3A;
  transition: color 0.2s;
}
.search-btn:hover { color: #0E1E3A; }
.search-btn svg { display: block; }

.heart-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: #0E1E3A;
  transition: color 0.2s;
  text-decoration: none;
}
.heart-btn:hover { color: #0E1E3A; }
.heart-btn svg { display: block; }

/* ─── SHARED FOOTER ───────────────────────────────────────── */
.site-footer {
  background: #0E1E3A;
  padding: 80px 60px 48px;
  display: grid !important;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 60px;
  align-items: center;
}
.footer-wordmark {
  color: #FFFFFF !important;
  display: block;
}
.footer-tagline {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.2;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  cursor: default;
  letter-spacing: -0.01em;
  text-transform: none;
  text-align: center;
}
.footer-tagline:hover { color: rgba(255,255,255,1); }
.footer-col-title {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 20px;
}
.site-footer .footer-col a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  transition: color 0.2s;
  text-decoration: none;
}
.site-footer .footer-col a:hover { color: #FFFFFF; }

.footer-newsletter-btn {
  all: unset;
  display: block;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.6) !important;
  margin-bottom: 12px !important;
  transition: color 0.2s !important;
  cursor: pointer !important;
}
.footer-newsletter-btn:hover { color: #FFFFFF !important; }
.footer-tagline { cursor: default; }
.footer-bottom {
  background: #0E1E3A;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
}
.footer-bottom span {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}

/* ─── NEWSLETTER MODAL ────────────────────────────────────── */
.nl-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14,30,58,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.nl-overlay.open { display: flex; }
.nl-modal {
  background: #FFFFFF;
  padding: 56px 48px 48px;
  max-width: 480px;
  width: 90%;
  position: relative;
}
.nl-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: #0E1E3A; line-height: 1;
}
.nl-close:hover { color: #0E1E3A; }
.nl-headline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 26px;
  color: #0E1E3A;
  margin-bottom: 8px;
  line-height: 1.3;
}
.nl-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0E1E3A;
  margin-bottom: 40px;
}
.nl-field {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid #E5DCCD;
  padding: 14px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #0E1E3A;
  outline: none;
  margin-bottom: 20px;
  display: block;
}
.nl-field::placeholder { color: #0E1E3A; }
.nl-submit {
  width: 100%;
  background: #0E1E3A;
  color: #FFFFFF;
  border: none;
  padding: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.nl-submit:hover { background: #C45030; }
.nl-success-msg {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: #0E1E3A;
  text-align: center;
  padding: 12px 0 8px;
}
.nl-code {
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.22em;
  color: #0E1E3A;
  margin: 16px 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}
.nl-code-note {
  font-size: 10px;
  text-align: center;
  color: #0E1E3A;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── MARKETS (South Africa at the root, Europe at /eu/) ──── */
html:not([data-market="eu"]) [data-only="eu"],
html[data-market="eu"] [data-only="za"] { display: none !important; }
.market-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px;
  background: #0E1E3A; color: #F4F0E9; padding: 10px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: 0.04em;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;   /* at the bottom, because the nav is fixed at the top */
}
.market-bar p { margin: 0; }
.market-bar a, .market-bar button {
  font: inherit; color: #F4F0E9; background: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 4px; display: inline-flex; align-items: center;
}
.market-bar-go { text-decoration: underline; text-underline-offset: 3px; }
.market-bar-stay { opacity: 0.7; }
.market-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.footer-bottom .market-switch-label,
.market-switch a {
  font-size: 8px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
}
.footer-bottom .market-switch-label { color: rgba(255,255,255,0.35); }
.market-switch a { color: rgba(255,255,255,0.55); min-height: 44px; display: inline-flex; align-items: center; }
.market-switch a[aria-current] { color: #FFFFFF; }
.market-switch a:hover { color: #FFFFFF; }
.footer-bottom { align-items: center; flex-wrap: wrap; gap: 0 24px; }
.market-note {
  font-family: 'DM Sans', sans-serif; font-size: 13px; line-height: 1.6;
  background: #E5DCCD; color: #0E1E3A; padding: 12px 16px; margin: 16px 0 24px;
}
.market-empty {
  max-width: 560px; margin: 0 auto; padding: 200px 24px 140px; text-align: center;
  font-family: 'DM Sans', sans-serif; color: #0E1E3A;
}
.market-empty-eyebrow { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #C45030; margin-bottom: 24px; }
.market-empty-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin-bottom: 20px; }
.market-empty-text { font-size: 14px; line-height: 1.7; opacity: 0.75; margin-bottom: 32px; }
.market-empty [data-signup] { margin: 0 auto 40px; max-width: 420px; text-align: left; }
.market-empty-link { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #0E1E3A; border-bottom: 1px solid #0E1E3A; padding-bottom: 4px; text-decoration: none; }
.market-empty-link:hover { color: #C45030; border-color: #C45030; }
@media (max-width: 767px) { .market-empty { padding: 140px 16px 96px; } }
/* market choice in the nav (desktop) and in the phone menu */
.market-pick { position: relative; display: flex; align-items: center; }
.market-pick-btn {
  font-family: 'DM Sans', sans-serif; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #0E1E3A; background: none; border: 0; cursor: pointer; padding: 0; min-height: 44px;
  display: flex; gap: 6px; align-items: center;
}
.market-pick-btn span { font-size: 8px; opacity: 0.6; }
.market-pick-menu {
  position: absolute; top: calc(100% + 6px); right: -16px; z-index: 200; min-width: 220px; padding: 8px 0;
  background: #F4F0E9; border: 1px solid #E5DCCD; box-shadow: 0 12px 32px rgba(14,30,58,0.08);
}
.market-pick-menu[hidden] { display: none; }
.market-pick-menu p {
  font-family: 'DM Sans', sans-serif; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #6F665C; padding: 10px 20px 6px; margin: 0;
}
nav .market-pick-menu a {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 20px;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; letter-spacing: 0; text-transform: none;
  color: #0E1E3A; text-decoration: none;
}
.market-pick-menu a small {
  font-family: 'DM Sans', sans-serif; font-style: normal; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #6F665C;
}
.market-pick-menu a[aria-current] { background: #E5DCCD; }
.market-pick-menu a:hover { background: #EDE6DA; }
.market-phone { border-top: 1px solid #E5DCCD; margin-top: 16px; padding-top: 16px; }
.market-phone p {
  font-family: 'DM Sans', sans-serif; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #6F665C; margin: 0 0 8px;
}
.market-phone div { display: flex; gap: 8px; }
.mobile-menu .market-phone a {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px;
  border: 1px solid #E5DCCD; text-decoration: none; color: #0E1E3A;
  font-family: 'DM Sans', sans-serif; font-style: normal; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.mobile-menu .market-phone a[aria-current] { background: #0E1E3A; color: #F4F0E9; border-color: #0E1E3A; }
