:root {
  --plum: #35283c;
  --plum-deep: #2a1f30;
  --coral: #ff5241;
  --mint: #a8dbc6;
  --tan: #eeedec;
  --tan-soft: #ebebe9;
  --teal: #6fbec6;
  --lilac: #826f8a;
  --ink: #2c2433;
  --muted: #5c5363;
  --paper: #f3f1ee;
  --white: #ffffff;
  --line: #e2ddd6;
  --shadow: 0 18px 40px rgba(53, 40, 60, 0.12);
  --radius: 4px;
  --max: 1040px;
  --font-display: "Francois One", sans-serif;
  --font-accent: "Oswald", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  /* Exact tile from original GoDaddy nebula banners (321×62) */
  --plum-pattern: url("../assets/images/purple-damask.jpg");
  --plum-pattern-size: 321px 62px;
}

/* Shared damask fill — original site banner texture, tiled */
.plum-pattern,
.site-header,
.site-footer,
.info-card-head,
.mission-block,
.killsafe-cta {
  background-color: var(--plum);
  background-image: var(--plum-pattern);
  background-repeat: repeat;
  background-size: var(--plum-pattern-size);
  background-position: center top;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(243, 241, 238, 0.94), rgba(243, 241, 238, 0.97)),
    url("../assets/images/bg-texture.jpg") center top / auto repeat-x,
    var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(100% - 1.25rem, var(--max));
  margin: 1rem auto 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1.4rem;
}

/* Header */
.site-header {
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(42, 31, 48, 0.28);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0.55rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.header-contact {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.35;
  opacity: 0.95;
  text-align: right;
}

.socials {
  display: flex;
  gap: 0.45rem;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.25s ease, background 0.25s ease;
}

.socials a:hover {
  transform: translateY(-2px) scale(1.06);
  background: rgba(255, 255, 255, 0.18);
}

.socials svg {
  width: 15px;
  height: 15px;
  fill: var(--white);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
}

.site-nav {
  flex: 1;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.3rem;
}

.site-nav a {
  display: block;
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-family: var(--font-accent);
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  border-bottom-color: var(--coral);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--coral);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  background: var(--plum);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-sm {
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
}

.btn-lg {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  padding: 0.75rem 1.35rem;
  border: 14px solid var(--tan-soft);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--coral);
  color: var(--coral);
}

.btn-outline:hover {
  background: var(--coral);
  color: var(--white);
}

.paypal-btn {
  display: inline-block;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.paypal-btn img {
  height: 48px;
  width: auto;
}

/* Reveal motion */
.reveal,
.hero-card,
.help-panel {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible,
.hero-card.is-visible,
.help-panel.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-card,
  .help-panel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.zoom-frame {
  overflow: hidden;
  position: relative;
  background: #d9d4ce;
}

.zoom-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.zoom-frame:hover img {
  transform: scale(1.08);
}

/* Home hero — matches original: triptych + help sidebar */
.home-hero {
  padding: 0.25rem 0 0.5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 0.9rem;
  align-items: stretch;
}

.hero-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.hero-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hero-card .zoom-frame {
  aspect-ratio: 209 / 411;
  min-height: 280px;
}

.hero-caption {
  margin-top: 0;
  padding: 0.75rem 0.7rem 0.85rem;
  color: var(--white);
  min-height: 5rem;
}

.hero-caption.coral {
  background: var(--coral);
}

.hero-caption.teal {
  background: var(--teal);
}

.hero-caption.mint {
  background: var(--mint);
  color: var(--plum);
}

.hero-caption .word {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-caption .phrase {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: 0.15rem;
}

.help-panel {
  background: linear-gradient(160deg, var(--white), var(--tan));
  border: 1px solid var(--line);
  padding: 1.15rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  box-shadow: var(--shadow);
}

.help-panel h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--plum);
  margin: 0;
}

.help-panel .lede {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--teal);
  line-height: 1.25;
  font-weight: 400;
  margin: 0;
}

