/* ==========================================================================
   STALLION CROSS PUBLISHING — HOMEPAGE STYLESHEET
   Design tokens from 01-design-tokens.md. Components from 02-components.md.
   Scoped to .sc-home so nothing leaks to other pages.
   ========================================================================== */

/* --- TOKENS --- */
:root {
  --sc-charcoal: #1A1A1A;
  --sc-navy: #1C2333;
  --sc-stone: #F5F0E8;
  --sc-ivory: #FDF6E3;
  --sc-amber: #C8922A;
  --sc-gold-cta: #B8841F;
  --sc-gold-hover: #E0A030;
  --sc-near-black: #1A1A1A;
  --sc-warm-grey: #3D3530;
  --sc-muted-ivory: #C9BFA8;
  --sc-card-fill: #FBF8F1;

  --space-section-y: 120px;
  --space-section-x: 80px;
  --space-stack-xl: 40px;
  --space-stack-lg: 28px;
  --space-stack-md: 20px;
  --space-stack-sm: 12px;
  --space-col-gap: 64px;
  --space-btn-gap: 16px;
  --space-inline-gap: 12px;

  --radius-button: 4px;
  --radius-field: 4px;
  --radius-card: 8px;
  --shadow-card: 0 4px 20px rgba(26,26,26,0.08);
}

/* --- RESET WITHIN SCOPE --- */
.sc-home { margin: 0; padding: 0; }
.sc-home *, .sc-home *::before, .sc-home *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- SECTIONS BASE --- */
.sc-section {
  width: 100%;
  position: relative;
}
.sc-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-section-y) var(--space-section-x);
}

/* Section backgrounds */
.sc-bg-charcoal { background: var(--sc-charcoal); }
.sc-bg-navy     { background: var(--sc-navy); }
.sc-bg-stone    { background: var(--sc-stone); }
.sc-bg-amber    { background: var(--sc-amber); }

/* Section hairlines */
.sc-hairline-top    { border-top: 1px solid var(--sc-amber); }
.sc-hairline-bottom { border-bottom: 1px solid var(--sc-amber); }
.sc-rule-top        { border-top: 3px solid var(--sc-amber); }

/* --- TYPOGRAPHY --- */
.sc-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sc-amber);
  margin-bottom: var(--space-stack-xl);
}
.sc-bg-amber .sc-eyebrow { color: var(--sc-near-black); }

.sc-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--sc-ivory);
}

.sc-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
}
.sc-bg-charcoal .sc-h2,
.sc-bg-navy .sc-h2 { color: var(--sc-ivory); }
.sc-bg-stone .sc-h2 { color: var(--sc-near-black); }

.sc-h2-optin {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--sc-near-black);
}

.sc-h3 {
  font-family: 'Lora', serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.sc-subhead {
  font-family: 'Lora', serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
}
.sc-bg-charcoal .sc-subhead { color: var(--sc-ivory); }
.sc-bg-stone .sc-subhead    { color: var(--sc-warm-grey); }
.sc-bg-amber .sc-subhead    { color: var(--sc-near-black); }

.sc-body {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}
.sc-bg-charcoal .sc-body,
.sc-bg-navy .sc-body { color: var(--sc-ivory); }
.sc-bg-stone .sc-body { color: var(--sc-warm-grey); }

.sc-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.sc-signature {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--sc-amber);
}
.sc-bg-amber .sc-signature { color: var(--sc-near-black); }

.sc-footer-micro {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: 0.08em;
  color: var(--sc-muted-ivory);
}

/* --- BUTTONS --- */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.0;
  padding: 18px 36px;
  min-height: 58px;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}

.sc-btn-primary {
  background: var(--sc-gold-cta);
  color: var(--sc-near-black);
}
.sc-btn-primary:hover { background: var(--sc-gold-hover); }

.sc-btn-secondary {
  background: transparent;
  color: var(--sc-ivory);
  border: 1.5px solid var(--sc-amber);
}
.sc-btn-secondary:hover {
  background: var(--sc-amber);
  color: var(--sc-near-black);
  border-color: var(--sc-amber);
}

.sc-btn-buy-solid {
  background: var(--sc-gold-cta);
  color: var(--sc-near-black);
  width: 100%;
}
.sc-btn-buy-solid:hover { background: var(--sc-gold-hover); }

.sc-btn-buy-outline {
  background: transparent;
  color: var(--sc-ivory);
  border: 1.5px solid var(--sc-amber);
  width: 100%;
}
.sc-btn-buy-outline:hover {
  background: var(--sc-amber);
  color: var(--sc-near-black);
}

