/* ==========================================================================
   Page sections (in the same order as index.html)
   ========================================================================== */

/* ---------- Hero ---------- */

.hero {
  padding-top: 0.5rem;
}

.hero__banner {
  display: flex;
  flex-direction: column;
  min-height: clamp(320px, 30vw, 380px);
  padding-top: 1.4rem;
  padding-bottom: 2.25rem;
  background:
    url("../assets/images/hero-desert.jpg") center 62% / cover no-repeat,
    linear-gradient(180deg, #8fb7c9 0%, #c9a274 30%, #c06a32 60%, #6b3a1e 100%);
  color: var(--color-white);
}

.hero__tagline {
  padding: 0.55rem 1rem;
  border: 1.5px solid rgb(170 230 213 / 0.7);
  background: rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(1.5px) brightness(1.08);
          backdrop-filter: blur(1.5px) brightness(1.08);
  font-size: clamp(0.9rem, 1.9vw, 1.4rem);
  font-style: italic;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.hero__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem 1rem 0;
  text-align: center;
}

.hero__title {
  max-width: 41rem;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.3vw, 2.5rem);
  line-height: 0.97;
  letter-spacing: -0.037em;
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.25);
}

/* ---------- Updates ---------- */

.updates {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 2.75rem;
}

.updates .container {
  position: relative;
  display: grid;
}

