/* ============================================================
   TURN YOUR BOOK INTO YOUR BUSINESS CARD
   Joe Stumpf | By Referral Only
   Authority Site — Stylesheet
   © 2026 By Referral Only
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --navy:        #0d1b2a;
  --navy-deep:   #070f18;
  --gold:        #c9993a;
  --gold-light:  #e5b55a;
  --gold-pale:   #f5e8cc;
  --cream:       #faf8f3;
  --offwhite:    #f4f0e8;
  --slate:       #5a6a7a;
  --slate-light: #8ea0b0;
  --white:       #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;

  --radius:     6px;
  --radius-lg:  16px;
  --max-width:  1160px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 15, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 153, 58, 0.2);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.nav-bro { color: var(--gold); font-weight: 700; }
.nav-divider { color: rgba(255,255,255,0.3); }
.nav-name { font-weight: 300; color: rgba(255,255,255,0.7); }

.nav-contact {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.nav-contact a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.nav-contact a:hover { color: var(--gold-light); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  padding: 100px 2rem 80px;
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% 50%, rgba(201, 153, 58, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 90% 30%, rgba(13, 27, 42, 0.8) 0%, transparent 70%),
    linear-gradient(160deg, #0d1b2a 0%, #070f18 50%, #0d1b2a 100%);
  background-size: cover;
}

/* Subtle diagonal line texture */
.hero-bg-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(201, 153, 58, 0.015) 40px,
    rgba(201, 153, 58, 0.015) 41px
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 6rem;
  align-items: center;
}

/* Book */
.hero-book-wrap {
  position: relative;
  flex-shrink: 0;
  animation: bookFloat 6s ease-in-out infinite;
}

@keyframes bookFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-12px) rotate(1deg); }
}

.hero-book-shadow {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 32px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
  filter: blur(8px);
  animation: shadowPulse 6s ease-in-out infinite;
}

@keyframes shadowPulse {
  0%, 100% { transform: translateX(-50%) scaleX(0.9); opacity: 0.6; }
  50%       { transform: translateX(-50%) scaleX(0.75); opacity: 0.35; }
}

.hero-book-img {
  width: 100%;
  max-width: 380px;
  border-radius: 4px;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.5),
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(201, 153, 58, 0.15),
    -6px 0 20px rgba(0,0,0,0.3);
}

/* Text side */
.hero-text { color: var(--white); }

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.hero-meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.hero-meta-sep {
  color: rgba(255,255,255,0.2);
  font-size: 1.2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4) translateY(-10px); opacity: 0.3; }
  50%       { transform: scaleY(1) translateY(0); opacity: 0.8; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(201, 153, 58, 0.3);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 153, 58, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1.5px solid rgba(201, 153, 58, 0.5);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-outline:hover {
  border-color: var(--gold-light);
  background: rgba(201, 153, 58, 0.1);
  color: var(--white);
}

.btn-large { padding: 1.1rem 2.5rem; font-size: 0.9rem; }

/* Light-background btn variants */
.cta-section .btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.cta-section .btn-outline {
  border-color: rgba(13, 27, 42, 0.3);
  color: var(--navy);
}

.cta-section .btn-outline:hover {
  background: rgba(13, 27, 42, 0.05);
  color: var(--navy-deep);
  border-color: var(--navy);
}

/* ============================================================
   QUOTE BAND
   ============================================================ */
.quote-band {
  background: var(--gold);
  padding: 4rem 2rem;
}

.quote-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.quote-inner blockquote p {
  font-family: var(--font-accent);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--navy-deep);
  margin-bottom: 1.25rem;
}

.quote-inner blockquote footer {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.7;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 640px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ============================================================
   PREFACE
   ============================================================ */
.preface-section {
  padding: 6rem 2rem;
  background: var(--offwhite);
}

.preface-text {
  max-width: 720px;
}

.preface-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

/* ============================================================
   CHAPTERS
   ============================================================ */
.chapters-section {
  padding: 6rem 2rem;
  background: var(--cream);
}

.chapters-grid {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(13, 27, 42, 0.06);
}

.chapter-card {
  background: var(--white);
  transition: background var(--transition);
}

.chapter-card:not(:last-child) {
  border-bottom: 1px solid rgba(13, 27, 42, 0.07);
}

.chapter-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  text-align: left;
  transition: background var(--transition);
  gap: 1rem;
}

.chapter-card-header:hover {
  background: rgba(201, 153, 58, 0.04);
}

.chapter-card-header[aria-expanded="true"] {
  background: var(--navy-deep);
}

.chapter-card-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.chapter-num {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  min-width: 3rem;
  transition: color var(--transition);
}

.chapter-card-header[aria-expanded="true"] .chapter-num {
  color: var(--gold-light);
}

.chapter-card-info {
  flex: 1;
}

.chapter-author-name {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
  transition: color var(--transition);
}

.chapter-card-header[aria-expanded="true"] .chapter-author-name {
  color: var(--gold-light);
}

.chapter-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  transition: color var(--transition);
}

