/* ══════════════════════════════════════════════
   richcrossley.com — styles.css
   Navy · Gold · Cream — Authoritative & Warm
══════════════════════════════════════════════ */

:root {
  --navy: #0D1B3E;
  --navy-mid: #162347;
  --navy-light: #1e3060;
  --gold: #C9A84C;
  --gold-light: #E2C47A;
  --gold-pale: #F5EDD6;
  --cream: #FAF7F2;
  --cream-dark: #F2ECE2;
  --white: #FFFFFF;
  --text-dark: #0D1B3E;
  --text-body: #2C3E5A;
  --text-muted: #6B7A99;
  --border: rgba(13, 27, 62, 0.1);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Libre Baskerville', Georgia, serif;
  --font-ui: 'DM Sans', sans-serif;

  --radius: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 12px rgba(13,27,62,0.08);
  --shadow-md: 0 8px 32px rgba(13,27,62,0.12);
  --shadow-lg: 0 24px 64px rgba(13,27,62,0.18);
  --shadow-book: 0 32px 80px rgba(13,27,62,0.5), 0 8px 24px rgba(13,27,62,0.3);

  --max-width: 1100px;
  --section-pad: 100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY UTILITIES ── */
.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-eyebrow.centered { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.section-title.centered { text-align: center; }

.body-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 20px;
}
.body-text.centered { text-align: center; }
.body-text.max-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.body-text.highlight-text {
  font-style: italic;
  color: var(--navy);
  font-weight: 700;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.section-pad { padding: var(--section-pad) 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}
.btn.full-width { width: 100%; text-align: center; display: block; }

/* ════════════════════════════
   NAV
════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-cta {
  background: transparent;
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.nav-links .nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 20px 40px 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile.open { display: flex; }
.mobile-link {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--gold); }
.mobile-cta {
  margin-top: 16px;
  background: var(--gold);
  color: var(--navy) !important;
  text-align: center;
  padding: 14px !important;
  border-radius: var(--radius);
  font-weight: 600;
  border-bottom: none !important;
}

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-bg-line {
  position: absolute;
  top: 0; right: 42%;
  width: 1.5px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(201,168,76,0.25) 40%, rgba(201,168,76,0.25) 60%, transparent 100%);
  transform: skewX(-6deg);
  pointer-events: none;
}
.hero-text {
  padding: 120px 60px 80px 80px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(250,247,242,0.7);
  max-width: 400px;
  margin-bottom: 12px;
}
.hero-author {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(250,247,242,0.5);
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}
.hero-author strong { color: rgba(250,247,242,0.8); }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 44px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: rgba(250,247,242,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 80px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Book display */
.hero-book {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 60px 80px 20px;
  position: relative;
  z-index: 2;
}
.book-wrapper {
  position: relative;
  display: inline-block;
}
.book-img {
  width: 100%;
  max-width: 300px;
  border-radius: 4px 10px 10px 4px;
  box-shadow: var(--shadow-book);
  transform: perspective(900px) rotateY(-5deg);
  transition: transform 0.5s ease;
}
.book-img:hover {
  transform: perspective(900px) rotateY(-2deg) translateY(-6px);
}
.book-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: rgba(201,168,76,0.25);
  border-radius: 50%;
  filter: blur(20px);
}

/* ════════════════════════════
   QUOTE BAND
════════════════════════════ */
.quote-band {
  background: var(--gold);
  padding: 52px 40px;
}
.quote-band-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  font-style: italic;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 16px;
}
.quote-band cite {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13,27,62,0.6);
}

/* ════════════════════════════
   ABOUT
════════════════════════════ */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.photo-placeholder-inner {
  text-align: center;
  color: rgba(250,247,242,0.35);
}
.photo-placeholder-inner p {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 12px;
}
.about-credential-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cred-item {
  padding: 16px 0;
  text-align: center;
}
.cred-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.cred-desc {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(250,247,242,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cred-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ════════════════════════════
   THE BOOK — 4Rs
════════════════════════════ */
.book-section {
  background: var(--cream-dark);
}
.book-intro {
  margin-bottom: 64px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: 16px;
}
.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.pillar-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ════════════════════════════
   WHO IT'S FOR
════════════════════════════ */
.for-who { background: var(--cream); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.audience-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.audience-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.audience-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ════════════════════════════
   RESULTS BAND
════════════════════════════ */
.results-band {
  background: var(--navy);
  padding: 64px 40px;
}
.results-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.result-item { text-align: center; }
.result-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.result-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(250,247,242,0.55);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  max-width: 200px;
}
.result-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
}

/* ════════════════════════════
   PRE-ORDER / WAITLIST
════════════════════════════ */
.preorder {
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.preorder-panel { max-width: 600px; margin: 0 auto; text-align: center; }

/* ConvertKit embed wrapper */
.convertkit-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.form-note {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* Preorder book display */
.preorder-book-display {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.preorder-cover {
  width: 160px;
  flex-shrink: 0;
  border-radius: 4px 8px 8px 4px;
  box-shadow: 0 12px 32px rgba(13,27,62,0.25);
}
.preorder-details { flex: 1; }
.book-title-sm {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.book-author-sm {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.footer {
  background: var(--navy);
  padding: 48px 40px;
  text-align: center;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(250,247,242,0.4);
  margin-bottom: 16px;
  font-style: italic;
}
.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(250,247,242,0.3);
  letter-spacing: 0.06em;
}

/* ════════════════════════════
   ANIMATIONS
════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-up { animation: fadeUp 0.9s ease both; }
.animate-fade-in { animation: fadeIn 1.1s ease 0.3s both; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero-text { padding: 120px 40px 40px; }
  .hero-book { padding: 0 40px 60px; justify-content: center; }
  .book-img { max-width: 220px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-col { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
  .photo-placeholder { margin-bottom: 0; aspect-ratio: 3/4; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  :root { --section-pad: 56px; }
  .container { padding: 0 20px; }

  /* Hero */
  .hero-text { padding: 96px 20px 28px; }
  .hero-book { padding: 0 20px 48px; justify-content: center; }
  .hero-title { font-size: clamp(2.8rem, 11vw, 3.8rem); }
  .hero-stats { gap: 12px; flex-wrap: nowrap; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.62rem; max-width: 70px; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; text-align: center; }

  /* Book cover */
  .book-img { max-width: 180px; }

  /* Quote band */
  .quote-band { padding: 36px 20px; }
  .quote-band blockquote { font-size: 1.15rem; }

  /* Section titles */
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* Body text — release max-width constraint on mobile */
  .body-text.max-600 { max-width: 100%; }

  /* Cards */
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .pillar-card { padding: 24px 20px; }
  .audience-grid { grid-template-columns: 1fr; gap: 16px; }
  .audience-card { padding: 24px 20px; }

  /* Results band */
  .results-inner { flex-direction: column; gap: 28px; }
  .result-divider { width: 48px; height: 1px; }

  /* About */
  .about-photo-col { grid-template-columns: 1fr; }

  /* Preorder */
  .preorder-book-display { flex-direction: column; text-align: center; }

  /* Nav */
  .nav-inner { padding: 18px 20px; }
  .nav-mobile { padding: 16px 20px 24px; }
}