.sc-btn-optin {
  background: var(--sc-near-black);
  color: var(--sc-ivory);
  min-height: 58px;
}
.sc-btn-optin:hover { background: #2A2A2A; }

.sc-btn-row {
  display: flex;
  gap: var(--space-btn-gap);
  flex-wrap: nowrap;
}

/* --- TEXT LINK --- */
.sc-text-link {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  color: var(--sc-amber);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 200ms ease;
}
.sc-text-link:hover { text-decoration-thickness: 2px; }

/* --- DIVIDERS --- */
.sc-vertical-tick {
  width: 1px;
  height: 56px;
  background: var(--sc-amber);
  margin: var(--space-stack-lg) auto;
}

.sc-hairline-accent {
  width: 90px;
  height: 1px;
  background: var(--sc-amber);
}

/* --- FORM --- */
.sc-field {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--sc-near-black);
  background: var(--sc-ivory);
  border: none;
  border-radius: var(--radius-field);
  padding: 18px 22px;
  height: 58px;
  outline: none;
  flex: 1;
  min-width: 0;
}
.sc-field::placeholder {
  color: var(--sc-near-black);
  opacity: 0.45;
}

.sc-form-row {
  display: flex;
  gap: var(--space-inline-gap);
  align-items: stretch;
  width: 100%;
}

.sc-form-bracket {
  width: 100%;
  height: 1px;
  background: rgba(26,26,26,0.4);
  margin: var(--space-stack-md) 0;
}

/* --- CARDS --- */
.sc-card {
  background: var(--sc-card-fill);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px;
}
.sc-card-quote {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  line-height: 1;
  color: var(--sc-amber);
  margin-bottom: 8px;
}
.sc-card-text {
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: var(--sc-warm-grey);
  margin-bottom: 20px;
}
.sc-card-attr {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-amber);
}

/* --- PILLARS --- */
.sc-pillars {
  display: flex;
  gap: var(--space-col-gap);
  justify-content: center;
}
.sc-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-stack-sm);
  text-align: center;
  flex: 1;
}
.sc-pillar-icon {
  width: 48px;
  height: 48px;
  color: var(--sc-amber);
}
.sc-pillar-label {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  color: var(--sc-near-black);
}

/* --- NAV --- */
.sc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-bottom: var(--space-stack-xl);
}
.sc-nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.sc-nav-logo img {
  height: 48px;
  width: auto;
}
.sc-nav-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sc-amber);
}
.sc-nav-links {
  display: flex;
  gap: 40px;
}
.sc-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-ivory);
  text-decoration: none;
  transition: color 200ms ease;
}
.sc-nav-link:hover { color: var(--sc-amber); }

/* --- HERO LAYOUT --- */
.sc-hero-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: var(--space-col-gap);
  align-items: center;
  min-height: 70vh;
}
.sc-hero-left { max-width: 620px; }
.sc-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.sc-hero-book {
  max-width: 440px;
  width: 100%;
  transform: rotate(-2deg);
  filter: drop-shadow(0 0 60px rgba(200,146,42,0.4))
          drop-shadow(0 20px 40px rgba(0,0,0,0.6));
  transition: transform 300ms ease;
  position: relative;
  z-index: 1;
}
.sc-hero-book:hover {
  transform: rotate(-1deg) scale(1.02);
}

/* --- TWO-COL LAYOUTS --- */
.sc-two-col {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: var(--space-col-gap);
  align-items: start;
}
.sc-two-col-reverse {
  display: grid;
  grid-template-columns: 1fr 40%;
  gap: var(--space-col-gap);
  align-items: start;
}

/* --- CENTERED LAYOUT --- */
.sc-centered { text-align: center; }
.sc-centered .sc-body,
.sc-centered .sc-subhead { margin-left: auto; margin-right: auto; }

/* --- SECTION-SPECIFIC --- */
.sc-mission-headline { max-width: 920px; margin: 0 auto; }
.sc-mission-body { max-width: 720px; margin: 0 auto; }
.sc-vision-inner { max-width: 820px; margin: 0 auto; }
.sc-optin-inner { max-width: 960px; margin: 0 auto; }

/* Amber bullet list */
.sc-benefit-list {
  list-style: none;
  padding: 0;
}
.sc-benefit-list li {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--sc-ivory);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}
.sc-benefit-list li::before {
  content: '•';
  color: var(--sc-amber);
  font-size: 22px;
  position: absolute;
  left: 0;
  top: 0;
}

/* Author photo */
.sc-author-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #2a2520;
  display: block;
}

/* Origin justified */
.sc-justified { text-align: justify; }

/* --- VOLUME GRID --- */
.sc-volume-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.sc-volume-pip {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
}
.sc-volume-active {
  background: var(--sc-amber);
  color: var(--sc-near-black);
}
.sc-volume-coming {
  border: 1px solid rgba(201,191,168,0.3);
  color: var(--sc-muted-ivory);
}

/* --- TESTIMONIALS --- */
.sc-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-col-gap);
  max-width: 1100px;
  margin: 0 auto;
}

/* --- FOOTER --- */
.sc-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-col-gap);
  margin-bottom: var(--space-stack-xl);
}
.sc-footer-bar {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-stack-md);
  border-top: 1px solid var(--sc-amber);
}
.sc-footer-link {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: var(--sc-muted-ivory);
  text-decoration: none;
  transition: color 200ms ease;
}
.sc-footer-link:hover { color: var(--sc-amber); }
.sc-footer-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-amber);
  margin-bottom: var(--space-stack-sm);
}

