/* ==========================================================================
   Elephant Pang-Boon Family — Sylva Living Green Theme
   Architecture: Lightweight High-Performance Vanilla CSS
   Optimized for: Mobile 4G/5G, High-DPI screens, Zero GPU lag (No WebGL)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@200;300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600&display=swap');

:root {
  /* Design Tokens — Sylva Living Green & Elephant Sanctuary Palette */
  --bg-moss-deep: #1d211b;
  --bg-moss-base: #343830;
  --bg-moss-light: #454a3e;
  --bg-moss-floor: #505649;
  
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-faint: rgba(255, 255, 255, 0.45);
  --ink-dim: rgba(255, 255, 255, 0.28);
  
  --card-paper: #f4f5f0;
  --card-ink: #22261e;
  --card-label: #6e7467;
  --card-border: rgba(255, 255, 255, 0.12);
  
  --accent-leaf: #89b16c;
  --accent-leaf-bright: #a4ce83;
  --accent-gold: #d4a964;
  --accent-gold-soft: rgba(212, 169, 100, 0.18);
  
  --dock-bg: rgba(33, 38, 30, 0.78);
  --dock-border: rgba(255, 255, 255, 0.14);
  --dock-hover: rgba(43, 50, 39, 0.94);
  
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-pill: 999px;
  --radius-card: 36px;
  --radius-inner: 24px;
}

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

html {
  background-color: var(--bg-moss-deep);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-moss-deep);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Classes */
.font-heading {
  font-family: 'Lexend', 'Sarabun', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Lexend', 'Sarabun', sans-serif;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Floating Glass Dock Navigation (Sylva Signature)
   ========================================================================== */
.dock-wrap {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  padding: 0 16px;
  transition: transform 0.4s var(--ease-smooth);
}

.dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid var(--dock-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 48%),
    var(--dock-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 12px 32px rgba(10, 14, 8, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.3s var(--ease-smooth);
}

.dock-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.22s var(--ease-smooth);
}

.dock-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.dock-item.is-active {
  background: var(--card-paper);
  border-color: var(--card-paper);
  color: var(--card-ink);
  box-shadow: 0 4px 14px rgba(10, 14, 8, 0.28);
  font-weight: 600;
}

.dock-item.is-active .glyph svg {
  stroke: var(--card-ink);
}

.dock-mark {
  width: 40px;
  padding: 0;
  background: #eef2e6;
  border-color: #eef2e6;
  color: #23271e;
  border-radius: 14px;
}

.dock-mark:hover {
  background: #ffffff;
  color: #1a1e16;
}

.dock-mark svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.dock-item .glyph {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.dock-item .glyph svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Language Pill Switcher in Dock */
.dock-lang {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-pill-btn {
  padding: 4px 9px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.lang-pill-btn:hover {
  color: var(--ink);
}

.lang-pill-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Enter/Book CTA Pill in Dock */
.dock-item--cta {
  background: linear-gradient(135deg, rgba(137, 177, 108, 0.28), rgba(212, 169, 100, 0.22));
  border-color: rgba(137, 177, 108, 0.42);
  color: #ffffff;
  font-weight: 600;
}

.dock-item--cta:hover {
  background: linear-gradient(135deg, rgba(137, 177, 108, 0.45), rgba(212, 169, 100, 0.38));
  border-color: rgba(137, 177, 108, 0.7);
  box-shadow: 0 0 16px rgba(137, 177, 108, 0.35);
}

/* ==========================================================================
   Hero Section (Cinematic Sanctuary & Sylva Atmospheric Layout)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-moss-deep);
  padding: 120px 5% 80px;
}

/* Hero Multi-Layer Backgrounds (Zero GPU overhead, super fast) */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('images/hero_home.jpg');
  background-size: cover;
  background-position: center 36%;
  filter: brightness(0.66) contrast(1.08) saturate(0.96);
  transform: scale(1.38) translate(-18%, 0%);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}

/* Mode: Moss Sanctuary Atmosphere vs Pure Elephant View */
.hero.mode-moss .hero-bg-image {
  opacity: 0.48;
  filter: brightness(0.5) contrast(1.15) saturate(0.85);
}

.hero.mode-elephant .hero-bg-image {
  opacity: 0.85;
  filter: brightness(0.68) contrast(1.05) saturate(1.02);
}

/* Ambient Radial Light Pool (The signature Sylva floor lighting) */
.hero-light-pool {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 30% 80%, rgba(238, 243, 231, 0.16) 0%, rgba(238, 243, 231, 0) 70%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(20, 24, 18, 0.55) 0%, rgba(20, 24, 18, 0) 65%),
    linear-gradient(180deg, rgba(29, 33, 27, 0.72) 0%, rgba(36, 41, 33, 0.3) 45%, rgba(29, 33, 27, 0.95) 100%);
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

/* Left Column: Headlines, Lead, Liquid Button, Controls, Counters */
.hero-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Theme Variant Switcher Widget */
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-leaf-bright);
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.hero-pill-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-leaf-bright);
  box-shadow: 0 0 8px var(--accent-leaf-bright);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Headline Styling */
.hero-headline {
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-shadow: 0 4px 24px rgba(10, 14, 8, 0.4);
}

.hero-headline .highlight {
  font-weight: 400;
  background: linear-gradient(180deg, #ffffff 40%, #e2ecd9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline .subline {
  display: block;
  font-size: 0.65em;
  font-weight: 300;
  color: var(--ink-soft);
  margin-top: 6px;
  -webkit-text-fill-color: initial;
}

/* Lede Paragraph */
.hero-lede {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 620px;
  font-weight: 300;
}

/* Actions Row: Explore Pill + Play Video Button */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Pure CSS Liquid-Metal Explore Button (Ultra Fast, No WebGL) */
.liquid-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px 16px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 48%, rgba(0, 0, 0, 0.12) 100%),
    rgba(28, 33, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 24px rgba(10, 14, 8, 0.4),
    0 1px 2px rgba(255, 255, 255, 0.18) inset,
    0 -1px 2px rgba(0, 0, 0, 0.3) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.liquid-pill-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 220%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: 0;
  transform: rotate(25deg);
  transition: opacity 0.4s ease, transform 0.6s ease;
  pointer-events: none;
}

.liquid-pill-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow:
    0 14px 34px rgba(10, 14, 8, 0.5),
    0 0 20px rgba(137, 177, 108, 0.32);
}

