:root {
  --accent: #c4a4a4;
  --accent-dark: #9b7b7b;
  --accent-light: #e8d4d4;
  --text: #3d3d3d;
  --muted: #7a7a7a;
  --bg: #fdf9f7;
  --bg-alt: #f5ebe6;
  --bg-warm: #f9f3f0;
  --list: #d4a5a5;
  --border: #e8dcd6;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body, p, li, a, span, input, button {
  font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6, .site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: var(--accent-light);
  color: var(--text);
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Image loading placeholder */
img {
  background: var(--bg-alt);
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(to bottom, var(--white), var(--bg));
  position: relative;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.header-logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--accent-dark);
}

nav a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
  margin-left: 1.5rem;
}

.dropdown > a {
  margin-left: 0;
}

.dropdown > a::after {
  display: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 100;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  margin: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.2s ease;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--accent-dark);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem;
}

/* Hero / Book Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 0;
  padding: 4rem 2rem 5rem;
  background-image: linear-gradient(rgba(61, 61, 61, 0.5), rgba(61, 61, 61, 0.6)), url('../images/books.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom right, transparent 49%, var(--bg) 50%);
}

.book-cover {
  width: 220px;
  height: auto;
  aspect-ratio: 2/3;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #444;
  border-radius: 4px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  object-fit: cover;
}

.book-cover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), 0 10px 20px rgba(0, 0, 0, 0.25);
}

.books-section {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

.book-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.coming-soon,
.buy-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 1rem;
}

.coming-soon {
  color: var(--white);
  font-size: 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.buy-now {
  background: var(--accent);
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(196, 164, 164, 0.4);
}

.buy-now:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 164, 164, 0.5);
}

.book-notes {
  margin-top: 1rem;
  color: var(--muted);
  font-style: italic;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 0;
  padding: 4rem 0;
  background: var(--bg);
}

/* About */
.about {
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about h2 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.about h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}

.about p {
  color: var(--text);
  margin-bottom: 1.25rem;
}

.about a {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.about a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.author-photo {
  width: 180px;
  height: auto;
  background: var(--bg-alt);
  border-radius: 8px;
  float: right;
  margin-left: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* CTA */
.cta {
  background: var(--bg-alt);
  border: none;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  text-align: center;
  padding: 1rem;
}

.cta input {
  padding: 0.85rem 1.2rem;
  width: 260px;
  max-width: 100%;
  margin-right: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.cta button {
  padding: 0.85rem 1.8rem;
  background: var(--accent);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.cta button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Left column styling */
.left-column {
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Events in left column */
.left-column .section {
  margin-bottom: 0;
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
  position: relative;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.75rem;
}

/* Events */
.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.events-list li {
  padding: 1.25rem 0 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.events-list li:hover {
  border-left-color: var(--accent);
  background: var(--bg);
  padding-left: 1.25rem;
}

.events-list li:last-child {
  border-bottom: none;
}

.event-date {
  color: var(--list);
  font-weight: 700;
  margin-right: 1rem;
  font-size: 0.9rem;
}

.event-title {
  color: var(--text);
}

/* Reviews */
.reviews-section {
  background: var(--bg-alt);
  padding: 4rem 0;
  margin-top: 0;
}

.reviews-section .section {
  margin-bottom: 0;
}

.reviews-section h2 {
  text-align: center;
}

.reviews-section h2::after {
  margin-left: auto;
  margin-right: auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--white);
  padding: 2rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4rem;
  color: var(--accent-light);
  line-height: 1;
  opacity: 0.7;
}

.review-card p {
  margin: 0 0 1.25rem 0;
  font-style: italic;
  color: var(--text);
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  line-height: 1.8;
}

.review-author {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact Form */
.contact-section > p {
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  outline: none;
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233d3d3d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(196, 164, 164, 0.4);
}

.form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 164, 164, 0.5);
}

.form-message {
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.form-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* Footer */
footer {
  border-top: none;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-warm);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

footer p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.25rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.social-icons a:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(196, 164, 164, 0.4);
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-dark);
  transition: fill 0.3s ease;
}

.social-icons a:hover svg {
  fill: var(--white);
}

/* Responsive Styles */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .header-logo {
    height: 70px;
  }

  .site-title {
    position: static;
    transform: none;
    font-size: 1.5rem;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  nav a {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  nav a:first-child {
    margin-left: 0;
  }

  .dropdown {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
}

@media (max-width: 768px) {
  .hero,
  .about,
  .two-column {
    grid-template-columns: 1fr;
  }

  .two-column {
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }

  .about, .left-column {
    padding: 1.5rem;
  }

  .author-photo {
    width: 140px;
    margin-left: 1rem;
  }

  .hero {
    padding: 3rem 1.5rem 4rem;
  }

  .hero::after {
    height: 40px;
  }

  .books-section {
    gap: 2.5rem;
  }

  .book-cover {
    width: 180px;
  }

  .site-title {
    font-size: 1.3rem;
    letter-spacing: 0.05em;
  }

  .container {
    padding: 1.5rem;
  }

  .section h2,
  .about h2 {
    font-size: 1.6rem;
  }

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

  .reviews-section {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .book-cover {
    width: 160px;
  }

  .buy-now {
    font-size: 0.8rem;
    padding: 0.5rem 1.4rem;
  }

  .books-section {
    gap: 2rem;
  }

  .author-photo {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
    width: 160px;
  }
}
