/* Mark W. Geiger - Static Site Styles */

:root {
  --primary-color: #b52e2b;
  --primary-dark: #8a2320;
  --text-dark: #333333;
  --text-light: #666666;
  --background-light: #f8f8f8;
  --background-white: #ffffff;
  --border-color: #e0e0e0;
  --font-heading: 'Gelasio', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--background-light);
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--background-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}

.site-title:hover {
  color: var(--primary-color);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-color);
  color: white;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-toggle::after {
  content: '';
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 2px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--background-light);
  color: var(--primary-color);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
  padding: 80px 20px;
  text-align: center;
  border-bottom: 3px solid var(--primary-color);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero .btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.hero .btn:hover {
  background: var(--primary-dark);
}

/* Page Header */
.page-header {
  background: var(--background-white);
  padding: 50px 20px;
  text-align: center;
  border-bottom: 3px solid var(--primary-color);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-dark);
}

/* Main Content */
.main-content {
  background: var(--background-white);
  padding: 60px 20px;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.content-section h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 30px 0 15px;
}

.content-section p {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.content-section ul,
.content-section ol {
  margin: 0 0 20px 25px;
}

.content-section li {
  margin-bottom: 10px;
}

/* Books Section */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin: 40px 0;
}

.book-card {
  background: var(--background-light);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.book-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: white;
  padding: 20px;
}

.book-card-content {
  padding: 20px;
}

.book-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.book-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.book-card .btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.book-card .btn:hover {
  background: var(--primary-dark);
}

/* Book Detail Page */
.book-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.book-cover {
  position: sticky;
  top: 100px;
}

.book-cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.book-info h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 10px;
}

.book-meta {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.book-description {
  margin-bottom: 30px;
}

/* Reviews/Testimonials */
.testimonials {
  background: var(--background-light);
  padding: 60px 20px;
}

.testimonials h2 {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 40px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial {
  background: var(--background-white);
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.testimonial blockquote {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.6;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Articles List */
.articles-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-item {
  padding: 25px 0;
  border-bottom: 1px solid var(--border-color);
}

.article-item:last-child {
  border-bottom: none;
}

.article-item h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.article-item h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.article-item h3 a:hover {
  color: var(--primary-color);
}

.article-meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Awards List */
.awards-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.award-year {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin: 30px 0 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-color);
}

.award-year:first-child {
  margin-top: 0;
}

.award-item {
  padding: 10px 0;
  padding-left: 20px;
  border-left: 3px solid var(--background-light);
  margin-bottom: 10px;
}

.award-item strong {
  color: var(--text-dark);
}

.award-item span {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Lectures List */
.lectures-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lecture-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.lecture-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.lecture-meta {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--primary-dark);
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

.social-links {
  margin-bottom: 15px;
}

.social-links a {
  display: inline-block;
  color: white;
  text-decoration: none;
  margin: 0 10px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 1;
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 15px;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--background-light);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .book-detail {
    grid-template-columns: 1fr;
  }

  .book-cover {
    position: static;
    max-width: 250px;
    margin: 0 auto;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }
}
