/* ═══════════════════════════════════════════════════════════
   RESCUE THROUGH RECYCLING — Main Stylesheet
   A cosy cafe garden in pencil-crayon style
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --green-soft: #8faa7e;
  --green-deep: #5a6b4f;
  --green-light: #a3c28e;
  --green-pale: #c5ddb5;
  --green-dark: #3a4a2f;
  --cream: #faf6ee;
  --cream-warm: #f5e6d0;
  --cream-paper: #f8f1e4;
  --brown-card: #d4a76a;
  --brown-dark: #8b6b4a;
  --brown-light: #e8c99b;
  --terracotta: #c47a5a;
  --blue-soft: #7ba7c2;
  --blue-pale: #b8d4e3;
  --pink-soft: #e8a0a0;
  --pink-pale: #f0c8c8;
  --yellow-warm: #e8c44d;
  --orange-muted: #d4956a;
  --text-main: #3a3a2e;
  --text-light: #5a5a4e;
  --text-muted: #7a7a6e;
  --shadow-soft: 0 2px 12px rgba(90, 107, 79, 0.12);
  --shadow-hover: 0 4px 20px rgba(90, 107, 79, 0.18);
  --radius-soft: 16px;
  --radius-round: 24px;
  --font-hand: 'Patrick Hand', cursive;
  --font-body: 'Nunito', sans-serif;
  --transition-gentle: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Pencil-crayon paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(200, 180, 140, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse at 80% 20%, rgba(143, 170, 126, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(196, 122, 90, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-deep);
  color: #fff;
  padding: 8px 20px;
  border-radius: 0 0 var(--radius-soft) var(--radius-soft);
  z-index: 1000;
  font-family: var(--font-body);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(250, 246, 238, 0.95) 100%);
  border-bottom: 2px dashed var(--green-soft);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-deep);
  flex-shrink: 0;
}

.logo-elephant {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--green-deep);
  letter-spacing: 0.5px;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: var(--transition-gentle);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--green-deep);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-soft);
  transition: var(--transition-gentle);
  position: relative;
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible {
  background: var(--green-pale);
  color: var(--green-dark);
}
.nav-link.active {
  background: var(--green-soft);
  color: #fff;
}
.nav-link:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 2px;
}

/* ── Page system ── */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}
.page.active {
  display: block;
}

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

/* ── Sections ── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-title {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--green-deep);
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ── Hero scene (homepage) ── */
.hero-scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px 40px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(143, 170, 126, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 30%, rgba(123, 167, 194, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #eef3e8 0%, var(--cream) 40%, #f8f0e0 100%);
  overflow: hidden;
}

.hero-text {
  text-align: center;
  max-width: 640px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-hand);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--green-deep);
  margin-bottom: 12px;
  letter-spacing: 1px;
  line-height: 1.2;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

.hero-theme {
  font-family: var(--font-hand);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--terracotta);
  font-style: italic;
  margin-bottom: 12px;
}

.hero-intro {
  color: var(--text-light);
  font-size: 1rem;
}

/* ── Garden scene (illustrated clickable area) ── */
.garden-scene {
  position: relative;
  width: 100%;
  max-width: 900px;
  min-height: 500px;
  margin: 0 auto;
  z-index: 2;
}

/* Central elephant */
.scene-elephant {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  width: 160px;
  z-index: 3;
  pointer-events: none;
}
.elephant-main {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(90, 107, 79, 0.15));
  animation: elephantBob 4s ease-in-out infinite;
}

@keyframes elephantBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Scene objects — positioned around the garden */
.scene-object {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  z-index: 4;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.scene-object:hover, .scene-object:focus-visible {
  transform: translateY(-6px) scale(1.05);
  z-index: 5;
}
.scene-object:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 6px;
  border-radius: var(--radius-soft);
}

.obj-svg {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(90, 107, 79, 0.15));
  transition: filter 0.3s ease;
}
.scene-object:hover .obj-svg {
  filter: drop-shadow(0 4px 12px rgba(90, 107, 79, 0.25));
}

.obj-label {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--green-deep);
  background: var(--cream-paper);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1.5px dashed var(--brown-card);
  margin-top: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-gentle);
}
.scene-object:hover .obj-label {
  background: var(--brown-light);
  border-color: var(--terracotta);
}

.obj-tooltip {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--cream);
  padding: 4px 12px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--brown-light);
}
.scene-object:hover .obj-tooltip,
.scene-object:focus-visible .obj-tooltip {
  opacity: 1;
}

/* Position each object in the garden */
.obj-mugs      { top: 8%;  left: 8%; }
.obj-box       { top: 12%; right: 10%; }
.obj-preloved  { top: 55%; right: 5%; }
.obj-plant     { top: 60%; left: 5%; }
.obj-boots     { bottom: 8%; left: 15%; }
.obj-books     { bottom: 5%; right: 18%; }
.obj-stationery { bottom: 18%; left: 50%; transform: translateX(-50%); }

