/* =========================================================
   SANDTON PUBLISHING — Modern CSS v3.1 (Astra-compatible)
   Dark outer frame, light content panels, gold accents.
   ========================================================= */

/* -----------------------
   1. Design tokens
   ----------------------- */
:root {
  --sp-bg: #0b0b0b;
  --sp-panel: #121212;
  --sp-card: #1a1a1a;

  --sp-ink: #f2f2f2;
  --sp-ink-dim: #bdbdbd;

  --sp-gold: #d4af37;
  --sp-gold-2: #f4cf47;

  --sp-border: rgba(255, 255, 255, 0.08);
  --sp-radius: 10px;
}

/* -----------------------
   2. Base / Astra-safe reset
   ----------------------- */

html {
  scroll-behavior: smooth;
  background: var(--sp-bg);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background-color: var(--sp-bg);   /* dark frame around Astra content */
  color: var(--sp-ink);
  line-height: 1.6;
}

/* Keep Astra's own content backgrounds.
   Only trim left/right padding for page-builder style layouts. */
.ast-plain-container .site-content,
.ast-separate-container .site-main > .ast-row,
.ast-page-builder-template .site-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* -----------------------
   3. Layout containers & typography
   ----------------------- */

.sp-section {
  padding: 56px 0;
  border-top: 1px solid var(--sp-border);
}

.sp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section heading */
.sp-h {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.5vw, 28px);
  color: #f2f2f2;
  letter-spacing: 0.2px;
}

/* Global headings (inside our custom blocks) */
h1,
h2,
h3,
h4,
.sp-title {
  color: #fff;
  letter-spacing: 0.2px;
}

/* -----------------------
   4. Links
   ----------------------- */

/* Default entry links, but don't override button anchors */
.entry-content a:not(.sp-btn),
.sp-wrap a:not(.sp-btn) {
  color: var(--sp-gold);
}
.entry-content a:not(.sp-btn):hover,
.sp-wrap a:not(.sp-btn):hover {
  color: var(--sp-gold-2);
}

/* -----------------------
   5. Buttons
   ----------------------- */

.sp-btn {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: var(--sp-radius);
  text-decoration: none;
  border: 1px solid #333;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.sp-btn:hover {
  transform: translateY(-1px);
}

.sp-btn--gold {
  background: var(--sp-gold);
  color: #fff;
  border-color: var(--sp-gold);
  font-weight: 700;
}

/* Belt-and-braces: make sure gold buttons are always white-text */
.sp-btn--gold,
.sp-btn--gold:link,
.sp-btn--gold:visited,
.sp-btn--gold:hover,
.sp-btn--gold:active,
.sp-cta .sp-btn--gold {
  color: #fff !important;
  background: var(--sp-gold) !important;
  border-color: var(--sp-gold) !important;
}

.sp-btn--gold:hover {
  filter: brightness(0.95);
}

.sp-btn--gold:focus,
.sp-btn--gold:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.sp-btn--ghost {
  background: transparent;
  color: #eee;
  border-color: #333;
}

/* -----------------------
   6. “New Release” hero
   ----------------------- */

/* Two-column layout: cover + text */
.sp-feature {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.sp-feature__cover {
  flex: 0 0 320px;    /* fixed cover width */
  max-width: 100%;
}

.sp-feature__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.sp-feature__body {
  flex: 1;
  min-width: 300px;
}

.sp-title {
  margin: 0.1rem 0 0.25rem;
  font-size: clamp(24px, 3.2vw, 34px);
}

.sp-kicker {
  color: #bbb;
  margin: 0 0 10px;
}

.sp-blurb {
  max-width: 60ch;
  margin: 0 0 10px;
  color: #e7e7e7;
}

.sp-stars {
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.15em;
  color: var(--sp-gold);
  font-weight: 700;
}

.sp-quote {
  opacity: 0.9;
  margin: 0 0 12px;
}

.sp-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* -----------------------
   7. Book grid / “Coming Soon”
   ----------------------- */

.sp-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sp-card {
  background: #141414;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  overflow: hidden;
}

.sp-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.sp-card__body {
  padding: 14px 14px 16px;
}

.sp-card__title {
  margin: 2px 0 6px;
}

.sp-card__title a {
  color: #fff;
  text-decoration: none;
}

.sp-card__title a:hover {
  color: var(--sp-gold);
}

.sp-card__meta {
  color: var(--sp-ink-dim);
  margin: 0 0 8px;
}

.sp-card__blurb {
  margin: 0;
  color: #e8e8e8;
}

/* -----------------------
   8. News list
   ----------------------- */

.sp-newslist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-newslist li {
  padding: 10px 0;
  border-bottom: 1px solid var(--sp-border);
}

/* -----------------------
   9. Newsletter / forms
   ----------------------- */

.sp-newsletter .sp-sub {
  color: #cfcfcf;
}

.sp-form {
  max-width: 520px;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="url"],
.wpforms-container input[type="tel"],
.wpforms-container textarea {
  background: #101010;
  color: #f2f2f2;
  border: 1px solid #333;
  border-radius: var(--sp-radius);
}

.wpforms-container .wpforms-field-label {
  color: #eaeaea;
}

.wpforms-submit {
  background: var(--sp-gold);
  color: #fff;
  border: 1px solid var(--sp-gold);
  border-radius: var(--sp-radius);
  padding: 10px 18px;
  font-weight: 700;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.wpforms-submit:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.wpforms-submit:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* -----------------------
   10. Badge (Readers’ Favorite, etc.)
   ----------------------- */

.sp-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 16px 0 24px;
  text-align: center;
}

.sp-badge img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.sp-badge-caption {
  margin: 0;
  color: var(--sp-gold);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.2px;
}

/* -----------------------
   11. Footer layout
   ----------------------- */

/* Footer bar container */
#sp-footer .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
}

