:root {
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --accent: #0f766e;
}

/* small utility for inline green text highlights used in headings */
.text-green {
  color: var(--accent);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* when the mobile nav is open, prevent page scroll */
body.nav-open {
  overflow: hidden
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 12px;
  border-bottom: 1px solid #eef2f5;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95));
  z-index: 90;
  /* raised so the header and its slide-over menu sit above the overlay */
  backdrop-filter: blur(6px);
}

/* mobile menu toggle button */
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: transform .18s ease, background-color .12s ease;
}

.menu-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.06)
}

.menu-toggle[aria-expanded="true"] {
  color: var(--accent);
  transform: translateY(-2px)
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  padding: 6px;
  border-radius: 8px;

  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background-color .18s ease;
  will-change: transform, box-shadow, background-color;
}

.brand:focus-visible {
  outline: none;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.08);
  transform: translateY(-4px);
  background: rgba(15, 118, 110, 0.03);
  border-radius: 10px;
}

.brand:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.06);
  background: rgba(15, 118, 110, 0.03);
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .36s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
  transform-origin: center;
  will-change: transform, box-shadow;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.brand-name {
  font-weight: 600;
  font-size: 18px;
  color: var(--fg);
  line-height: 1;
  transition: color .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
  will-change: color, transform;
}

.brand-tagline {
  font-size: 12px;
  line-height: 1.1;
  color: var(--muted);
  white-space: nowrap;
  transition: color .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name {
  color: var(--accent);
  transform: translateY(-2px);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Navigation links */
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .14s ease, color .12s ease;
  will-change: transform;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
  background: rgba(15, 118, 110, 0.06);
  outline: none;
  transform: translateY(-4px) scale(1.02);
}

/* Primary call-to-action */
.adopt-btn {
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  border-radius: 10px;
}

.adopt-btn:hover,
.adopt-btn:focus {
  background: #0b5e50;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
  border-color: transparent;
}

/* Mobile styles: collapse nav into a slide-over drawer */
@media (max-width:820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* hide original nav until toggled open */
  .header-actions {
    position: fixed;
    top: 64px;
    right: 0;
    height: 100vh;
    width: 320px;
    max-width: 80%;
    transform: translateX(100%);
    background: linear-gradient(180deg, #ffffff, #fbfbfb);
    box-shadow: -10px 20px 60px rgba(15, 118, 110, 0.08);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    transition: transform .36s cubic-bezier(.2, .8, .2, 1);
    z-index: 110;
    /* ensure the open drawer stacks above overlays and other page elements */
    border-left: 1px solid rgba(17, 24, 39, 0.04);
  }

  .header-actions.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* make CTA prominent in mobile menu */
  .nav-link.adopt-btn {
    margin-top: 6px;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* small device header adjustments */
  .site-header {
    padding: 0 10px;
    height: 64px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-tagline {
    font-size: 11px;
  }
}

/* when nav is open show a subtle overlay (use a real element so it can receive pointer events) */
@media (max-width:820px) {
  .nav-overlay {
    position: fixed;
    inset: 64px 0 0 0;
    /* sit below the header */
    background: rgba(0, 0, 0, 0.28);
    z-index: 65;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
    -webkit-tap-highlight-color: transparent;
  }

  /* when nav is open enable interactions on the overlay */
  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Desktop: ensure header-actions are inline */
@media (min-width:821px) {
  .header-actions {
    position: static;
    height: auto;
    transform: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-left: 0;
  }
}

/* rest of the stylesheet (hero, buttons, etc.) */

/* Hero */
.hero {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;

  /* Reserve space for the fixed header so hero content never sits under it,
     and keep the hero prominent while reducing excess vertical space. */
  padding: 12px 12px 4px;
  min-height: auto;
}

@media (min-width:821px) {
  .hero {
    min-height: calc(58vh - 64px);
  }
}

.hero-inner {
  max-width: 1200px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  width: 100%;
}

/* left column (text) */
.hero-left {
  flex: 1 1 48%;
  text-align: left;
  min-width: 260px;
}

.hero h1 {
  margin: 0 0 12px 0;
  font-size: 40px;
  line-height: 1.05;
  color: var(--fg);
  font-weight: 700;
}

.hero-sub {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 680px;
}

/* right column (image) */
.hero-right {
  flex: 1 1 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
}

.hero-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: 448px;
  /* limit image height to 80% of previous 560px */
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(15, 118, 110, 0.08);

  /* subtle lift for hero image */
  transition: transform .36s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
  will-change: transform, box-shadow;
}

.hero-donation-card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 34px rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.05);
  transition: transform .36s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
  will-change: transform, box-shadow;
}

.hero-right:hover .hero-donation-card,
.hero-donation-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px rgba(15, 118, 110, 0.10);
}

.donation-info-title {
  margin: 0 0 10px 0;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 800;
  color: var(--fg);
}

.donation-info-text {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.donation-any-amount-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donation-any-amount-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.donation-any-amount-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.donation-any-amount-input-wrap:focus-within {
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow:
    0 0 0 3px rgba(245, 158, 11, 0.16),
    0 10px 24px rgba(245, 158, 11, 0.10);
}

.donation-any-amount-currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: #d97706;
  background: rgba(245, 158, 11, 0.08);
  align-self: stretch;
}

.donation-any-amount-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--fg);
  font-size: 18px;
  font-weight: 700;
  padding: 16px 16px 16px 4px;
}

