/* ============================================
   Catching Lightning in a Bottle — Author Website
   Colors: Dark navy (#0a1628) + Gold/Amber (#d4a843)
   Font: Inter (Google Fonts)
   ============================================ */

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

:root {
  --navy: #0a1628;
  --navy-light: #132038;
  --navy-mid: #1a2d4a;
  --gold: #d4a843;
  --gold-light: #e8c76a;
  --gold-dark: #b8922e;
  --white: #f5f5f5;
  --gray: #94a3b8;
  --gray-light: #cbd5e1;
  --gray-dark: #64748b;
  --text: #e2e8f0;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

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

h1, h2, h3, h4 {
  color: var(--white);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Nav --- */
.site-header {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.nav-brand span { color: var(--white); font-weight: 400; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gray-light);
  max-width: 650px;
  margin: 0 auto 1.5rem;
  font-style: italic;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--gray);
  font-size: 1.05rem;
}

.hero-author {
  font-size: 0.95rem;
  color: var(--gray-dark);
  margin-bottom: 2.5rem;
}

.hero-author strong { color: var(--gray-light); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

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

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--navy-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 { margin-bottom: 0.75rem; }

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto;
  border-radius: 2px;
}

/* --- Card Grids --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--navy-mid);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 168, 67, 0.3);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }

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

/* --- Framework Cards (special) --- */
.framework-card {
  background: var(--navy-mid);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.framework-card h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.framework-card ul {
  list-style: none;
  margin-top: 1rem;
}

.framework-card li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray-light);
  font-size: 0.95rem;
}

.framework-card li::before {
  content: '\26A1';
  position: absolute;
  left: 0;
}

/* --- Chapter List --- */
.chapter-list {
  list-style: none;
}

.chapter-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.chapter-num {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 2.5rem;
}

.chapter-title { color: var(--gray-light); }

.part-label {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1.5rem 0 0.5rem;
  border-bottom: none;
}

/* --- Author Bio --- */
.bio-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-photo {
  background: var(--navy-mid);
  border: 2px solid rgba(212, 168, 67, 0.2);
  border-radius: 10px;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  font-size: 0.85rem;
}

.bio-content h2 { margin-bottom: 1rem; }
.bio-content p { margin-bottom: 1rem; color: var(--gray-light); }

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.credential-tag {
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  color: var(--gold);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Comparable Titles --- */
.comp-titles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.comp-title {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--navy-mid);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.comp-title .title { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.comp-title .author { color: var(--gray-dark); font-size: 0.85rem; margin-top: 0.25rem; }

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gray-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Toolkit Download Cards --- */
.toolkit-card {
  background: var(--navy-mid);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.toolkit-card h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.toolkit-card p {
  color: var(--gray);
  font-size: 0.95rem;
  flex: 1;
}

.toolkit-card .btn {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* --- Email Signup --- */
.signup-box {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.signup-box h3 { margin-bottom: 0.5rem; }
.signup-box p { color: var(--gray); margin-bottom: 1.5rem; }

.signup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto;
}

.signup-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
}

.signup-form input:focus { outline: none; border-color: var(--gold); }

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  background: var(--navy-light);
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--gray-dark);
  font-size: 0.9rem;
  font-style: italic;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
  color: var(--gray-dark);
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--gray-dark);
  font-size: 0.8rem;
}

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  color: var(--gray-light);
  font-style: italic;
  font-size: 1.1rem;
  background: rgba(212, 168, 67, 0.03);
  border-radius: 0 8px 8px 0;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 4rem 0 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}

.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { color: var(--gray); max-width: 600px; margin: 0 auto; }

/* --- Speaking Topics --- */
.topic-list {
  list-style: none;
}

.topic-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topic-list li strong { color: var(--white); }
.topic-list li span { color: var(--gray); display: block; margin-top: 0.25rem; font-size: 0.9rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }

  .hero { padding: 4rem 0 3rem; }

  .bio-section {
    grid-template-columns: 1fr;
  }

  .bio-photo {
    max-width: 200px;
    margin: 0 auto;
  }

  .two-col { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .form-row { grid-template-columns: 1fr; }

  .signup-form {
    flex-direction: column;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
