/* ============================================================
   THE FAMILY BLESSING OFFICE™ — "Editorial / Publisher" Mockup
   Layout inspired by the Authore WordPress theme, re-themed to
   match The Premier NIL Playbook book cover (navy / gold / sunset).
   ============================================================ */

:root {
  --navy:        #1E2A47;
  --navy-deep:   #121A2E;
  --navy-soft:   #35456B;

  --gold:        #B5872A;
  --gold-deep:   #93701F;
  --gold-light:  #E8CA82;
  --gold-bg:     #FBF1DB;
  --gold-border: #E8D6A6;

  --terracotta:      #BE6A3C;
  --terracotta-bg:   #F7E4D6;
  --terracotta-border:#EBC7A6;

  --cream:   #FAF6ED;
  --cream2:  #F2E8D5;
  --panel:   #FFFEFB;

  --border:  #E6DCC3;
  --border2: #D8CBA8;

  --text:   #232A3F;
  --text2:  #5B5346;
  --text3:  #8C8372;

  --shadow-sm: 0 1px 3px rgba(43, 32, 10, .07);
  --shadow-md: 0 10px 30px rgba(43, 32, 10, .10);
  --shadow-lg: 0 24px 60px rgba(30, 22, 6, .18);

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

  --max-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text2);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1.15;
  font-weight: 700;
}

p { margin: 0 0 14px; }

/* ── HEADER ── */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  background: var(--gold-bg);
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: .01em;
}
.logo-sub {
  font-size: 10.5px;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 2px;
}
.header-right { display: flex; align-items: center; gap: 18px; }
.live-indicator {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--gold-deep);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  padding: 6px 13px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.btn-gold, .intake-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff !important;
  padding: 12px 24px; border-radius: 4px;
  font-size: 13px; font-weight: 600; letter-spacing: .03em;
  text-decoration: none; border: 1px solid var(--navy);
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.btn-gold:hover, .intake-btn:hover { background: var(--navy-soft); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy) !important;
  padding: 12px 24px; border-radius: 4px;
  font-size: 13px; font-weight: 600; letter-spacing: .03em;
  text-decoration: none; border: 1.5px solid var(--navy);
  transition: background .15s;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--navy); color: #fff !important; }
.nav-toggle, .nav-toggle-label { display: none; }

.site-nav {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text2);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav-item { position: relative; }
.nav-item.has-dropdown { outline: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-caret {
  font-size: 9px;
  color: var(--gold-deep);
  transform: translateY(1px);
  transition: transform .15s;
}
.nav-item.has-dropdown:hover .nav-caret,
.nav-item.has-dropdown:focus-within .nav-caret {
  transform: translateY(1px) rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  /* No margin-top gap here on purpose: any space between the nav link and
     this panel is a dead zone the mouse has to cross while :hover is only
     true over the link — the panel would close before the cursor arrives.
     Sitting flush (plus its own internal padding) keeps hover continuous. */
  margin-top: 0;
  transform: translateX(-50%) translateY(4px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  min-width: 210px;
  padding: 10px 8px 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 60;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text2);
  padding: 9px 12px;
  border-radius: 5px;
  border-bottom: none;
}
.nav-dropdown a:hover {
  background: var(--cream2);
  color: var(--navy);
}

@media (max-width: 900px) {
  .site-nav { flex-direction: column; align-items: center; gap: 2px; }
  .nav-item { width: 100%; text-align: center; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    min-width: 0;
    margin-top: 0;
    padding: 2px 0 8px;
  }
  .nav-dropdown a { font-size: 12.5px; color: var(--text3); }
}

/* ── HERO ── */
.hero-section { padding: 70px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--gold);
}
.hero-title {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero-desc {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 30px;
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hero-visual::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--gold-light) 0%, rgba(232,202,130,0) 70%);
  opacity: .55;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.hero-book-frame {
  position: relative;
  z-index: 1;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  overflow: hidden;
  max-width: 340px;
  border: 6px solid var(--panel);
}
.hero-book-frame img { border-radius: 2px; }
.hero-badge-float {
  position: absolute;
  bottom: 18px;
  left: -18px;
  z-index: 2;
  background: var(--navy);
  color: var(--gold-light);
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.3;
}
.hero-badge-float strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

/* ── STATS STRIP ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 56px;
}
.stat {
  background: var(--panel);
  padding: 26px 20px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  font-weight: 600;
}

@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ── SECTION HEADS ── */
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 16px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.section-head { margin-bottom: 44px; }
.section-head.centered { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-head.centered .section-label { justify-content: center; }
.section-head.centered .section-label::after { display: none; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head .lede { font-size: 16px; color: var(--text2); line-height: 1.7; }

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 44px; flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }
.view-all {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--terracotta); text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}