.help-panel .about {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Info band with purple headers (home middle) */
.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.info-card {
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-card-head {
  color: var(--white);
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.1rem;
}

.info-card-head svg {
  width: 22px;
  height: 22px;
  fill: var(--mint);
  flex-shrink: 0;
}

.info-card-head strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.info-card-body {
  padding: 0.9rem 0.85rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.info-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.info-card.urgent .info-card-body {
  background: linear-gradient(180deg, #fff, #f7f1f4);
}

/* Power section */
.power {
  padding: 1.5rem 0 0.5rem;
}

.power-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.1rem;
  align-items: center;
}

.power h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.about-copy {
  color: var(--muted);
  max-width: 38rem;
}

.support-note {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  background: rgba(168, 219, 198, 0.28);
  border-left: 3px solid var(--mint);
  color: var(--plum);
  font-size: 0.98rem;
}

/* Visitor counter — old-school odometer feel */
.visit-counter {
  margin: 1.5rem auto 0.25rem;
  text-align: center;
}

.visit-counter .odometer {
  display: inline-block;
  background: #1d1722;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
  font-family: var(--font-accent);
  font-size: 1.55rem;
  letter-spacing: 0.18em;
  color: #f4f0ea;
  border: 1px solid #4d4358;
  background-image: linear-gradient(180deg, #3a3144, #241c2c);
}

.visit-counter .label {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilac);
}

/* Page hero */
.page-hero {
  padding: 0.5rem 0 1rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  color: var(--plum);
  text-transform: uppercase;
}

.page-hero p {
  max-width: 44rem;
  margin-inline: auto;
  color: var(--muted);
}

.section {
  padding: 0.5rem 0 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card .zoom-frame {
  aspect-ratio: 1;
}

.feature-card .body {
  padding: 0.75rem 0.8rem 0.9rem;
  text-align: center;
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--teal);
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
}

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

.mission-box {
  padding: 1.1rem 1rem;
  color: var(--white);
  min-height: 8.5rem;
}

.mission-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  text-transform: lowercase;
}

.mission-box p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
}

.mission-box.coral {
  background: var(--coral);
}

.mission-box.teal {
  background: var(--teal);
}

.mission-box.mint {
  background: var(--mint);
  color: var(--plum);
}

.section-kicker {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1.1rem;
}

.gallery-single {
  max-width: 360px;
  margin: 0 auto 1rem;
}

.gallery-single .zoom-frame {
  aspect-ratio: 1;
  box-shadow: var(--shadow);
}

.center-copy {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  color: var(--muted);
}

.donate-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.donate-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: 0.75rem 0 1rem;
}

.donate-rule::before,
.donate-rule::after {
  content: "";
  width: min(140px, 22vw);
  height: 2px;
  background: #999;
}

.find-us {
  max-width: 40rem;
  margin: 0.5rem auto 1.25rem;
  padding: 0.5rem 0.25rem 0.5rem;
  text-align: center;
}