/* Large faint "Updates" watermark behind the list */
.updates .container::before {
  content: "Updates";
  position: absolute;
  left: 0;
  bottom: -0.45em;
  z-index: -1;
  font-size: clamp(6rem, 17vw, 13.25rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  color: rgb(0 0 0 / 0.02);
  white-space: nowrap;
  pointer-events: none;
}

.updates__badge {
  justify-self: center;
  margin-top: 0.4rem;
  padding: 0.3rem 2.6rem;
  border-radius: var(--radius-sm);
  background: var(--color-mint);
  box-shadow: 4px 6px 10px rgb(0 0 0 / 0.18);
  color: var(--color-white);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}

.updates__list {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.3fr;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 1.6rem;
  font-size: 0.9375rem;
}

.update {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.update__link {
  display: block;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.update__link:hover {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.link-chevron::after {
  content: " \203A";
}

.updates__more {
  justify-self: end;
  min-width: 14.5rem;
  margin-top: 1.5rem;
  margin-right: 2rem;
}

@media (max-width: 860px) {
  .updates__list {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .updates__more {
    justify-self: center;
    margin-right: 0;
  }
}

/* ---------- About us ---------- */

.about__title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.about__panel {
  margin-left: max(var(--gutter), (100% - var(--container)) / 2);
  padding-block: clamp(2.25rem, 5.5vw, 3.5rem) clamp(2.5rem, 6.5vw, 4.5rem);
  padding-inline: clamp(1.5rem, 25vw - 6rem, 12.75rem) var(--gutter);
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: clamp(1.0625rem, 1.85vw, 1.375rem);
}

.about__panel p {
  max-width: 47rem;
}

/* ---------- Mission & vision ---------- */

.mission {
  padding-block: clamp(5rem, 11vw, 9rem) clamp(5.5rem, 13vw, 10rem);
}

.mission__photo {
  top: 21.4%;
  left: 25%;
  width: 130.4%;
  height: 115.9%;
  background-position: left bottom;
}

.mission__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2.25rem;
}

.mission__title {
  margin-bottom: 2rem;
  padding-left: 2.5rem;
}

.mission__title--mint {
  color: var(--color-mint);
}

.mission__card {
  display: flex;
  align-items: center;
  min-height: 13.5rem;
  padding: 2rem 2.5rem;
  color: var(--color-black);
}

@media (max-width: 760px) {
  .mission__grid {
    grid-template-columns: 1fr;
  }

  .mission__title {
    padding-left: 0;
  }

  .mission__card {
    min-height: 0;
  }

  .mission__photo {
    top: 60%;
    left: -10%;
    width: 220%;
    height: 70%;
  }
}

/* ---------- Our values ---------- */

.value {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 10.25rem;
}

/* All three icons share a square 24×24 grid, so they line up at one size */
.value__icon {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
}

/* ---------- How we work ---------- */

.how {
  padding-top: clamp(2rem, 4.5vw, 3.25rem);
}

.how__photo {
  top: -69.6%;
  left: -35.7%;
  width: 157.9%;
  height: 148.5%;
}

.how__band {
  position: relative;
  padding-block: clamp(1.75rem, 4.2vw, 3.25rem);
  border-block: 2.5px solid rgb(0 0 0 / 0.25);
  background: rgb(255 255 255 / 0.25);
  text-align: center;
}

.how__title {
  color: var(--color-white);
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.2);
}

.how__grid {
  position: relative;
  max-width: 62rem;
  margin: clamp(1.5rem, 3vw, 2.75rem) auto 0;
  gap: 0.875rem 1.5rem;
}

.how__grid .card {
  min-height: 11.25rem;
  padding: 2rem 1.75rem;
}

/* ---------- What we aim to achieve ---------- */

.aims__grid {
  display: grid;
  grid-template-columns: minmax(0, 29rem) minmax(0, 19rem);
  justify-content: center;
  align-items: center;
  gap: 1.25rem 1rem;
}

.aim {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 9.125rem;
  padding: 1.5rem 2rem 1.5rem 1.25rem;
}

.aim--offset {
  width: min(100%, 19rem);
  margin-left: 1.25rem;
}

@media (max-width: 760px) {
  .aims__grid {
    grid-template-columns: 1fr;
  }

  .aims__title {
    margin-bottom: 1rem;
  }

  .aim {
    min-height: 0;
  }

  .aim--offset {
    width: auto;
    margin-left: 0;
  }
}

/* ---------- Projects & programmes ---------- */

.projects {
  padding-block: clamp(4.5rem, 9vw, 6.5rem) clamp(3.5rem, 6vw, 4.5rem);
}

.projects__photo {
  top: -47.8%;
  left: -34.15%;
  width: 177.9%;
  height: 158.1%;
  opacity: 0.88;
}

.projects__inner {
  position: relative;
  display: grid;
  justify-items: center;
}

.projects__title {
  width: min(100%, 36.5rem);
  margin-bottom: 2rem;
  padding-left: clamp(0rem, 15vw - 7rem, 8.4rem);
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.2);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem clamp(1rem, 5vw, 3.75rem);
  width: min(100%, 36.5rem);
}

.project-card {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 6.75rem;
  padding: 1rem 1.5rem;
  color: var(--color-black);
  font-weight: 700;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.projects__more {
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  white-space: normal;
  text-align: center;
}

@media (max-width: 520px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Find projects by location ---------- */

.map {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.map-filters__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2.2rem;
  border: 1px solid rgb(210 151 89 / 0.35);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.map-filters__item--tab {
  padding-inline: 0.75rem 1.5rem;
}

.map-filters__select {
  width: 13.5rem;
}

.map-filters__select select {
  width: 100%;
  height: 100%;
  padding: 0 2.25rem 0 0.75rem;
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
}

.map-filters__select .icon {
  position: absolute;
  right: 0.75rem;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

.map-filters__search {
  margin-left: clamp(0rem, 5vw, 3.5rem);
  min-width: 8.5rem;
}

@media (max-width: 760px) {
  .map-filters__search {
    margin-left: 0;
  }
}

.map__title {
  margin-top: clamp(2rem, 3vw, 2.5rem);
  color: var(--color-black);
}

/* Static map, shown only if the interactive <project-map> can't load */
.map__image {
  width: min(100%, 40.75rem);
  height: auto;
  margin: 1rem auto 0;
}

/* ---------- Find and use open land information ---------- */

.resources {
  padding-bottom: clamp(5rem, 11vw, 8rem);
}

.resources__intro,
.resources .card-grid {
  max-width: 62rem;
  margin-inline: auto;
}

.resources__intro h2 {
  max-width: 39rem;
  color: var(--color-black);
}

.resources__intro .section-intro__lead {
  max-width: 31rem;
  margin-top: 0.75rem;
  padding-left: 0.75rem;
  color: var(--color-black);
}

.resources .card-grid {
  gap: 1rem 1.3rem;
}

.resource {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 11.25rem;
  padding-inline: 1.25rem;
}

.resource .tag-list {
  margin-top: auto;
}

/* ---------- News & events ---------- */

.news__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  align-items: center;
  gap: 3rem clamp(2rem, 8vw, 7rem);
}

.news__all {
  min-width: 11.5rem;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}

.news__meta {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--color-orange);
  text-transform: uppercase;
}

.news__title {
  max-width: 38.5rem;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.6vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.news__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.news__summary {
  max-width: 25rem;
  margin-top: 1rem;
  padding-left: 0.5rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.news__list {
  display: grid;
  gap: 0.8rem;
}

.news-card {
  display: block;
  min-height: 9.6rem;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-black);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.25);
}

.news-card__meta {
  font-size: 0.8125rem;
  text-transform: uppercase;
}

.news-card__title {
  margin-top: 0.35rem;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.6vw, 1.28rem);
  font-weight: 700;
  line-height: 1.25;
}

.news-card__subtitle {
  margin-top: 0.35rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.28rem);
  line-height: 1.1;
  color: rgb(0 0 0 / 0.59);
}

@media (max-width: 900px) {
  .news__grid {
    grid-template-columns: 1fr;
  }
}
