/* CSS Document */

/* Book-specific overrides only (global styles come from /style.css) */

:root{
  /* Brand-ish accents (adjust if your /style.css already defines these) */
  --bpgq-gold: #c9a24a;
  --bpgq-navy: #0b1b2b;
  --bpgq-ink:  #0f172a;
  --bpgq-mist: rgba(255,255,255,0.08);
}

/* Safer sizing (prevents width surprises across browsers) */
.book-hero, .book-hero *{
  box-sizing: border-box;
}


/* Strong container override for this book page
   Prevents edge-to-edge layout even if /style.css defines a very wide/full-bleed .container. */
.book-hero .container.book-hero-grid{
  max-width: 900px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

/* Ensure all section containers have comfortable side padding */
.section .container,
.book-info-strip .container,
.site-header .container,
.site-footer .container{
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}


/* --- Remaining full-bleed areas: top header + info strip --- */

/* Header/nav: support both your newer .site-header structure and the older <header><nav> layout */
.site-header,
header{
  width: 100%;
}

/* Newer header layout (if present) */
.site-header .container,
.site-header .header-inner{
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

/* Older header layout (your books.html style header/nav) */
header nav{
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

/* Info strip: keep the Format/Genre/Series/Setting row aligned with page width */
.book-info-strip .container{
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

/* If your info strip grid is not inside a .container for some reason, constrain it directly */
.book-info-strip .info-grid{
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}



/* ---------- Header Layout (Book Page) ---------- */
.site-header{
  background: var(--bpgq-navy);
}

.site-header .header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Logo */
.site-header .brand{
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.site-header .brand-logo{
  height: 46px;
  width: auto;
  display: block;
}

/* Nav pushed right */
.site-header .nav{
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.site-header .nav a{
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  opacity: .95;
}

.site-header .nav a:hover,
.site-header .nav a:focus{
  opacity: 1;
  color: var(--bpgq-gold);
}

/* Mobile */
@media (max-width: 768px){
  .site-header .header-inner{
    flex-direction: column;
    align-items: center;
  }
  .site-header .nav{
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.1rem;
  }
}


/* ------------------------------------------------------------
   VISIBILITY + ALIGNMENT FIXES (page-specific overrides)
   - Force readable hero text on dark background
   - Make header/nav links visible
   - Center button labels (and optionally constrain width)
------------------------------------------------------------ */

/* Header/Nav visibility */
.site-header,
.site-header .nav a,
.site-header .brand,
.site-header .brand-name{
  color: #ffffff;
}

.site-header .nav a{
  opacity: 0.95;
}

.site-header .nav a:hover,
.site-header .nav a:focus{
  opacity: 1;
}

/* Hero text visibility */
.book-hero{
  color: #ffffff;
}

.book-hero .kicker,
.book-hero .book-subtitle,
.book-hero .micro-note{
  color: rgba(255,255,255,0.88);
}

.book-hero .book-blurb{
  color: rgba(255,255,255,0.92);
}

.badge{
  color: rgba(255,255,255,0.92);
}

/* Layout consistency
   Your hero uses .container (likely wider in /style.css) while lower sections use .container.narrow (900px).
   Force the hero container to align with the same readable width so the top and bottom match visually. */
.book-hero .container{
  max-width: 900px;
}

/* HERO */
.book-hero{
  position: relative;
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(201,162,74,0.24), transparent 60%),
    linear-gradient(180deg, rgba(11,27,43,0.96), rgba(11,27,43,0.92));
}

.book-hero-grid{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.book-cover-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
}

.book-cover{
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
}

.book-hero-content{
  max-width: 680px;
}

.kicker{
  letter-spacing: .18em;
  font-weight: 700;
  opacity: .9;
  margin: 0 0 .5rem;
}

.book-title{
  margin: 0 0 .75rem;
  line-height: 1.05;
}

.book-subtitle{
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  opacity: .92;
}

.badge-row{
  display:flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.25rem;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  font-size: .85rem;
}

.book-blurb{
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.cta-row{
  display:flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0 0 .75rem;
}

.btn-wide{
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* info strip */
.book-info-strip{
  padding: 1.25rem 0;
  background: rgba(0,0,0,0.06);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.info-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
}

.info-card{
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.info-label{
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .25rem;
}

.info-value{
  font-weight: 700;
}

/* sections */
.section{
  padding: 3rem 0;
}

.section.alt{
  background: rgba(0,0,0,0.04);
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.container.narrow{
  max-width: 900px;
}

/* two-col block */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.checklist{
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
}

.checklist li{
  margin: .6rem 0;
  padding-left: 1.6rem;
  position: relative;
}

.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bpgq-gold);
  font-weight: 900;
}

/* quote */
.quote-block{
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem;
  border-left: 4px solid var(--bpgq-gold);
  background: rgba(201,162,74,0.08);
  border-radius: 10px;
}

.quote{
  margin: 0;
  font-style: italic;
  font-size: 1.05rem;
}

/* callout */
.callout{
  margin-top: 1rem;
  padding: 1rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201,162,74,0.25);
  background: rgba(201,162,74,0.08);
}

/* FAQ */
.faq{
  margin: .75rem 0;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
}

.faq summary{
  cursor: pointer;
  padding: 1rem 1rem;
  font-weight: 800;
  list-style: none;
}

.faq summary::-webkit-details-marker{ display:none; }

.faq-body{
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 980px){
  .book-hero-grid{
    grid-template-columns: 1fr;
  }
  .book-cover{
    max-width: 300px;
  }
  .info-grid{
    grid-template-columns: 1fr 1fr;
  }
  .two-col{
    grid-template-columns: 1fr;
  }

  .book-hero-content{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .badge-row{ justify-content: center; }
  .cta-row{ justify-content: center; }
  .book-blurb{ margin-left: auto; margin-right: auto; }
}

@media (max-width: 520px){
  .book-hero{
    padding: 2.75rem 0 2rem;
  }
  .info-grid{
    grid-template-columns: 1fr;
  }

  .btn-wide{
    max-width: 100%;
  }
}
