/* =====================================================================
   MATURE MEN — Landing Page Stylesheet
   Author: Isaac Ajanlekoko (Coach Isaac) | Crown Council Press
   ---------------------------------------------------------------------
   Design tokens live at the top under :root. Everything else is built
   from those tokens so the palette/type can be adjusted in one place.
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Color */
  --charcoal: #14161a;        /* primary dark background */
  --charcoal-2: #1c1f24;      /* card / raised surface on dark bg */
  --charcoal-line: #2b2e35;   /* hairlines on dark bg */
  --ivory: #f6f2e9;           /* primary light background */
  --ivory-2: #efe9db;         /* raised surface on light bg */
  --ink: #1a1a18;             /* body text on light bg */
  --ink-soft: #54565b;        /* secondary text on light bg */
  --paper: #f6f2e9;           /* text on dark bg (warm white) */
  --paper-soft: #b9bcc2;      /* secondary text on dark bg */
  --gold: #c6a153;            /* primary accent */
  --gold-deep: #9c7c37;       /* accent hover / pressed */
  --gold-line: rgba(198, 161, 83, 0.35);
  --navy: #1c2a44;            /* secondary accent */
  --navy-deep: #131d30;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 4px;
  --radius-md: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

section { position: relative; }

.section-pad { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-deep);
}
section.on-dark .eyebrow { color: var(--gold); }
section.on-dark .eyebrow::before { background: var(--gold); }

.section-heading {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  max-width: 32ch;
}

.section-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 1rem;
}
section.on-dark .section-lede { color: var(--paper-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-gold:hover { background: var(--gold-deep); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--ivory); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(246, 242, 233, 0.55);
  color: var(--paper);
}
.btn-outline-light:hover { background: rgba(246, 242, 233, 0.1); border-color: var(--paper); }

.btn-block { width: 100%; }

/* ---------- Accessibility Utilities ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 22, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--charcoal-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--paper);
}

.nav-brand svg { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--charcoal);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero.hero-compact {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero-copy { max-width: 640px; }
.hero-copy .section-lede { margin-left: auto; margin-right: auto; }

.hero-copy h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  color: var(--paper);
}

.hero-copy .section-lede {
  font-size: 1.15rem;
  color: var(--paper-soft);
  margin-top: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.1rem;
}

.hero-credibility {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--charcoal-line);
  color: var(--paper-soft);
  font-size: 0.92rem;
  max-width: 46ch;
}
.hero-credibility svg { flex-shrink: 0; color: var(--gold); }

/* ---------- Inside the Book (pillars) ---------- */
.inside-book-short { background: var(--ivory); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pillar-card {
  background: var(--ivory-2);
  border: 1px solid rgba(28, 42, 68, 0.1);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.pillar-card:hover { border-color: var(--gold-line); transform: translateY(-4px); }

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.pillar-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- What You Will Build ---------- */
.build-list-section { background: var(--charcoal); color: var(--paper); }

.build-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
  max-width: 60ch;
}
.build-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 1.02rem;
  color: var(--paper-soft);
}
.build-list svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }

.pull-quote {
  margin: 2.75rem 0 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--charcoal-line);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--paper);
  max-width: 26ch;
  line-height: 1.35;
}

/* ---------- Author ---------- */
.author { background: var(--ivory); }
.author-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.author-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(28, 42, 68, 0.12);
  aspect-ratio: 4 / 5;
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.author-bio p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-top: 1rem;
}
.author-bio p:first-child { margin-top: 1rem; }

.author-quote {
  margin-top: 1.75rem;
  padding: 1.5rem 1.5rem 1.5rem 1.4rem;
  border-left: 3px solid var(--gold);
  background: var(--ivory-2);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
}
.author-quote cite {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bulk-orders {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(28, 42, 68, 0.15);
}
.bulk-orders h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.bulk-orders p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.bulk-orders a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Email Capture ---------- */
.email-capture { background: var(--charcoal); color: var(--paper); }
.email-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.email-form-wrap {
  background: var(--charcoal-2);
  border: 1px solid var(--charcoal-line);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.fallback-form .form-row {
  margin-bottom: 1rem;
}
.fallback-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--paper-soft);
}
.fallback-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--charcoal-line);
  background: var(--charcoal);
  color: var(--paper);
}
.fallback-form input::placeholder { color: #6b6e75; }
.fallback-form input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.form-privacy {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--paper-soft);
}

.facebook-link {
  margin-top: 1.25rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(180deg, var(--charcoal) 0%, #0e1013 100%);
  color: var(--paper);
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.final-cta .eyebrow { justify-content: center; }
.final-cta .section-heading { margin: 0 auto; max-width: 22ch; }
.final-cta .section-lede { margin: 1.25rem auto 0; }
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* ---------- Footer ---------- */
.site-footer-short {
  background: #0e1013;
  color: var(--paper-soft);
  padding: 2rem 0;
  font-size: 0.88rem;
}
.footer-bottom-short {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links a:hover { color: var(--paper); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .author-grid,
  .email-grid {
    grid-template-columns: 1fr;
  }
  .pillar-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .footer-bottom-short { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-links { gap: 1rem; }
}
