/* =============================================================
   Monkey Rescue — shared stylesheet
   A modern, responsive design system for the whole site.
   ============================================================= */

/* ---- 1. Design tokens ------------------------------------- */
:root {
  /* Brand palette (derived from the logo) */
  --forest-900: #0f3d22;
  --forest-800: #16532f;
  --forest-700: #1f6b3b;
  --forest-600: #2e8b4f;
  --forest-500: #3da564;
  --canopy: #6dbf73;
  --coral: #d6453b;
  --coral-dark: #b5352c;
  --gold: #f2b705;

  /* Neutrals */
  --ink: #14201a;
  --ink-soft: #3c4b43;
  --muted: #6a786f;
  --line: #e4e7e3;
  --cream: #f7f6f1;
  --paper: #ffffff;

  /* Semantic */
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --accent: var(--forest-700);

  /* Typography */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing & shape */
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 26, 0.06), 0 2px 8px rgba(20, 32, 26, 0.05);
  --shadow: 0 10px 30px rgba(20, 32, 26, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 61, 34, 0.20);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- 2. Reset & base -------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--forest-700);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--coral);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem);
}

h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
}

p {
  color: var(--text-soft);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---- 3. Layout helpers ------------------------------------ */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-600);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-soft);
}

.text-accent {
  color: var(--coral);
}

/* ---- 4. Buttons ------------------------------------------- */
.btn {
  --btn-bg: var(--forest-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: #fff;
}

.btn:active {
  transform: translateY(0);
}

.btn--accent {
  --btn-bg: var(--coral);
}

.btn--accent:hover {
  --btn-bg: var(--coral-dark);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--forest-800);
  border-color: currentColor;
  box-shadow: none;
}

.btn--ghost:hover {
  --btn-fg: var(--forest-900);
  background: rgba(31, 107, 59, 0.08);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--forest-800);
}

.btn--light:hover {
  color: var(--forest-900);
}

.btn--lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
}

/* ---- 5. Header / navigation ------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--forest-800);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--forest-800);
}

.brand:hover {
  color: var(--forest-900);
}

.brand img {
  height: 40px;
  width: auto;
}

.brand span b {
  color: var(--coral);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  border-radius: 999px;
}

.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-menu a:not(.btn):hover {
  color: var(--forest-800);
}

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

.nav-menu a[aria-current="page"] {
  color: var(--forest-800);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--forest-800);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a:not(.btn) {
    padding: 0.85rem 0.9rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-menu a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    margin: 0.6rem 0 0;
  }
}

/* ---- 6. Hero ---------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(4rem, 3rem + 9vw, 9rem);
  background: var(--forest-900);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      105deg,
      rgba(8, 30, 17, 0.92) 0%,
      rgba(8, 30, 17, 0.62) 48%,
      rgba(8, 30, 17, 0.25) 100%
    ),
    linear-gradient(to top, rgba(8, 30, 17, 0.7), transparent 55%);
}

.hero__inner {
  max-width: 720px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  margin-bottom: 2rem;
}

.hero .eyebrow {
  color: var(--canopy);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.hero__badge .dot {
  width: 0.9rem;
  height: 0.9rem;
  display: grid;
  place-items: center;
  background: var(--coral);
  border-radius: 999px;
  font-size: 0.6rem;
}

/* page hero (compact, for inner pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(3.5rem, 3rem + 6vw, 6.5rem);
  background: var(--forest-800);
  text-align: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(8, 30, 17, 0.75),
    rgba(8, 30, 17, 0.55)
  );
}

.page-hero h1 {
  color: #fff;
}

.page-hero .eyebrow {
  color: var(--canopy);
  justify-content: center;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 1rem auto 0;
}

.breadcrumb {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---- 7. Stats band ---------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.6rem + 1.8vw, 3rem);
  line-height: 1;
  color: var(--forest-700);
  letter-spacing: -0.03em;
}

.stat__label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- 8. Cards / grids ------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 960px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--canopy);
}

.card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--forest-500), var(--forest-700));
  color: #fff;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 18px rgba(31, 107, 59, 0.3);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.98rem;
}

/* numbered focus cards */
.card--num {
  position: relative;
  overflow: hidden;
}