.donation-any-amount-input::placeholder {
  color: rgba(107, 114, 128, 0.9);
  font-weight: 600;
}

.donation-info-btn {
  margin: 4px 0 0 0;
  width: 100%;
}

.donation-info-btn-light {
  background: #f59e0b;
  color: #0b0b0b;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.14);
}

.donation-info-btn-light:hover,
.donation-info-btn-light:focus {
  background: #d97706;
  color: #fff;
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.18);
}

@media (max-width:820px) {
  .hero-donation-card {
    max-width: 100%;
  }

  .donation-info-title {
    font-size: 28px;
  }
}

@media (max-width:540px) {
  .hero-donation-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .donation-info-title {
    font-size: 24px;
  }

  .donation-any-amount-input {
    font-size: 16px;
    padding: 14px 14px 14px 4px;
  }
}

.hero-right:hover .hero-image,
.hero-image:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px rgba(15, 118, 110, 0.10);
}

.welcome-banner {
  width: 100%;
  padding: 92px 12px 10px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.welcome-banner-inner {
  max-width: 1200px;
  width: 100%;
}

.welcome-banner h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
}

@media (max-width: 820px) {
  .welcome-banner {
    padding: 84px 12px 6px;
  }

  .welcome-banner h1 {
    font-size: clamp(20px, 5.5vw, 30px);
  }
}

/* Responsive: stack on narrow screens */
@media (max-width:820px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-left {
    width: 100%
  }

  .hero-right {
    width: 100%;
    margin-top: 16px
  }

  .hero h1 {
    font-size: 28px
  }

  .hero-sub {
    font-size: 15px;
    margin-left: auto;
    margin-right: auto
  }
}

/* Buttons inside hero */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  background: transparent;
  border: 1px solid rgba(17, 24, 39, 0.06);
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
  cursor: pointer;
  margin: 0 6px;

  /* smooth motion and shadow changes */
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s cubic-bezier(.2, .8, .2, 1), background-color .12s ease;
  will-change: transform, box-shadow;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08)
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.08);
}

.btn.primary:hover {
  background: #0b5e50;
  /* darker green on hover */
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 94, 80, 0.16);
  border-color: transparent;
}

.btn:hover {
  background: rgba(15, 118, 110, 0.06);
  color: var(--fg);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
}

/* Mobile: ensure header fits in one screen height and touch targets are adequate */
@media (max-width:420px) {
  .site-header {
    height: 64px;
    padding: 0 10px
  }

  .brand-name {
    font-size: 16px
  }

  .brand-logo {
    width: 44px;
    height: 44px
  }

  .icon-btn {
    height: 44px;
    min-width: 44px
  }

  .nav-links {
    gap: 6px
  }

  .nav-link {
    padding: 10px 8px;
    font-size: 13px
  }

  .adopt-btn {
    padding: 10px 10px
  }

  /* Responsive hero sizing */
  .hero h1 {
    font-size: 22px
  }

  .hero-sub {
    font-size: 14px
  }

  .hero-inner {
    padding: 16px
  }

  .btn {
    padding: 10px 12px;
    font-size: 14px;
    margin: 6px 4px
  }
}

/* Home page featured donation cards shown above the green banner */
.home-donation-highlights {
  width: 100%;
  padding: 8px 12px 16px;
}

.home-donation-highlights-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-donation-highlights .wishlist-category-section {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.10);
  border-radius: 20px;
  box-shadow:
    0 6px 18px rgba(15, 118, 110, 0.06),
    0 18px 42px rgba(2, 6, 23, 0.08);
  padding: 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-donation-highlights .wishlist-items-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  flex: 1 1 auto;
  height: 100%;
}

.home-donation-highlights .wishlist-section-photo-wrap {
  position: relative;
  width: 100%;
}

.home-donation-highlights .wishlist-section-price-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 12px;
  background: #f97316;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

.home-donation-highlights .wishlist-section-photo {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.home-donation-highlights .wishlist-section-item-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--fg);
  text-align: left;
}

.home-donation-highlights .wishlist-section-item-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-align: left;
  flex: 1 1 auto;
}

.home-donation-highlights .wishlist-section-donate-btn {
  align-self: center;
  margin-top: 8px;
  background: #f97316;
  color: #ffffff;
  border-color: transparent;
  min-width: 160px;
}

