:root {
  --leaf: #1f6f50;
  --leaf-dark: #104330;
  --river: #246a8f;
  --sun: #f4b942;
  --coral: #d95d39;
  --ink: #17211d;
  --muted: #66736d;
  --surface: #ffffff;
  --mist: #f3f7f4;
  --line: #dce6df;
  --shadow: 0 20px 60px rgba(16, 67, 48, 0.14);
  --glow: 0 18px 46px rgba(31, 111, 80, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--mist);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.top-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 2rem);
  min-height: 42px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  color: white;
  background: linear-gradient(90deg, var(--leaf-dark), #174f3c 48%, var(--river));
  font-size: 0.84rem;
  font-weight: 800;
  overflow: hidden;
}

#daytime{
    font-size:12px;
    text-align:center;
}

.top-bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sun), transparent);
  animation: shimmer-line 4s linear infinite;
}

.ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker-scroll 24s linear infinite;
}

.ticker-track span {
  position: relative;
}

.ticker-track span::before {
  content: "•";
  margin-right: 0.6rem;
  color: var(--sun);
}

.top-bar time {
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 230, 223, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--leaf), var(--river));
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(31, 111, 80, 0.25);
  animation: mark-pulse 4.5s ease-in-out infinite;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  max-width: 34ch;
  font-size: clamp(0.88rem, 2vw, 1rem);
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.73rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a,
.nav-link {
  position: relative;
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--leaf-dark);
  background: #eaf3ed;
  box-shadow: 0 10px 24px rgba(31, 111, 80, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.45rem;
  height: 2px;
  background: linear-gradient(90deg, var(--sun), var(--leaf));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.menu-icon {
  display: inline-grid;
  width: 1.45em;
  height: 1.45em;
  margin-right: 0.35rem;
  place-items: center;
  color: var(--leaf);
  font-size: 0.88em;
  line-height: 1;
  background: rgba(31, 111, 80, 0.1);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover .menu-icon,
.nav-link:hover .menu-icon,
.site-nav a:focus-visible .menu-icon,
.nav-link:focus-visible .menu-icon {
  color: white;
  background: var(--leaf);
  transform: rotate(-8deg) scale(1.08);
}

.nav-link {
  font-family: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
}

.dropdown-trigger::after {
  content: "";
  position: static;
  display: inline-block;
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.05rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: transparent;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown.open .dropdown-trigger::after,
.nav-dropdown:hover .dropdown-trigger::after,
.nav-dropdown:focus-within .dropdown-trigger::after {
  transform: translateY(1px) rotate(225deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 25;
  display: grid;
  min-width: 220px;
  padding: 0.45rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.submenu a {
  display: flex;
  align-items: center;
}

.nav-dropdown:hover .submenu,
.nav-dropdown:focus-within .submenu,
.nav-dropdown.open .submenu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(2.8rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem) clamp(1.4rem, 3vw, 2.5rem);
  background:
    linear-gradient(120deg, rgba(16, 67, 48, 0.08), rgba(36, 106, 143, 0.12)),
    radial-gradient(circle at 82% 20%, rgba(244, 185, 66, 0.28), transparent 28%),
    #fbfdfb;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12% auto auto -8rem;
  width: 18rem;
  height: 18rem;
  border: 2px solid rgba(31, 111, 80, 0.13);
  border-radius: 50%;
  animation: slow-spin 24s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -8rem;
  width: 20rem;
  height: 20rem;
  border: 32px solid rgba(244, 185, 66, 0.14);
  border-radius: 50%;
  animation: breathe-ring 7s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  animation: float-up 700ms ease both;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.08;
  overflow-wrap: normal;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 6.2vw, 5.35rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

p {
  overflow-wrap: anywhere;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 66ch;
  margin: 1.15rem 0 0;
  color: #3f4d47;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions,
.donation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button,
.amount,
.filter {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button::before,
.amount::before,
.filter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.38), transparent 85%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.button:hover::before,
.amount:hover::before,
.filter:hover::before {
  transform: translateX(120%);
}

.button.primary,
.amount.active,
.filter.active {
  color: white;
  background: var(--leaf);
  box-shadow: 0 10px 24px rgba(31, 111, 80, 0.18);
}

.button.secondary,
.amount,
.filter {
  color: var(--leaf-dark);
  background: white;
  border-color: var(--line);
}

.button:hover,
.amount:hover,
.filter:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.button.full {
  width: 100%;
}

.hero-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  align-self: stretch;
  max-height: 660px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: float-card 5s ease-in-out infinite;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-card:hover {
  transform: translateY(-8px) rotate(0.4deg);
  box-shadow: 0 28px 72px rgba(16, 67, 48, 0.22);
}

.hero-card img {
  width: 100%;
  height: min(56vh, 500px);
  object-fit: cover;
  object-position: top;
}

.quick-contact {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.quick-contact span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-contact strong {
  font-size: 0.93rem;
  line-height: 1.35;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stats-band div {
  min-height: 132px;
  padding: clamp(1rem, 3vw, 2rem);
  background: white;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.stats-band div:hover {
  z-index: 1;
  background: #fbfffc;
  box-shadow: var(--glow);
  transform: translateY(-6px);
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  color: var(--leaf-dark);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
}

.stats-band span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.image-scroll-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
  background: linear-gradient(135deg, #ffffff, #eef7f1);
  border-block: 1px solid var(--line);
}

.scroll-copy h2 {
  max-width: 9ch;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
}

.auto-gallery {
  min-width: 0;
  overflow: hidden;
  padding: 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(16, 67, 48, 0.12);
}

.auto-gallery-track {
  display: flex;
  width: max-content;
  gap: 0.85rem;
  animation: image-scroll 34s linear infinite;
}

.auto-gallery:hover .auto-gallery-track {
  animation-play-state: paused;
}

.auto-gallery img {
  width: clamp(150px, 20vw, 250px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(16, 67, 48, 0.14);
  transition: transform 220ms ease, filter 220ms ease;
}

.auto-gallery img:hover {
  filter: saturate(1.1) contrast(1.04);
  transform: scale(1.04) translateY(-4px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  background: white;
}

.copy-stack p {
  margin: 0;
  color: #3d4b45;
  font-size: 1.06rem;
}

.copy-stack p + p {
  margin-top: 1rem;
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.committee {
  background: #f8fbf8;
}

.vision-section {
  background:
    linear-gradient(135deg, rgba(244, 185, 66, 0.18), rgba(31, 111, 80, 0.08)),
    white;
}

.member-grid,
.activity-grid,
.gallery,
.wildlife-images {
  display: grid;
  gap: 1rem;
}

.member-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.member-grid article,
.activity-grid article,
.bank-card,
.pdf-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(16, 67, 48, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.member-grid article:hover,
.activity-grid article:hover,
.bank-card:hover,
.pdf-panel:hover,
.gallery figure:hover {
  border-color: rgba(31, 111, 80, 0.28);
  box-shadow: var(--glow);
  transform: translateY(-6px);
}

.member-grid article {
  padding: 1rem;
}

.member-grid span,
.member-grid small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.member-grid strong {
  display: block;
  margin: 0.35rem 0 0.2rem;
  color: var(--leaf-dark);
  font-size: 1.12rem;
}

.activities {
  background: white;
}

.wildlife-rescue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  background: #f7faf8;
}

.wildlife-rescue p {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.wildlife-rescue .button {
  margin-top: 0.6rem;
}

.wildlife-images {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wildlife-images img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(16, 67, 48, 0.12);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.wildlife-images img:hover {
  box-shadow: 0 26px 64px rgba(16, 67, 48, 0.2);
  transform: translateY(-7px) scale(1.02);
}

.wildlife-images img:nth-child(2) {
  margin-top: 2rem;
}

.activity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.activity-grid article {
  padding: clamp(1rem, 3vw, 1.35rem);
  border-top: 5px solid var(--leaf);
}

.activity-grid article:nth-child(2n) {
  border-top-color: var(--river);
}

.activity-grid article:nth-child(3n) {
  border-top-color: var(--sun);
}

.activity-grid p {
  margin: 0;
  color: var(--muted);
}

.movement-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(1rem, 4vw, 3rem);
  color: white;
  background:
    linear-gradient(135deg, rgba(16, 67, 48, 0.95), rgba(36, 106, 143, 0.95)),
    url("assets/pages/hjjpm-page-44.jpg") center / cover;
}

.movement-strip .eyebrow {
  color: var(--sun);
}

.movement-strip p:not(.eyebrow) {
  margin: 0;
  align-self: end;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.gallery-section {
  background: #f7faf8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery figure {
  overflow: hidden;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 67, 48, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.gallery figure[hidden] {
  display: none;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  background: #eef4f0;
  transition: transform 320ms ease, filter 320ms ease;
}

.gallery figure:hover img {
  filter: saturate(1.08);
  transform: scale(1.04);
}

.gallery figcaption {
  min-height: 58px;
  padding: 0.8rem;
  color: var(--leaf-dark);
  font-weight: 800;
  line-height: 1.25;
}

.donate-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  background: white;
}

.donate-copy p:not(.eyebrow) {
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.bank-card {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.bank-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.bank-card-top span,
.bank-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bank-card dl {
  margin: 1rem 0;
}

.bank-card dl div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #edf3ef;
}

.bank-card dd {
  margin: 0;
  font-weight: 800;
}

.note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pdf-section {
  background: #f7faf8;
}

.pdf-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.pdf-panel h3 {
  font-size: 1.35rem;
}

.pdf-panel p {
  color: var(--muted);
}

.pdf-panel iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef4f0;
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--leaf-dark);
}

.footer-wave {
  height: 34px;
  background:
    linear-gradient(135deg, transparent 33%, var(--sun) 33% 42%, transparent 42%),
    linear-gradient(45deg, transparent 33%, var(--river) 33% 42%, transparent 42%);
  background-size: 42px 34px;
  opacity: 0.95;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
}

.footer-grid h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.footer-grid p,
.footer-grid address,
.footer-grid a {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.footer-grid a {
  display: block;
  margin-top: 0.35rem;
}

.copyright {
  margin: 0;
  padding: 1rem clamp(1rem, 5vw, 5rem);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  padding: 0.8rem 1rem;
  color: white;
  font-weight: 800;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes image-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes shimmer-line {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes mark-pulse {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(31, 111, 80, 0.25);
  }
  50% {
    box-shadow: 0 10px 28px rgba(31, 111, 80, 0.25), 0 0 0 8px rgba(244, 185, 66, 0.16);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .hero,
  .image-scroll-section,
  .split,
  .wildlife-rescue,
  .movement-strip,
  .donate-section,
  .pdf-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 13ch;
  }

  .hero {
    min-height: auto;
  }

  .scroll-copy h2 {
    max-width: none;
  }

  .activity-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid h2 {
    max-width: 15ch;
  }
}

@media (max-width: 720px) {
  .top-bar {
    display: grid;
    gap: 0.35rem;
    padding-block: 0.55rem;
  }

  .top-bar time {
    white-space: normal;
    justify-self: start;
  }

  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 200ms ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-dropdown {
    display: grid;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    text-align: left;
    border-radius: 8px;
  }

  .submenu {
    position: static;
    min-width: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: max-height 180ms ease;
  }

  .nav-dropdown.open .submenu {
    max-height: 180px;
    padding: 0 0 0.4rem 0.75rem;
  }

  .submenu a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .image-scroll-section {
    padding-block: 2rem;
  }

  .auto-gallery img {
    width: clamp(138px, 42vw, 210px);
  }

  .hero-actions .button,
  .donation-buttons .amount {
    width: 100%;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .activity-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .wildlife-images {
    grid-template-columns: 1fr;
  }

  .wildlife-images img:nth-child(2) {
    margin-top: 0;
  }

  .bank-card dl div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .pdf-panel iframe {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 0.8rem;
  }

  .brand-mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .brand strong {
    max-width: 22ch;
    font-size: 0.8rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .bank-card-top {
    display: grid;
  }
}
