/* TREE Foundation Gambia — base styles */

:root {
  --forest: #0b2a1f;
  --forest-deep: #071c15;
  --forest-soft: #123a2a;
  --moss: #2f6b4f;
  --lime: #c9e265;
  --lime-soft: #e4f1b8;
  --cream: #f4efe3;
  --cream-2: #ede5d4;
  --sand: #e3d9c4;
  --white: #fffdf7;
  --ink: #0f231b;
  --muted: #56685e;
  --clay: #c86b45;
  --sky: #3e7fb0;
  --line: rgba(15, 35, 27, 0.14);
  --line-light: rgba(244, 239, 227, 0.16);
  --radius: 28px;
  --shadow: 0 24px 60px rgba(7, 28, 21, 0.12);
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}



img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--lime);
  color: var(--forest);
}

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

.container {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 40px);
  }
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--forest);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Type helpers */

h1, h2, .display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.6rem, 7vw, 6.6rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.98;
}

h3 {
  font-weight: 700;
  line-height: 1.15;
}

em {
  font-style: italic;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
}

.label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 226, 101, 0.22);
  flex: none;
}

.label--light {
  color: var(--lime);
}

.section {
  padding: clamp(76px, 9vw, 124px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head h2 {
  margin-top: 18px;
  max-width: 13ch;
}

.section-head .lead {
  max-width: 54ch;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 16px;
}

.section-head--center {
  display: block;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.section-head--center h2 {
  margin-inline: auto;
}

.section-head--center .lead {
  margin: 20px auto 0;
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
}

.lead--large {
  font-size: clamp(17px, 1.8vw, 21px);
}

.muted {
  color: var(--muted);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.btn:hover .icon {
  transform: translate(2px, -2px);
}

.btn--lime {
  background: var(--lime);
  color: var(--forest);
}

.btn--lime:hover {
  background: #d8ef87;
}

.btn--dark {
  background: var(--forest);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--forest-soft);
}

.btn--cream {
  background: var(--cream);
  color: var(--forest);
}

.btn--cream:hover {
  background: #fff;
}

.btn--ghost {
  border-color: rgba(244, 239, 227, 0.4);
  color: var(--cream);
}

.btn--ghost:hover {
  background: rgba(244, 239, 227, 0.1);
  border-color: var(--cream);
}

.btn--outline {
  border-color: var(--line);
  color: var(--forest);
}

.btn--outline:hover {
  border-color: var(--forest);
  background: rgba(11, 42, 31, 0.04);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 12px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

.link-arrow .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.link-arrow:hover .icon {
  transform: translate(3px, -3px);
}

.link-arrow--light {
  color: var(--lime);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 18px 0;
  color: var(--cream);
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease,
    color 0.35s ease;
}

.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(244, 239, 227, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header--solid {
  position: absolute;
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled.site-header--solid {
  position: fixed;
  background: rgba(244, 239, 227, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  padding: 7px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(7, 28, 21, 0.14);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.03);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.brand-text span {
  margin-top: 5px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.82;
  transition: opacity 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 102;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}

.nav-toggle span:first-child {
  top: 18px;
}

.nav-toggle span:last-child {
  top: 24px;
}

.site-header.is-open .nav-toggle span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 101;
    width: min(380px, 88vw);
    padding: 110px 34px 40px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    background: var(--forest);
    color: var(--cream);
    transform: translateX(102%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(244, 239, 227, 0.14);
    font-family: var(--font-serif);
    font-size: 2.15rem;
    font-weight: 400;
    line-height: 1.15;
    opacity: 1;
  }

  .nav a::after {
    display: none;
  }

  .site-header.is-open .nav {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }

  .site-header.is-open {
    background: transparent;
    box-shadow: none;
    color: var(--cream);
  }

  .site-header.is-open .brand-text {
    color: var(--cream);
  }

  .site-header.is-open .brand {
    position: relative;
    z-index: 102;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 0;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text span {
    font-size: 7.5px;
  }

  .header-actions .btn {
    display: none;
  }
}