.home-donation-highlights .wishlist-section-donate-btn:hover,
.home-donation-highlights .wishlist-section-donate-btn:focus {
  background: #ea580c;
  color: #ffffff;
  border-color: transparent;
}

@media (max-width:820px) {
  .home-donation-highlights-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width:540px) {
  .home-donation-highlights {
    padding: 8px 12px 14px;
  }

  .home-donation-highlights .wishlist-section-photo {
    height: 190px;
  }

  .home-donation-highlights .wishlist-section-item-title {
    font-size: 22px;
  }
}

/* Who We Are preview section above the Hill's banner */
.who-we-are-preview {
  width: 100%;
  padding: 8px 12px 20px;
}

.who-we-are-preview-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(255, 255, 255, 0.98)),
    #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.10);
  border-radius: 24px;
  box-shadow:
    0 10px 30px rgba(15, 118, 110, 0.06),
    0 20px 50px rgba(2, 6, 23, 0.08);
  overflow: hidden;
}

.who-we-are-preview-inner-single {
  grid-template-columns: 1fr;
}

.who-we-are-preview-inner-single .who-we-are-preview-copy {
  max-width: 100%;
  width: 100%;
}

.who-we-are-preview-inner-single {
  padding-right: 0;
}

.who-we-are-preview-inner-single .who-we-are-preview-text {
  max-width: 100%;
}

.who-we-are-preview-copy {
  padding: 30px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.who-we-are-preview-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.10);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.who-we-are-preview-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--fg);
  max-width: 720px;
}

.who-we-are-preview-text {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.who-we-are-preview-btn {
  align-self: flex-start;
  margin: 4px 0 0 0;
}

.who-we-are-preview-card {
  background: linear-gradient(180deg, #0f766e, #115e59);
  color: #ffffff;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.home-adoption-fees-section {
  margin: 36px 0 0;
}

.home-adoption-fees-card {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.98)),
    #ffffff;
  color: var(--fg);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 26px;
  padding: 30px;
  box-shadow:
    0 10px 30px rgba(15, 118, 110, 0.07),
    0 22px 55px rgba(2, 6, 23, 0.08);
}

.home-adoption-fees-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 18px;
}

.home-adoption-fees-header h3 {
  margin: 10px 0 8px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--fg);
}

.home-adoption-fees-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.who-we-are-preview-stat {
  padding: 16px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.who-we-are-preview-stat:last-child {
  border-bottom: 0;
}

.who-we-are-preview-stat strong {
  display: inline-block;
  margin-bottom: 8px;
  color: #000000;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.who-we-are-preview-stat span {
  display: block;
  color: #000000;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 900px) {
  .who-we-are-preview-inner {
    grid-template-columns: 1fr;
  }

  .who-we-are-preview-copy {
    padding: 26px 22px 18px;
  }

  .who-we-are-preview-copy h2 {
    font-size: 28px;
  }

  .who-we-are-preview-card {
    padding: 20px 22px 24px;
  }
}

@media (max-width: 540px) {
  .who-we-are-preview {
    padding: 8px 12px 16px;
  }

  .who-we-are-preview-copy h2 {
    font-size: 24px;
  }

  .who-we-are-preview-text {
    font-size: 15px;
  }
}

.who-we-are-preview-inner-single {
  position: relative;
}

.who-we-are-preview-inner-single::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #0f766e, #14b8a6);
}

.who-we-are-preview-inner-single .who-we-are-preview-copy {
  padding: 38px 36px 34px 42px;
}

/* Green banner below main content */
.green-banner {
  width: 100%;
  background: linear-gradient(90deg, #047857 0%, #059669 100%);
  color: #fff;
  padding: 16px 12px;
  /* increased vertical padding to raise divider height */
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.green-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* center the inner content horizontally */
  gap: 12px;
  padding: 10px;
  /* slightly larger inner padding for better balance */
  flex-wrap: wrap;
}

/* ensure the stats block centers its items when using inline styles in HTML */
.green-banner-stats {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.green-banner-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.green-banner-content .banner-text {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
}

.green-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.banner-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: transparent;
  padding: 10px 14px;
  border-radius: 10px;
}

.banner-btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px)
}

/* Mobile: compact banner layout */
@media (max-width:540px) {
  .green-banner-inner {
    padding: 12px;
    align-items: flex-start
  }

  .green-banner-actions {
    width: 100%;
    justify-content: flex-start
  }

  .green-banner-content {
    width: 100%
  }
}

/* Pets section */
.pets-section {
  width: 100%;
  padding: 12px 12px;
  /* reduced top/bottom padding to close gap under hero */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.pets-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px;
}

.pets-inner h2 {
  margin: 0 0 14px 0;
  font-size: 32px;
  /* increased for better readability */
  line-height: 1.03;
  color: var(--fg);
  font-weight: 700;
}

