/* ==========================================================================
   WILD & NATURE SAFARIS — purpose.css
   Safari With a Purpose landing page · paired with purpose.php
   --------------------------------------------------------------------------
   01. Hero + pledge strip
   02. Commitment (intro split)
   03. Pillars of support
   04. Belief quote band
   05. Responsible tourism + impact steps
   06. Closing CTA + manifesto strip
   07. Responsive
   ========================================================================== */

/* ==========================================================================
   01. HERO + PLEDGE STRIP
   ========================================================================== */
.purpose-hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: clamp(5.5rem, 11vw, 8.5rem);
}

.purpose-hero .page-hero__bg {
  background-position: center 28%;
  transform: scale(1.03);
}

.purpose-hero__title {
  font-size: clamp(2.85rem, 6.6vw, 5.35rem);
}

.purpose-hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  transform: translateY(50%);
}

.pledge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem clamp(1.25rem, 3.5vw, 3rem);
  padding: clamp(1.05rem, 2.2vw, 1.45rem) clamp(1.25rem, 3vw, 2.5rem);
  background: rgba(245, 242, 234, 0.97);
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--sand);
  box-shadow: 0 24px 60px -30px rgba(11, 18, 14, 0.45);
}

.pledge__item {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  white-space: nowrap;
}

.pledge__item + .pledge__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.25rem, 3.5vw, 3rem) / 2 - 4px);
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--sand);
  transform: translateY(-50%) rotate(45deg);
}

/* ==========================================================================
   02. COMMITMENT (INTRO SPLIT)
   ========================================================================== */
.purpose-intro {
  padding-top: calc(var(--section-y) + clamp(2.5rem, 5vw, 4.5rem));
}

.purpose-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.purpose-intro__media {
  position: relative;
}

.purpose-intro__frame {
  aspect-ratio: 4 / 5;
}

.purpose-intro__frame img {
  aspect-ratio: 4 / 5;
  object-position: center;
}

.purpose-intro__media:hover .purpose-intro__frame img {
  transform: scale(1.05);
}

.purpose-intro__plate {
  position: absolute;
  right: clamp(-1.25rem, -2vw, -0.5rem);
  bottom: clamp(-1.5rem, -2.5vw, -0.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 17rem;
  padding: clamp(1.15rem, 2.2vw, 1.65rem) clamp(1.25rem, 2.4vw, 1.85rem);
  background: var(--forest-deep);
  border-left: 2px solid var(--sand);
  color: var(--ivory);
}

.purpose-intro__plate-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sand-soft);
}

.purpose-intro__plate-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.3;
  color: var(--ivory);
}

.purpose-intro__body {
  margin-top: 1.85rem;
  max-width: 56ch;
}

.purpose-intro__body p {
  margin-bottom: 1.35rem;
}

.purpose-intro__body p:last-child {
  margin-bottom: 0;
}

.purpose-intro__lead {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.55vw, 1.32rem);
  line-height: 1.85;
  color: var(--charcoal);
}

.purpose-intro__lead::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.08em 0.14em 0 0;
  color: var(--sand);
}

/* ==========================================================================
   03. PILLARS OF SUPPORT
   ========================================================================== */
.purpose-pillars {
  background: var(--ivory-deep);
  border-block: 1px solid var(--line-soft);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.35rem, 2.6vw, 2.25rem);
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: clamp(1.85rem, 3.2vw, 2.65rem) clamp(1.5rem, 2.8vw, 2.35rem) clamp(2rem, 3.4vw, 2.85rem);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-top: 2px solid var(--sand);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 60px -34px rgba(11, 18, 14, 0.4);
}

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--sand);
}

.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.65rem;
  height: 3.65rem;
  margin-top: 0.35rem;
  border: 1px solid rgba(197, 167, 125, 0.55);
  border-radius: 50%;
  color: var(--sand);
}

.pillar__icon svg {
  width: 1.85rem;
  height: 1.85rem;
}

.pillar__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  line-height: 1.25;
  color: var(--charcoal);
}

.pillar__text {
  font-size: 0.965rem;
  line-height: 1.9;
  color: var(--text);
  opacity: 0.92;
}

/* ==========================================================================
   04. BELIEF QUOTE BAND
   ========================================================================== */
.belief {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--ivory);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.belief__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  opacity: 0.28;
  transform: scale(1.04);
}

.belief__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 90% at 50% 20%, rgba(11, 18, 14, 0.32) 0%, rgba(11, 18, 14, 0.82) 78%),
    linear-gradient(180deg, rgba(27, 44, 35, 0.85) 0%, rgba(27, 44, 35, 0.55) 50%, rgba(27, 44, 35, 0.9) 100%);
}

.belief__inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  text-align: center;
}

