/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

:root {
  --olive: #4a5e1a;
  --olive-dark: #3a4a14;
  --white: #fff;
  --text: #222;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  animation: headerSlideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

header.scrolled {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  animation: logoFadeIn 0.7s ease 0.3s both;
}

.logo-img {
  width: 105px;
  height: 105px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.logo:hover .logo-img { transform: scale(1.05); }

.logo-text {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--olive);
  text-align: center;
}

/* ===== NAV ===== */
nav { display: flex; gap: 28px; }

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
  animation: navFadeIn 0.5s ease both;
  display: inline-block;
}
nav a:nth-child(1) { animation-delay: 0.35s; }
nav a:nth-child(2) { animation-delay: 0.45s; }
nav a:nth-child(3) { animation-delay: 0.55s; }
nav a:nth-child(4) { animation-delay: 0.65s; }
nav a:nth-child(5) { animation-delay: 0.75s; }
nav a:nth-child(6) { animation-delay: 0.85s; }

nav a:hover { color: var(--olive); transform: translateY(-1px); }
nav a.active { color: var(--olive); }

header.scrolled nav a { color: #222; }
header.scrolled nav a:hover { color: var(--olive); }

/* ===== HEADER ICONS ===== */
.header-icons { display: flex; gap: 18px; align-items: center; }

.header-icons button {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center;
}

.header-icons svg {
  width: 22px; height: 22px;
  stroke: #fff; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

header.scrolled .header-icons svg { stroke: #222; }

/* ===== HERO ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Hero image subtle zoom-in */
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  animation: heroZoom 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Overlay fades in */
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.32);
  pointer-events: none;
  animation: fadeIn 1.2s ease forwards;
}

/* h1 slides down */
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  animation: fadeInDown 0.9s ease 0.3s both;
}

/* Divider expands */
.hero-divider {
  width: 60px; height: 2px;
  background: rgba(255,255,255,0.7);
  margin: 0 auto 22px;
  border-radius: 2px;
  transform-origin: center;
  animation: scaleX 0.7s ease 0.8s both;
}

/* Description fades up */
.hero-desc {
  max-width: 640px; margin: 0 auto;
  animation: fadeInUp 0.9s ease 1s both;
}

/* Button fades in last */
.hero-read-more {
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 13px;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 22px;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  animation: fadeInUp 0.7s ease 1.3s both;
}
.hero-read-more:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* ===== HEADER ANIMATION ===== */
@keyframes headerSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== LOGO ANIMATION ===== */
@keyframes logoFadeIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== NAV LINKS STAGGER ===== */
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== HERO STRUCTURE ===== */
.hero-wrapper { position: relative; }

.hero { position: relative; width: 100%; overflow: hidden; }

.hero-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 90px 40px 60px;
}

.hero-desc-main {
  font-size: clamp(12px, 1.15vw, 15px);
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
  margin-bottom: 12px;
}

/* Desktop expand toggle */
.hero-desc-toggle {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.5s ease;
  opacity: 0;
}
.hero-desc-toggle.open { max-height: 400px; opacity: 1; }

.hero-desc-toggle p {
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin-bottom: 10px;
}
.hero-desc-toggle em { font-style: italic; color: rgba(255,255,255,0.95); }

/* ===== GLOBAL WAVE ANIMATION ===== */
@keyframes waveDrift1 {
  0%   { d: path("M0,280 C360,180 720,380 1080,280 C1260,230 1350,310 1440,280 L1440,560 L0,560 Z"); }
  50%  { d: path("M0,300 C400,200 800,400 1080,300 C1200,260 1360,330 1440,300 L1440,560 L0,560 Z"); }
  100% { d: path("M0,280 C360,180 720,380 1080,280 C1260,230 1350,310 1440,280 L1440,560 L0,560 Z"); }
}

@keyframes waveDrift2 {
  0%   { d: path("M0,320 C300,240 600,400 900,320 C1100,270 1300,350 1440,320 L1440,560 L0,560 Z"); }
  50%  { d: path("M0,340 C350,260 700,420 1000,340 C1150,290 1320,360 1440,340 L1440,560 L0,560 Z"); }
  100% { d: path("M0,320 C300,240 600,400 900,320 C1100,270 1300,350 1440,320 L1440,560 L0,560 Z"); }
}

