/* ========================================
   Lawrence Fine — Authority Site
   Color: Deep slate + warm gold
   Typography: Playfair Display + Libre Franklin
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Libre+Franklin:wght@300;400;500;600&display=swap');

:root {
  --color-primary: #1a2332;
  --color-primary-light: #2a3a50;
  --color-accent: #c8973e;
  --color-accent-hover: #b5862e;
  --color-bg: #f8f6f3;
  --color-bg-warm: #f1ede7;
  --color-text: #2d2d2d;
  --color-text-light: #6b7280;
  --color-white: #ffffff;
  --color-border: #e2ddd6;
  --color-dark-overlay: rgba(26, 35, 50, 0.85);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Libre Franklin', 'Helvetica Neue', sans-serif;

  --max-width: 1200px;
  --section-padding: 100px 0;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1.2em; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 151, 62, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(26, 35, 50, 0.97);
  padding: 14px 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 151, 62, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(42, 58, 80, 0.6) 0%, transparent 50%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 40px 80px;
}

.hero-content { color: var(--color-white); }

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  display: block;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(10%);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent);
  z-index: -1;
}

/* ---- Section Styles ---- */
.section { padding: var(--section-padding); }
.section-dark { background: var(--color-primary); color: var(--color-white); }
.section-warm { background: var(--color-bg-warm); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-top: 16px;
}

/* ---- Books Grid (Homepage) ---- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}

.book-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 40px 32px;
  transition: all 0.4s ease;
  position: relative;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: var(--color-accent);
}

.book-card-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(200, 151, 62, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.book-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.book-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.book-card-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: color 0.3s;
}

.book-card-link:hover { color: var(--color-accent-hover); }
.book-card-link::after { content: ' →'; }

/* ---- Credentials Bar ---- */
.credentials {
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.credentials-inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  text-align: center;
}

.credential-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.credential-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.credential-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* ---- About Page ---- */
.about-hero {
  background: var(--color-primary);
  padding: 160px 0 100px;
  color: var(--color-white);
}

.about-hero h1 { color: var(--color-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}

.about-image::after {
  content: '';
  display: block;
  height: 4px;
  background: var(--color-accent);
  margin-top: 0;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.5em;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.highlight-item h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.highlight-item p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ---- Speaking & Advisory Grid ---- */
.engage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.engage-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 48px 40px;
  transition: all 0.4s ease;
}

.engage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.engage-card h3 {
  margin-bottom: 16px;
}

.engage-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.75;
}

.engage-topics {
  list-style: none;
  padding: 0;
  margin: 0;
}

.engage-topics li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 6px;
}

.engage-topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--color-accent);
}

@media (max-width: 900px) {
  .engage-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .engage-card {
    padding: 32px 24px;
  }
}

/* ---- Book Page ---- */
.book-hero {
  background: var(--color-primary);
  padding: 160px 0 100px;
  color: var(--color-white);
}

.book-hero h1 { color: var(--color-white); font-size: clamp(2rem, 4vw, 3rem); }

.book-hero .hero-eyebrow { margin-bottom: 20px; }

.book-detail {
  padding: 80px 0;
}

.book-detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

/* Book Cover Designs */
.book-cover {
  aspect-ratio: 2/3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 8px 8px 30px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}

.book-cover-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.book-cover-author {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.book-cover-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  z-index: 2;
}

/* Cover themes */
.cover-navy {
  background: linear-gradient(160deg, #1a2332 0%, #2a3a50 100%);
  color: #f8f6f3;
}
.cover-navy .book-cover-accent { background: var(--color-accent); }
.cover-navy .book-cover-author { color: rgba(248, 246, 243, 0.6); }

.cover-slate {
  background: linear-gradient(160deg, #374151 0%, #4b5563 100%);
  color: #f8f6f3;
}
.cover-slate .book-cover-accent { background: #e07a5f; }
.cover-slate .book-cover-author { color: rgba(248, 246, 243, 0.6); }

.cover-forest {
  background: linear-gradient(160deg, #1b3a2d 0%, #2d5a45 100%);
  color: #f8f6f3;
}
.cover-forest .book-cover-accent { background: #d4a574; }
.cover-forest .book-cover-author { color: rgba(248, 246, 243, 0.6); }

.cover-wine {
  background: linear-gradient(160deg, #4a1c2e 0%, #6b2d42 100%);
  color: #f8f6f3;
}
.cover-wine .book-cover-accent { background: #c8973e; }
.cover-wine .book-cover-author { color: rgba(248, 246, 243, 0.6); }

.cover-charcoal {
  background: linear-gradient(160deg, #1f1f1f 0%, #333333 100%);
  color: #f8f6f3;
}
.cover-charcoal .book-cover-accent { background: #60a5fa; }
.cover-charcoal .book-cover-author { color: rgba(248, 246, 243, 0.6); }

.book-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.5) 40px, rgba(255,255,255,0.5) 41px);
  z-index: 1;
}

/* Download form */
.download-section {
  background: var(--color-bg-warm);
  padding: 48px 40px;
  margin-top: 40px;
}

.download-section h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.download-section p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.download-form { display: flex; flex-direction: column; gap: 14px; }

.form-row { display: flex; gap: 14px; }

.form-input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus { border-color: var(--color-accent); }

.form-input::placeholder { color: #aaa; }

/* ---- Contact Page ---- */
.contact-hero {
  background: var(--color-primary);
  padding: 160px 0 100px;
  color: var(--color-white);
}

.contact-hero h1 { color: var(--color-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.contact-form textarea.form-input {
  min-height: 180px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-info p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.8;
}

.contact-image {
  margin-top: 40px;
}

.contact-image img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--color-accent); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }
.animate-delay-4 { animation-delay: 0.6s; }
.animate-delay-5 { animation-delay: 0.75s; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 140px;
  }

  .hero-content { order: 2; }
  .hero-image { order: 1; text-align: center; }
  .hero-image img { max-width: 280px; }
  .hero-image::before { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image { max-width: 320px; }

  .book-detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .book-detail-grid .book-cover { max-width: 280px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .credentials-inner { gap: 40px; }

  .section-warm [style*="grid-template-columns: 1fr 1fr"],
  .section-dark [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .section-dark [style*="text-align: right"] {
    text-align: center !important;
  }

  .section-dark [style*="text-align: right"] img {
    max-width: 280px !important;
  }

  .about-highlights { grid-template-columns: 1fr; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 35, 50, 0.98);
    padding: 24px 40px;
    gap: 20px;
  }

  .container { padding: 0 24px; }
  .hero-inner { padding-left: 24px; padding-right: 24px; }
  .nav-inner { padding: 0 24px; }
  .form-row { flex-direction: column; }
}

/* ---- Success message ---- */
.form-success {
  display: none;
  padding: 24px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  text-align: center;
  color: #065f46;
  font-weight: 500;
}

.form-success.visible { display: block; }

/* ---- Other books section on book pages ---- */
.other-books {
  padding: 80px 0;
  background: var(--color-bg-warm);
}

.other-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.other-book-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.other-book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.other-book-card h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.other-book-card a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.other-book-card a::after { content: ' →'; }
