/* ============================================================
   YOUR NASHVILLE SONG — Shared base stylesheet
   Used by every page except the homepage (which has its own
   inline styles for the locked composition).

   Loads: tokens, fonts, nav, footer, statement bands,
          buttons, reveal animations.
   ============================================================ */

:root {
  --noir:        #1A1815;
  --noir-deep:   #0E0D0B;
  --char-mid:    #2A2723;
  --cream:       #F3EEE8;
  --cream-deep:  #EAE3D9;
  --cream-dim:   #B8B0A4;
  --gold:        #B48A52;
  --gold-bright: #C9A36F;
  --gold-deep:   #8A5A3B;
  --smoke:       #5C544A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--noir);
  color: var(--cream);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media(max-width:780px){ .container { padding: 0 20px; } }

/* ============================================================
   NAV — fixed top, transparent at top of page, dark when scrolled
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(14,13,11,0.5) 0%, rgba(14,13,11,0) 100%);
  transition: background 0.4s ease, padding 0.3s ease;
}
.site-nav.is-scrolled {
  background: rgba(14,13,11,0.96);
  padding: 14px 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-links {
  display: flex; gap: clamp(28px, 3vw, 56px);
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream);
}
.nav-links a {
  opacity: 0.82; padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-links a.active { opacity: 1; color: var(--gold); border-bottom-color: var(--gold); }
.brand-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}
.brand-mark .shield { width: 28px; height: 28px; flex-shrink: 0; color: var(--gold); margin-right: -4px; }
@media(max-width: 880px) {
  .site-nav { padding: 16px 24px; }
  .nav-links { display: none; }
}

/* ============================================================
   PAGE HERO — sub-page hero (not full viewport)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 140px 32px 100px;
  background: var(--noir-deep);
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.45;
  filter: brightness(0.78) contrast(1.05) saturate(0.92);
}
.page-hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(14,13,11,0.55) 0%,
    rgba(14,13,11,0.4)  40%,
    rgba(14,13,11,0.85) 100%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 980px;
  width: 100%;
}
.page-eyebrow {
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
  opacity: 0.72;
  text-transform: uppercase;
}
.page-eyebrow::before {
  content: '';
  display: block;
  width: 56px;
  height: 12px;
  margin: 0 auto 18px;
  background: url('/assets/marks/tristar.svg') center/contain no-repeat;
  opacity: 0.7;
}
.page-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--cream);
  margin: 0 auto 16px;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 18ch;
}
.page-h1 em { font-style: italic; color: var(--gold); text-transform: none; font-weight: 500; }
.page-sub {
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.32em;
  color: var(--cream);
  opacity: 0.55;
  font-weight: 400;
  max-width: 640px;
  margin: 12px auto 0;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ============================================================
   STATEMENT — cream band, large serif, word-by-word reveal
   ============================================================ */
.statement {
  background: var(--cream);
  padding: clamp(120px, 18vh, 220px) 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--noir);
}
.statement-inner {
  max-width: 1280px;
  text-align: center;
}
.statement p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(26px, 3.6vw, 50px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--noir);
  opacity: 0.88;
}
.statement p em {
  color: var(--gold-deep);
  font-style: italic;
  opacity: 1;
}

/* ============================================================
   BIG SECTION HEADS — used inside dark sections
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 80px);
}
.section-eyebrow {
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.36em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  display: inline-block;
}
.section-h {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.012em;
  max-width: 880px;
  margin: 0 auto;
}
.section-h em { font-style: italic; color: var(--gold); }
.section-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
  opacity: 0.72;
  margin-top: 18px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Cream section variants */
.section-h.on-cream { color: var(--noir); }
.section-h.on-cream em { color: var(--gold-deep); }
.section-sub.on-cream { color: var(--noir); opacity: 0.65; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 18px 36px;
  background: var(--gold);
  color: var(--noir-deep);
  border: 1px solid var(--gold);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn-ghost {
  display: inline-block;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 18px 36px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--gold); color: var(--noir-deep); }
.btn-ghost.on-cream { color: var(--gold-deep); border-color: var(--gold-deep); }
.btn-ghost.on-cream:hover { background: var(--gold-deep); color: var(--cream); }

/* ============================================================
   SIGNUP — minimal email CTA bar
   ============================================================ */
.signup {
  background: var(--noir-deep);
  padding: clamp(80px, 14vh, 140px) 32px;
  text-align: center;
}
.signup-eyebrow {
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 32px;
  text-transform: uppercase;
}
.signup-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--cream);
  margin: 0 auto 44px;
  max-width: 880px;
  letter-spacing: -0.01em;
}
.signup-headline em { font-style: italic; color: var(--gold); }
.signup-form {
  display: flex;
  max-width: 540px;
  margin: 0 auto;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.signup-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 14px 0;
  outline: none;
}
.signup-input::placeholder { color: var(--cream); opacity: 0.5; }
.signup-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 0 14px 24px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.signup-btn:hover { opacity: 0.7; }

/* ============================================================
   FOOTER — hairline + shield divider, Jost wordmark, link row
   ============================================================ */
.site-footer {
  background: var(--noir-deep);
  padding: clamp(60px, 9vh, 90px) 48px clamp(40px, 6vh, 56px);
  border-top: 1px solid rgba(180, 138, 82, 0.18);
}
.footer-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vh, 40px);
}
.footer-divider .rule {
  flex: 1; height: 6px;
  background: transparent;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  opacity: 0.45;
}
.footer-divider .shield {
  width: 36px; height: 36px;
  color: var(--gold);
  flex-shrink: 0;
}
.footer-mark {
  text-align: center;
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: clamp(24px, 4vh, 36px);
}
.footer-row {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(20px, 3vw, 40px);
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: clamp(22px, 3vh, 32px);
  flex-wrap: wrap;
}
.footer-row a { opacity: 0.7; transition: opacity 0.2s, color 0.2s; }
.footer-row a:hover { opacity: 1; color: var(--gold); }
.footer-fine {
  text-align: center;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cream);
  opacity: 0.45;
}
@media(max-width: 780px) {
  .footer-row { gap: 18px; font-size: 10px; }
  .footer-divider { max-width: none; gap: 16px; }
  .site-footer { padding: 60px 24px 40px; }
}

/* ============================================================
   MOTION — reveal-on-scroll + word stagger
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }

.statement .word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--word-i, 0) * 50ms);
  will-change: opacity, transform;
}
.statement.is-visible .word {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .statement .word { opacity: 1; transform: none; transition: none; }
}