.section-wave-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.section-wave-bg svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.wave-path-1 {
  fill: rgba(255,255,255,0.06);
  animation: waveDrift1 8s ease-in-out infinite;
}

.wave-path-2 {
  fill: rgba(255,255,255,0.04);
  animation: waveDrift2 11s ease-in-out infinite;
}

/* For light-background sections use olive color waves */
.books-section .wave-path-1,
.retailers-section .wave-path-1 {
  fill: rgba(74,94,26,0.07);
}
.books-section .wave-path-2,
.retailers-section .wave-path-2 {
  fill: rgba(74,94,26,0.04);
}

/* ===== BOOKS SECTION ===== */
.books-section {
  padding: 60px 60px;
  background: #f9f9f7;
  position: relative;
  overflow: hidden;
}

.books-section > *:not(.section-wave-bg) { position: relative; z-index: 1; }

.books-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.books-title {
  font-family: 'Playfair Display', serif;
font-size: clamp(28px, 4vw, 45px);
  font-weight: 400;
  color: #111;
}

.books-tabs {
  display: flex;
  gap: 8px;
  background: #e8e8e6;
  padding: 4px;
  border-radius: 30px;
}

.tab {
  background: none;
  border: none;
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  color: #777;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.tab.active {
  background: #fff;
  color: var(--olive);
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* ===== BOOK CARD ENTRANCE ANIMATION ===== */
@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.book-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 6px 24px rgba(74, 94, 26, 0.08),
    0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: cardReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger each card */
.book-card:nth-child(1) { animation-delay: 0.05s; }
.book-card:nth-child(2) { animation-delay: 0.12s; }
.book-card:nth-child(3) { animation-delay: 0.19s; }
.book-card:nth-child(4) { animation-delay: 0.26s; }
.book-card:nth-child(5) { animation-delay: 0.33s; }
.book-card:nth-child(6) { animation-delay: 0.40s; }
.book-card:nth-child(7) { animation-delay: 0.47s; }
.book-card:nth-child(8) { animation-delay: 0.54s; }

/* ===== PROMO RIBBON (corner style) ===== */
.promo-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.promo-badge::before {
  content: attr(data-label);
  position: absolute;
  top: 26px;
  right: -28px;
  width: 140px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 7px 0;
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.promo-badge.bestseller::before { background: #e8420a; }
.promo-badge.new::before        { background: #1a7fd4; }
.promo-badge.discount::before   { background: #e8420a; }

/* Old price for discounted books */
.price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.book-price-old {
  font-size: 11px;
  color: #bbb;
  text-decoration: line-through;
  font-weight: 600;
}

.book-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 44px rgba(0,0,0,0.15);
}

.book-card.hidden { display: none; }

/* Image area */
.book-card-img {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #4a5a18, #2a3510);
  overflow: hidden;
  flex-shrink: 0;
}

.book-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.book-card:hover .book-card-img img { transform: scale(1.05); }

.book-card-img.no-img::after {
  content: '📖';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; opacity: 0.4;
}

.book-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Card body */
.book-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.book-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.book-card-top h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  flex: 1;
}

.book-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--olive);
  white-space: nowrap;
}

.book-desc {
  font-size: 16.5px;
  line-height: 1.75;
  color: #777;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--olive);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 4px;
  transition: background 0.2s, transform 0.15s;
}

.book-btn:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
}

/* Responsive books */
@media (max-width: 1100px) {
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .books-section { padding: 60px 40px; }
}

@media (max-width: 700px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .books-section { padding: 50px 20px; }
  .books-header { flex-direction: column; align-items: flex-start; }
  .books-title { font-size: 26px; }
}

@media (max-width: 400px) {
  .books-grid { grid-template-columns: 1fr; }
}

/* ===== RETAILERS SLIDER ===== */
.retailers-section {
  background: #fff;
  padding: 48px 0 44px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  overflow: hidden;
  position: relative;
}

