/* ===================================================================
   The GPS Paradigm — site styles
   =================================================================== */

:root {
  --red: #f0483a;
  --red-dark: #d93a2d;
  --purple: #5a58b8;
  --purple-dark: #4b49a0;
  --navy: #30305e;
  --navy-deep: #1f1f3d;
  --ink: #333333;
  --body: #353535;
  --muted: #353535;
  --light: #f2f2f5;
  --border: #e6e6ec;
  --white: #ffffff;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Public Sans', Helvetica, Arial, system-ui, -apple-system, sans-serif;
  color: var(--body);
  font-weight: 500;
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'DM Sans', Helvetica, Arial, system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section heading with underline accent */
.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: var(--red);
  margin: 0.7rem auto 0;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Public Sans', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 40px;
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.15); }
.btn-red { background: #ff4343; }
.btn-red:hover { background: var(--red-dark); }
.btn-purple { background: var(--purple); }
.btn-purple:hover { background: var(--purple-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}
.logo img { width: 150px; height: auto; }
.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  font-family: 'Public Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #264798;
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--ink); border-radius: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #c9c9d6;
  padding: 1.2rem 0;
  font-size: 0.82rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner .copyright { margin: 0; }
.footer-inner a { color: #fff; }
.linkedin-box {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 15000;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: 300px;
  max-width: 60%;
  background: #413e65;
  color: #fff !important;
  padding: 1rem;
  border-radius: 20px;
  text-decoration: none !important;
  font-size: 0.9rem;
  line-height: 1.2rem;
  box-shadow: 0 2px 48px -12px rgba(0, 0, 0, 0.3);
}
.linkedin-box:hover { background: #4f4b7a; }
.linkedin-box svg { flex-shrink: 0; }

/* ===================================================================
   HOME
   =================================================================== */
.hero { padding: 3rem 0 4rem; background: #fff; }
.hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.hero-cover img {
  filter: drop-shadow(0 25px 40px rgba(0,0,0,0.28));
  margin: 0 auto;
  max-height: 520px;
  width: auto;
}
.eyebrow {
  color: #353535;
  font-weight: 500;
  margin: 0 0 1rem;
  font-size: 17px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #264798;
  line-height: 1.17;
  margin: 0 0 0.3rem;
}
.hero-sub {
  color: #9e332d;
  font-family: 'Public Sans', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.8rem;
  margin: 0 0 1rem;
}
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0;
  font-family: 'Public Sans', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 2rem;
  color: #353535;
}
.ticks li::before {
  content: '\2714';
  position: absolute;
  left: 0;
  color: #5454DC;
  font-weight: 700;
}
.hero-quote {
  border: 1px dashed #9e332d;
  border-radius: 5px;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.6rem;
  background: #fff;
}
.hero-quote p { font-style: italic; font-size: 1.0625rem; line-height: 1.6; margin: 0 0 0.6rem; }
.hero-quote cite { font-style: normal; font-weight: 700; color: var(--ink); font-size: 1.0625rem; }

/* Slanted sections */
.slant {
  position: relative;
  background: var(--light);
  margin: 4rem 0;
  padding: 4.5rem 0;
  transform: skewY(-2.5deg);
}
.slant > .container { transform: skewY(2.5deg); }

/* Who this book is for */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.audience-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.audience-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,0,0,0.12); }
.audience-card img { height: 48px; width: auto; object-fit: contain; }
.audience-card span { font-family: 'DM Sans', Helvetica, Arial, sans-serif; font-weight: 600; color: var(--ink); font-size: 1rem; }

/* About the book */
.about-book { padding: 2rem 0 3rem; }
.about-book-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.about-book-cover img { border-radius: 6px; box-shadow: 0 15px 35px rgba(0,0,0,0.18); }
.about-book-text h2 { font-size: 1.9rem; }
.inline-quote {
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
  background: #fafafb;
}
.inline-quote p { font-style: italic; font-size: 0.92rem; margin: 0 0 0.6rem; }
.inline-quote cite { font-style: normal; font-weight: 600; color: var(--ink); font-size: 0.88rem; }

/* Chapters */
.chapters-section { padding: 2rem 0 3rem; }
.chapters-box {
  background: var(--navy);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  color: #fff;
}
.chapters-heading { color: #fff; text-align: center; font-size: 2rem; margin-bottom: 0.4rem; }
.chapters-heading::after {
  content: ''; display: block; width: 70px; height: 3px; background: var(--red);
  margin: 0.7rem auto 2rem; border-radius: 2px;
}
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 2.5rem;
}
.chapter-item {
  display: block;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.chapter-item:hover { background: rgba(255,255,255,0.08); }
.chapter-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b7b7d6;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  margin-bottom: 0.2rem;
}
.chapter-name { display: block; font-family: 'DM Sans', Helvetica, Arial, sans-serif; font-weight: 600; font-size: 0.98rem; }
.chapter-item.highlight { background: var(--purple); }
.chapter-item.highlight .chapter-name { color: #fff; }
.chapter-sub { display: block; color: #c7c7ec; font-size: 0.8rem; margin-top: 0.3rem; font-style: italic; }
.chapters-cta { text-align: center; margin-top: 2.5rem; }

/* Masonry (endorsements + reviews) */
.endorsements { padding: 4rem 0 2rem; }
.masonry {
  columns: 2;
  column-gap: 1.75rem;
  margin-top: 2.5rem;
}
.quote-card, .review-card {
  break-inside: avoid;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.quote-card blockquote {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--body);
}
.quote-card figcaption, .review-card figcaption {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}
.review-card h3 {
  color: var(--red);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}
.review-card p { font-size: 1rem; line-height: 1.6; margin: 0 0 0.85rem; }

/* About the author (home) */
.about-author-home { padding: 3rem 0 5rem; }
.about-author-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.author-photo img { border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.18); }
.author-text h2 { font-size: 1.9rem; }
.author-text p { font-size: 0.95rem; margin-bottom: 1rem; }
.author-text .btn { margin-top: 0.5rem; }

/* ===================================================================
   ABOUT THE AUTHOR PAGE
   =================================================================== */
.author-page { padding: 3.5rem 0 5rem; }
.author-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}
.author-aside img { border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.18); }
.author-aside .signature {
  box-shadow: none;
  max-width: 200px;
  margin-top: 1.5rem;
}
.author-body p { margin: 0 0 1.1rem; font-size: 0.97rem; }
.author-body .btn { margin-top: 0.8rem; }