.card--num .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--coral);
  letter-spacing: 0.1em;
}

/* ---- 9. Split / media sections ---------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

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

  .split--reverse .split__media {
    order: 0;
  }
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-sticker {
  position: absolute;
  bottom: -22px;
  right: -14px;
  background: var(--coral);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  max-width: 200px;
}

.media-sticker b {
  display: block;
  font-size: 1.8rem;
}

.media-sticker small {
  font-weight: 500;
  font-size: 0.8rem;
  opacity: 0.92;
}

@media (max-width: 880px) {
  .media-sticker {
    right: 12px;
  }
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-bottom: 0.4rem;
}

/* ---- 10. Team ---------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.member__photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--forest-900);
}

.member__body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.member__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.member__role {
  color: var(--coral);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.member__meta {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---- 11. Donation / CTA ----------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  text-align: center;
  background: linear-gradient(135deg, var(--forest-800), var(--forest-600));
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 40%
    ),
    radial-gradient(circle at 85% 80%, rgba(242, 183, 5, 0.18), transparent 45%);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 1rem auto 2rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* donate page picker */
.donate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.amount {
  position: relative;
  padding: 1rem 0.5rem;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest-800);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    transform 0.15s var(--ease), color 0.2s var(--ease);
}

.amount small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.amount:hover {
  border-color: var(--canopy);
  transform: translateY(-2px);
}

.amount.is-active {
  border-color: var(--forest-600);
  background: rgba(61, 165, 100, 0.12);
  color: var(--forest-900);
}

.amount.is-active small {
  color: var(--forest-700);
}

.freq-toggle {
  display: inline-flex;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 0 0 1.25rem;
  min-inline-size: 0;
}

.freq-toggle button {
  border: 0;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.freq-toggle button.is-active {
  background: var(--forest-700);
  color: #fff;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.input,
.custom-amount {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input:focus,
.custom-amount:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 4px rgba(61, 165, 100, 0.18);
}

.input-prefix {
  position: relative;
}

.input-prefix span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
}

.input-prefix .custom-amount {
  padding-left: 2rem;
}

.donate-impact {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(61, 165, 100, 0.1);
  border: 1px dashed var(--canopy);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--forest-800);
}

/* ---- 12. Feature list / checks ---------------------------- */
.checklist {
  display: grid;
  gap: 0.9rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-soft);
}

.checklist svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--forest-600);
  margin-top: 2px;
}

/* ---- 13. Video ------------------------------------------- */
.video-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- 14. Footer ------------------------------------------- */
.site-footer {
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(3rem, 2rem + 4vw, 4.5rem) 1.5rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

.footer-brand .brand {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-brand .brand img {
  height: 44px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 32ch;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-col a:hover {
  color: var(--canopy);
}

.footer-col address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.newsletter {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter input:focus {
  outline: none;
  border-color: var(--canopy);
}

.newsletter button {
  flex: none;
  border: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.newsletter button:hover {
  background: var(--coral-dark);
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.socials a:hover {
  background: var(--coral);
  transform: translateY(-2px);
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.74);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ---- 15. Modal -------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 30, 17, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__dialog {
  position: relative;
  width: min(460px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(61, 165, 100, 0.15);
  color: var(--forest-600);
}

.modal__icon svg {
  width: 38px;
  height: 38px;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}

/* ---- 16. Scroll reveal animation -------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

/* ---- 17. Misc -------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-800);
  box-shadow: var(--shadow-sm);
}

.bg-soft {
  background: #eef2ec;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 150%);
  z-index: 1100;
  background: var(--forest-800);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  transition: transform 0.4s var(--ease);
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

/* ---- 18. Reduced motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
