/* ===================================================
   Our Elephants Page — our-elephants.css
   Depends on styles.css being loaded first.
   Only contains styles not already in styles.css.
   =================================================== */

/* ---------------------------------------------------
   PAGE HERO
   Shared pattern across blog, contact, faq, about.
   Move to styles.css once all pages are rebuilt.
   --------------------------------------------------- */
.page-hero {
  padding-top: var(--nav-height);
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 56px;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-text-light);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.page-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--color-text);
  margin-bottom: 12px;
}

.page-hero-inner .lead {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 580px;
  line-height: 1.7;
}

/* ---------------------------------------------------
   ELEPHANTS SECTION
   --------------------------------------------------- */
.elephants-section {
  padding: 80px 0 100px;
  background: var(--color-bg);
}

/* Intro block */
.elephants-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}

.elephants-intro h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.elephants-intro p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ---------------------------------------------------
   ELEPHANT PROFILE — full-width alternating layout
   --------------------------------------------------- */
.elephant-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
}

/* Odd profiles: image left, content right (default) */
/* Even profiles: image right, content left */
.elephant-profile--reverse {
  direction: rtl;
}

.elephant-profile--reverse > * {
  direction: ltr;
}

/* ── Image column ── */
.elephant-profile-image {
  position: relative;
}

.elephant-profile-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  display: block;
}

.elephant-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

.elephant-badge--green {
  background: #3a7d44;
}

.elephant-badge--amber {
  background: #b07d2a;
}

/* ── Content column ── */
.elephant-profile-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.elephant-name {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--color-text);
  margin: 0;
  line-height: 1.1;
}

/* Rescue story block */
.elephant-story {
  background: var(--color-bg-light);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
}

.story-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.elephant-story p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;
}

/* ── Stats grid ── */
.elephant-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

/* Last two items — remove bottom border */
.stat-row:nth-last-child(-n+2):not(.stat-row--full) {
  border-bottom: none;
}

/* Full-width row (interesting fact) */
.stat-row--full {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
  background: rgba(81, 91, 32, 0.04);
}

/* Right column cells — no right border */
.stat-row:nth-child(even):not(.stat-row--full) {
  border-right: none;
}

.stat-row dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.stat-row dt svg {
  width: 14px;
  height: 14px;
  fill: var(--color-primary);
  flex-shrink: 0;
}

.stat-row dd {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}

/* ---------------------------------------------------
   BOTTOM CTA BLOCK
   --------------------------------------------------- */
.elephants-cta {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--color-border);
}

.elephants-cta-inner {
  background: var(--color-primary);
  border-radius: 16px;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.elephants-cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  margin: 0;
}

.elephants-cta-inner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  line-height: 1.8;
  margin: 0;
}

.elephants-cta-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Outline button variant on dark background */
.elephants-cta-inner .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.elephants-cta-inner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* ---------------------------------------------------
   WHATSAPP BUTTON
   Shared pattern — move to styles.css when all
   pages are done.
   --------------------------------------------------- */
.wa-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.wa-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.wa-button img {
  width: 28px;
  height: 28px;
}

.wa-message {
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ---------------------------------------------------
   RESPONSIVE
   --------------------------------------------------- */
@media (max-width: 1024px) {
  .elephant-profile {
    gap: 48px;
  }

  .elephants-cta-inner {
    padding: 48px 40px;
  }
}

@media (max-width: 768px) {
  .elephant-profile,
  .elephant-profile--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
    padding: 48px 0;
  }

  .elephant-profile--reverse > * {
    direction: ltr;
  }

  .elephant-stats {
    grid-template-columns: 1fr 1fr;
  }

  .elephants-cta-inner {
    padding: 40px 28px;
  }

  .elephants-intro {
    margin-bottom: 48px;
  }

  .elephants-section {
    padding: 56px 0 72px;
  }
}

@media (max-width: 480px) {
  .elephant-stats {
    grid-template-columns: 1fr;
  }

  /* On single-column stats, remove the right border and fix bottom borders */
  .stat-row {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .stat-row:last-child {
    border-bottom: none;
  }

  .elephants-cta-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .elephants-cta-btns .btn {
    text-align: center;
  }

  .page-hero-inner {
    padding: 48px 24px 40px;
  }
}