/* ============================================================
   The Money–Body Code — base.css
   Shared design-system layer: tokens, reset, containers,
   section grounds, type scale, CTA, rules, glow primitives.

   Page-specific CSS lives in homepage.css / sales-page.css,
   loaded conditionally from layout/theme.liquid.
   @font-face is declared inline in theme.liquid so it can
   resolve the self-hosted woff2 via {{ 'x.woff2' | asset_url }}.
   ============================================================ */

/* ── tokens ── */
:root {
  --ink:        #120F10;   /* deepest background */
  --ink-2:      #0C0A0B;   /* cinematic ground */
  --ink-soft:   #2A2422;
  --cream:      #F5F2ED;   /* primary text on dark */
  --paper:      #F4EFE6;   /* warm light ground */
  --gold:       #C9A24E;   /* primary accent */
  --gold-light: #E2BF6A;
  --gold-dark:  #9A7535;
  --gold-sheen: linear-gradient(100deg,#B98F3C 0%,#D0A954 48%,#EBCB7C 100%);
  --green:      #3D5A4E;
  --copper:     #D19B68;
  --line-ink:   rgba(18,15,16,0.14);    /* hairline on light */
  --line-gold:  rgba(154,117,53,0.34);  /* hairline on dark  */

  --font-d: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --font-b: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --track-body:    0.015em;
  --track-eyebrow: 0.4em;

  --pad: clamp(64px, 10vw, 120px);   /* section vertical padding */
  --r:   2px;                        /* cards, inputs, CTAs */
  --ease: cubic-bezier(.4, 0, .15, 1);
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font-family: inherit; color: inherit; cursor: pointer; }
:where(input, textarea, select) { font: inherit; }

/* ── accessibility ── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0; left: 0; z-index: 200;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  transform: translateY(-120%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ── containers ── */
.wrap        { width: 100%; margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.wrap.wide   { max-width: 1280px; }
.wrap.mid    { max-width: 1080px; }
.wrap.narrow { max-width: 720px; }

/* ── section grounds ── */
.sec        { padding-block: var(--pad); }
.sec.dark   { background: var(--ink); }
.sec.deep   { background: var(--ink-2); }
.sec.cream  { background: #f5f2ed; color: var(--ink); }
.sec.cream .h1,
.sec.cream .h2   { color: var(--ink); }
.sec.cream .body { color: rgba(18,15,16,.72); }

/* ── type scale ── */
.h1 {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: .004em;
  color: var(--cream);
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: .004em;
  color: var(--cream);
  text-wrap: balance;
}
.lede {
  font-family: var(--font-d);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.38;
  color: var(--cream);
}
.body {
  font-family: var(--font-b);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  letter-spacing: var(--track-body);
  color: rgba(245,242,237,.82);
}
.eyebrow {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ── CTA ── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: .88rem clamp(1.05rem, 3.6vw, 1.56rem);
  background: var(--gold-sheen);
  border: none;
  border-radius: var(--r);
  font-family: var(--font-b);
  font-weight: 500;
  font-size: clamp(12px, 3.2vw, 15px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,162,78,.38); }
.cta:hover .arr { transform: translateX(4px); }
.arr { display: inline-block; transition: transform .2s var(--ease); }
.cta-sub {
  display: block;
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245,242,237,.45);
  margin-top: 10px;
}

/* ── text link ── */
.txt-link {
  font-family: var(--font-b);
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(226,191,106,.5);
  cursor: pointer;
  padding: 0 0 5px;
  transition: opacity .18s, border-color .18s;
}
.txt-link:hover { opacity: .7; border-color: rgba(226,191,106,.9); }

/* ── rules ── */
.rule-gold   { border: none; border-top: 1px solid var(--line-gold); display: block; }
.rule-ink    { border: none; border-top: 1px solid var(--line-ink);  display: block; }
.rule-accent { border: none; border-top: 1px solid var(--gold-dark); width: 64px; display: block; margin-inline: auto; }

/* ── glow / atmosphere primitives ── */
.glow-wrap {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding-block: var(--pad);
}
.glow-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(80% 55% at 50% 0%, rgba(201,162,78,.15) 0%, transparent 62%);
}
.glow-orb     { position: absolute; border-radius: 50%; pointer-events: none; }
.mbc-atmos    { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.glow-content { position: relative; z-index: 1; }

/* ── background photos ── */
/* Sizes set per element by snippets/bg-photo.liquid: phones, tablets,
   desktops. .rbg-lazy holds the photo back until assets/lazy-bg.js
   sees it nearing the viewport. */
.rbg { background-image: var(--rbg-s); }
@media (min-width: 700px)  { .rbg { background-image: var(--rbg-m); } }
@media (min-width: 1200px) { .rbg { background-image: var(--rbg-l); } }
.rbg.rbg-lazy { background-image: none; }

/* ── cookie consent ── */
.cookie-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 150;
  background: var(--ink-2);
  border-top: 1px solid var(--line-gold);
  box-shadow: 0 -12px 40px rgba(0,0,0,.35);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 40px);
  flex-wrap: wrap;
  padding-block: 20px;
}
.cookie-consent__text {
  font-family: var(--font-b);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: var(--track-body);
  color: rgba(245,242,237,.78);
  max-width: 640px;
  flex: 1 1 320px;
}
.cookie-consent__link {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(226,191,106,.5);
}
.cookie-consent__link:hover { text-decoration-color: rgba(226,191,106,.9); }
.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  flex: 0 0 auto;
}
.cookie-consent__accept { padding: .72rem 1.5rem; font-size: 12px; }
.cookie-consent__decline { font-size: 12px; letter-spacing: .16em; }