/* Responsive: scale the heading down on narrow viewports so layout stays balanced */
@media (max-width:540px) {
  .pets-inner h2 {
    font-size: 24px;
  }
}

/* header for pets section with "View All" link */
.pets-header {
  margin-bottom: 6px;
}

.view-all {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}

.view-all:hover,
.view-all:focus {
  background: rgba(15, 118, 110, 0.06);
  outline: none;
  text-decoration: none;
}

/* Ensure the header stacks nicely on small screens */
@media (max-width:540px) {
  .pets-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
  }

  .view-all {
    align-self: flex-start
  }
}

/* Grid layout */
.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

/* Pet card */
.pet-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform .12s ease, box-shadow .12s ease;
}

.pet-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(15, 118, 110, 0.08)
}

.pet-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;

  /* smooth scaling on hover via parent */
  transition: transform .36s cubic-bezier(.2, .8, .2, 1), filter .28s ease;
  will-change: transform, filter;
}

.pet-card:hover .pet-photo {
  transform: scale(1.04);
  filter: brightness(1.02);
}

.pet-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pet-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pet-name {
  margin: 0;
  font-size: 16px;
  color: var(--fg);
  font-weight: 700;
}

.pet-age {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  background: rgba(15, 118, 110, 0.06);
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.pet-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.2;
  flex: 1;
}

.pet-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

/* Ensure buttons inside cards are full-width on small screens */
@media (max-width:540px) {
  .pets-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px
  }

  .pet-photo {
    height: 140px
  }

  .pet-actions .btn {
    flex: 1
  }
}

/* Center the post text below the adoptable pets (desktop) and provide layout for contact + form */
.pets-post {
  text-align: center;
}

/* Intro panel above adoption steps: light gray background and padding so the intro text stands out */
.adopt-intro {
  background: #f3f4f6;
  /* light gray */
  padding: 12px;
  border-radius: 10px;
  display: block;
  width: 100%;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.03);
  margin-bottom: 10px;
  text-align: center;
}

/* Larger, responsive heading for the adoption path intro */
#adoption-path-heading {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
  margin: 0;
  color: var(--fg);
}

/* Scale the adoption-path heading down on small viewports so it fits cleanly */
@media (max-width:540px) {
  #adoption-path-heading {
    font-size: 20px;
    line-height: 1.08;
  }
}

/* New independent adoption path section: full-bleed panel that aligns with viewport edges */
.adoption-path-section {
  /* make the section span the full viewport width while keeping its content padded */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #f3f4f6;
  /* light gray */
  padding: 18px 12px;
  border-radius: 0;
  /* flush to edges */
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.03);
}

/* keep adopt-steps and step cards light gray (already set), ensure the section doesn't double up visual padding on small screens */
@media (max-width:820px) {
  .adoption-path-section {
    padding: 14px 10px;
  }
}

/* two-column contact + form layout */
.contact-form-wrapper {
  padding: 12px 8px;
  max-width: 1200px;
  width: 100%;
  margin: 18px auto;
  box-sizing: border-box;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  /* widened form column so inputs are longer */
  gap: 20px;
  align-items: start;
  max-width: 100%;
  margin: 0 auto;
}

/* contact details */
.contact-details {
  text-align: left;
  padding: 8px 12px;
}

.contact-details .details-block {
  margin-bottom: 8px;
  color: var(--muted);
}

/* new: align small icons with contact text */
.contact-details .details-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-details .details-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
}

/* ensure inline SVGs scale to fill the larger icon container */
.contact-details .details-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-details .details-text {
  flex: 1;
  min-width: 0;
}

/* form styles */
.contact-form {
  background: linear-gradient(180deg, #fff, #fbfbfb);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.field-label {
  font-size: 13px;
  color: var(--fg);
  font-weight: 600;
  text-align: left;
  display: block;
  width: 100%;
}

/* inputs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #ffffff;
  /* white fill for input interiors */
  font-size: 14px;
  color: var(--fg);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.06);
  border-color: rgba(15, 118, 110, 0.12);
}

/* small devices: stack columns and keep full width */
@media (max-width:820px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-details {
    order: 2;
  }

  /* show form first on narrow screens */
  .adopt-steps {
    margin-top: 12px;
  }
}


/* Adoption steps: horizontal row with compact cards */
.adopt-steps {
  display: flex;
  gap: 40px;
  /* increased spacing between steps */
  margin-top: 14px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  /* give the steps section a light-gray panel background with padding and rounded corners */
  background: #f3f4f6;
  padding: 16px;
  border-radius: 12px;
  /* ensure the steps container fully contains its child cards and aligns with surrounding content */
  width: 100%;
  margin: 0;
  max-width: 100%;
}

