/* ============================================
   Dr Dona Biswas — Author Website
   Shared stylesheet
   ============================================ */

:root {
  --navy: #0D1B3E;
  --navy-secondary: #1A2F5E;
  --cream: #FAF7F2;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --charcoal: #2C2C2C;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

section {
  padding: 80px 0;
}

.section-heading {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.section-subheading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: #5a5a5a;
  font-size: 1.05rem;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  background-color: var(--navy);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 0.25s ease;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
}

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

.nav-toggle span {
  width: 26px;
  height: 2px;
  background-color: var(--white);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

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

.btn-primary:hover {
  border-color: var(--gold-light);
  background-color: var(--navy-secondary);
}

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

.btn-secondary:hover {
  background-color: var(--gold-light);
}

.btn-small {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3.4rem;
  margin-bottom: 16px;
}

.hero-subheading {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: 1.25rem;
  color: var(--navy-secondary);
  font-style: italic;
}

.author-photo-placeholder,
.author-photo {
  width: 260px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background-color: var(--navy-secondary);
  border: 4px solid var(--gold);
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  text-align: center;
}

.author-photo {
  object-fit: cover;
}

.hero-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: var(--charcoal);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================
   Books section (homepage preview + books page)
   ============================================ */

.stream-label {
  display: inline-block;
  background-color: var(--gold);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stream-block {
  margin-bottom: 64px;
}

.stream-header {
  text-align: center;
  margin-bottom: 40px;
}

.stream-header h3 {
  font-size: 1.8rem;
  margin: 8px 0;
}

.stream-header p {
  color: #5a5a5a;
  max-width: 560px;
  margin: 0 auto;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.book-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(13, 27, 62, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(13, 27, 62, 0.15);
}

.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background-color: var(--navy-secondary);
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
}

.placeholder-health {
  background-color: var(--cream);
  border: 3px solid var(--navy);
  color: var(--navy);
}

.placeholder-fiction {
  background-color: var(--navy);
  border: 3px solid var(--gold);
  color: var(--gold-light);
}

.book-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-card-body h4 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.book-card-body p {
  color: #4a4a4a;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  align-self: flex-start;
}

.badge-available {
  background-color: var(--gold);
  color: var(--white);
}

.badge-coming-soon {
  background-color: var(--navy);
  color: var(--white);
}

.view-all-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.25s ease;
}

.view-all-link:hover {
  color: var(--gold);
}

/* ============================================
   About section
   ============================================ */

.about-section {
  background-color: var(--navy-secondary);
  color: var(--white);
}

.about-section h2 {
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.about-photo-placeholder,
.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--navy);
  border: 3px solid var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.about-photo {
  object-fit: cover;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.02rem;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

.testimonial-card {
  background-color: var(--cream);
  border: 2px solid var(--gold-light);
  border-radius: 8px;
  padding: 32px;
}

.testimonial-card p.quote {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1rem;
}

.testimonial-card .attribution {
  font-weight: 700;
  color: var(--navy-secondary);
  font-size: 0.9rem;
}

.testimonial-featured {
  border: 3px solid var(--gold);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto 32px;
  box-shadow: 0 10px 32px rgba(201, 168, 76, 0.25);
}

.testimonial-featured p.quote {
  font-size: 1.2rem;
  text-align: center;
}

.testimonial-featured .attribution {
  text-align: center;
}

/* ============================================
   Video trailers
   ============================================ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

.video-embed {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--gold);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.video-navy {
  background-color: var(--navy);
  border: 3px solid var(--gold);
  color: var(--gold-light);
}

.video-cream {
  background-color: var(--cream);
  border: 3px solid var(--navy-secondary);
  color: var(--navy);
}

/* ============================================
   Newsletter
   ============================================ */

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

.newsletter-section h2 {
  color: var(--white);
}

.newsletter-subheading {
  text-align: center;
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.newsletter-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  color: #dbe0ee;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.newsletter-box {
  background-color: var(--navy-secondary);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 8px;
  padding: 36px;
}

.newsletter-box h3 {
  color: var(--gold-light);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.newsletter-box p {
  color: #dbe0ee;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.newsletter-box small {
  display: block;
  margin-top: 16px;
  color: #b8c0d8;
  font-size: 0.82rem;
}

.mailerlite-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mailerlite-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 50px;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
}

.mailerlite-form button {
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  background-color: var(--gold);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease;
  font-family: 'Lato', sans-serif;
}

.mailerlite-form button:hover {
  background-color: var(--gold-light);
  color: var(--navy);
}

/* ============================================
   Page header (books / newsletter / contact)
   ============================================ */

.page-header {
  padding: 72px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--navy-secondary);
  font-size: 1.1rem;
}

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto 80px;
  max-width: 800px;
}

/* ============================================
   Books page detail cards
   ============================================ */

.book-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ============================================
   Newsletter page full sections
   ============================================ */

.newsletter-full-section {
  padding: 56px 0;
  border-radius: 8px;
  margin-bottom: 40px;
}

.newsletter-full-section .container-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================
   Contact page
   ============================================ */

.contact-note {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--navy-secondary);
  background-color: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 8px;
  padding: 24px 32px;
}

.contact-form {
  max-width: 620px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 48px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(13, 27, 62, 0.08);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8d2c6;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  background-color: var(--cream);
}

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

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

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 32px 0;
  font-size: 0.9rem;
}

/* ============================================
   Responsive
   ============================================ */

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

  .about-photo-placeholder,
  .about-photo {
    max-width: 320px;
    margin: 0 auto;
  }

  .book-grid,
  .book-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .video-grid,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--navy);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subheading {
    font-size: 1.05rem;
  }

  .book-grid,
  .book-detail-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }
}
