/* RESET & BASICS */
:root {
  --primary-color: #1a252f;
  --accent-color: #e67e22;
  --text-color: #333;
  --bg-color: #fcfcfc;
  --white: #ffffff;
  --gray-light: #f4f4f4;
  --max-width: 1000px;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.5);
}

.primary-btn,
.buy-btn {
  background-color: var(--primary-color);
  color: var(--white);
}

.primary-btn:hover,
.buy-btn:hover {
  background-color: #11181f;
}

.secondary-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid var(--white);
  backdrop-filter: blur(4px);
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 1) HERO */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Slightly stronger overlay for readability */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.82));
}

.hero-content {
  padding: var(--spacing-lg) 0;
}

.author-name {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  font-weight: 800;
}

.tagline {
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

.intro-line {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #f4f4f4;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Optional scroll cue (if you add it in HTML) */
.scroll-cue {
  display: inline-block;
  margin-top: 18px;
  opacity: 0.85;
  text-decoration: none;
  color: inherit;
}
.scroll-cue:hover {
  opacity: 1;
  text-decoration: underline;
}

/* STICKY MOBILE BUTTON */
.sticky-buy-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.sticky-buy-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-buy-btn:hover,
.sticky-buy-btn:focus-visible {
  background-color: #d35400;
  outline: none;
}

/* 2) TRUST STRIP (If you removed this section from HTML, this CSS is harmless) */
.trust-strip {
  background-color: var(--white);
  padding: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.trust-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.award-icon {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.award-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}

/* 3) BOOKS */
.books-section {
  padding: var(--spacing-lg) 0;
}

.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .books-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.book-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.book-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.book-image-wrapper {
  padding: 2.5rem 1.5rem;
  background-color: var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Clickable cover wrapper (you wrapped the cover <img> in <a>) */
.book-image-wrapper a {
  display: inline-block;
  cursor: pointer;
}
.book-image-wrapper a:hover {
  opacity: 0.98;
}
.book-image-wrapper a:focus-visible {
  outline: 3px solid rgba(230, 126, 34, 0.9);
  outline-offset: 4px;
}

.main-cover {
  max-height: 380px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.book-card:hover .main-cover {
  transform: scale(1.02);
}

.secondary-cover {
  max-height: 80px;
  opacity: 0.9;
  border-radius: 4px;
}

/* If you use clickable-thumb class anywhere */
.clickable-thumb {
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.clickable-thumb:hover,
.clickable-thumb:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  outline: none;
}

.mini-gallery {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb {
  width: 60px;
  height: 85px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.thumb:hover,
.thumb:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  border-color: rgba(230, 126, 34, 0.7);
  outline: none;
}

.book-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* If you wrap the title in a link */
.book-title a {
  color: inherit;
  text-decoration: none;
}
.book-title a:hover {
  text-decoration: underline;
}

.book-blurb {
  margin-bottom: 1.5rem;
  flex-grow: 1;
  color: #444;
}

.book-blurb p {
  margin-bottom: 0.8rem;
}

.book-blurb p:last-child {
  margin-bottom: 0;
}

.book-info .buy-btn {
  align-self: flex-start;
  width: 100%;
}

/* 4) READER REVIEW */
.review-section {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-lg) 0;
}

.review-section .section-title {
  color: var(--white);
  margin-bottom: 3rem;
}

.review-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* If you removed the review image from HTML, this is harmless */
.review-img {
  max-height: 250px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.review-quote {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.8;
  position: relative;
  padding: 0 2rem;
  color: #e8e8e8;
  user-select: all;
}

.review-quote::before,
.review-quote::after {
  content: '"';
  font-size: 3.5rem;
  position: absolute;
  opacity: 0.2;
  color: var(--accent-color);
}

.review-quote::before {
  top: -15px;
  left: -15px;
}

.review-quote::after {
  bottom: -40px;
  right: -15px;
}

/* 5) ABOUT THE AUTHOR */
.about-section {
  padding: var(--spacing-lg) 0;
  background-color: var(--white);
}

.bio-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
  color: #444;
}

.bio-content p {
  margin-bottom: 1.2rem;
}

/* AWARD SECTION (BOTTOM) */
.award-section-bottom {
  padding: var(--spacing-lg) 0;
  background-color: var(--gray-light);
  text-align: center;
}

.award-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.award-img-large {
  max-width: 520px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* If you removed award text above image, this may be unused */
.award-caption {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* 6) FOOTER */
.site-footer {
  background-color: #11181f;
  color: #bbb;
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.site-footer a {
  color: inherit;
  opacity: 0.9;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  outline: none;
}

.contact-placeholder a {
  color: #bbb;
  text-decoration: underline;
  transition: color 0.2s;
}

.contact-placeholder a:hover,
.contact-placeholder a:focus-visible {
  color: var(--white);
  outline: none;
}

/* LIGHTBOX MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  position: relative;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  animation: zoom 0.3s forwards;
  border-radius: 4px;
}

@keyframes zoom {
  to {
    transform: translateY(-50%) scale(1);
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.2s, transform 0.2s;
  z-index: 1001;
}

.close-modal:hover,
.close-modal:focus-visible {
  color: var(--accent-color);
  transform: scale(1.1);
  outline: none;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 600px) {
  .author-name {
    font-size: 2.8rem;
  }
  .tagline {
    font-size: 1.3rem;
  }
  .hero-ctas {
    flex-direction: column;
    padding: 0 1rem;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .review-quote {
    font-size: 1.1rem;
  }
  .book-image-wrapper {
    padding: 1.5rem 1rem;
  }
}
.book-subtitle {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color); /* black like the title */
}
/* Hide contact until real email is ready */
.contact-placeholder { display: none; }