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

:root {
  --black: #1a1a1a;
  --dark-brown: #6b5d4f;
  --warm-bg: #7a6b5d;
  --cream: #f5f0eb;
  --white: #e8e0d6;
  --header-bg: #2d2a26;
  --footer-bg: #2d2a26;
  --text-light: #c8bfb4;
  --text-cream: #d4ccc2;
  --button-bg: #3a3530;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Almarai', Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--white);
  background-color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Floating Nav */
.floating-nav {
  position: fixed;
  top: 1.4vw;
  right: 4vw;
  z-index: 100;
}

.floating-nav a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-left: 2.5rem;
  transition: opacity 0.2s;
}

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

.floating-nav a:hover {
  opacity: 0.7;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slider__slide.active {
  opacity: 1;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  gap: 4px;
}

.slider__arrow {
  width: 36px;
  height: 36px;
  background: rgba(30, 28, 26, 0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slider__arrow:hover {
  background: rgba(50, 46, 42, 0.9);
}

.slider__arrow svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.8);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Page Content */
.page-content {
  padding-top: 0;
}

/* Books Section */
.books-header {
  background-color: var(--warm-bg);
  padding: 4rem 4vw 1.5rem;
  text-align: center;
}

.books-header h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
}

.books-section {
  background-color: var(--warm-bg);
  padding: 2rem 4vw 4rem;
}

.book-card {
  display: flex;
  max-width: 1100px;
  margin: 0 auto 3rem;
  overflow: hidden;
}

.book-card--reverse {
  flex-direction: row-reverse;
}

.book-card__image {
  flex: 1.2;
  min-height: 400px;
}

.book-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-card__content {
  flex: 1;
  background-color: var(--cream);
  color: #333;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-card__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: #2d2a26;
  margin-bottom: 1.2rem;
}

.book-card__text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
}

.book-card__text em {
  font-style: italic;
}

.book-card__button {
  display: inline-block;
  width: fit-content;
  padding: 1rem 2.5rem;
  background-color: var(--button-bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.book-card__button:hover {
  background-color: #4a4540;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  padding: 3rem 4vw 2rem;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer__brand h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.footer__brand a {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__column h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.footer__column a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.footer__column a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__social a {
  color: var(--text-light);
  transition: color 0.2s;
}

.footer__social a:hover {
  color: var(--white);
}

.footer__social svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .header__title {
    font-size: 1.1rem;
  }

  .book-card {
    flex-direction: column;
  }

  .book-card--reverse {
    flex-direction: column;
  }

  .book-card__image {
    min-height: 250px;
  }

  .book-card__content {
    padding: 2rem;
  }

  .book-card__title {
    font-size: 1.5rem;
  }

  .books-header h2 {
    font-size: 1.8rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .slider__controls {
    bottom: 16px;
    right: 16px;
  }

  .slider__arrow {
    width: 32px;
    height: 32px;
  }
}
