/* ===========================================================
   DoodzWeekend — banknote palette
   green · strap-blue · engraving-black · cream
   GOLD is reserved EXCLUSIVELY for buy actions.
   =========================================================== */
:root {
  --cream:      #f3efe3;
  --cream-2:    #ece5d3;
  --ink:        #16170f;
  --ink-soft:   #3b3c31;
  --muted:      #6c6d5f;

  --green:      #14503b;
  --green-2:    #1c6a4d;
  --green-deep: #0d3528;

  --blue:       #35608d;

  --gold:       #e0a92e;   /* buy actions only */
  --gold-dark:  #c8901a;

  --line:       rgba(22, 23, 15, 0.14);
  --line-dark:  rgba(243, 239, 227, 0.18);

  --shadow:     0 18px 40px -22px rgba(13, 53, 40, 0.45);
  --maxw:       1120px;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.01em; }

.display { font-family: var(--serif); font-weight: 800; }

h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

h2.display { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2.display.xl { font-size: clamp(2.4rem, 5.2vw, 3.8rem); }

h3 { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin-bottom: 8px; }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow.on-dark { color: var(--gold); }

.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); margin: 22px 0 32px; max-width: 36ch; }
.body-lg { font-size: 1.12rem; line-height: 1.7; }
.muted { color: var(--muted); }
.on-dark { color: rgba(243, 239, 227, 0.86); }
.accent-text { color: var(--green-2); font-style: italic; }
.fine { font-size: 0.85rem; opacity: 0.7; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-sm { padding: 11px 20px; font-size: 0.75rem; }
.btn-lg { padding: 18px 42px; font-size: 0.9rem; }

/* GOLD = buy action only */
.btn-buy {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-dark);
  box-shadow: 0 10px 24px -12px rgba(200, 144, 26, 0.85);
}
.btn-buy:hover { background: #eeb83f; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(200, 144, 26, 0.95); }

/* Ghost = navigational, never gold */
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(22, 23, 15, 0.35); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 227, 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(13, 53, 40, 0.5); }
.nav-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; transition: opacity 0.25s ease; }

/* Dollar logo that fades into the center of the nav on scroll (hands off from the hero) */
.nav-logo-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-logo { height: clamp(30px, 5vw, 40px); width: auto; display: block; }
.nav.show-logo .brand { opacity: 0; pointer-events: none; }
.nav.show-logo .nav-logo-link { opacity: 1; pointer-events: auto; }
.brand-mark { height: 40px; width: auto; display: block; }
.wordmark { font-family: var(--sans); font-weight: 700; letter-spacing: 0.18em; font-size: 1.05rem; color: var(--green); }
.wordmark.sm { font-size: 0.95rem; }
.navlinks { display: flex; gap: 28px; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.navlinks a { color: var(--ink-soft); position: relative; padding: 4px 0; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold); transition: width 0.2s ease;
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 580px; }
.hero-copy .lede { margin: 0 0 16px; max-width: none; font-size: clamp(1.02rem, 1.5vw, 1.16rem); line-height: 1.65; }
.hero-copy .lede:first-of-type { margin-top: 24px; }
.hero-copy .lede:last-of-type { margin-bottom: 30px; }

.hero-media { position: relative; }
/* Standalone, page-centered logo floating between the nav and the hero content */
.hero-logo-wrap { text-align: center; margin-bottom: clamp(28px, 4.5vw, 60px); }
.hero-logo {
  display: inline-block;
  width: clamp(260px, 36vw, 460px);
  height: auto;
  filter: drop-shadow(0 16px 26px rgba(13, 53, 40, 0.4));
}

/* Section break — a centered row of three heaters */
.section-break {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 28px);
  padding: clamp(8px, 2vw, 28px) 24px;
}
.break-logo {
  display: block;
  width: clamp(96px, 15vw, 180px);
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(13, 53, 40, 0.25));
}

.hero-slides {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
/* Make a dropped-in real photo fill the slide */
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-glyph { font-size: clamp(3.2rem, 8vw, 5.5rem); line-height: 1; color: rgba(243, 239, 227, 0.92); }
.slide-cap {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--cream);
  letter-spacing: 0.01em;
}
.hero-dots { display: flex; gap: 9px; justify-content: center; margin-top: 18px; }
.hero-dot {
  width: 9px; height: 9px; padding: 0;
  border: none; border-radius: 50%;
  background: rgba(22, 23, 15, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot:hover { background: rgba(22, 23, 15, 0.4); }
.hero-dot.is-active { background: var(--green); transform: scale(1.15); }

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  color: var(--green-2);
  margin: 12px 0 0;
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head .body-lg { margin-top: 14px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.card-feature { border-color: var(--gold-dark); box-shadow: 0 22px 46px -24px rgba(200, 144, 26, 0.5); }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.badge {
  position: absolute; top: -11px; left: 22px;
  background: var(--ink); color: var(--cream);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  padding: 5px 11px; border-radius: 3px;
}

.card-art {
  height: 130px; border-radius: 8px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(243, 239, 227, 0.92);
  font-size: 3.4rem;
}
.art-blackjack { background: linear-gradient(150deg, var(--green-2), var(--green-deep)); }
.art-horsies   { background: linear-gradient(150deg, var(--blue), #244466); }
.art-box       { background: linear-gradient(150deg, #4a4233, var(--ink)); }
.card-art .suit { color: var(--gold); }

.section .center { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Footer ---------- */
/* Engraving-black grounds the page and makes the banknote logo pop,
   anchoring the foot of the page. */
.footer { background: var(--ink); color: rgba(243, 239, 227, 0.66); padding: clamp(40px, 6vw, 64px) 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-logo {
  width: clamp(190px, 26vw, 264px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--cream); }
.copy { font-size: 0.8rem; letter-spacing: 0.01em; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { max-width: none; }
  .hero-media { max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-logo { width: clamp(230px, 64vw, 360px); }
  .cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 620px) {
  .navlinks { display: none; }
  .nav-inner { padding: 10px 16px; gap: 12px; }
  .wordmark { font-size: 0.82rem; letter-spacing: 0.08em; }
  .brand-mark { height: 34px; }
  .nav-actions .btn-sm { padding: 9px 13px; font-size: 0.64rem; letter-spacing: 0.06em; white-space: nowrap; flex-shrink: 0; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .navlinks a::after { transition: none; }
}
