/* --- 1. GLOBAL STYLES & RESETS --- */
:root {
  /* Define a friendly color palette */
  --color-primary: #8B4513;
  /* Earthy Brown/Sepia tone for sophistication */
  --color-secondary: #FFD700;
  /* Warm Gold for highlights and CTAs */
  --color-background: #F8F4E3;
  /* Off-White/Cream for a cozy paper-like feel */
  --color-text: #333333;
  --color-light-text: #FFFFFF;
  --color-accent: #4682B4;
  /* Soft Blue for links/membership */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1,
h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.5em;
  padding-top: 50px;
  /* Space above section title */
}

/* Base style for CTA buttons */
.cta-button {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
  text-align: center;
  margin: 5px;
}

.primary-cta {
  background-color: var(--color-secondary);
  color: var(--color-text);
  border: 2px solid var(--color-secondary);
}

.primary-cta:hover {
  background-color: var(--color-primary);
  color: var(--color-light-text);
}

.secondary-cta {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.secondary-cta:hover {
  background-color: var(--color-primary);
  color: var(--color-light-text);
}


/* --- 2. STICKY NAVIGATION BAR --- */
.sticky-nav {
  position: sticky;
  /* Makes the header stick */
  top: 0;
  /* Sticks to the top of the viewport */
  width: 100%;
  background-color: var(--color-light-text);
  /* White background for clean look */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  /* Ensure it stays above other content */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8em;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

/* --- New CSS for the Image Logo --- */
.site-logo {
  height: 60px;
  /* Adjust as needed for your desired size */
  width: auto;
  display: block;
  /* Ensures it behaves nicely in flex container */
}

/* You can remove or adjust .logo-text if you're only using the image logo */
.logo-text {
  /* Keep this if you want a fallback or if you switch between text/image */
  font-family: var(--font-heading);
  font-size: 1.8em;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

/* Adjust header padding if needed after adding the image logo */
.sticky-nav {
  padding: 10px 5%;
  /* Slightly reduce padding if logo is tall */
}

/* Responsive adjustment for logo */
@media (max-width: 900px) {
  .site-logo {
    height: 50px;
    /* Smaller logo on mobile */
  }
}

.sticky-nav nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  margin-left: 25px;
  padding: 5px 0;
  transition: color 0.3s, border-bottom 0.3s;
}

.sticky-nav nav a:hover {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}


/* --- 3. SECTION STYLES --- */
.content-section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HERO SECTION */
.hero-section {
  background: url('Background\ Hero\ JPEG.jpeg') no-repeat center center/cover;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('Background\ Hero\ JPEG.jpeg') no-repeat center center/cover;
  height: 60vh;
  /* Viewport height */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-light-text);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  /* For readability over image */
}

.hero-content h1 {
  font-size: 3.5em;
  color: var(--color-light-text);
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
}

/* FEATURED TITLES SECTION */
.featured-section {
  text-align: center;
}

.book-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.book-card {
  background-color: var(--color-light-text);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 300px;
  text-align: left;
  transition: transform 0.3s;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.book-card img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.book-card h3 {
  text-align: left;
  font-size: 1.5em;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.book-card .author {
  font-style: italic;
  color: #666;
  margin-bottom: 10px;
}

.book-card .blurb {
  font-size: 0.95em;
  margin-bottom: 15px;
}

.book-card .genre {
  display: block;
  font-weight: 500;
  color: var(--color-accent);
}

/* ABOUT US SECTION */
.about-section {
  background-color: #f0eae1;
  /* Slightly different background for contrast */
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 30px;
}

.about-text {
  flex: 2;
}

.about-image-placeholder {
  flex: 1;
  background-color: #ccc;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  border-radius: 8px;
}

.about-text ul {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.about-text ul li {
  padding: 5px 0;
  font-weight: 500;
  color: var(--color-primary);
}

/* MEMBERSHIP CTA SECTION */
.membership-section {
  text-align: center;
  background-color: var(--color-primary);
  color: var(--color-light-text);
  padding: 60px 5%;
}

.membership-section h2 {
  color: var(--color-secondary);
}

.membership-section p {
  font-size: 1.1em;
  margin-bottom: 25px;
}

.membership-section .primary-cta {
  /* Adjust CTA for dark background */
  background-color: var(--color-secondary);
  color: var(--color-text);
}

.membership-section .primary-cta:hover {
  background-color: var(--color-light-text);
  color: var(--color-primary);
}


/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-info h3,
.contact-form-container h3 {
  text-align: left;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-body);
}

.contact-form button {
  width: 100%;
  border: none;
}

.map-placeholder img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensures the image respects the container boundaries */
  border-radius: 8px;
}


/* --- 4. FOOTER --- */
footer {
  text-align: center;
  padding: 20px 5%;
  background-color: var(--color-text);
  color: var(--color-light-text);
  font-size: 0.9em;
}

.social-links a {
  color: var(--color-secondary);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--color-accent);
}


/* --- 5. RESPONSIVENESS (for smaller screens) --- */
@media (max-width: 900px) {
  .sticky-nav {
    flex-direction: column;
    padding: 10px 5%;
  }

  .sticky-nav nav {
    margin-top: 10px;
  }

  .sticky-nav nav a {
    margin: 0 10px;
    font-size: 0.9em;
  }

  .hero-content h1 {
    font-size: 2.5em;
  }

  .book-grid {
    flex-direction: column;
    align-items: center;
  }

  .book-card {
    max-width: 90%;
  }

  .about-flex {
    flex-direction: column;
  }

  .about-content {
    display: flex;
    /* Keeps image and text side-by-side */
    /* Change from flex-start to center to align items vertically */
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
    /* Allows stacking on small screens */
  }

  .about-image-column {
    /* Guarantees this column takes 40% of the row */
    flex: 0 0 40%;
    flex-basis: 40%;
    /* Modern syntax for the same thing */

    text-align: center;
    /* The old min/max-width are removed here */

    /* Remove 'align-self: flex-start;' as it's now handled by .about-content */
  }

  .about-text {
    /* Guarantees this column takes 50% of the row */
    flex: 0 0 50%;
    flex-basis: 50%;
  }

  /* Then, ensure the image itself behaves */
  .founders-image {
    width: 100%;
    /* FORCES the image to be no wider than its 40% column */
    max-width: 350px;
    /* Good failsafe, but width: 100% is primary */

    height: auto;
    display: block;
    margin: 0 auto;
    /* Centers the image inside the column */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  }

  .about-image-placeholder {
    min-height: 200px;
    width: 100%;
  }

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