/* Footprints */
.footprints {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.footprint {
  position: absolute;
  width: 30px;
  opacity: 0.5;
}
.fp-1 { top: 35%; left: 30%; transform: rotate(-20deg); }
.fp-2 { top: 45%; left: 42%; transform: rotate(10deg); }
.fp-3 { top: 55%; right: 35%; transform: rotate(-15deg); }
.fp-4 { bottom: 25%; left: 38%; transform: rotate(25deg); }

/* Garden decorations */
.garden-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.decor-flowers {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 10%;
}
.flower {
  width: 25px;
  height: auto;
  animation: flowerSway 5s ease-in-out infinite;
}
.fl-1 { animation-delay: 0s; }
.fl-2 { animation-delay: 1.5s; }
.fl-3 { animation-delay: 3s; }

@keyframes flowerSway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* ── How It Works trail ── */
.trail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}

.trail-step {
  flex: 0 0 160px;
  text-align: center;
  padding: 16px 8px;
  position: relative;
}

.trail-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 8px;
  background: var(--cream-paper);
  border-radius: 50%;
  border: 2px dashed var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: var(--shadow-soft);
}
.trail-icon svg {
  width: 50px;
  height: 50px;
}

.trail-label-tag {
  display: inline-block;
  margin-bottom: 6px;
}
.trail-label-tag span {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  background: var(--green-soft);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trail-step h3 {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--green-deep);
  margin-bottom: 4px;
}
.trail-step p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.trail-connector {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  padding-top: 40px;
}
.trail-connector svg {
  width: 40px;
  height: 20px;
}

/* ── Article preview cards ── */
.article-preview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* ── Café card (universal content card) ── */
.cafe-card {
  background: var(--cream-paper);
  border: 2px solid var(--brown-light);
  border-radius: var(--radius-soft);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: var(--transition-gentle);
}
.cafe-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 1.5px dashed var(--green-soft);
  border-radius: calc(var(--radius-soft) + 3px);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.cafe-card:hover::before {
  opacity: 0.5;
}

.cafe-card h2 {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.cafe-card h3 {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.cafe-card p {
  margin-bottom: 12px;
  line-height: 1.7;
}
.cafe-card p:last-child {
  margin-bottom: 0;
}

.cafe-card ul, .cafe-card ol {
  margin: 12px 0;
  padding-left: 24px;
}
.cafe-card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-card-tag {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 0.8rem;
  background: var(--green-soft);
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.article-read-more {
  font-family: var(--font-hand);
  color: var(--terracotta);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-gentle);
}
.article-read-more:hover {
  color: var(--green-deep);
  text-decoration: underline;
}

.theme-quote {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--terracotta);
  font-style: italic;
  text-align: center;
  padding: 12px 0;
  border-top: 1.5px dashed var(--brown-light);
  border-bottom: 1.5px dashed var(--brown-light);
  margin: 16px 0;
}

.gentle-note {
  font-style: italic;
  text-align: center;
  color: var(--text-light);
  padding: 16px;
  border-left: 3px solid var(--green-soft);
  background: rgba(143, 170, 126, 0.06);
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
}

/* ── Page heroes ── */
.page-hero {
  text-align: center;
  padding: 50px 20px 30px;
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--green-deep);
  margin-bottom: 8px;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
}
.page-hero-icon {
  width: 100px;
  margin: 0 auto 16px;
}
.page-hero-icon svg {
  width: 100%;
  height: auto;
}