.retailers-section > *:not(.section-wave-bg) { position: relative; z-index: 1; }

.retailers-label {
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 28px;
}

.retailers-track {
  overflow: hidden;
  width: 100%;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.retailers-logos {
  display: flex;
  align-items: center;
  gap: 0;
  animation: retailersScroll 32s linear infinite;
  will-change: transform;
  width: max-content;
}

@keyframes retailersScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}



.retailer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  flex-shrink: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0.75;
}

.retailer-logo:hover {
  opacity: 1;
  transform: scale(1.08);
}

.retailer-logo img {
  height: 165x;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .retailer-logo { padding: 0 28px; }
  .retailer-logo img { height: 75px; }
  .retailers-section { padding: 36px 0 32px; }
}

/* ===== MARQUEE DIVIDER ===== */
.marquee-divider {
  background: linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 60%, #6b8a25 100%);
  overflow: visible;
  position: relative;
  margin: 5px 0;
  clip-path: polygon(0 18%, 100% 0%, 100% 82%, 0% 100%);
  padding: 30px 0;
}

.marquee-divider::before,
.marquee-divider::after {
  content: '';
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  padding: 22px 0;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-content span {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.93);
  padding: 0 36px;
  font-style: italic;
}

.marquee-content .marquee-dot {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  padding: 0;
  font-style: normal;
  font-family: 'Lato', sans-serif;
}



/* ===== AUTHOR QUOTE SECTION ===== */
.author-section {
  background: linear-gradient(160deg, #3a4a14 0%, var(--olive) 50%, #5a7020 100%);
  padding: 65px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.author-section > *:not(.section-wave-bg) { position: relative; z-index: 1; }
.author-name {
  font-family: 'Lato', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.author-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.8vw, 50px);
  font-weight: 400; color: #fff;
  line-height: 1.35; max-width: 880px;
}
.author-shop-btn {
  font-family: 'Lato', sans-serif;
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.65); text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.author-shop-btn:hover { color: #fff; border-color: rgba(255,255,255,0.7); }
@media (max-width: 600px) { .author-section { padding: 40px 24px; } }

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 60%, #6b8a25 100%);
  padding: 36px 60px;
  position: relative;
  overflow: hidden;
}
.newsletter-section > *:not(.section-wave-bg) { position: relative; z-index: 1; }
.newsletter-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.newsletter-text {
  font-family: 'Lato', sans-serif;
  font-size: 22px; font-weight: 600; color: #fff;
}
.newsletter-form {
  display: flex; align-items: center;
  background: #fff; border-radius: 50px;
  padding: 5px 5px 5px 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 380px;
}
.newsletter-input {
  flex: 1; border: none; outline: none;
  font-size: 15px; font-family: 'Lato', sans-serif;
  color: #333; background: transparent; min-width: 0;
}
.newsletter-input::placeholder { color: #aaa; }
.newsletter-btn {
  background: var(--olive-dark); color: #fff; border: none;
  border-radius: 50px; padding: 12px 26px;
  font-size: 14px; font-weight: 700; font-family: 'Lato', sans-serif;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.newsletter-btn:hover { background: #2a3510; }
@media (max-width: 700px) {
  .newsletter-section { padding: 30px 20px; }
  .newsletter-inner   { flex-direction: column; align-items: flex-start; }
  .newsletter-text    { font-size: 18px; }
  .newsletter-form    { min-width: 100%; width: 100%; }
}


/* ===== SCROLL REVEAL ANIMATION ===== */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
}
.reveal.visible {
  animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-fade.visible {
  animation: revealFade 0.8s ease forwards;
}
.reveal-left.visible {
  animation: revealLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger delays for grid items */
.reveal:nth-child(1) { animation-delay: 0s; }
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }
.reveal:nth-child(6) { animation-delay: 0.40s; }
.reveal:nth-child(7) { animation-delay: 0.48s; }
.reveal:nth-child(8) { animation-delay: 0.56s; }

footer {
  background: #fff;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
  gap: 14px;
}

footer .copy { font-size: 16px; color: #888; font-weight: 700 }

footer .footer-links a {
  font-size: 12px; color: #888; text-decoration: none;
}
footer .footer-links a:hover { color: #333; }

footer .social-links { display: flex; gap: 12px; align-items: center; }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sc);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}


/* ===== HAMBURGER (mobile only) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none; border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s;
}
header.scrolled .hamburger span { background: #222; }

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 80%; max-width: 310px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  padding: 0;
  box-shadow: 6px 0 40px rgba(0,0,0,0.25);
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.mobile-nav.open { display: flex; transform: translateX(0); }

/* ── Logo header ── */
.mobile-nav-logo {
  background: linear-gradient(150deg, var(--olive-dark) 0%, var(--olive) 65%, #5a7220 100%);
  padding: 56px 20px 48px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
}
.mobile-nav-logo-img {
  width: 80px; height: 80px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.mobile-nav-logo-text {
      text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  letter-spacing: 0.03em;
}

/* ── Nav links ── */
.mobile-nav-links {
  flex: 1;
  padding: 6px ;
  overflow-y: auto;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #2a2a2a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(74,94,26,0.1);
  border-left: 3px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, padding-left 0.2s;
  letter-spacing: 0.01em;
}
.mobile-nav-links a:last-child {
  border-bottom: none;
}
.mobile-nav-links a:hover {
  color: var(--olive);
  background: rgba(74,94,26,0.06);
  border-left-color: var(--olive);
  padding-left: 30px;
}

/* Icons */
.mobile-nav-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--olive);
  opacity: 0.75;
}
.mobile-nav-icon svg { width: 20px; height: 20px; }

/* ── Social section ── */
.mobile-nav-social {
  padding: 25px 20px 20px;
  border-top: 1px solid rgba(74,94,26,0.12);
  background: #f7f9f3;
  flex-shrink: 0;
}
.mobile-nav-social-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 12px;
  opacity: 0.65;
}
.mobile-nav-social-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 9px;
  align-items: center;
}
.mobile-nav-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sc);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mobile-nav-social-link:hover {
  transform: translateY(-3px) scale(1.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.mobile-nav-social-link svg { width: 18px; height: 18px; display: block; }

/* ── Close button ── */
.mobile-nav-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 16px; cursor: pointer;
  color: #fff; line-height: 1;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.35); }

.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1999;
}
.nav-overlay.open { display: block; }

/* ===== BIO MODAL (mobile Read More) ===== */
.bio-modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 3000;
  align-items: flex-end;
}
.bio-modal.open { display: flex; }

.bio-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}