.chapter-card-header[aria-expanded="true"] .chapter-card-title {
  color: var(--white);
}

.chapter-card-icon {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}

.chapter-card-header[aria-expanded="true"] .chapter-card-icon {
  transform: rotate(45deg);
  color: var(--gold-light);
}

/* Chapter content */
.chapter-card-content {
  border-top: 1px solid rgba(201, 153, 58, 0.2);
  animation: expandIn 0.3s ease forwards;
}

@keyframes expandIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chapter-body {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 2rem;
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
}

.chapter-body h4 {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.chapter-body p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}

.chapter-body strong {
  color: rgba(255,255,255,0.9);
}

.chapter-summary, .chapter-lessons {
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 153, 58, 0.12);
}

.chapter-excerpt {
  border-left: 2px solid rgba(201, 153, 58, 0.3);
  padding-left: 1.5rem;
}

.framework-block {
  background: rgba(201, 153, 58, 0.08);
  border: 1px solid rgba(201, 153, 58, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.framework-block h5 {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.framework-block ul {
  list-style: none;
  padding: 0;
}

.framework-block li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.framework-block li:last-child { border-bottom: none; }

/* ============================================================
   21 WAYS SECTION
   ============================================================ */
.ways-section {
  padding: 6rem 2rem;
  background: var(--navy);
}

.ways-section .section-label { color: var(--gold); }
.ways-section .section-title { color: var(--white); }

.ways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.way-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--navy);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: background var(--transition), color var(--transition);
}

.way-item:hover {
  background: rgba(201, 153, 58, 0.1);
  color: var(--white);
}

.way-num {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  min-width: 2rem;
  opacity: 0.7;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 6rem 2rem;
  background: var(--offwhite);
}

.faq-inner {
  max-width: 780px;
}

.faq-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.faq-item {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}

.faq-item dt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.faq-item dd {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--slate);
}

/* ============================================================
   AUTHOR
   ============================================================ */
.author-section {
  padding: 6rem 2rem;
  background: var(--cream);
}

.author-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 5rem;
  align-items: center;
}

.author-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.author-role {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.author-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 1rem;
  max-width: 620px;
}

.author-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.author-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--slate);
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(13, 27, 42, 0.08);
  transition: border-color var(--transition), color var(--transition);
  line-height: 1.5;
}

.author-contact-item:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.contact-icon { font-size: 1rem; margin-top: 0.05rem; flex-shrink: 0; }

.author-book-img {
  width: 100%;
  border-radius: 4px;
  box-shadow:
    0 4px 20px rgba(13, 27, 42, 0.15),
    0 24px 60px rgba(13, 27, 42, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}

.author-book-img:hover {
  transform: scale(1.02) rotate(-0.5deg);
  box-shadow:
    0 8px 30px rgba(13, 27, 42, 0.2),
    0 32px 80px rgba(13, 27, 42, 0.18);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 6rem 2rem;
  background: var(--gold-pale);
  border-top: 2px solid var(--gold);
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.cta-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  padding: 3.5rem 2rem 2rem;
  border-top: 1px solid rgba(201, 153, 58, 0.15);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.footer-bro {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-legal {
  text-align: right;
}

.footer-legal p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.8;
}

/* ============================================================
   ANIMATIONS — PAGE LOAD
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-book-wrap {
  animation: fadeUp 0.8s ease 0.1s both, bookFloat 6s ease-in-out 1s infinite;
}

.hero-eyebrow  { animation: fadeUp 0.7s ease 0.25s both; }
.hero-title    { animation: fadeUp 0.7s ease 0.35s both; }
.hero-subtitle { animation: fadeUp 0.7s ease 0.45s both; }
.hero-meta     { animation: fadeUp 0.7s ease 0.55s both; }
.hero-ctas     { animation: fadeUp 0.7s ease 0.65s both; }

/* ============================================================
   INTERSECTION OBSERVER REVEALS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 300px 1fr;
    gap: 4rem;
  }

  .author-inner {
    grid-template-columns: 1fr 260px;
    gap: 3rem;
  }

  .chapter-body {
    grid-template-columns: 1fr 1fr;
  }

  .chapter-lessons {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-contact { display: none; }

  .hero {
    padding: 90px 1.5rem 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-book-wrap {
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-meta { justify-content: center; }
  .hero-ctas { justify-content: center; }

  .chapter-body {
    grid-template-columns: 1fr;
  }

  .chapter-card-meta {
    gap: 1rem;
  }

  .chapter-num { font-size: 1.8rem; min-width: 2.5rem; }

  .author-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-book-display { max-width: 260px; margin: 0 auto; }
  .author-contact-grid { grid-template-columns: 1fr; }
  .author-contact-item { justify-content: center; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-legal { text-align: center; }
}

@media (max-width: 480px) {
  .chapter-card-header { padding: 1.25rem; }
  .chapter-card-title { font-size: 0.95rem; }

  .ways-grid {
    grid-template-columns: 1fr 1fr;
  }

  .author-contact-grid { grid-template-columns: 1fr; }
}