.adopt-steps .step {
  background: transparent;
  /* step cards now let the parent light-gray panel show through */
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.04);
  flex: 1 1 200px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  /* center contents horizontally so the number sits above the title */
  text-align: center;
  transition: transform .18s ease;
  /* smooth slide for first/last adjustments */
}

/* remove desktop nudges so each step sits fully inside the parent container */
.adopt-steps .step:first-child,
.adopt-steps .step:last-child {
  transform: none;
}

.adopt-steps .step-index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  /* lift the number above the decorative line and ensure it sits visually on top */
  position: relative;
  z-index: 2;
  margin: -8px auto 8px;
  /* negative top margin pulls the badge above the line */
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.12);
}

.adopt-steps .step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.adopt-steps .step-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  /* remove flex so descriptions wrap naturally when centered */
}

/* Stack steps vertically on narrow screens while keeping spacing consistent */
@media (max-width:540px) {

  /* On narrow screens keep the steps full-width and remove negative margins to fit the viewport */
  .adopt-steps {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0;
  }

  .adopt-steps .step {
    min-width: unset
  }

  .adopt-steps .step {
    align-items: center;
    text-align: center
  }

  .adopt-steps .step-desc {
    width: 100%
  }

  .adopt-steps .step-index {
    margin: 0 auto 6px
  }

  /* cancel desktop nudges on small viewports */
  .adopt-steps .step:first-child,
  .adopt-steps .step:last-child {
    transform: none;
  }
}

/* decorative horizontal line behind step numbers */
.adopt-steps {
  position: relative;
}

.adopt-steps::before {
  content: "";
  position: absolute;
  height: 6px;
  background: #bbf7d0;
  /* light green */
  /* nudge the decorative line down so the step numbers sit visually above it */
  top: 37px;
  z-index: 0;
  border-radius: 4px;

  /* span between step 1 and step 3 using CSS variables set from JS; fall back to sensible insets */
  left: var(--adopt-line-left, 80px);
  right: var(--adopt-line-right, 80px);
  width: auto;
  max-width: none;
}

/* reduce the left/right inset on narrower viewports so the line scales naturally */
@media (max-width:820px) {
  .adopt-steps::before {
    left: 48px;
    right: 48px;
    top: 34px;
  }
}

.adopt-steps .step {
  position: relative;
  z-index: 1;
  /* ensure cards appear above the line */
}

/* hide the decorative line on narrow screens (stacked layout) */
@media (max-width:540px) {
  .adopt-steps::before {
    display: none
  }
}

/* Footer styles */
.site-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 18px 12px 28px;
  margin-top: 18px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  min-width: 220px;
  padding: 6px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background-color .18s ease;
  will-change: transform, box-shadow, background-color;
}

.footer-brand:focus-visible {
  outline: none;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.08);
  transform: translateY(-4px);
  background: rgba(15, 118, 110, 0.03);
  border-radius: 10px;
}

.footer-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .36s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
  transform-origin: center;
  will-change: transform, box-shadow;
}

.footer-logo:hover,
.footer-logo:focus-visible {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.08);
}

.footer-name {
  transition: color .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
  will-change: color, transform;
}

.footer-name:hover,
.footer-brand:focus-visible .footer-name {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent
}

.footer-name {
  display: flex;
  flex-direction: column;
  line-height: 1
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500
}

/* Social links under brand name */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  /* increased spacing to separate social icons from logo/name */
  align-items: center;
}

.social-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  transition: background-color .12s ease, transform .12s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.social-link svg {
  width: 16px;
  height: 16px;
  display: block;
}

.social-link:hover,
.social-link:focus {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
  outline: none;
  border-color: transparent;
}

/* columns */
.footer-columns {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-col {
  min-width: 160px;
  max-width: 260px
}

.footer-col-title {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none
}

/* contact & actions */
.footer-contact {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin: 0
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--accent);
  text-decoration: none;
  outline: none;
}

.footer-hours {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin: 0 0 8px 0
}

.footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px
}

.site-footer .btn {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px
}

/* adapt button styles for dark footer */
.site-footer .btn.primary {
  background: #0f766e;
  color: #fff;
  border-color: transparent;
}

.site-footer .btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Donate button (global) make outside-footer donate orange */
.btn.donate {
  background: #f59e0b;
  /* amber */
  color: #0b0b0b;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
}

.btn.donate:hover,
.btn.donate:focus {
  background: #d97706;
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
}

/* Donate button in footer: high-contrast amber variant */
.site-footer .btn.donate {
  background: #f59e0b;
  /* amber */
  color: #0b0b0b;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.12);
}

.site-footer .btn.donate:hover,
.site-footer .btn.donate:focus {
  background: #d97706;
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
}

/* keep non-primary footer buttons subtle, but make primary footer CTA darker on hover */
.site-footer .btn:hover {
  filter: brightness(1.05);
  transform: none;
}