/* Footer navigation links */
#sp-footer .nav {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;      /* keep all links on one line on desktop */
  white-space: nowrap;    /* prevent wrapping inside the nav */
}

#sp-footer .nav a {
  color: var(--sp-gold);
  font-weight: 700;
  text-decoration: none;
}

#sp-footer .nav a:hover {
  color: #fff;
}

/* Copyright text */
#sp-footer .copy {
  flex: 1;
  text-align: center;
  color: #b9b9b9;
  font-size: 0.95rem;
}

/* Social icons */
#sp-footer .social {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

/* -----------------------
   12. Special cases
   ----------------------- */

/* Force black text on the Chapter 1 download button (free sample page) */
.page-id-1597 .tbc-free-sample .tbc-btn-gold,
.page-id-1597 .tbc-free-sample .tbc-btn-gold:link,
.page-id-1597 .tbc-free-sample .tbc-btn-gold:visited,
.page-id-1597 .tbc-free-sample .tbc-btn-gold:hover,
.page-id-1597 .tbc-free-sample .tbc-btn-gold:active,
.page-id-1597 .tbc-free-sample .tbc-btn-gold *,
.page-id-1597 .tbc-free-sample .tbc-btn-gold *:before,
.page-id-1597 .tbc-free-sample .tbc-btn-gold *:after {
  color: #111 !important;
  text-shadow: none !important;
}

/* -----------------------
   13. Responsive tweaks
   ----------------------- */

@media (max-width: 900px) {
  .sp-feature {
    flex-direction: column;
    align-items: center;
  }

  .sp-feature__cover,
  .sp-feature__body {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  #sp-footer .bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #sp-footer .nav {
    justify-content: center;
  }

  #sp-footer .social {
    justify-content: center;
  }
}
/* === Sandton quick fix: make body text readable on white === */

/* Default content text = dark */
body,
.entry-content,
.entry-content p,
.entry-content li {
  color: #111111;
}

/* Section headings like "New Release" etc. */
.sp-h,
.sp-title,
h1, h2, h3, h4 {
  color: #111111;
}

/* Hero blurb & kicker on white background */
.sp-kicker,
.sp-blurb {
  color: #333333;
}
/* ===== FIX NAV MENU VISIBILITY ===== */

/* Default menu links */
.ast-primary-header-nav .menu-link,
.ast-header-break-point .ast-mobile-menu-trigger,
.ast-header-break-point .ast-header-custom-item a {
  color: #111111 !important;     /* strong black */
  font-weight: 600;
}

/* Active / current page */
.ast-primary-header-nav .current-menu-item > .menu-link {
  color: var(--sp-gold) !important;
}

/* Hover state */
.ast-primary-header-nav .menu-link:hover {
  color: var(--sp-gold) !important;
}
/* ===== FIX HEADINGS VISIBILITY ===== */

h1, h2, h3, h4, h5, h6,
.sp-title,
.sp-h {
  color: #111111 !important;     /* deep noir black */
  font-weight: 700;
  opacity: 1 !important;
}
/* ===== HERO HEADINGS FIX ===== */

.sp-hero h1,
.sp-hero h2,
.sp-hero h3 {
  color: #111111 !important;
  opacity: 1 !important;
}
/* === FINAL NAV + HEADING VISIBILITY FIX === */

/* --- NAVIGATION: make all menu links solid black, gold on hover/current --- */
.main-header-menu .menu-link,
.main-header-menu .menu-link:link,
.main-header-menu .menu-link:visited,
.ast-builder-menu-1 .menu-link,
.ast-builder-menu-1 .menu-link:link,
.ast-builder-menu-1 .menu-link:visited {
  color: #111111 !important;   /* strong black */
  opacity: 1 !important;
  font-weight: 600;
}

/* Hover + active state */
.main-header-menu .menu-link:hover,
.ast-builder-menu-1 .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link,
.ast-builder-menu-1 .current-menu-item > .menu-link {
  color: var(--sp-gold) !important;
}

/* --- CONTENT HEADINGS INSIDE THE PAGE (on white sections) --- */
.entry-content h2,
.entry-content h3 {
  color: #111111 !important;
  font-weight: 700;
  opacity: 1 !important;
}

/* Slightly darker body text for readability */
.entry-content p,
.entry-content li {
  color: #222222 !important;
}
/* === HARD RESET: HEADINGS CONTRAST === */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.sp-section h1,
.sp-section h2,
.sp-section h3,
.sp-section h4,
.sp-h,
.sp-title {
  color: #111111 !important;   /* deep black */
  opacity: 1 !important;       /* kill any fade effects */
  text-shadow: none !important;
}