.belief__mark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 7rem);
  line-height: 0.6;
  color: var(--sand);
  opacity: 0.85;
  margin-bottom: 1.35rem;
}

.belief__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.45rem, 3.1vw, 2.35rem);
  line-height: 1.55;
  color: var(--ivory);
  text-wrap: balance;
}

.belief__cite {
  margin-top: 1.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand-soft);
}

.belief__cite::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--sand);
  margin: 0 auto 1.15rem;
  opacity: 0.7;
}

/* ==========================================================================
   05. RESPONSIBLE TOURISM + IMPACT STEPS
   ========================================================================== */
.purpose-community__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.purpose-community__body {
  margin-top: 1.75rem;
  max-width: 56ch;
}

.purpose-community__body p {
  margin-bottom: 1.85rem;
}

.purpose-community__frame {
  aspect-ratio: 5 / 4;
}

.purpose-community__frame img {
  aspect-ratio: 5 / 4;
}

.purpose-community__media:hover .purpose-community__frame img {
  transform: scale(1.05);
}

.purpose-community__caption {
  margin-top: 1.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(37, 41, 35, 0.55);
}

/* impact steps */
.impact-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.impact-step {
  position: relative;
  padding-right: clamp(0.5rem, 1.5vw, 1.5rem);
}

.impact-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  margin-bottom: 1.15rem;
  border: 1px solid var(--sand);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--sand);
  background: var(--ivory);
}

.impact-step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.28rem, 1.85vw, 1.55rem);
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.impact-step__text {
  font-size: 0.955rem;
  line-height: 1.9;
  color: var(--text);
  opacity: 0.9;
  max-width: 34ch;
}

/* ==========================================================================
   06. CLOSING CTA + MANIFESTO STRIP
   ========================================================================== */
.purpose-cta {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--ivory);
  padding-block: clamp(4.75rem, 9.5vw, 8rem);
  text-align: center;
}

.purpose-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0.3;
  transform: scale(1.04);
}

.purpose-cta__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(11, 18, 14, 0.42) 0%, rgba(11, 18, 14, 0.85) 80%),
    linear-gradient(180deg, rgba(27, 44, 35, 0.82) 0%, rgba(27, 44, 35, 0.6) 45%, rgba(27, 44, 35, 0.92) 100%);
}

.purpose-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 54rem;
}

.purpose-cta__title {
  margin-inline: auto;
}

.purpose-cta__text {
  margin: 1.85rem auto 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.95;
  color: rgba(245, 242, 234, 0.82);
}

.purpose-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.35rem;
  margin-top: 2.65rem;
}

/* manifesto strip */
.manifesto {
  background: var(--sand-soft);
  border-block: 1px solid rgba(197, 167, 125, 0.55);
  padding-block: clamp(1.65rem, 3.2vw, 2.35rem);
}

.manifesto__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem clamp(1.5rem, 4vw, 3.25rem);
  text-align: center;
}

.manifesto__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  color: var(--forest-deep);
  white-space: nowrap;
}

.manifesto__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem clamp(1.15rem, 3vw, 2.25rem);
}

.manifesto__item {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--forest-deep);
  white-space: nowrap;
}

.manifesto__item + .manifesto__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1.15rem, 3vw, 2.25rem) / 2 - 3px);
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--forest);
  opacity: 0.55;
  transform: translateY(-50%) rotate(45deg);
}

/* ==========================================================================
   07. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .purpose-intro__grid,
  .purpose-community__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.75rem, 6vw, 3.75rem);
  }

  .purpose-intro__frame,
  .purpose-intro__frame img {
    aspect-ratio: 16 / 10;
  }

  .purpose-intro__plate {
    right: clamp(0.75rem, 2vw, 1.5rem);
    bottom: clamp(-1.25rem, -2vw, -0.5rem);
  }

  .purpose-community__media {
    order: -1;
  }

  .purpose-community__frame,
  .purpose-community__frame img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 880px) {
  .pillars {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin-inline: auto;
  }

  .impact-steps {
    grid-template-columns: 1fr;
    gap: 2.15rem;
  }

  .impact-step {
    padding-right: 0;
  }

  .impact-step__text {
    max-width: 52ch;
  }
}

@media (max-width: 640px) {
  .purpose-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: clamp(4.5rem, 14vw, 6.5rem);
  }

  .pledge {
    gap: 0.55rem 1.25rem;
  }

  .pledge__item {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .pledge__item + .pledge__item::before {
    display: none;
  }

  .purpose-intro__plate {
    position: static;
    max-width: none;
    margin-top: 0;
  }

  .belief__quote {
    font-size: 1.35rem;
  }

  .manifesto__inner {
    flex-direction: column;
    gap: 1rem;
  }

  .manifesto__item + .manifesto__item::before {
    display: none;
  }
}
