/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #384143;
  --color-secondary: #967e7e;
  --color-light: #fbf7f7;
  --color-white: #ffffff;
  --font-heading: 'Libre Baskerville', serif;
  --font-body: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  line-height: 1.6;
  background-color: var(--color-white);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: #2a3133;
}

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

.btn-secondary:hover {
  background-color: #2a3133;
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-small:hover {
  background-color: #7a6868;
}

/* Hero Section */
.hero {
  background-color: var(--color-light);
  padding: 40px 20px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
}

.hero .logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.hero .tagline {
  font-size: 1.6rem;
  color: var(--color-secondary);
  font-style: italic;
}

/* About Section */
.about {
  padding: 50px 20px;
  background-color: var(--color-light);
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-image {
  flex: 0 0 380px;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--color-primary);
  line-height: 1.4;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 1.1rem;
  line-height: 1.75;
}

.about-text ul {
  list-style: none;
  margin-top: 10px;
}

.about-text ul li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.about-text ul li::before {
  content: "•";
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Booking Section */
.booking {
  padding: 35px 20px;
  background-color: var(--color-white);
  text-align: center;
}

.booking h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.booking p {
  margin-bottom: 30px;
  font-size: 1.15rem;
}

.booking-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.booking-buttons .btn {
  padding: 14px 36px;
  font-size: 1.1rem;
}

/* Books Section */
.books {
  padding: 80px 20px;
  background-color: var(--color-white);
}

.books h2 {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 15px;
}

.section-intro {
  text-align: center;
  margin-bottom: 50px;
  font-size: 1.2rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.book-card {
  background-color: var(--color-light);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.book-card img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 18px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.book-card h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--color-primary);
}

.coming-soon {
  display: inline-block;
  padding: 8px 18px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 4px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 40px 20px;
  text-align: center;
}

.footer p {
  margin-bottom: 15px;
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

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

  .hero .tagline {
    font-size: 1.2rem;
  }

  .hero .logo {
    width: 130px;
    height: 130px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    flex: none;
    max-width: 280px;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .book-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Large screens - use more space */
@media (min-width: 1200px) {
  .about-image {
    flex: 0 0 450px;
  }

  .about-image img {
    max-width: 100%;
  }

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

  .book-card img {
    max-width: 240px;
  }
}

/* Page Content (Contact, Legal pages) */
.page-content {
  padding: 60px 20px;
  background-color: var(--color-white);
}

.page-content h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 15px;
}

.page-content .intro {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-content .last-updated {
  text-align: center;
  color: var(--color-secondary);
  font-style: italic;
  margin-bottom: 30px;
}

/* Legal Pages */
.legal-page {
  background-color: var(--color-light);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h3 {
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.legal-content p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 15px;
  padding-left: 25px;
}

.legal-content ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-content a {
  color: var(--color-secondary);
}

.legal-content a:hover {
  color: var(--color-primary);
}

/* Contact Page */
.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background-color: var(--color-light);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
}

.contact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.contact-card p {
  margin-bottom: 25px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-buttons .btn {
  text-align: center;
}

@media (max-width: 768px) {
  .contact-options {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-content h3 {
    font-size: 1.15rem;
  }
}
