/* =========================
   BASE / GLOBAL
========================= */

:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lora', serif;
  color: #26352D;
  background: #F7F6F3;

  opacity: 0;
  animation: pageFade 0.6s ease forwards;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  padding-bottom: 70px;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
  font-size: 44px;
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-2);
  font-size: 26px;
}

p {
  line-height: 1.8;
  font-size: 16.5px;
  max-width: 800px;
  margin-bottom: var(--space-2);
}

/* =========================
   CONTAINER
========================= */

.container {
  max-width: 1100px;
  margin: auto;
  padding: var(--space-5) var(--space-3);
}

/* =========================
   NAVIGATION
========================= */

nav {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  justify-content: center;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  text-decoration: none;
  color: #26352D;
  font-size: 14px;
}

nav a:hover {
  color: #6F9E7F;
}

nav a.active {
  font-weight: 600;
  border-bottom: 2px solid #AEBFA9;
}

/* =========================
   BUTTONS (GLOBAL)
========================= */

.button,
button.button {
  display: inline-block;
  padding: 10px 18px;
  background: #AEBFA9;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  font-family: inherit;
}

.button:hover {
  background: #9FB19A;
  transform: translateY(-2px);
}

/* =========================
   HERO
========================= */

.hero {
  height: 50vh;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: var(--space-5);
}

/* =========================
   LIBRARY FIX
========================= */

.book-card img,
.scroll-card img {
  object-fit: contain;
  background: rgba(255,255,255,0.6);
}

/* =========================
   CAROUSEL
========================= */

.carousel-wrapper {
  position: relative;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: var(--space-2);
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* =========================
   CONTACT FORM
========================= */

.form-wrapper input,
.form-wrapper select,
.form-wrapper textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  margin-bottom: 18px;

  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);

  background: rgba(255,255,255,0.92);

  font-family: 'Lora', serif;
  font-size: 15px;
  color: #26352D;

  outline: none;

  transition: all 0.2s ease;

  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.form-wrapper input:focus,
.form-wrapper select:focus,
.form-wrapper textarea:focus {
  border-color: #AEBFA9;
  box-shadow: 0 6px 18px rgba(174,191,169,0.25);
}

/* =========================
   GLOBAL FOOTER (NEW STANDARD)
========================= */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;

  padding: 18px 24px;
  font-size: 13px;
  color: rgba(38,53,45,0.7);

  border-top: 1px solid rgba(0,0,0,0.05);

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
}

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

footer a:hover {
  color: #6F9E7F;
}