/* explicitly darken primary footer CTA on hover to match site primary behavior */
.site-footer .btn.primary:hover {
  background: #0b5e50;
  color: #fff;
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 94, 80, 0.16);
}

/* bottom row */
.footer-bottom {
  max-width: 1200px;
  margin: 12px auto 0;
  padding-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
}

.footer-legal {
  display: flex;
  gap: 12px;
  align-items: center
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px
}

.footer-legal a:hover {
  color: var(--accent);
  text-decoration: none
}

.copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0
}

/* Responsive footer: stack on small screens */
@media (max-width:820px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start
  }

  .footer-columns {
    justify-content: flex-start
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
  }
}

/* container for form fields inside the contact form: distinct background and padding */
.form-fields {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(17, 24, 39, 0.04);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.03);
}

/* slightly reduce internal padding on very small screens to maintain fit */
@media (max-width:420px) {
  .form-fields {
    padding: 10px;
    gap: 8px;
  }
}


/* ---------- Softer inputs inside ALL popups/modals ---------- */
.modal .modal-form input[type="text"],
.modal .modal-form input[type="email"],
.modal .modal-form input[type="password"],
.modal .modal-form input[type="tel"],
.modal .modal-form input[type="date"],
.modal .modal-form input[type="number"],
.modal .modal-form select,
.modal .modal-form textarea {
  padding: 10px 12px;
  border-radius: 10px;

  /* make borders less distinct */
  border: 1px solid rgba(17, 24, 39, 0.035);
  background: rgba(17, 24, 39, 0.02);

  color: var(--fg);
  font-size: 14px;
  outline: none;

  /* subtle depth instead of a strong border */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.modal .modal-form input::placeholder,
.modal .modal-form textarea::placeholder {
  color: rgba(107, 114, 128, 0.75);
}

.modal .modal-form input:focus,
.modal .modal-form select:focus,
.modal .modal-form textarea:focus {
  /* keep focus visible but still soft */
  border-color: rgba(15, 118, 110, 0.14);
  box-shadow:
    0 0 0 3px rgba(15, 118, 110, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* Optional: slightly soften the date/number spinner look on some browsers */
.modal .modal-form input[type="date"],
.modal .modal-form input[type="number"] {
  appearance: none;
}



/* ---------- Pet modal (overlay) ---------- */
body.modal-open {
  overflow: hidden;
}

.add-pet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
}

.add-pet-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  z-index: 210;
}

/* Make sure hidden attribute truly hides */
.add-pet-modal[hidden],
.add-pet-backdrop[hidden] {
  display: none !important;
}

/* If there isn't already have modal styling elsewhere, these help a lot */
/* Narrower Add Pet modal */
.add-pet-modal .modal-panel {
  width: min(520px, 92vw);
  /* was wider before */
  max-height: min(86vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.add-pet-modal .modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.add-pet-modal .modal-close {
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.add-pet-modal .modal-close:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
}

.add-pet-modal .modal-form {
  padding: 14px;
}


/* ---------- Donate modal (overlay) ---------- */
.donate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
}

.donate-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  z-index: 210;
}

/* Make sure hidden attribute truly hides */
.donate-modal[hidden],
.donate-backdrop[hidden] {
  display: none !important;
}

/* Panel sizing + scrolling */
.donate-modal .modal-panel {
  width: min(520px, 92vw);
  max-height: min(86vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.donate-modal .modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.donate-modal .modal-close {
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.donate-modal .modal-close:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
}

.donate-modal .modal-form {
  padding: 14px;
}


/* ---------- Volunteer modal (overlay) ---------- */
.volunteer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
}

.volunteer-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  z-index: 210;
}

/* Make sure hidden attribute truly hides */
.volunteer-modal[hidden],
.volunteer-backdrop[hidden] {
  display: none !important;
}

/* Panel sizing + scrolling */
.volunteer-modal .modal-panel {
  width: min(560px, 92vw);
  max-height: min(86vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.volunteer-modal .modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.volunteer-modal .modal-close {
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.volunteer-modal .modal-close:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
}

.volunteer-modal .modal-form {
  padding: 14px;
}


/* ---------- Admin modal (overlay) ---------- */
.admin-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
}

.admin-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  z-index: 210;
}

/* Make sure hidden attribute truly hides */
.admin-modal[hidden],
.admin-backdrop[hidden] {
  display: none !important;
}

/* Panel sizing + scrolling */
.admin-modal .modal-panel {
  width: min(420px, 92vw);
  max-height: min(86vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.admin-modal .modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-modal .modal-close {
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.admin-modal .modal-close:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
}

.admin-modal .modal-form {
  padding: 14px;
}

/* ---------- Ensure modal title is always above other header text ---------- */
.modal .modal-header {
  /* override the per-modal flex headers with a 2-column grid:
     left column = title + subtitle stacked
     right column = close button */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 6px;
  align-items: start;
}

.modal .modal-header>h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.modal .modal-header>.modal-sub {
  grid-column: 1;
  grid-row: 2;
}

.modal .modal-header>.modal-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: start;
}

.home-donation-callout {
  margin-top: 0;
}

@media (min-width:821px) {
  .home-donation-callout {
    padding-top: 8px !important;
  }
}

.donations-callout-link {
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

.donations-callout-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  opacity: 0;
  transform: scaleX(0.85);
  transform-origin: left;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.donations-callout-link:hover {
  color: #0b5e50;
  /* slightly darker accent */
}

.donations-callout-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Pet food partner logo hover animation (with glow + link support) */
.partner-logo-link {
  display: inline-flex;
  border-radius: 12px;
}

.partner-logo-link img {
  transition:
    transform .28s cubic-bezier(.2, .8, .2, 1),
    box-shadow .28s ease,
    filter .28s ease;
  will-change: transform, box-shadow, filter;
  border-radius: 12px;
}

.partner-logo-link:hover img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.22);
  filter: drop-shadow(0 0 10px rgba(15, 118, 110, 0.35));
}

/* PayPal + Venmo donation options */
.donation-payment-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.donation-payment-actions-any-amount .donation-info-btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 4px 0 0 0;
}