.liquid-pill-btn:hover::before {
  opacity: 1;
  transform: rotate(25deg) translateY(10%);
}

.liquid-pill-btn .btn-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.liquid-pill-btn .btn-icon svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
}

/* Play Video Ring Button */
.play-action-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.play-ring-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(30, 35, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  transition: all 0.3s var(--ease-smooth);
}

.play-ring-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0.6;
  animation: ripple-ring 2.8s infinite var(--ease-smooth);
}

@keyframes ripple-ring {
  0% { transform: scale(0.92); opacity: 0.7; }
  60% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

.play-action-wrap:hover .play-ring-btn {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.08);
}

.play-action-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero Conservation Telemetry Counters */
.hero-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  max-width: 680px;
}

.counter-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.counter-stat .num {
  font-family: 'Lexend', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
}

.counter-stat .num span {
  color: var(--accent-leaf-bright);
}

.counter-stat .label {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-faint);
  line-height: 1.35;
}

/* ==========================================================================
   Right Column: Sylva-Styled Floating Glass Cards
   ========================================================================== */
.hero-cards-cluster {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

/* Sylva Glass Card */
.sylva-card {
  position: relative;
  background: var(--card-paper);
  border-radius: var(--radius-card);
  padding: 24px;
  color: var(--card-ink);
  box-shadow: 
    0 24px 54px rgba(12, 16, 10, 0.35),
    0 2px 6px rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  max-width: 440px;
}

.sylva-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 32px 70px rgba(12, 16, 10, 0.48),
    0 2px 8px rgba(255, 255, 255, 0.7) inset;
}

.sylva-card--ethos {
  align-self: flex-start;
  width: 100%;
}

.sylva-card--giant {
  align-self: flex-end;
  width: 100%;
  margin-top: -16px;
}

/* Portal Photo Window */
.portal-window {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: var(--radius-inner);
  overflow: hidden;
  background: #252b22;
  margin-bottom: 18px;
}

.portal-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease-out);
}

.sylva-card:hover .portal-window img {
  transform: scale(1.08);
}