.bio-modal-sheet {
  position: relative; z-index: 1;
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 12px 24px 40px;
  max-height: 82vh;
  overflow-y: auto;
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.bio-modal-handle {
  width: 40px; height: 4px;
  background: #ddd; border-radius: 4px;
  margin: 0 auto 20px;
}

.bio-modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: #aaa; line-height: 1;
  transition: color 0.2s;
}
.bio-modal-close:hover { color: #333; }

.bio-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 400;
  color: #111;
  margin-bottom: 18px;
  padding-right: 30px;
}

.bio-modal-sheet p {
  font-size: 14.5px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 16px;
}
.bio-modal-sheet p:last-child { margin-bottom: 0; }
.bio-modal-sheet em { font-style: italic; color: var(--olive); }

/* ===== TABLET ===== */
@media (max-width: 900px) {
  header { padding: 12px 24px; }
  .logo-img { width: 85px; height: 85px; }
  .logo-text { font-size: 14px; }
  footer { padding: 18px 24px; }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {

  /* Header: hamburger | logo (center) | icons */
  header {
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 44px 1fr 56px;
    align-items: center;
    min-height: 72px;
  }

  .hamburger { display: flex; justify-self: start; }

  .logo { justify-self: center; gap: 6px; }
  .logo-img { width: 75px; height: 75px; }
  .logo-text { font-size: 10.5px; line-height: 1.4; }

  .header-icons { justify-self: end; gap: 12px; }
  .header-icons svg { width: 19px; height: 19px; }

  nav { display: none; }

  /* Hero — full screen */
  .hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center top;
  }

  .hero-overlay { background: rgba(0,0,0,0.48); }

  .hero-content {
    padding: 85px 22px 36px;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 14px;
    line-height: 1.15;
  }

  .hero-divider { width: 40px; margin-bottom: 14px; }

  .hero-desc-main { font-size: 13px; line-height: 1.8; }

  /* Hide desktop expand, show modal button instead */
  .hero-desc-toggle { display: none !important; }

  .hero-read-more { font-size: 12.5px; padding: 9px 24px; margin-top: 16px; }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 10px;
  }
  footer .social-links { flex-wrap: wrap; justify-content: center; }
}
/* ===== SEARCH MODAL – FULL SCREEN ===== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #f7f9f2 0%, #eef2e4 40%, #fff 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
}
.search-modal.open {
  opacity: 1;
  visibility: visible;
}

/* ── TOP BAR ── */
.search-modal-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,94,26,0.12);
  flex-shrink: 0;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.search-modal.open .search-modal-topbar {
  transform: translateY(0);
}