/* Page-specific hero backgrounds */
.about-hero {
  background: radial-gradient(ellipse at 50% 80%, rgba(212, 167, 106, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #f8f0e0 100%);
}
.help-hero {
  background: radial-gradient(ellipse at 50% 80%, rgba(143, 170, 126, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #eef3e8 100%);
}
.donate-hero {
  background: radial-gradient(ellipse at 50% 80%, rgba(212, 167, 106, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #f5ede0 100%);
}
.volunteer-hero {
  background: radial-gradient(ellipse at 50% 80%, rgba(139, 107, 74, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #f0e8dc 100%);
}
.shop-hero {
  background: radial-gradient(ellipse at 50% 80%, rgba(232, 201, 155, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #f5ede0 100%);
}
.stories-hero {
  background: radial-gradient(ellipse at 50% 80%, rgba(123, 167, 194, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #eef1f5 100%);
}
.contact-hero {
  background: radial-gradient(ellipse at 50% 80%, rgba(232, 196, 77, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, #f8f3e4 100%);
}

/* Content area */
.content-area {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* ── Solution list ── */
.solution-list {
  list-style: none;
  padding-left: 0;
}
.solution-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px dashed var(--brown-light);
}
.solution-list li:last-child {
  border-bottom: none;
}
.solution-list li::before {
  content: '🐘';
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

/* ── Donate list ── */
.donate-list {
  list-style: none;
  padding-left: 0;
}
.donate-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--brown-light);
}
.donate-list li:last-child { border-bottom: none; }

/* Not accepted */
.not-accepted {
  border-color: var(--pink-soft);
  background: #fdf5f5;
}

/* ── Donation checker ── */
.donation-checker {
  margin-top: 16px;
}

.checker-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.checker-btn {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  padding: 8px 16px;
  border: 2px dashed var(--brown-card);
  background: var(--cream-warm);
  border-radius: var(--radius-soft);
  cursor: pointer;
  transition: var(--transition-gentle);
  color: var(--text-main);
}
.checker-btn:hover, .checker-btn:focus-visible {
  background: var(--brown-light);
  border-color: var(--terracotta);
  transform: translateY(-2px);
}
.checker-btn[aria-pressed="true"] {
  background: var(--green-soft);
  color: #fff;
  border-color: var(--green-deep);
}
.checker-btn:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 2px;
}

.checker-result {
  min-height: 60px;
  padding: 16px;
  border-radius: var(--radius-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: var(--transition-gentle);
}
.checker-result.result-accepted {
  background: rgba(143, 170, 126, 0.12);
  border: 1.5px dashed var(--green-soft);
  color: var(--green-dark);
}
.checker-result.result-broken {
  background: rgba(232, 160, 160, 0.12);
  border: 1.5px dashed var(--pink-soft);
  color: #6b3a3a;
}
.checker-result.result-clothing {
  background: rgba(212, 167, 106, 0.12);
  border: 1.5px dashed var(--brown-card);
  color: var(--brown-dark);
}
.checker-result.result-other {
  background: rgba(123, 167, 194, 0.12);
  border: 1.5px dashed var(--blue-soft);
  color: #3a5a6b;
}

/* ── Volunteer roles ── */
.volunteer-roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.role-badge {
  background: var(--cream-paper);
  border: 2px dashed var(--brown-card);
  border-radius: var(--radius-round);
  padding: 24px 18px;
  text-align: center;
  transition: var(--transition-gentle);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.role-badge::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--green-soft);
  border-radius: 50%;
  border: 2px solid var(--cream);
  opacity: 0.7;
}
.role-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-soft);
}

.badge-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.role-badge h3 {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.role-badge p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Shop links ── */
.shop-links {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 24px;
}
.shop-links h2 {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--green-deep);
  margin-bottom: 8px;
}
.shop-links p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.shop-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.shop-link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  background: var(--cream-paper);
  border: 2px dashed var(--brown-card);
  border-radius: var(--radius-soft);
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-hand);
  font-size: 1.1rem;
  transition: var(--transition-gentle);
  box-shadow: var(--shadow-soft);
}
.shop-link-btn:hover {
  transform: translateY(-3px);
  border-color: var(--green-soft);
  box-shadow: var(--shadow-hover);
}
.shop-link-icon {
  font-size: 1.6rem;
}
.shop-link-btn small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Story cards ── */
.story-cards {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.story-card {
  background: var(--cream-paper);
  border: 2px solid var(--brown-light);
  border-radius: var(--radius-soft);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition-gentle);
}
.story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.story-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(143, 170, 126, 0.1);
  border-radius: 50%;
  border: 1.5px dashed var(--green-soft);
}

.story-card h3 {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.story-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ── Impact book ── */
.impact-book-section {
  text-align: center;
}

.impact-book {
  max-width: 420px;
  margin: 20px auto 0;
}

.book-frame {
  background: var(--cream-warm);
  border: 3px solid var(--brown-card);
  border-radius: 4px 16px 16px 4px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  position: relative;
  box-shadow:
    inset 3px 0 8px rgba(0,0,0,0.06),
    var(--shadow-soft);
}
.book-frame::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, var(--brown-dark) 0%, var(--brown-card) 100%);
  border-radius: 4px 0 0 4px;
}

.book-page-text {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--green-deep);
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

.book-page-num {
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-family: var(--font-hand);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.book-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.book-prev, .book-next {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  padding: 8px 18px;
  border: 2px dashed var(--brown-card);
  background: var(--cream-paper);
  border-radius: var(--radius-soft);
  cursor: pointer;
  color: var(--green-deep);
  transition: var(--transition-gentle);
}
.book-prev:hover:not(:disabled), .book-next:hover:not(:disabled) {
  background: var(--green-soft);
  color: #fff;
  border-color: var(--green-deep);
}
.book-prev:disabled, .book-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.book-prev:focus-visible, .book-next:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 2px;
}

/* ── Forms ── */
.form-card {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--brown-light);
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
  transition: var(--transition-gentle);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(143, 170, 126, 0.2);
}
.form-group textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-round);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-gentle);
  text-align: center;
}
.btn:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--green-soft);
  color: #fff;
  border-color: var(--green-deep);
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-secondary {
  background: var(--cream-paper);
  color: var(--green-deep);
  border-color: var(--brown-card);
}
.btn-secondary:hover {
  background: var(--brown-light);
  transform: translateY(-2px);
}

/* ── CTA section ── */
.cta-section {
  text-align: center;
  padding: 50px 20px 60px;
  background: radial-gradient(ellipse at 50% 50%, rgba(143, 170, 126, 0.08) 0%, transparent 70%);
}
.cta-section h2 {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--green-deep);
  margin-bottom: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 24px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Coming soon component ── */
.coming-soon-component {
  max-width: 480px;
  margin: 24px auto;
}
.coming-soon-sign {
  background: var(--cream-paper);
  border: 2px dashed var(--brown-card);
  border-radius: var(--radius-round);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.coming-soon-sign::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 16px;
  background: var(--brown-card);
  border-radius: 0 0 10px 10px;
}

.coming-soon-elephant {
  width: 100px;
  margin: 0 auto 10px;
  display: block;
}

.coming-soon-text {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.coming-soon-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Trunk animation */
.trunk-anim {
  animation: trunkWiggle 3s ease-in-out infinite;
  transform-origin: 60px 26px;
}
@keyframes trunkWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* Ellipsis animation */
.ellipsis-anim {
  display: inline-block;
  animation: ellipsisBlink 2s steps(4) infinite;
  width: 1.5em;
  text-align: left;
  vertical-align: bottom;
  overflow: hidden;
}
@keyframes ellipsisBlink {
  0% { width: 0; }
  25% { width: 0.5em; }
  50% { width: 1em; }
  75% { width: 1.5em; }
  100% { width: 0; }
}

/* ── Contact info ── */
.contact-info p {
  margin-bottom: 8px;
}

/* ── Footer ── */
.site-footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: 40px 20px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--green-soft) 0px,
    var(--green-soft) 12px,
    transparent 12px,
    transparent 20px
  );
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--green-pale);
  margin-bottom: 20px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 24px;
}
.footer-nav a {
  color: var(--green-pale);
  text-decoration: none;
  font-family: var(--font-hand);
  font-size: 0.9rem;
  transition: var(--transition-gentle);
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-elephant {
  margin: 16px auto;
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--green-light);
  opacity: 0.7;
}