.portal-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(26, 30, 24, 0.68);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sylva-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.sylva-card-info .label {
  font-size: 12px;
  font-weight: 500;
  color: var(--card-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.sylva-card-info h3 {
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--card-ink);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.sylva-card-info p {
  font-size: 13px;
  color: #555b4e;
  margin-top: 4px;
  line-height: 1.45;
}

/* Circular Interactive Knob Button */
.card-knob-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(18, 22, 16, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #383e32;
  transition: all 0.3s var(--ease-out);
}

.card-knob-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: transform 0.3s ease;
}

.sylva-card:hover .card-knob-btn {
  transform: rotate(45deg) scale(1.06);
  background: #252b22;
  color: #ffffff;
}

/* ==========================================================================
   Section Common Styling
   ========================================================================== */
.section {
  position: relative;
  padding: 100px 5%;
  max-width: 1520px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(137, 177, 108, 0.14);
  border: 1px solid rgba(137, 177, 108, 0.3);
  color: var(--accent-leaf-bright);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   Section: Sanctuary Story & Ethical Charter
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.story-lead {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.45;
  color: #e5ece0;
}

.story-body {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.charter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.charter-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.charter-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(137, 177, 108, 0.2);
  border: 1px solid rgba(137, 177, 108, 0.4);
  color: var(--accent-leaf-bright);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.charter-text h4 {
  font-size: 1.05rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 3px;
}

.charter-text p {
  font-size: 0.95rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

.story-media-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(10, 14, 8, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.story-media-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.story-media-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 18px 24px;
  border-radius: var(--radius-inner);
  background: rgba(28, 33, 26, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.story-media-badge h4 {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.story-media-badge p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Section: Meet The Herd (Elephant Roster)
   ========================================================================== */
.elephants-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.elephant-card {
  background: var(--card-paper);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10, 14, 8, 0.35);
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.elephant-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 65px rgba(10, 14, 8, 0.45);
}

.elephant-card-media {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #252b22;
}

.elephant-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.elephant-card:hover .elephant-card-media img {
  transform: scale(1.06);
}

.elephant-age-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(33, 38, 30, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.elephant-card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.elephant-name {
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--card-ink);
  margin-bottom: 6px;
}

.elephant-personality {
  font-size: 13px;
  color: var(--card-label);
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.elephant-bio {
  font-size: 0.95rem;
  color: #4b5244;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.elephant-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.elephant-story-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--card-ink);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.elephant-story-btn:hover {
  color: #496a32;
}

.elephant-video-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(212, 169, 100, 0.16);
  border: 1px solid rgba(212, 169, 100, 0.35);
  color: #9c6c22;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.elephant-video-pill:hover {
  background: rgba(212, 169, 100, 0.3);
}

/* ==========================================================================
   Section: Sanctuary Eco Programs
   ========================================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}

.program-card {
  background: rgba(36, 42, 33, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  padding: 34px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease-smooth);
  position: relative;
}

.program-card.featured {
  border-color: rgba(137, 177, 108, 0.45);
  background: 
    linear-gradient(180deg, rgba(137, 177, 108, 0.12) 0%, rgba(36, 42, 33, 0.8) 40%),
    rgba(36, 42, 33, 0.85);
  box-shadow: 0 0 40px rgba(137, 177, 108, 0.18);
}

.program-badge {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-leaf-bright);
  color: #1a2215;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.program-duration {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-leaf-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.program-title {
  font-size: 1.8rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 12px;
}

.program-desc {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}

.program-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.program-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #d8e2d2;
}

.program-features li svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-leaf-bright);
  fill: none;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.program-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.program-price {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-family: 'Lexend', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #ffffff;
}

.price-sub {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-book-now {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--card-paper);
  color: var(--card-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.btn-book-now:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Section: Direct Booking Engine (Phase 2 Fast Reservation)
   ========================================================================== */
.booking-section-wrap {
  background: 
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(137, 177, 108, 0.12) 0%, transparent 70%),
    rgba(27, 31, 25, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  padding: 60px 8%;
  box-shadow: 0 40px 90px rgba(10, 14, 8, 0.5);
  margin-top: 40px;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--accent-leaf-bright);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 16px rgba(137, 177, 108, 0.25);
}

.field-select option {
  background: var(--bg-moss-deep);
  color: #ffffff;
}

.btn-submit-booking {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #89b16c, #6c974e);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(108, 151, 78, 0.38);
  transition: all 0.3s var(--ease-smooth);
}

.btn-submit-booking:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(108, 151, 78, 0.5);
  background: linear-gradient(135deg, #96c078, #74a254);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 5% 40px;
  background: #171a15;
}

.footer-inner {
  max-width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-brand p {
  color: var(--ink-faint);
  max-width: 420px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-leaf-bright);
}

.footer-bottom {
  max-width: 1520px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-dim);
}

/* ==========================================================================
   Video / Story Modal Component
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 18, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: var(--bg-moss-base);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.94);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: grid;
  place-items: center;
  z-index: 10;
  font-size: 18px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.modal-video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.modal-video-box iframe, .modal-video-box video {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Responsive Adaptations (Mobile-First Polish)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 20px;
  }
  
  .hero-cards-cluster {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .sylva-card {
    max-width: 100%;
    flex: 1 1 calc(50% - 12px);
  }
  
  .sylva-card--giant {
    margin-top: 0;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Screens (Phones & Small Tablets) */
@media (max-width: 768px) {
  /* Fix oversized background on mobile: 
     Lock backdrop to viewport height so 16:9 image doesn't blow up 800% over tall content */
  .hero-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    min-height: 100vh;
    overflow: hidden;
  }

  .hero-bg-image {
    background-size: cover;
    background-position: 62% 20%; /* Centers the elephant silhouette & face properly on mobile screens */
    transform: none;
    filter: brightness(0.55) contrast(1.1) saturate(0.9);
  }

  .hero.mode-elephant .hero-bg-image {
    opacity: 0.82;
    filter: brightness(0.64) contrast(1.08) saturate(1);
    background-position: 62% 22%;
  }

  .hero.mode-moss .hero-bg-image {
    opacity: 0.45;
    filter: brightness(0.48) contrast(1.18) saturate(0.85);
  }

  /* Smooth gradient transition from hero image to deep forest ground */
  .hero-light-pool {
    background:
      radial-gradient(circle at 50% 25%, rgba(238, 243, 231, 0.14) 0%, transparent 65%),
      linear-gradient(180deg, 
        rgba(29, 33, 27, 0.65) 0%, 
        rgba(29, 33, 27, 0.45) 35%, 
        rgba(29, 33, 27, 0.88) 75%, 
        var(--bg-moss-deep) 100%);
  }

  .hero {
    padding: 85px 5% calc(110px + env(safe-area-inset-bottom, 0px));
    min-height: auto;
  }

  .hero-stage {
    gap: 36px;
  }

  .hero-headline {
    font-size: clamp(2.1rem, 7.8vw, 2.7rem);
    line-height: 1.15;
  }

  .hero-lede {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .hero-actions {
    gap: 16px;
  }

  .liquid-pill-btn {
    padding: 14px 26px 14px 18px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .play-action-wrap {
    width: 100%;
    justify-content: center;
    padding: 6px 0;
  }

  .hero-counters {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px;
    background: rgba(28, 33, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-inner);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .counter-stat .num {
    font-size: 1.55rem;
  }

  .sylva-card {
    flex: 1 1 100%;
    padding: 20px;
    border-radius: 28px;
  }

  .portal-window {
    height: 140px;
  }

  .sylva-card-info h3 {
    font-size: 1.25rem;
  }

  /* Bottom Floating Dock Navigation on Mobile */
  .dock-wrap {
    top: auto;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    padding: 0 12px;
    width: 100%;
  }
  
  .dock {
    width: 100%;
    max-width: 440px;
    justify-content: space-around;
    border-radius: var(--radius-pill);
    gap: 2px;
    padding: 6px;
    background: rgba(24, 28, 22, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  }
  
  .dock-item {
    height: 38px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 12px;
  }
  
  .dock-item span:not(.glyph) {
    display: none;
  }
  
  .dock-item .glyph {
    margin: 0;
    width: 18px;
    height: 18px;
  }

  .dock-mark {
    width: 38px;
  }

  .dock-lang {
    padding: 2px;
    border-radius: 10px;
  }

  .lang-pill-btn {
    padding: 3px 7px;
    font-size: 10px;
  }
  
  .booking-form-grid {
    grid-template-columns: 1fr;
  }

  .booking-section-wrap {
    padding: 40px 6%;
    border-radius: 28px;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }
}