.donation-info-btn-venmo,
.donation-venmo-btn {
  background: #008CFF;
  color: #fff;
  border-color: transparent;
}

.donation-info-btn-venmo:hover,
.donation-info-btn-venmo:focus,
.donation-venmo-btn:hover,
.donation-venmo-btn:focus {
  background: #0074d4;
  color: #fff;
  border-color: transparent;
}

.wishlist-card-payment-actions {
  flex-wrap: nowrap;
  margin-top: 8px;
}

.wishlist-card-payment-actions form {
  display: flex;
  flex: 1 1 0;
  margin: 0;
}

.wishlist-card-payment-actions .wishlist-section-donate-btn {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: stretch;
}

@media (max-width: 540px) {
  .donation-payment-actions,
  .wishlist-card-payment-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .donation-payment-actions-any-amount .donation-info-btn,
  .wishlist-card-payment-actions form,
  .wishlist-card-payment-actions .wishlist-section-donate-btn {
    width: 100%;
  }
}

/* Keep the featured $100 and $150 Venmo buttons blue */
.wishlist-card-payment-actions .featured-venmo-btn,
.wishlist-card-payment-actions .featured-venmo-btn:visited {
  background: #008CFF;
  color: #ffffff;
  border-color: transparent;
}

.wishlist-card-payment-actions .featured-venmo-btn:hover,
.wishlist-card-payment-actions .featured-venmo-btn:focus,
.wishlist-card-payment-actions .featured-venmo-btn:active {
  background: #0074d4;
  color: #ffffff;
  border-color: transparent;
}



/* Adopt Pet popup: Dogs / Cats segmented toggle */
.adopt-species-toggle {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.adopt-species-toggle > .field-label {
  display: block;
  margin-bottom: 8px;
}

.adopt-species-toggle-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  background: #eef2f5;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 12px;
}

.adopt-species-toggle-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.adopt-species-toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.adopt-species-toggle-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 800;
  color: var(--muted);
  background: transparent;
  transition:
    background-color .16s ease,
    color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.adopt-species-toggle-option input:checked + span {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.18);
}

.adopt-species-toggle-option:hover span {
  transform: translateY(-1px);
}

.adopt-species-toggle-option input:focus-visible + span {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.adoption-species-specific[hidden] {
  display: none !important;
}

@media (max-width: 420px) {
  .adopt-species-toggle-option span {
    padding: 10px 8px;
    font-size: 14px;
  }
}


/* ==========================================================================
   FUNDRAISING PAGE
   ========================================================================== */

.fundraising-main {
  flex: 1 0 auto;
  padding-top: 64px;
}

.fundraising-hero {
  padding: 72px 20px 56px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(17, 24, 39, 0.05);
}

.fundraising-hero-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.fundraising-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fundraising-hero h1 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.fundraising-intro {
  max-width: 730px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.fundraising-donate-btn {
  margin-top: 28px;
}

.bottle-drive-section {
  padding: 64px 20px;
  background: #ffffff;
}

.bottle-drive-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.bottle-drive-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 42px;
  padding: 42px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: 0 22px 60px rgba(15, 118, 110, 0.08);
}

.bottle-drive-flyer-wrap {
  align-self: start;
  min-width: 0;
  text-align: center;
}

.bottle-drive-flyer-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow:
    0 12px 30px rgba(15, 118, 110, 0.10),
    0 4px 12px rgba(2, 6, 23, 0.06);
  transition:
    transform .22s cubic-bezier(.2, .8, .2, 1),
    box-shadow .22s ease;
}