/* --- SPACING HELPERS --- */
.sc-gap-xl  { margin-top: var(--space-stack-xl); }
.sc-gap-lg  { margin-top: var(--space-stack-lg); }
.sc-gap-md  { margin-top: var(--space-stack-md); }
.sc-gap-sm  { margin-top: var(--space-stack-sm); }

/* --- MOBILE --- */
@media (max-width: 768px) {
  :root {
    --space-section-y: 72px;
    --space-section-x: 24px;
    --space-stack-xl: 28px;
    --space-stack-lg: 20px;
    --space-stack-md: 16px;
    --space-stack-sm: 10px;
    --space-col-gap: 32px;
    --space-btn-gap: 12px;
  }
  .sc-h1 { font-size: 38px; }
  .sc-h2 { font-size: 30px; }
  .sc-h2-optin { font-size: 34px; }
  .sc-h3 { font-size: 22px; }
  .sc-subhead { font-size: 18px; }
  .sc-body { font-size: 17px; }
  .sc-eyebrow { font-size: 12px; }
  .sc-hero-grid,
  .sc-two-col,
  .sc-two-col-reverse {
    grid-template-columns: 1fr;
  }
  .sc-hero-right { order: -1; }
  .sc-hero-book { max-width: 280px; }
  .sc-testimonials-grid { grid-template-columns: 1fr; }
  .sc-footer-grid { grid-template-columns: 1fr; }
  .sc-btn-row { flex-wrap: wrap; }
  .sc-form-row { flex-direction: column; }
  .sc-pillars { flex-direction: column; gap: var(--space-stack-lg); }
  .sc-nav { flex-direction: column; gap: 16px; }
  .sc-nav-links { gap: 24px; }
}
/* Hero fixes — tighter, bigger book, visible glow */

/* Reduce section padding for tighter hero */
.sc-section.sc-bg-charcoal:first-child .sc-section-inner {
  padding-top: 32px;
  padding-bottom: 60px;
}

/* Nav tighter */
.sc-nav {
  margin-bottom: 24px;
}

/* Hero grid: book column bigger */
.sc-hero-grid {
  min-height: 80vh;
  grid-template-columns: 50% 1fr;
}

/* H1 bigger to fill the column */
.sc-hero-left .sc-h1 {
  font-size: 64px;
}

/* Book: MUCH bigger, with glow */
.sc-hero-book {
  max-width: 560px;
  width: 120%;
  filter:
    drop-shadow(0 0 80px rgba(200,146,42,0.45))
    drop-shadow(0 0 120px rgba(200,146,42,0.25))
    drop-shadow(0 30px 50px rgba(0,0,0,0.7));
}

/* Glow behind the book — radial gradient pseudo-element */
.sc-hero-right {
  position: relative;
  align-items: flex-end;
  overflow: visible;
}
.sc-hero-right::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 350px;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(200,146,42,0.5) 0%,
    rgba(200,146,42,0.25) 25%,
    rgba(200,146,42,0.08) 50%,
    transparent 75%
  );
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.sc-hero-right a {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .sc-hero-left .sc-h1 { font-size: 38px; }
  .sc-hero-book { max-width: 300px; width: 100%; }
}

/* Hero book — BIGGER, fill the column */
.sc-hero-book {
  max-width: 750px !important;
  width: 140% !important;
  margin-right: -15%;
}
.sc-hero-right {
  align-items: center !important;
  overflow: visible !important;
}
.sc-hero-right::before {
  width: 600px !important;
  height: 450px !important;
  bottom: -60px !important;
}

/* Hero refinements — tight spacing, book fills content height, correct rotation */

/* Tighten eyebrow-to-H1 gap */
.sc-hero-left .sc-eyebrow {
  margin-bottom: 12px !important;
}

/* Tighten overall hero left spacing */
.sc-hero-left .sc-gap-lg {
  margin-top: 20px !important;
}
.sc-hero-left .sc-gap-md {
  margin-top: 14px !important;
}

/* Book rotation: clockwise tilt — right side dips down */
.sc-hero-book {
  transform: rotate(3deg) !important;
}
.sc-hero-book:hover {
  transform: rotate(2deg) scale(1.02) !important;
}

/* Book fills full content height, anchored to the content block */
.sc-hero-grid {
  align-items: stretch !important;
  min-height: auto !important;
}
.sc-hero-right {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 0 !important;
}

/* Book final size — fill full content block height */
.sc-hero-book {
  max-width: 900px !important;
  width: 170% !important;
  margin-right: -25% !important;
}
.sc-hero-right::before {
  width: 700px !important;
  height: 550px !important;
  bottom: -80px !important;
}

/* Shift book UP — align bottom with trust line */
.sc-hero-right {
  align-items: flex-start !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.sc-hero-book {
  margin-top: -20px !important;
}

/* Book vertical alignment — top at NEW RELEASE, bottom at trust line */
.sc-hero-book {
  margin-top: -60px !important;
  margin-bottom: -40px !important;
}
.sc-hero-right::before {
  bottom: -40px !important;
}
