/* ==========================================================================
   MOUNTAIN GORILLA LEGACIES PAGE STYLES (ecotours/css/gorilla.css)
   ========================================================================== */

:root {
  --forest: #1b3a2b;
  --forest-deep: #122a1f;
  --gold: #c9a24b;
  --cream: #f6f2e9;
  --charcoal: #1f2620;
  --sage: #6e8270;
  --text-dark: #2c352d;
  --text-medium: #4a554c;
  --bg-light: #f8f6f0;
  --white: #ffffff;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
}

/* Global Reset & Padding */
.section-padding {
  padding: 5rem 0;
}
.bg-light {
  background-color: var(--bg-light);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION (.gorilla-hero)
   -------------------------------------------------------------------------- */
.gorilla-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/gorilla/hero.jpg') center center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  overflow: hidden;
}

.gorilla-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 42, 31, 0.75) 0%, rgba(18, 42, 31, 0.88) 100%);
  z-index: 1;
}

.gorilla-hero .container {
  position: relative;
  z-index: 2;
}

.gorilla-hero .hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.gorilla-hero .hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(201, 162, 75, 0.25);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.gorilla-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.gorilla-hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.gorilla-hero .hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: #b8913d;
  border-color: #b8913d;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   2. DIAN FOSSEY HISTORY SECTION (.history-section)
   -------------------------------------------------------------------------- */
.history-section {
  background: var(--white);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.history-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.history-image .main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.history-image .img-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--forest);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.history-image .img-badge .year {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.history-image .img-badge .text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-top: 4px;
}

.history-text .section-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.history-text .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--forest);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.history-text .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--sage);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.history-text p {
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.stat-boxes {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: var(--bg-light);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
  flex: 1;
}

.stat-box .number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--forest);
  display: block;
  line-height: 1;
}

.stat-box .label {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-top: 4px;
  display: block;
}

.fossey-quote {
  border-left: 3px solid var(--forest);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 1.5rem;
}

.fossey-quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   3. FAMILIES EXPLORER GRID (.families-section)
   -------------------------------------------------------------------------- */
.section-header {
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header .section-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.section-header .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--forest);
  margin-bottom: 1rem;
}

.section-header .section-desc {
  color: var(--text-medium);
  font-size: 1.1rem;
  line-height: 1.6;
}

.families-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.family-card-modern {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.family-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.family-card-modern .card-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.family-card-modern .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.family-card-modern:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.family-card-modern .card-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--forest);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.family-card-modern .card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.family-card-modern h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.family-card-modern .slogan {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 500;
}

.family-card-modern .description {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.family-card-modern .descendants {
  margin-bottom: 1.5rem;
}

.family-card-modern .descendants .label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 0.5rem;
}

.family-card-modern .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.family-card-modern .tag {
  background: var(--bg-light);
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(27, 58, 43, 0.1);
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.btn-text:hover {
  color: var(--gold);
}

.btn-text i {
  transition: transform 0.3s ease;
}

.btn-text:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. OTHER REMARKABLE FAMILIES (.more-families)
   -------------------------------------------------------------------------- */
.more-families {
  background: var(--white);
}

.more-families .subsection-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--forest);
  text-align: center;
  margin-bottom: 2.5rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.mini-card {
  background: var(--bg-light);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mini-card:hover {
  background: var(--forest);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mini-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--forest);
  transition: color 0.3s ease;
}

.mini-card:hover h4 {
  color: var(--gold);
}

.mini-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.mini-card:hover p {
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   5. CALL TO ACTION (.gorilla-cta)
   -------------------------------------------------------------------------- */
.gorilla-cta {
  background: var(--forest);
  color: var(--white);
}

.cta-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.cta-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
}

.cta-btns {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--forest);
}

/* --------------------------------------------------------------------------
   6. STORY MODAL (#storyModal)
   -------------------------------------------------------------------------- */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.story-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}

.story-modal .modal-container {
  position: relative;
  z-index: 2;
  background: var(--white);
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.story-modal.active .modal-container {
  transform: translateY(0);
}

.story-modal .modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-light);
  border: none;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: background 0.3s ease;
}

.story-modal .modal-close:hover {
  background: var(--forest);
  color: var(--white);
}

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.modal-slogan {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.modal-desc {
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 1.05rem;
}