.bottle-drive-flyer-link:hover,
.bottle-drive-flyer-link:focus-visible {
  transform: translateY(-5px);
  box-shadow:
    0 20px 44px rgba(15, 118, 110, 0.14),
    0 8px 18px rgba(2, 6, 23, 0.08);
  outline: none;
}

.bottle-drive-flyer-link:focus-visible {
  box-shadow:
    0 0 0 4px rgba(15, 118, 110, 0.12),
    0 20px 44px rgba(15, 118, 110, 0.14);
}

.bottle-drive-flyer {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  background: #ffffff;
}

.bottle-drive-flyer-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bottle-drive-content h2 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 900;
}

.bottle-drive-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.bottle-drive-steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.bottle-drive-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.055);
}

.bottle-drive-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.bottle-drive-step h3 {
  margin: 1px 0 4px;
  color: var(--fg);
  font-size: 17px;
}

.bottle-drive-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.bottle-drive-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid #f59e0b;
  border-radius: 0 12px 12px 0;
  background: rgba(245, 158, 11, 0.08);
  color: var(--fg);
}

.bottle-drive-note span {
  color: var(--muted);
  line-height: 1.55;
}

.bottle-drive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.bottle-drive-actions .btn {
  margin: 0;
}

/* Invitation for visitors who want to organize their own fundraiser */
.host-fundraiser-section {
  padding: 0 20px 44px;
  background: #ffffff;
}

.host-fundraiser-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 38px 34px;
  text-align: center;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 22px;
  background: linear-gradient(135deg, #edf9f6, #f8fafc);
}

.host-fundraiser-inner h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.2;
  color: var(--fg);
}

.host-fundraiser-inner p {
  max-width: 690px;
  margin: 16px auto 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.host-fundraiser-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.host-fundraiser-actions .btn {
  margin: 0;
}

@media (max-width: 480px) {
  .host-fundraiser-section {
    padding: 0 14px 30px;
  }

  .host-fundraiser-inner {
    padding: 28px 18px;
  }

  .host-fundraiser-actions {
    flex-direction: column;
  }

  .host-fundraiser-actions .btn {
    width: 100%;
  }
}

.fundraising-bottom-cta {
  padding: 0 20px 72px;
  background: #ffffff;
}

.fundraising-bottom-cta-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 34px;
  text-align: center;
  border-radius: 22px;
  background: #f3f4f6;
  border: 1px solid rgba(17, 24, 39, 0.05);
}

.fundraising-bottom-cta h2 {
  margin: 0;
  color: var(--fg);
  font-size: clamp(26px, 4vw, 36px);
}

.fundraising-bottom-cta p {
  max-width: 680px;
  margin: 12px auto 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.fundraising-bottom-cta .btn {
  margin: 0;
}

@media (max-width: 820px) {
  .fundraising-hero {
    padding: 52px 18px 44px;
  }

  .bottle-drive-section {
    padding: 42px 14px;
  }

  .bottle-drive-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .bottle-drive-flyer-wrap {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .bottle-drive-flyer {
    max-height: none;
  }

  .bottle-drive-actions {
    flex-direction: column;
  }

  .bottle-drive-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .fundraising-intro {
    font-size: 16px;
  }

  .bottle-drive-card {
    padding: 18px;
    border-radius: 18px;
  }

  .bottle-drive-step {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  .bottle-drive-step-number {
    width: 36px;
    height: 36px;
  }

  .fundraising-bottom-cta {
    padding: 0 14px 48px;
  }

  .fundraising-bottom-cta-inner {
    padding: 24px 18px;
  }
}


/* Static navigation: original appearance with a sticky desktop header. */
.mobile-nav-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.mobile-nav-checkbox:focus-visible + .menu-toggle {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.site-header {
  position: sticky;
  top: 0;
  min-height: 64px;
  height: auto;
}
.fundraising-main { padding-top: 0; }
@media (min-width: 821px) {
  .site-header { flex-wrap: wrap; padding-block: 6px; }
  .brand { flex: 0 1 auto; }
  .header-actions { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; white-space: normal; gap: 3px 5px; }
  .nav-link { font-size: 16px; white-space: nowrap; padding: 7px 9px; }
}
@media (min-width: 821px) and (max-width: 1620px) {
  .site-header { justify-content: center; row-gap: 0; }
  .brand { flex: 1 1 100%; justify-content: center; }
  .header-actions { flex: 1 1 100%; justify-content: center; }
  .nav-links { justify-content: center; }
}
@media (max-width: 820px) {
  .site-header { height: 64px; min-height: 64px; flex-wrap: nowrap; padding-block: 0; }
  .mobile-nav-checkbox:checked ~ .header-actions { transform: translateX(0); }
  .header-actions { height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .menu-toggle { display: inline-flex; }
  .nav-link { font-size: 16px; }
}