@media (max-width: 640px) {
  .cookie-consent__inner { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .cookie-consent__text { flex: 0 0 auto; max-width: none; }
  .cookie-consent__actions { width: 100%; justify-content: flex-end; }
}

/* ── motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   Header + footer — from the sections' {% stylesheet %} blocks
   ============================================================ */
/* ── sections/header.liquid ── */
#nav {
  position: relative;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 25px clamp(20px, 5vw, 56px);
  background: radial-gradient(ellipse at 50% 50%, rgba(2,48,32,.05) 0%, transparent 80%), rgba(12,10,11,.94);
  border-bottom: 1px solid var(--line-gold);
  backdrop-filter: saturate(1.1);
}
#nav.nav--sticky { position: sticky; }
.nav-l { display: flex; align-items: center; gap: clamp(16px,2.6vw,34px); justify-self: start; }
.nav-c { display: flex; align-items: center; justify-self: center; }
.nav-r { display: flex; align-items: center; gap: clamp(14px,2.4vw,30px); justify-self: end; }
.nav-inline { display: flex; align-items: center; gap: clamp(16px,2.6vw,34px); }
.nav-link {
  font-family: var(--font-b); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(245,242,237,.72);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color .18s var(--ease);
}
.nav-link:hover { color: var(--gold-light); }
.icon-btn {
  background: none; border: none; cursor: pointer; padding: 6px;
  display: flex; align-items: center; transition: opacity .18s;
}
.icon-btn:hover { opacity: .72; }
.wordmark-nav { height: 40px; width: auto; }

.d-only { display: flex; }
.m-only { display: none; }

/* mobile menu */
#mmenu { position: fixed; inset: 0; z-index: 60; }
#mmenu[hidden] { display: none; }
.m-backdrop { position: absolute; inset: 0; background: rgba(6,5,6,.6); }
.m-drawer {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(340px,86vw);
  background: var(--ink-2);
  border-right: 1px solid var(--line-gold);
  display: flex; flex-direction: column;
  padding: 22px 26px;
  box-shadow: 24px 0 60px rgba(0,0,0,.5);
}
.m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.m-head-label {
  font-family: var(--font-b); font-size: 12px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold-light);
}
.m-item {
  display: block; text-align: left;
  font-family: var(--font-d); font-size: 24px; color: var(--cream);
  background: none; border: none; border-bottom: 1px solid var(--line-gold);
  cursor: pointer; padding: 16px 0; width: 100%;
  transition: color .18s;
}
.m-item:hover { color: var(--gold-light); }
.m-foot { margin-top: auto; padding-top: 20px; }

@media (max-width: 860px) {
  .d-only { display: none !important; }
  .m-only { display: flex !important; }
  .wordmark-nav { height: 30px !important; }
  #nav { padding-block: 16px; }
}

/* ── sections/footer.liquid ── */
.mbc-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line-gold);
}
.mbc-footer__inner {
  padding-block: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
}
.mbcSpFooter__disclaimer {
  font-family: var(--font-b); font-weight: 300;
  font-size: .82rem; line-height: 1.75; letter-spacing: .02em;
  color: #F0DCC2; opacity: .6;
  max-width: 520px; margin: 0 auto;
}
.mbcSpFooter__disclaimer p { margin: 0; }
.mbcSpFooter__rule { width: 40px; height: 1px; background: var(--gold); opacity: .4; margin: 1rem 0; }
.mbcSpFooter__copy {
  font-family: var(--font-d); font-style: normal; font-size: .95rem;
  color: var(--gold-light); margin-bottom: .5rem;
}
.mbcSpFooter__nav {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-b); font-weight: 400; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.mbcSpFooter__link { color: #F0DCC2; opacity: .7; text-decoration: none; transition: opacity .3s, color .3s; }
.mbcSpFooter__link:hover { opacity: 1; color: var(--gold-light); }
.mbcSpFooter__dot { color: var(--gold); opacity: .5; }
