@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
  --color-rust: #8B3A2A;
  --color-green: #2D4A3E;
  --color-amber: #C17A5A;
  --color-sage: #8A9E8C;
  --color-cream: #F0EDE6;
  --color-cream-dark: #E4DED4;
  --color-white: #FFFFFF;
  --color-text: #1C1C1C;
  --color-text-muted: #5A5A5A;
  --color-green-dark: #1A2B24;
  --color-rust-dark: #722f21;
  --color-amber-dark: #a8633d;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--color-cream);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-rust);
  margin-bottom: 12px;
}

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

.btn-primary {
  display: inline-block;
  background: var(--color-rust);
  color: var(--color-white);
  border-radius: 6px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--color-rust);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
  background: #732f22;
  border-color: #732f22;
  color: var(--color-white);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  border-radius: 6px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-green);
}

.navbar {
  background: var(--color-green);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
}

.navbar-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-amber);
}

.hero-section {
  min-height: 92vh;
  background: var(--color-green);
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-section .section-label {
  color: var(--color-amber);
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--color-white);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 20px;
}

.hero-text p,
.hero-subtext {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-text p.hero-trust,
.hero-trust {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-top: 24px;
  margin-bottom: 0;
  max-width: none;
}

.hero-trust i {
  color: var(--color-amber);
  margin-right: 8px;
}

.hero-visual {
  width: 100%;
}

.hero-image-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.hero-image-card > .fa-paw {
  font-size: 8rem;
  color: var(--color-amber);
  opacity: 0.15;
}

.hero-stat-pill {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--color-white);
  color: var(--color-green);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
}

.hero-stat-pill i {
  color: var(--color-rust);
  margin-right: 8px;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 12px;
}

.stats-bar {
  background: var(--color-rust);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--color-white);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.mission-image {
  background: var(--color-cream-dark);
  border-radius: 12px;
  min-height: 380px;
  overflow: hidden;
}

.mission-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.help-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: var(--color-rust);
}

.help-card h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-green);
  margin-bottom: 12px;
}

.help-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.featured-animals {
  padding: 100px 0;
}

.featured-animals .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.featured-animals h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--color-green);
}

.animals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.animal-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
}

.animal-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.animal-info {
  padding: 24px;
}

.animal-info h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-green);
  margin-bottom: 8px;
}

.animal-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.animal-info .btn-adopt,
.animal-info .btn-primary {
  background: var(--color-rust);
  color: var(--color-white);
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

.donate-cta {
  background: var(--color-green);
  padding: 80px 0;
  text-align: center;
}

.donate-cta h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--color-white);
  margin-bottom: 16px;
}

.donate-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.donate-cta .btn-donate,
.donate-cta .btn-primary {
  background: var(--color-amber);
  color: var(--color-white);
  border: 2px solid var(--color-amber);
  border-radius: 6px;
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 600;
}

.donate-cta .btn-donate:hover,
.donate-cta .btn-primary:hover {
  background: #a8684c;
  border-color: #a8684c;
  color: var(--color-white);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-about p {
  font-size: 0.9rem;
}

.footer-links a,
.footer-contact p,
.footer-social a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--color-amber);
}

.footer-social {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-green);
    padding: 16px 24px 24px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content,
  .stats-grid,
  .animals-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-card {
    min-height: 280px;
  }

  .hero-stat-pill {
    white-space: normal;
    text-align: center;
    width: calc(100% - 32px);
  }

  .hero-image img {
    height: 280px;
  }

  .mission-image,
  .mission-image img {
    min-height: 240px;
    height: 240px;
  }

  .featured-animals {
    padding: 64px 0;
  }

  .donate-cta {
    padding: 56px 0;
  }
}

.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--color-green);
  padding: 80px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #ffffff;
  line-height: 1.15;
  margin: 16px 0 24px;
}

.hero-content p:not(.hero-trust) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.hero-content .section-label {
  color: var(--color-amber);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 24px !important;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust i {
  color: var(--color-rust);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-card {
  width: 100%;
  max-width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-image-card .fa-paw {
  font-size: 8rem;
  color: var(--color-amber);
  opacity: 0.15;
}

.hero-stat-pill {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-rust);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: normal;
  text-align: center;
  width: max-content;
  max-width: 90%;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive hero */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-image-card {
    height: 280px;
    max-width: 100%;
  }
}

/* ── Mission Section ── */
.mission-section {
  padding: 100px 0;
  background: var(--color-cream);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mission-text .section-label {
  display: inline-block;
  margin-bottom: 16px;
}

.mission-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--color-green);
  line-height: 1.25;
  margin-bottom: 24px;
}

.mission-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.mission-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 28px;
  list-style: none;
  padding: 0;
}