/* Search icon inside bar */
.search-topbar-icon {
  width: 26px; height: 26px;
  stroke: var(--olive);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  flex-shrink: 0;
}

/* Input field */
.search-modal-topbar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1.25rem;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  outline: none;
  caret-color: var(--olive);
}
.search-modal-topbar input::placeholder { color: #bbb; }

.search-go-btn {
  padding: 10px 28px;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.search-go-btn:hover  { background: var(--olive-dark); }
.search-go-btn:active { transform: scale(0.96); }

.search-modal-close {
  background: #f0f3ea;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #555;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.search-modal-close:hover { background: var(--olive); color: #fff; }

/* ── BODY (results area) ── */
.search-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 36px 40px 60px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.search-modal.open .search-modal-body {
  opacity: 1;
  transform: translateY(0);
}

/* ── HINT / EMPTY STATES ── */
.search-hint, .search-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  gap: 14px;
  color: #bbb;
  font-size: 1.05rem;
  text-align: center;
}
.search-hint-icon, .search-no-results-icon {
  font-size: 52px;
  opacity: 0.4;
}
.search-hint strong, .search-no-results strong { color: #999; }

/* ── RESULTS GRID (2-col on desktop) ── */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── RESULT CARD ── */
.search-result-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(74,94,26,0.08), 0 1px 4px rgba(0,0,0,0.05);
  border: 1px solid rgba(74,94,26,0.08);
  transition: box-shadow 0.22s, transform 0.22s;
  animation: fadeInUp 0.35s ease both;
}
.search-result-item:hover {
  box-shadow: 0 8px 32px rgba(74,94,26,0.15), 0 2px 8px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

/* Book cover */
.search-result-img {
  width: 80px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  background: #f0f3ea;
}
.search-result-img-placeholder {
  width: 80px; height: 112px;
  border-radius: 8px;
  background: linear-gradient(145deg, #e8eedb, #c5d29a);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

/* Text info */
.search-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-cat {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  background: rgba(74,94,26,0.08);
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
  width: fit-content;
}

.search-result-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #1a1a1a;
  line-height: 1.35;
  font-weight: 700;
}

.search-result-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-btn {
  margin-top: auto;
  padding: 9px 20px;
  background: var(--olive);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-block;
  width: fit-content;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
}
.search-result-btn:hover  { background: var(--olive-dark); }
.search-result-btn:active { transform: scale(0.96); }
.search-result-btn.soon {
  background: #d0d0d0;
  cursor: default;
  color: #888;
}

/* Results count label */
.search-results-label {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 20px;
  font-style: italic;
}
.search-results-label strong { color: var(--olive); font-style: normal; }

/* ── MOBILE ── */
@media (max-width: 700px) {
  .search-modal-topbar {
    padding: 12px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .search-topbar-icon { width: 20px; height: 20px; flex-shrink: 0; }
  .search-modal-topbar input {
    font-size: 0.9rem;
    min-width: 0;
    flex: 1;
  }
  .search-go-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .search-modal-close {
    width: 34px; height: 34px;
    font-size: 14px;
    flex-shrink: 0;
  }
  .search-modal-body { padding: 20px 14px 40px; }
  .search-results-grid { grid-template-columns: 1fr; gap: 14px; }
  .search-result-item { padding: 14px; gap: 14px; }
  .search-result-img,
  .search-result-img-placeholder { width: 70px; height: 98px; }
  .search-result-title { font-size: 0.97rem; }
  .search-result-desc { font-size: 0.83rem; -webkit-line-clamp: 2; }
  .search-result-btn { padding: 8px 16px; font-size: 0.8rem; }
}
/* ===== VIDEO SLIDER SECTION ===== */
.videos-section {
  position: relative;
  padding: 80px 0 60px;
  background: #f7f9f2;
  overflow: hidden;
}

.videos-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}
.videos-label {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 8px;
}
.videos-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--olive-dark);
  font-weight: 700;
}

/* ── Slider wrapper ── */
.videos-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}
.videos-track-outer {
  flex: 1;
  overflow: hidden;
  padding: 16px 0 24px;
}
.videos-track {
  display: flex;
  gap: 22px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  padding: 0 40px;
}

/* ── Arrow buttons ── */
.videos-arrow {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: #fff;
  border: 1.5px solid rgba(74,94,26,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--olive);
  z-index: 2;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  margin: 0 10px;
  box-shadow: 0 2px 12px rgba(74,94,26,0.12);
}
.videos-arrow:hover {
  background: var(--olive);
  color: #fff;
  border-color: var(--olive);
}
.videos-arrow:active { transform: scale(0.93); }
.videos-arrow:disabled { opacity: 0.3; cursor: default; }
.videos-arrow svg { width: 20px; height: 20px; }

/* ── Video Card ── */
.video-card {
  flex-shrink: 0;
  width: 280px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(74,94,26,0.1), 0 1px 6px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  border: 1px solid rgba(74,94,26,0.07);
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(74,94,26,0.18), 0 4px 12px rgba(0,0,0,0.08);
}

/* Thumbnail */
.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #1a1a1a;
}
.video-card-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.88);
}
.video-card:hover .video-card-thumb img {
  transform: scale(1.04);
  filter: brightness(0.65);
}