.find-us h2 {
  color: var(--plum);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.find-us .address {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.find-us .phone {
  margin-top: 0.85rem;
  font-size: 1.05rem;
}

.find-us .phone strong {
  color: #6a5a4e;
}

.find-us .phone a {
  color: var(--ink);
  font-weight: 700;
}

.find-us .phone a:hover {
  color: var(--coral);
}

.contact-note {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.contact-help {
  margin: 0.25rem 0 1.5rem;
}

.contact-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-card-links a {
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card-links a:hover {
  color: var(--coral);
}

.contact-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
  margin: 0.5rem 0 1.75rem;
  padding: 0.25rem 0 0.5rem;
}

.contact-spotlight-photo {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.contact-spotlight-copy h2 {
  color: var(--plum);
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 0.7rem;
}

.contact-spotlight-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 32rem;
}

@media (max-width: 720px) {
  .contact-spotlight {
    grid-template-columns: 1fr;
  }
}

.donate-page {
  text-align: center;
  padding: 1rem 0 2rem;
}

.donate-page p {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  color: var(--muted);
}

.thank-you-art {
  --thank-size: min(360px, 78vw);
  margin: 2rem auto 0.35rem;
  width: var(--thank-size);
  height: var(--thank-size);
  padding: 0;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  /* Soft circular fade so the image edges dissolve into the page */
  -webkit-mask-image: radial-gradient(
    circle closest-side,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.65) 70%,
    rgba(0, 0, 0, 0.25) 82%,
    transparent 96%
  );
  mask-image: radial-gradient(
    circle closest-side,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.65) 70%,
    rgba(0, 0, 0, 0.25) 82%,
    transparent 96%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.thank-you-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Gentle blur at the perimeter via layered soft look */
  filter: contrast(0.98) saturate(0.95);
}

.edu-intro {
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 0.5rem;
  color: var(--white);
  padding: 1.25rem 0 1.4rem;
  border-top: 6px solid #796a80;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand img {
  width: 48px;
  height: 40px;
  object-fit: contain;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.footer-brand span {
  color: #c4b3cf;
}

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

.footer-connected h3 {
  font-size: 1.2rem;
  margin: 0;
}

/*
  Mobile strategy (per client):
  - Desktop/tablet look stays as-is.
  - Home hero MUST keep the 3 animal panels side-by-side on phones
    (never stack into a vertical list — that confused the client).
  - Content below the hero can still reflow normally.
*/
@media (max-width: 960px) {
  .power-grid,
  .info-band,
  .mission-row,
  .card-grid,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  /* Help panel drops under hero on narrower screens; triptych stays 3-up */
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-triptych {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .home-hero .hero-card .zoom-frame {
    aspect-ratio: 209 / 360;
    min-height: 0;
  }

  .btn-lg {
    border-width: 10px;
  }
}

@media (max-width: 720px) {
  .container,
  .page-shell {
    width: min(100% - 0.85rem, var(--max));
  }

  .page-shell {
    margin-top: 0.65rem;
    padding: 0.85rem 0.7rem 1.1rem;
  }

  .header-contact {
    text-align: left;
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  /*
    Phones: keep MENU, but also show page links horizontally in the purple bar
    so Donate / Contact / etc. are visible without opening the dropdown.
  */
  .nav-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
  }

  .site-nav {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .site-nav ul {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 0.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.15rem;
  }

  .site-nav a {
    white-space: nowrap;
    font-size: 0.68rem;
    padding: 0.42rem 0.4rem;
    border-bottom-width: 2px;
  }

  .site-nav a[href="donate.html"] {
    color: #fff;
    background: rgba(255, 82, 65, 0.22);
    border-bottom-color: var(--coral);
  }

  /* MENU still expands a full vertical list for easier tapping */
  .site-nav.is-open {
    flex: 1 1 100%;
    width: 100%;
  }

  .site-nav.is-open ul {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    margin-top: 0.15rem;
  }

  .site-nav.is-open a {
    font-size: 0.88rem;
    padding: 0.55rem 0.45rem;
    text-align: left;
  }

  /* Phone hero: same 3-across composition as desktop, just tighter */
  .home-hero .hero-triptych {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem;
  }

  .home-hero .hero-card .zoom-frame {
    aspect-ratio: 209 / 380;
    min-height: 0;
  }

  .home-hero .hero-caption {
    min-height: 3.25rem;
    padding: 0.4rem 0.28rem 0.5rem;
  }

  .home-hero .hero-caption .word {
    font-size: clamp(0.95rem, 5.2vw, 1.35rem);
  }

  .home-hero .hero-caption .phrase {
    font-size: clamp(0.58rem, 2.8vw, 0.82rem);
  }

  .help-panel {
    text-align: center;
    align-items: center;
  }

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

@media (max-width: 420px) {
  /* Intentionally do NOT stack the home hero — keep 3 panels side by side */
  .home-hero .hero-triptych {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.22rem;
  }

  .home-hero .hero-card .zoom-frame {
    aspect-ratio: 209 / 400;
  }

  .home-hero .hero-caption {
    min-height: 2.9rem;
    padding: 0.32rem 0.2rem 0.4rem;
  }

  .home-hero .hero-caption .word {
    font-size: clamp(0.85rem, 4.8vw, 1.15rem);
  }

  .home-hero .hero-caption .phrase {
    font-size: clamp(0.52rem, 2.5vw, 0.72rem);
  }

  .card-grid.four {
    grid-template-columns: 1fr;
  }
}