/* ===================================================================
   CHAPTERS INDEX
   =================================================================== */
.chapters-index { padding: 3.5rem 0 5rem; }
.lead { text-align: center; max-width: 620px; margin: 1.2rem auto 0; color: var(--body); }
.ch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
.ch-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: 10px;
  padding: 1.6rem 1.5rem;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 190px;
}
.ch-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0,0,0,0.12); }
.ch-badge {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.ch-card h2 { font-size: 1.1rem; color: var(--ink); margin: 0 0 0.4rem; }
.ch-sub { font-size: 0.85rem; font-style: italic; color: var(--muted); margin: 0; }
.ch-link {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--purple);
  font-weight: 600;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
}
.ch-cta { text-align: center; margin-top: 3rem; }

/* ===================================================================
   CHAPTER DETAIL
   =================================================================== */
.chapter { padding: 2.5rem 0 4.5rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--red); }
.crumbs span { margin: 0 0.3rem; }
.chapter-head { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.chapter-badge {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--red); font-weight: 600;
}
.chapter-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0.4rem 0 0; }
.chapter-subtitle { font-style: italic; color: var(--muted); margin: 0.6rem 0 0; }

.chapter-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.chapter-main p { font-size: 1rem; margin: 0 0 1.2rem; }
.chapter-main h3 { font-size: 1.25rem; margin: 2rem 0 0.8rem; color: var(--ink); }
.chapter-main blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--red);
  background: var(--light);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--ink);
}
.chapter-main ul { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.chapter-main ul li { margin-bottom: 0.5rem; }

.buy-cta {
  margin-top: 2.5rem;
  padding: 1.6rem;
  background: var(--light);
  border-radius: 10px;
  text-align: center;
}
.buy-cta p { margin: 0 0 1rem; font-weight: 600; color: var(--ink); font-family: 'Public Sans', Helvetica, Arial, sans-serif; }

.topics {
  position: sticky;
  top: 100px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 1.6rem 1.5rem;
}
.topics h2 { color: #fff; font-size: 1.1rem; margin: 0 0 1rem; }
.topics h2::after {
  content: ''; display: block; width: 50px; height: 3px; background: var(--red);
  margin-top: 0.6rem; border-radius: 2px;
}
.topics ul { list-style: none; margin: 0; padding: 0; }
.topics li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.topics li:last-child { border-bottom: none; }
.topics li::before { content: '\25B8'; position: absolute; left: 0; color: var(--red); }

.chapter-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.pager-link {
  max-width: 46%;
  font-size: 0.85rem;
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: var(--ink);
}
.pager-link.next { text-align: right; margin-left: auto; }
.pager-link:hover { color: var(--red); text-decoration: none; }

/* ===================================================================
   ORDER ONLINE
   =================================================================== */
.order { padding: 3.5rem 0 5rem; }
.order-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}
.order-cover img {
  margin: 0 auto;
  filter: drop-shadow(0 22px 38px rgba(0,0,0,0.25));
  max-height: 440px;
  width: auto;
}
.available {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.retailers { display: flex; flex-direction: column; gap: 1.2rem; max-width: 300px; }
.retailer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.retailer:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }
.retailer img { max-height: 46px; width: auto; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .masonry { columns: 2; }
  .chapters-grid { grid-template-columns: repeat(2, 1fr); }
  .ch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open { max-height: 420px; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 0.5rem 0; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 0.8rem 24px; width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .chapter-layout { grid-template-columns: 1fr; gap: 2rem; }
  .topics { position: static; order: -1; }
}

@media (max-width: 760px) {
  .hero-inner, .about-book-inner, .about-author-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-cover { order: -1; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .masonry { columns: 1; }
  .chapters-grid { grid-template-columns: 1fr; }
  .chapters-box { padding: 2rem 1.3rem; }
  .slant { transform: skewY(-1.5deg); margin: 2.5rem 0; }
  .slant > .container { transform: skewY(1.5deg); }
  .author-layout { grid-template-columns: 1fr; gap: 2rem; }
  .author-aside { max-width: 320px; margin: 0 auto; }
  .order-inner { grid-template-columns: 1fr; gap: 2rem; }
  .order-cover { max-width: 280px; margin: 0 auto; }
  .retailers { margin: 0 auto; }
}

@media (max-width: 620px) {
  .ch-grid { grid-template-columns: 1fr; }
}