/* ── Form success ── */
.form-success {
  text-align: center;
  padding: 24px;
  animation: fadeIn 0.4s ease;
}
.form-success p {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--green-deep);
}
.form-success .success-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 2px dashed var(--green-soft);
    padding: 12px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .nav-link {
    display: block;
    padding: 10px 16px;
    font-size: 1.05rem;
  }

  /* Mobile garden scene — vertical path */
  .garden-scene {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0 30px;
  }

  .scene-elephant {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 120px;
    margin-bottom: 10px;
  }

  .scene-object {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    flex-direction: row;
    gap: 14px;
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    background: var(--cream-paper);
    border: 2px dashed var(--brown-light);
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
  }
  .scene-object:hover {
    transform: translateY(-3px) !important;
    border-color: var(--green-soft);
  }

  .obj-svg {
    width: 55px;
    flex-shrink: 0;
  }

  .obj-label {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    font-size: 1.05rem;
  }

  .obj-tooltip {
    position: static;
    transform: none;
    opacity: 1;
    font-size: 0.8rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    color: var(--text-muted);
    white-space: normal;
  }

  .footprints, .garden-decor {
    display: none;
  }

  /* Trail */
  .trail {
    flex-direction: column;
    align-items: center;
  }
  .trail-step {
    flex: none;
    width: 100%;
    max-width: 280px;
  }
  .trail-connector {
    transform: rotate(90deg);
    padding: 0;
    flex: none;
  }

  /* Article previews */
  .article-preview-section {
    grid-template-columns: 1fr;
  }

  /* Volunteer roles */
  .volunteer-roles {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .hero-scene {
    min-height: auto;
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.05rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .volunteer-roles {
    grid-template-columns: 1fr;
  }
  .shop-buttons {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .story-card {
    flex-direction: column;
    text-align: center;
  }
  .story-icon {
    margin: 0 auto;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── High contrast / focus ── */
@media (forced-colors: active) {
  .btn, .nav-link, .scene-object, .checker-btn, .role-badge, .shop-link-btn {
    border: 2px solid ButtonText;
  }
}
