/* =====================================================
   Your Retirement, Your Business — landing page styles
   Palette derived from the book cover:
   navy / leaf green / warm gold / cream
   ===================================================== */

:root {
  --navy: #1e3a5f;
  --navy-dark: #142a47;
  --navy-deep: #0f2138;
  --green: #6f9b2d;
  --green-dark: #5d8324;
  --gold: #f2c230;
  --gold-dark: #dfae14;
  --cream: #faf6ec;
  --cream-warm: #fdf3d8;
  --white: #ffffff;
  --text: #2b3a4a;
  --muted: #5a6b7c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 42, 71, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: 'Baloo 2', sans-serif;
  line-height: 1.15;
  color: var(--navy);
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.hl { color: var(--green); }
.hl-gold { color: var(--gold); }

.underlined {
  display: inline-block;
  position: relative;
  padding-bottom: 0.35rem;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: 0 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }

.btn-lg { font-size: 1.15rem; padding: 1.05rem 2.4rem; }

.cta-note {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
}

.logo {
  font-family: 'Mr Dafoe', cursive;
  font-size: 1.9rem;
  color: var(--gold);
  text-decoration: none;
  line-height: 1;
  transform: rotate(-3deg);
}

.site-header .buy-btn {
  box-shadow: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.9375rem;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(242, 194, 48, 0.35), transparent 60%),
    linear-gradient(160deg, var(--cream-warm) 0%, var(--cream) 55%, #f3ecd9 100%);
  padding: 2.5rem 0 4.5rem;
  overflow: hidden;
}

.stat-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-bottom: 2.5rem;
}

.stat-pills li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9375rem;
}

.pill-num {
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.8125rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2rem;
  /* nudge left to visually center: the mockup PNG's transparent padding
     creates extra apparent space on its left side */
  transform: translateX(-4.5%);
}

.hero-book img {
  /* previous size (rollback point): width 114%; margin -1.5rem 0 -2.5rem -5% */
  width: 137%;
  max-width: none;
  margin: -2rem 0 -3rem -13%;
  filter: drop-shadow(0 24px 40px rgba(20, 42, 71, 0.28));
  transition: transform 0.3s ease;
  /* the PNG's transparent padding overlaps the CTA button; without this the
     invisible area swallows clicks meant for the button */
  pointer-events: none;
}
.hero-book:hover img { transform: scale(1.02) rotate(-1deg); }

.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--white);
  padding: 4.5rem 0;
}

.slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.slides { overflow: hidden; border-radius: var(--radius); }

.slide {
  display: none;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.slide.active { display: block; animation: fadeIn 0.45s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.slide-photo {
  position: relative;
}

.slide img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

/* dark gradient over the photo's lower half, fading it into the card
   so the image and the quote panel read as one piece */
.slide-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(30, 58, 95, 0) 45%,
    rgba(30, 58, 95, 0.55) 78%,
    var(--navy) 100%);
  pointer-events: none;
}

.slide-body { padding: 2rem 2.5rem 2.25rem; }

.slide-quote {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.slide-name {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9375rem;
}

.slide-cred { color: #b9c6d4; font-size: 0.9rem; margin-top: 0.25rem; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--navy);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: transform 0.15s ease;
}
.slider-arrow:hover { transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { left: -76px; }
.slider-arrow.next { right: -76px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #52667c;
  cursor: pointer;
  padding: 0;
}
.slider-dots button.active { background: var(--gold); }

/* ---------- About ---------- */
.about {
  background: var(--cream);
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-left h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.about-lede {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--muted);
  line-height: 1.4;
}

.about-right p { margin-bottom: 1.25rem; color: var(--text); }
.about-right p:last-child { margin-bottom: 0; }

/* ---------- Author quote ---------- */
.author-quote {
  background: var(--navy-deep);
  padding: 5rem 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.photo-frame {
  background: var(--navy);
  border-radius: 18px;
  padding: 16px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.photo-frame img { border-radius: 10px; }

.photo-placeholder { display: none; }
.photo-frame.is-placeholder .photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border: 2px dashed #3d5674;
  border-radius: 10px;
  color: #7f95ab;
  font-weight: 700;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.5;
}

.quote-copy blockquote p {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--white);
  line-height: 1.45;
}

.quote-attrib {
  margin-top: 1.5rem;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9375rem;
}

/* ---------- Learn ---------- */
.learn {
  background: var(--white);
  padding: 5rem 0;
}

.learn h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.learn-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
  counter-reset: none;
}

.learn-grid li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid #e7e3d8;
  font-weight: 600;
  color: var(--navy);
}

.num {
  flex: 0 0 auto;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  margin-top: 0.1rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--cream);
  padding: 5rem 0;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.final-cta p {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  padding: 2.75rem 0;
  text-align: center;
}

.footer-logo {
  font-family: 'Mr Dafoe', cursive;
  font-size: 1.75rem;
  color: var(--gold);
  transform: rotate(-3deg);
  margin-bottom: 0.9rem;
}

.footer-legal { color: #93a7ba; font-size: 0.9rem; }
.footer-legal a { color: #cfdae5; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 960px) {
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
}

@media (max-width: 860px) {
  .hero { padding-top: 2rem; }

  .hero-grid,
  .about-grid,
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero-grid { transform: none; }

  .hero-book { order: -1; }
  .hero-book img { width: 100%; max-width: 360px; margin: 0 auto; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }

  .learn-grid { grid-template-columns: 1fr; gap: 0; }

  .stat-pills { gap: 0.6rem 1.1rem; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }

  .site-header .buy-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .logo { font-size: 1.5rem; }

  .btn-lg { width: 100%; text-align: center; }

  .slide-body { padding: 1.5rem 1.25rem; }
  .slide-quote { font-size: 1.15rem; }

  .stat-pills li { font-size: 0.85rem; }
}
