/* Thomas Thorndike — Author & Public Speaker */
:root {
  --navy: #0b1c2c;
  --navy-light: #132a3f;
  --charcoal: #1e2a35;
  --gray: #4a5568;
  --light-gray: #e8eef4;
  --white: #ffffff;
  --accent: #c9a227;
  --accent-hover: #b08d1f;
  --text: #1a202c;
  --muted: #718096;
  --shadow: 0 10px 30px rgba(11, 28, 44, 0.12);
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER / NAV ========== */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--white);
}

.logo span {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  display: block;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

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

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

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #16324a 60%, #1a3a55 100%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-content .subhead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border: 3px solid rgba(255,255,255,0.1);
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top;
}

/* ========== SECTIONS ========== */
section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
}

.bg-light {
  background: var(--light-gray);
}

.bg-navy {
  background: var(--navy);
  color: var(--white);
}

/* ========== ABOUT PREVIEW / BIO ========== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.about-preview img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: top;
}

.about-text h2 {
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray);
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.focus-tags span {
  background: var(--light-gray);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ========== BOOKS ========== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(11,28,44,0.18);
}

.book-cover {
  background: #0a0a0a;
  padding: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.book-cover img {
  max-height: 240px;
  width: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.book-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-info h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.book-info .subtitle {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.book-info p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 20px;
}

/* ========== SPEAKING TOPICS ========== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.topic-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.topic-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.topic-card .icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.topic-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}

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

.audience-note {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: rgba(201,162,39,0.1);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 500;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  text-align: center;
  padding: 70px 0;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.15rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info h2 {
  font-size: 1.9rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 28px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--gray);
}

.contact-details .icon-box {
  width: 42px;
  height: 42px;
  background: var(--light-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-details a {
  color: var(--navy);
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,28,44,0.1);
}

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

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

/* ========== FOOTER ========== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

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

.footer-col li {
  margin-bottom: 10px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #16324a 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.page-hero p {
  opacity: 0.85;
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-grid,
  .about-preview,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }

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

  .nav-links a.active::after {
    display: none;
  }

  .hero {
    padding: 50px 0 60px;
  }

  section {
    padding: 55px 0;
  }
}

/* ========== UPCOMING EVENTS ========== */
.events-section {
  background: var(--light-gray);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 5px solid var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11,28,44,0.15);
}

.event-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 18px 24px;
}

.event-card-header h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
}

.event-card-header .organizer {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
}

.event-card-body {
  padding: 22px 24px;
}

.event-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gray);
  font-size: 0.98rem;
}

.event-detail:last-child {
  margin-bottom: 0;
}

.event-detail .label {
  font-weight: 700;
  color: var(--navy);
  min-width: 70px;
}

.event-detail .value {
  flex: 1;
}

.event-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.15);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.event-badge-done {
  background: rgba(40, 167, 69, 0.15);
  color: #1e7e34;
}

/* ========== PODCASTS ========== */
.podcasts-list {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px;
}

.podcasts-list ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.podcasts-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid rgba(11, 28, 44, 0.08);
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 500;
}

.podcasts-list li:last-child {
  border-bottom: none;
}

.podcasts-list li::before {
  content: "🎙️";
  position: absolute;
  left: 0;
  top: 14px;
}

.podcasts-note {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 0;
  font-size: 0.95rem;
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.past-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  border-left: 5px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.past-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.35;
}

.past-platform {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.past-card .btn {
  margin-top: 8px;
  align-self: flex-start;
}