/* Dark overlay */
.video-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.18);
  transition: background 0.3s;
}
.video-card:hover .video-card-overlay {
  background: rgba(0,0,0,0.38);
}

/* Play button */
.video-play-btn {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.25s, background 0.2s;
}
.video-play-btn svg {
  width: 22px; height: 22px;
  fill: var(--olive-dark);
  margin-left: 3px; /* optical center */
}
.video-card:hover .video-play-btn {
  transform: scale(1.12);
  background: #fff;
}

/* YouTube badge */
.video-card-yt-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 8px 4px 6px;
  border-radius: 6px;
  display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(4px);
}

/* Info row below thumb */
.video-card-info {
  padding: 16px 18px 18px;
}
.video-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card-sub {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ── Dots ── */
.videos-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.videos-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(74,94,26,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.videos-dot.active {
  background: var(--olive);
  transform: scale(1.3);
}

/* ── YouTube CTA ── */
.videos-yt-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px auto 0;
  width: fit-content;
  padding: 13px 30px;
  background: #fff;
  border: 1.5px solid rgba(74,94,26,0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--olive-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(74,94,26,0.1);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.videos-yt-cta:hover {
  background: var(--olive-dark);
  color: #fff;
  box-shadow: 0 6px 24px rgba(74,94,26,0.25);
  transform: translateY(-2px);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .videos-section { padding: 60px 0 44px; }
  .videos-arrow { width: 38px; height: 38px; margin: 0 4px; }
  .videos-track { gap: 16px; padding: 0 16px; }
  .video-card { width: 230px; }
  .video-play-btn { width: 44px; height: 44px; }
  .video-play-btn svg { width: 18px; height: 18px; }
}
@media (max-width: 480px) {
  .video-card { width: 200px; }
  .videos-yt-cta { font-size: 0.82rem; padding: 11px 22px; }
}