.section-alt { background: var(--cream2); }

/* ── SPINE FLOW ── */
.spine {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 36px;
}
.spine-flow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.spine-node {
  flex: 1; min-width: 120px; text-align: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 12px;
}
.spine-node.active {
  background: var(--navy);
  border-color: var(--navy);
}
.spine-node.active .sn-name { color: var(--gold-light); }
.spine-node.active .sn-role { color: rgba(232,202,130,.65); }
.sn-name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.sn-role { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); }
.spine-arrow { color: var(--gold); font-size: 18px; flex-shrink: 0; }

@media (max-width: 760px) {
  .spine-flow { flex-direction: column; }
  .spine-arrow { transform: rotate(90deg); }
  .spine-node { width: 100%; }
}

/* ── CARD GRID ── */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.pub-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.pub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card-icon-wrap {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 20px;
  background: var(--gold-bg); color: var(--gold-deep);
  border: 1px solid var(--gold-border);
}
.pub-card[data-tone="terracotta"] .card-icon-wrap {
  background: var(--terracotta-bg); color: var(--terracotta); border-color: var(--terracotta-border);
}
.pub-card[data-tone="navy"] .card-icon-wrap {
  background: var(--navy); color: var(--gold-light); border-color: var(--navy);
}

.card-num {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text3); font-weight: 700; margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; color: var(--navy);
  margin-bottom: 10px;
}
.card-desc {
  font-size: 14px; line-height: 1.65; color: var(--text2);
  margin-bottom: 18px; flex: 1;
}
.card-metrics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.metric-chip {
  font-size: 11px; font-weight: 600;
  background: var(--cream2); color: var(--text2);
  border: 1px solid var(--border2);
  padding: 4px 11px; border-radius: 99px;
}
.card-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--terracotta);
  text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none;
}

.card-buy-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.card-price {
  font-family: var(--font-display);
  font-weight: 700; color: var(--navy); font-size: 16px;
}

/* ── BUY CTA (book purchase) — same navy/white treatment as the rest of the
   site's primary buttons, so it reads as one consistent button style. The
   dark-background override below keeps the closing banner on cream/navy. ── */
.btn-buy {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff !important;
  padding: 12px 24px; border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: .03em;
  text-decoration: none; border: 1px solid var(--navy);
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.btn-buy:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-buy.small { padding: 7px 16px; font-size: 12px; }

/* ── PULL QUOTE ── */
.pullquote {
  position: relative;
  background: var(--panel);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  padding: 44px 48px;
  max-width: 820px;
  margin: 0 auto;
}
.pullquote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 27px);
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 16px;
}
.pullquote-attr {
  font-size: 13px; color: var(--text3); font-weight: 600;
}

/* ── INTAKE / BANNER SECTIONS ── */
.intake-section {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 42px 46px;
  box-shadow: var(--shadow-sm);
}
.intake-section.tone-dark {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}
.intake-section.tone-dark .intake-eyebrow { color: var(--gold-light); }
.intake-section.tone-dark .intake-title { color: #fff; }
.intake-section.tone-dark .intake-desc { color: rgba(255,255,255,.72); }

.intake-left { flex: 1; min-width: 280px; }
.intake-eyebrow {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold-deep); font-weight: 700; margin-bottom: 10px;
}
.intake-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.intake-desc { font-size: 14.5px; color: var(--text2); line-height: 1.65; max-width: 560px; margin-bottom: 0; }
.intake-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.tone-dark .btn-outline { border-color: var(--gold-light); color: var(--gold-light) !important; }
.tone-dark .btn-outline:hover { background: var(--gold-light); color: var(--navy-deep) !important; }

/* Gold-on-navy reads as a color clash (copper + blue vibrate against each other on a
   dark field), so solid/primary buttons swap to cream-on-navy here instead — same
   "this is the one to click" weight, without the buzz. */
.tone-dark .intake-btn,
.tone-dark .btn-buy {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy-deep) !important;
  font-weight: 700;
}
.tone-dark .intake-btn:hover,
.tone-dark .btn-buy:hover {
  background: #fff;
  border-color: #fff;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.65);
  padding: 50px 0 28px;
  margin-top: 0;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 22px;
  padding-bottom: 28px; margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links a {
  font-size: 12.5px; text-decoration: none; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12px;
}
.footer-badge {
  background: rgba(181,135,42,.18); color: var(--gold-light);
  border: 1px solid rgba(181,135,42,.4);
  padding: 2px 9px; border-radius: 99px; font-size: 10.5px;
  margin-left: 8px; text-transform: uppercase; letter-spacing: .06em;
}
.footer-right { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.45); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .site-nav { gap: 16px 22px; }
  section { padding: 56px 0; }
  .intake-section { padding: 32px; }
}