.mission-pillars li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.mission-pillars li i {
  color: var(--color-rust);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mission-visual {
  position: relative;
}

.mission-image-block {
  width: 100%;
  height: 380px;
  background: var(--color-cream-dark);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.mission-image-block i {
  font-size: 7rem;
  color: var(--color-green);
  opacity: 0.25;
}

.mission-badge {
  position: absolute;
  bottom: -24px;
  left: 32px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  max-width: 260px;
}

.mission-badge i {
  font-size: 1.5rem;
  color: var(--color-rust);
  margin-top: 2px;
  opacity: 1;
}

.mission-badge strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.mission-badge span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ── How We Help Section ── */
.howwehelp-section {
  padding: 100px 0;
  background: var(--color-cream-dark);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-green);
  margin: 12px 0 16px;
  line-height: 1.25;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.help-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.help-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 28px;
  border-top: 3px solid var(--color-rust);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.help-icon-circle {
  width: 56px;
  height: 56px;
  background: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.help-icon-circle i {
  font-size: 1.4rem;
  color: var(--color-green);
}

.help-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--color-green);
  margin-bottom: 12px;
}

.help-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Responsive: Mission + How We Help ── */
@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .mission-badge {
    position: static;
    margin-top: 20px;
    max-width: 100%;
  }
  .mission-pillars {
    grid-template-columns: 1fr;
  }
  .help-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Featured Animals Section ── */
.animals-section {
  padding: 100px 0;
  background: var(--color-cream);
}

.animals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.animal-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.animal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.09);
}

.animal-img-placeholder {
  height: 240px;
  background: var(--color-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.animal-img-placeholder i {
  font-size: 4rem;
  color: var(--color-sage);
}

.animal-info {
  padding: 24px;
}

.animal-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-rust);
  background: rgba(139, 58, 42, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.animal-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--color-green);
  margin-bottom: 10px;
}

.animal-info p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn-adopt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-rust);
  text-decoration: none;
  border-bottom: 2px solid var(--color-rust);
  padding-bottom: 2px;
  transition: gap 0.2s ease;
}

.btn-adopt:hover {
  gap: 12px;
}

/* ── Donate Section ── */
.donate-section {
  padding: 100px 0;
  background: var(--color-green);
}

.donate-inner {
  max-width: 720px;
  margin: 0 auto;
}

.donate-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #ffffff;
  margin: 12px 0 20px;
  line-height: 1.2;
}

.donate-inner > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.donate-amounts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.donate-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-donate-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-amber);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 42px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-donate-large:hover {
  background: var(--color-amber-dark);
  transform: translateY(-2px);
}

.donate-note {
  margin-top: 20px !important;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.donate-note i {
  font-size: 0.8rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--color-green-dark);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #ffffff;
  display: block;
  margin: 10px 0 14px;
}

.footer-grid > div > p {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.75;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
  background: var(--color-rust);
  border-color: var(--color-rust);
  color: #ffffff;
}

.site-footer h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 20px;
}

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

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.site-footer ul a:hover {
  color: var(--color-amber);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
}

.footer-contact li i {
  color: var(--color-amber);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--color-amber);
}

/* ── Responsive: Animals + Donate + Footer ── */
@media (max-width: 768px) {
  .animals-grid {
    grid-template-columns: 1fr;
  }
  .donate-amounts {
    flex-direction: column;
    align-items: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Scroll Reveal Animation ── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Active Nav Link ── */
#mainNav .nav-link.active {
  color: var(--color-amber) !important;
}

#mainNav .btn-donate.active {
  background: #722f21 !important;
  outline: 2px solid rgba(255,255,255,0.3);
}

/* ── Navbar Scrolled State ── */
#mainNav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* ── Button Donate in Navbar ── */
.btn-donate {
  background: var(--color-rust) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-donate:hover {
  background: var(--color-rust-dark);
}

nav#mainNav {
  background: var(--color-green) !important;
  min-height: 72px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

nav#mainNav .navbar-brand,
nav#mainNav .nav-link {
  color: #ffffff;
}

nav#mainNav .nav-link:hover {
  color: var(--color-amber);
}

nav#mainNav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

nav#mainNav .navbar-toggler-icon {
  filter: invert(1);
}

a.btn-primary {
  display: inline-block;
  background: var(--color-rust) !important;
  color: #ffffff !important;
  border-radius: 6px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--color-rust) !important;
  text-decoration: none;
}

a.btn-primary:hover {
  background: #732f22 !important;
  border-color: #732f22 !important;
  color: #ffffff !important;
}

a.btn-secondary {
  display: inline-block;
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  border-radius: 6px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

a.btn-secondary:hover {
  background: #ffffff !important;
  color: var(--color-green) !important;
}

/* ── Scroll Animations ── */

/* Base states — elements start hidden */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.anim-scale-up {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Revealed state */
.anim-fade-up.in-view,
.anim-fade-left.in-view,
.anim-fade-right.in-view,
.anim-scale-up.in-view {
  opacity: 1;
  transform: none;
}

/* Stagger delays for grid children */
.anim-stagger > *:nth-child(1) { transition-delay: 0s; }
.anim-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.anim-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.anim-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.anim-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.anim-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-fade-left,
  .anim-fade-right,
  .anim-scale-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-rust);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, 
              visibility 0.3s ease, background 0.2s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(139, 58, 42, 0.35);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-rust-dark);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* ── Page Loader ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-paw {
  font-size: 2.8rem;
  color: var(--color-amber);
  animation: pawPulse 0.9s ease-in-out infinite alternate;
}

@keyframes pawPulse {
  from { transform: scale(0.85); opacity: 0.6; }
  to   { transform: scale(1.1);  opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-paw { animation: none; }
  #page-loader { transition: none; }
}

/* ── Navbar scrolled refined ── */
#mainNav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
  min-height: 62px !important;
  transition: min-height 0.3s ease, box-shadow 0.3s ease;
}

#mainNav {
  transition: min-height 0.3s ease, box-shadow 0.3s ease;
}





