/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ===== CSS Variables ===== */
:root {
  --color-bg: #FDFAF5;
  --color-bg-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-accent: #B8960C;
  --color-accent-hover: #9A7D0A;
  --color-border: #E8E0D0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 6px 24px rgba(0, 0, 0, 0.14);
  --border-radius: 4px;
  --transition: 0.2s ease;
  --color-footer-text: #cccccc;
  --color-footer-border: #333333;
  --color-footer-dim: #888888;
}

/* ===== Base ===== */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ===== Navbar ===== */
.navbar {
  background-color: var(--color-bg-white) !important;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.navbar-brand img {
  height: 48px;
}

.navbar .nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1rem !important;
  transition: color var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-accent) !important;
}

.lang-switcher {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.lang-switcher a {
  color: var(--color-text-muted);
  padding: 0 4px;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--color-accent);
}

/* ===== Hero ===== */
.hero {
  background-color: var(--color-bg);
  padding: 6rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-video {
  position: relative;
  overflow: hidden;
  background-color: #0a0a0a;
  border-bottom: none;
  min-height: 520px;
  height: 70vh;
  display: flex;
  align-items: center;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-video .hero-logo {
  filter: brightness(0) invert(1);
}

.hero-video h1 {
  color: #fff;
}

.hero-video .tagline {
  color: rgba(255,255,255,0.85);
}

.hero img.hero-logo {
  height: 120px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p.tagline {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ===== Section ===== */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background-color: var(--color-accent);
  margin-top: 6px;
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

/* ===== Book Card ===== */
.book-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.book-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.book-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.book-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.book-card .book-info {
  padding: 1rem;
}

.book-card .book-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.book-card .book-author {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== News Card ===== */
.news-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.news-card .news-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.news-card .news-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-card .news-summary {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Button ===== */
.btn-accent {
  background-color: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.65rem 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: background-color var(--transition);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
}

.btn-accent:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Footer ===== */
footer {
  background-color: var(--color-text);
  color: var(--color-footer-text);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

footer .footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--color-footer-text);
}

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

footer .footer-nav a {
  display: inline-block;
  margin-right: 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

footer .footer-bottom {
  border-top: 1px solid var(--color-footer-border);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-footer-dim);
}

/* ===== About Section ===== */
.about-section {
  background-color: var(--color-bg-white);
}

/* ===== Catalogue book blocks ===== */
.catalogue-book-block {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.catalogue-collection {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-weight: 500;
}

.catalogue-book-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.4rem 0 0.25rem;
}

.catalogue-book-author {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.catalogue-book-desc {
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.catalogue-isbn {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.catalogue-book-cover {
  max-width: 160px;
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

/* ===== Modal ===== */
.modal-book-cover {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.modal-book-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.modal-book-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ===== Contact ===== */
.contact-section input,
.contact-section textarea,
.contact-section select {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.contact-section input:focus,
.contact-section textarea:focus,
.contact-section select:focus {
  border-color: var(--color-accent);
  /* accent color (#B8960C) at 15% opacity */
  box-shadow: 0 0 0 0.2rem rgba(184, 150, 12, 0.15);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 0; }
}
