/* ============================================
   PETER FARRAR BOOKS — MAIN STYLESHEET
   Clean, fast, no external font dependencies
   Single file, no legacy prefixes
   ============================================ */

/* --- VARIABLES --- */
:root {
  --navy:       #1a2744;
  --navy-dark:  #111c35;
  --navy-mid:   #243054;
  --gold:       #c9a84c;
  --gold-light: #e2c078;
  --gold-pale:  #f5ead0;
  --white:      #ffffff;
  --off-white:  #f8f6f1;
  --text:       #2c2c2c;
  --text-light: #555555;
  --border:     #ddd6c8;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --radius:     4px;
  --shadow:     0 2px 16px rgba(26,39,68,0.10);
  --shadow-lg:  0 8px 40px rgba(26,39,68,0.16);
  --transition: 0.2s ease;
  --max-width:  1100px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* --- CONTAINER --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-amazon {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-size: 0.85rem;
  padding: 10px 22px;
}
.btn-amazon:hover {
  background: var(--navy-mid);
  color: var(--gold);
  border-color: var(--navy-mid);
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 12px;
}
.section-header h2 em {
  color: var(--gold);
  font-style: italic;
}
.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--white);
  font-weight: normal;
  letter-spacing: 0.02em;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.site-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.site-nav a {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: all var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--gold);
  background: rgba(255,255,255,0.06);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: normal;
}
.hero-lead {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ============================================
   CREDENTIALS STRIP
   ============================================ */
.credentials {
  background: var(--gold);
  padding: 28px 0;
}
.credentials-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 40px;
}
.cred-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy-dark);
  font-weight: bold;
  line-height: 1;
}
.cred-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-dark);
  font-weight: 600;
  margin-top: 4px;
}
.cred-divider {
  width: 1px;
  height: 40px;
  background: rgba(26,39,68,0.25);
}

/* ============================================
   ABOUT STRIP
   ============================================ */
.about-strip {
  padding: 80px 0;
  background: var(--off-white);
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-strip-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 20px;
}
.about-strip-text h2 em {
  color: var(--gold);
  font-style: italic;
}
.about-strip-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
}
.about-strip-text .btn { margin-top: 12px; }
.career-item {
  border-left: 3px solid var(--gold);
  padding: 12px 20px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.career-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.career-detail {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

/* ============================================
   BOOKS SECTION
   ============================================ */
.books-section {
  padding: 80px 0;
  background: var(--white);
}
.series-block {
  margin-bottom: 60px;
}
.series-label {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 32px;
  position: relative;
}
.series-label::before,
.series-label::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 16px;
}
.books-grid {
  display: grid;
  gap: 32px;
}
.books-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.books-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.book-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.book-card-wide {
  flex-direction: row;
}
.book-cover {
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 220px;
}
.book-card-wide .book-cover {
  min-width: 180px;
  max-width: 180px;
  min-height: unset;
}
.book-cover img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.book-card-wide .book-cover img { max-height: 240px; }
.book-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.book-info h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}
.book-info p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 20px;
  flex: 1;
}
.books-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   BLOG PREVIEW
   ============================================ */
.blog-preview {
  padding: 80px 0;
  background: var(--off-white);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.blog-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body {
  padding: 20px 24px 24px;
}
.blog-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.blog-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.4;
}
.blog-card-body h3 a {
  color: var(--navy);
}
.blog-card-body h3 a:hover { color: var(--gold); }
.blog-cta {
  text-align: center;
  margin-top: 40px;
}

/* ============================================
   COACHING CTA
   ============================================ */
.coaching-cta {
  background: var(--navy-dark);
  padding: 56px 0;
}
.coaching-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.coaching-cta-text h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 8px;
}
.coaching-cta-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  padding: 60px 0 0;
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
}
.footer-brand .logo-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-left: 6px;
}
.footer-brand p {
  font-size: 0.875rem;
  margin-top: 12px;
  line-height: 1.6;
}
.footer-nav h4,
.footer-social h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-nav ul li,
.footer-social ul li {
  margin-bottom: 8px;
}
.footer-nav a,
.footer-social a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-social a:hover {
  color: var(--gold);
}
.footer-bottom {
  padding: 20px 0;
  background: var(--navy-dark);
}
.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}
.footer-bottom a {
  color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover { color: var(--gold); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 56px 0 48px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  font-weight: normal;
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}
.page-hero .breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  padding: 80px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-pale);
}
.about-body h2:first-child { margin-top: 0; }
.about-body p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}
.about-sidebar .author-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}
.sidebar-card {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.sidebar-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  padding: 80px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-light);
  margin-bottom: 16px;
}
.contact-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.contact-social a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--navy);
  transition: all var(--transition);
}
.contact-social a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.contact-form label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  margin-bottom: 20px;
  transition: border-color var(--transition);
  appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-section {
  padding: 80px 0;
}
.blog-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ============================================
   COMING SOON PAGE
   ============================================ */
.coming-soon-section {
  padding: 80px 0;
  text-align: center;
}
.coming-soon-intro {
  max-width: 640px;
  margin: 0 auto 60px;
  color: var(--text-light);
  font-size: 1.05rem;
}
.coming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.coming-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
}
.coming-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.coming-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}
.coming-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-section {
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
}
.privacy-section h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.privacy-section p,
.privacy-section li {
  color: var(--text-light);
  font-size: 0.97rem;
  margin-bottom: 12px;
  line-height: 1.8;
}
.privacy-section ul { padding-left: 20px; list-style: disc; }

/* ============================================
   COACHING PAGE
   ============================================ */
.coaching-section {
  padding: 80px 0;
}
.coaching-intro {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
}
.coaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.coaching-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow);
}
.coaching-card .coaching-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.coaching-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.coaching-card p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image { order: -1; display: flex; justify-content: center; }
  .hero-image img { width: 200px; height: 200px; }
  .hero-actions { justify-content: center; }
  .hero-lead { margin: 0 auto 36px; }
  .about-strip-inner { grid-template-columns: 1fr; }
  .books-grid.three-col { grid-template-columns: 1fr 1fr; }
  .books-grid.two-col { grid-template-columns: 1fr; }
  .book-card-wide { flex-direction: column; }
  .book-card-wide .book-cover { min-width: unset; max-width: unset; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .coaching-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .coming-grid { grid-template-columns: 1fr; }
  .blog-full-grid { grid-template-columns: 1fr; }
  .coaching-cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-dark); flex-direction: column; padding: 16px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav a { display: block; padding: 12px 24px; border-radius: 0; }
  .nav-toggle { display: block; }
  .books-grid.three-col { grid-template-columns: 1fr; }
  .credentials-inner { gap: 0; }
  .cred-item { padding: 8px 20px; }
  .cred-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .coaching-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
}
