: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;
  }
}

/* Home page donation QR code */
.donation-qr-wrap {
  width: min(100%, 360px);
  margin: 22px auto 0;
  padding: 20px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.08);
}

.donation-qr-title {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 22px;
  font-weight: 800;
}

.donation-qr-link {
  display: inline-flex;
  padding: 10px;
  background: #ffffff;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease;
}

.donation-qr-link:hover,
.donation-qr-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.14);
  outline: none;
}

.donation-qr-link:focus-visible {
  box-shadow:
    0 0 0 4px rgba(15, 118, 110, 0.12),
    0 14px 34px rgba(15, 118, 110, 0.14);
}

.donation-qr-image {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.donation-qr-text {
  margin: 12px auto 0;
  max-width: 300px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .donation-qr-wrap {
    padding: 16px;
  }

  .donation-qr-image {
    width: 200px;
    height: 200px;
  }
}

.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;
  }
}


/* =======================================================================
   HOMEPAGE STORY REFRESH
   Home only: welcome -> mission -> pets -> giving.
   All shared header/footer, forms, navigation and original functionality
   are preserved above. These rules style only the refreshed home content.
   ======================================================================= */

/* Colorful, gently playful introduction */
.welcome-banner {
  background: #fff4e9;
  padding: 82px 16px 0;
}
.welcome-banner-inner {
  max-width: 1220px;
}
.welcome-banner p {
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  color: #a64a62;
  background: #fff;
  border: 1px solid #f7d9de;
  box-shadow: 0 4px 15px rgba(141, 58, 88, .05);
  display: inline-block;
  font-size: clamp(12px, 1.35vw, 15px);
  font-weight: 800;
  letter-spacing: .025em;
}
.content {
  width: 100%;
}
.hero {
  background: linear-gradient(133deg,#fff4e9 0%,#ffecf0 45%,#f0f3ff 100%);
  min-height: auto;
  padding: clamp(20px, 3vw, 40px) 20px clamp(60px, 7vw, 94px);
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}
.hero::before {
  left: -130px;
  bottom: -70px;
  background: rgba(255,255,255,.58);
}
.hero::after {
  right: -160px;
  top: -100px;
  background: rgba(246,192,216,.43);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0;
  gap: clamp(22px, 5vw, 68px);
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.hero-left {
  flex: 1 1 55%;
  min-width: 0;
  text-align: left;
}
.home-hero-kicker {
  display: inline-flex;
  max-width: 100%;
  padding: 9px 14px;
  border-radius: 999px;
  color: #9e4055;
  background: #fff;
  border: 1px solid #f7d3dc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(39px, 4.5vw, 67px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.045em;
  max-width: 700px;
  margin: 24px 0 20px;
  color: #30304c;
}
.home-hero-highlight { color: #e26383; }
.home-hero-highlight-second { color: #158275; }
.hero-sub {
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.73;
  max-width: 650px;
  color: #555269;
  margin: 0 0 26px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-actions .btn {
  margin: 0;
  padding: 16px 24px;
  min-height: 52px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 7px 22px rgba(117, 70, 85, .10);
}
.hero-actions .home-hero-main-cta,
.hero-actions .home-hero-main-cta:hover,
.hero-actions .home-hero-main-cta:focus {
  background: #157f73;
  color: #fff;
}
.hero-actions .home-hero-secondary-cta {
  background: #fff;
  color: #a13b64;
  border: 1px solid #f3ccd7;
}
.home-hero-footnote {
  font-size: 13px;
  line-height: 1.6;
  color: #685f73;
  margin: 22px 0 0;
  font-weight: 600;
}
.home-hero-footnote span { color: #e9638c; font-size: 19px; }
.hero-right {
  flex: 1 1 45%;
  min-width: 0;
  margin: 0;
}
.home-hero-photo-card {
  width: 100%;
  max-width: 505px;
  margin: 0 auto;
  border: 9px solid #fff;
  border-radius: 36px;
  position: relative;
  background: #f7c9d8;
  box-shadow: 0 22px 65px rgba(148, 70, 104, .19);
  transform: rotate(2deg);
  transition: transform .3s ease;
}
.home-hero-photo-card:hover { transform: rotate(0); }
.home-hero-photo-card .hero-image {
  display: block;
  width: 100%;
  height: clamp(310px, 33vw, 445px);
  max-width: none;
  max-height: none;
  border-radius: 27px;
  object-fit: cover;
  background: linear-gradient(135deg, #ffd1df,#d9eddf);
  box-shadow: none;
  transition: opacity .22s ease;
}
.home-hero-photo-card:hover .hero-image,
.home-hero-photo-card .hero-image:hover {
  transform: none;
  box-shadow: none;
}
.home-hero-photo-deco {
  position: absolute;
  z-index: 3;
  line-height: 1;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 7px 20px rgba(98,58,74,.12);
}
.home-hero-photo-deco-one {
  width: 64px;
  height: 64px;
  left: -32px;
  top: 30px;
  border-radius: 19px;
  background: #ffb5cc;
  color: #fff;
  font-size: 40px;
  transform: rotate(-15deg);
}
.home-hero-photo-deco-two {
  width: 52px;
  height: 52px;
  right: -18px;
  bottom: 65px;
  border-radius: 50%;
  background: #fee98f;
  color: #dc7880;
  font-size: 31px;
}
.home-hero-photo-caption {
  position: absolute;
  z-index: 2;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: max-content;
  max-width: 94%;
  border-radius: 999px;
  background: #fff;
  padding: 13px 19px;
  box-shadow: 0 10px 32px rgba(110,54,82,.16);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 900;
  color: #a34264;
  text-align: center;
}

/* Mission cards: easy-to-scan description of what the shelter does */
.home-mission {
  background: #fffdfb;
  padding: clamp(55px, 6vw, 86px) 18px 42px;
}
.home-mission-inner,
.home-giving-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.home-section-intro {
  text-align: center;
  margin: 0 auto 35px;
  max-width: 760px;
}
.home-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffeaf0;
  color: #af4168;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.home-section-intro h2 {
  font-size: clamp(29px,3.3vw,45px);
  letter-spacing: -.035em;
  line-height: 1.18;
  margin: 18px 0 12px;
  color: #33314e;
}
.home-section-intro h2 span { color: #e06c8c; }
.home-section-intro p {
  color: #686475;
  line-height: 1.75;
  font-size: 17px;
  margin: 0;
}
.home-mission-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}
.home-mission-card {
  padding: 26px 23px 24px;
  border-radius: 26px;
  border: 1px solid rgba(74,64,87,.055);
  box-shadow: 0 8px 30px rgba(68,48,78,.055);
  min-height: 250px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.home-mission-card:hover,
.home-mission-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(68,48,78,.1);
}
.home-mission-rescue { background: #fff0f3; }
.home-mission-care { background: #eaf7f5; }
.home-mission-homes { background: #fff5db; }
.home-mission-pantry { background: #f0edff; }
.home-mission-icon {
  display: grid;
  place-items: center;
  height: 61px;
  width: 61px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(68,48,78,.05);
  margin-bottom: 19px;
}
.home-mission-card h3 {
  font-size: 21px;
  color: #34334d;
  margin: 0 0 11px;
  letter-spacing: -.02em;
}
.home-mission-card p {
  color: #54536a;
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0;
}
.home-mission-card a {
  display: inline-block;
  margin-top: 13px;
  font-size: 14px;
  font-weight: 800;
  color: #80529e;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Preserve the established detailed About Us content, with a friendlier frame */
.who-we-are-preview {
  padding: 8px 18px 62px;
  background: #fffdfb;
}
.who-we-are-preview-inner-single {
  max-width: 1180px;
  background: #fff;
  border: 1px solid #f6dce1;
  box-shadow: 0 8px 30px rgba(119,58,86,.06);
}
.who-we-are-preview-inner-single::before {
  background: linear-gradient(#f2a9c3,#a7ddd0);
}
.who-we-are-preview-text {
  color: #5b5766;
  line-height: 1.8;
}

/* Feature the adoptable pets before asking visitors to donate */
.pets-section {
  background: linear-gradient(180deg,#f0fbf8 0%,#fff 54%);
  padding: 76px 18px 44px;
}
.pets-inner { max-width: 1180px; }
.pets-section > .pets-inner > .home-section-kicker { margin-bottom: 16px; }
.pets-inner h2#pets-heading {
  font-size: clamp(29px,3.1vw,42px);
  font-weight: 900;
  line-height: 1.2;
  color: #303e45;
  margin: 0;
}
.pets-sub {
  font-size: 17px;
  color: #5b6770;
  margin: 14px 0 28px;
}
.pets-grid { gap: 22px; }
.pet-card {
  border-radius: 23px;
  box-shadow: 0 12px 30px rgba(32,102,92,.09);
  border: 1px solid #dfefec;
  overflow: hidden;
}
.pet-photo { height: 210px; }
.pet-info { padding: 16px; }
.pet-name { font-size: 19px; }
.pet-age { background: #fff0f4; color: #9a4262; }
.home-adoption-fees-section { margin-top: 56px; }
.home-adoption-fees-card {
  background: #fffaf0;
  border-color: #f8e6c3;
  box-shadow: 0 8px 28px rgba(115,94,62,.07);
}
.adoption-path-section { background: #f7f4ff; }
.adopt-intro { background: #fbf9ff; }

/* Donation options remain fully usable, just lower in the page narrative */
.home-giving {
  padding: 80px 18px 20px;
  background: linear-gradient(180deg,#fff0f4,#fff9f0);
}
.home-giving .home-section-kicker { background: #fff; }
.home-giving-intro { max-width: 780px; }
.home-giving-main {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: stretch;
}
.home-giving-story {
  padding: 33px;
  background: #fce3eb;
  border: 1px solid #f8d2df;
  border-radius: 27px;
  box-shadow: 0 9px 24px rgba(116,57,84,.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.home-giving-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 21px;
  background: #fff;
  font-size: 37px;
  margin-bottom: 16px;
}
.home-giving-story h3 {
  color: #813a59;
  font-size: clamp(25px,2.6vw,34px);
  line-height: 1.15;
  margin: 0 0 17px;
}
.home-giving-story > p {
  color: #6c5562;
  line-height: 1.8;
  font-size: 16px;
  margin: 0 0 20px;
}
.home-giving-needs-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #ffffff;
  color: #8d3555;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .015em;
  border: 1px solid #efc1d1;
}
.home-giving-story > p strong {
  color: #7c304c;
}
.home-giving-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.home-giving-story .home-giving-donate-btn {
  margin: 0;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid #9e315b;
  background: #9e315b;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(126,45,79,.18);
}
.home-giving-story .home-giving-donate-btn:hover,
.home-giving-story .home-giving-donate-btn:focus-visible {
  background: #7e2448;
  border-color: #7e2448;
  color: #fff;
}
.home-giving-story .home-giving-wishlist-btn {
  margin: 0;
  background: #fff;
  border: 1px solid #f0c4d4;
  color: #913e61;
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 800;
}
.home-giving-story .home-giving-small {
  margin: 23px 0 0;
  color: #995978;
  font-weight: 800;
  font-size: 14px;
}
.home-giving .hero-donation-card {
  /* Do not stretch this card to match the taller fundraising appeal. */
  align-self: start;
  max-width: 100%;
  background: #fff;
  padding: 31px;
  box-shadow: 0 10px 34px rgba(119,58,86,.085);
  border: 1px solid #f7d8e0;
  border-radius: 27px;
}
.home-giving .hero-donation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(119,58,86,.12);
}
.home-giving .donation-info-title { font-size: clamp(24px,2.6vw,32px); }
.home-donation-highlights {
  background: #fff9f0;
  padding: 24px 18px 48px;
}
.home-donation-highlights-inner { max-width: 1180px; }
.home-donation-highlights .wishlist-category-section {
  border-color: #f1dfd7;
  box-shadow: 0 8px 29px rgba(115,74,62,.075);
}
.home-donation-callout {
  background: #fff9f0;
  padding: 34px 18px 80px !important;
}
.home-donation-callout h2 { color: #3b3550 !important; }
.home-donation-callout .donation-qr-wrap {
  border: 1px solid #f3d9dc;
  box-shadow: 0 10px 30px rgba(117,58,86,.075);
}

/* Site's existing header/footer and forms are deliberately unchanged. */
@media (max-width: 1030px) {
  .home-mission-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-mission-card { min-height: 220px; }
}
@media (max-width: 820px) {
  .welcome-banner { padding-top: 81px; }
  .hero { padding: 25px 18px 72px; }
  .hero-inner { flex-direction: column; gap: 37px; }
  .hero-left, .hero-right { width: 100%; flex: auto; }
  .hero-left { text-align: center; }
  .hero h1 { margin: 18px auto; max-width: 620px; font-size: clamp(34px,7vw,52px); }
  .hero-sub { max-width: 590px; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .home-hero-photo-card { max-width: 530px; transform: rotate(1deg); }
  .home-hero-photo-card .hero-image { height: clamp(285px,48vw,410px); }
  .home-giving-main { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .welcome-banner { padding: 78px 12px 0; }
  .welcome-banner p { padding: 8px 10px; font-size: 11px; line-height: 1.5; }
  .hero { padding: 23px 16px 69px; }
  .hero-inner { padding: 0; }
  .hero h1 { font-size: clamp(32px,9.2vw,43px); line-height: 1.12; }
  .hero-sub { font-size: 15px; line-height: 1.7; }
  .home-hero-kicker { font-size: 10px; line-height: 1.6; }
  .hero-actions { display: flex; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; margin: 0; }
  .hero-right { padding: 0 10px; }
  .home-hero-photo-card { border-width: 7px; border-radius: 28px; }
  .home-hero-photo-card .hero-image { height: 290px; border-radius: 21px; }
  .home-hero-photo-caption { font-size: 12px; padding: 10px 12px; }
  .home-hero-photo-deco-one { width: 44px; height: 44px; left: -21px; font-size: 28px; }
  .home-hero-photo-deco-two { width: 41px; height: 41px; font-size: 23px; }
  .home-mission { padding: 56px 14px 23px; }
  .home-section-intro h2 { font-size: 30px; }
  .home-section-intro p { font-size: 15px; }
  .home-mission-grid { grid-template-columns: 1fr; gap: 13px; }
  .home-mission-card { min-height: 0; padding: 23px; }
  .who-we-are-preview { padding: 12px 14px 46px; }
  .who-we-are-preview-inner-single .who-we-are-preview-copy { padding: 26px 22px 26px 29px; }
  .pets-section { padding: 55px 12px 30px; }
  .pets-inner h2#pets-heading { font-size: 28px; }
  .pets-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 14px; }
  .pet-photo { height: 190px; }
  .home-adoption-fees-card { padding: 22px; }
  .home-giving { padding: 58px 14px 18px; }
  .home-giving-story { padding: 24px; }
  .home-giving-actions { width: 100%; }
  .home-giving-actions .btn { width: 100%; }
  .home-giving .hero-donation-card { padding: 22px 18px; }
  .home-donation-highlights { padding: 16px 14px 36px; }
  .home-donation-callout { padding: 25px 14px 58px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-photo-card,
  .home-mission-card,
  .home-giving .hero-donation-card,
  .hero-actions .btn { transition: none; }
}


/* CSS-only navigation: desktop links stay visible without an HTML <details> wrapper. */
.mobile-nav-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.mobile-nav-checkbox:focus-visible + .menu-toggle {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 820px) {
  .site-header > .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
  }
  .site-header > .header-actions {
    display: none;
    position: fixed;
    top: 64px;
    right: 0;
    height: calc(100dvh - 64px);
    width: min(320px, 80vw);
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    transform: none;
    z-index: 110;
    box-shadow: -10px 20px 60px rgba(15,118,110,.08);
  }
  .mobile-nav-checkbox:checked ~ .header-actions {
    display: flex;
  }
}
.static-pets-message { grid-column: 1 / -1; text-align: center; padding: 25px 16px; }
.static-pets-message .btn { margin: 6px; }
.static-contact-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
.static-contact-card h3, .static-contact-card p { margin: 0; }


/* Fit the full desktop navigation inside the viewport, including narrower laptops. */
@media (min-width: 821px) {
  .site-header { height: auto; min-height: 64px; }
  .site-header > .brand { flex: 0 1 280px; min-width: 0; }
  .site-header > .header-actions { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .site-header .nav-links { flex-wrap: wrap; justify-content: flex-end; white-space: normal; gap: 2px 4px; }
  .site-header .nav-link { font-size: 16px; padding: 6px 7px; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .welcome-banner { padding-top: 145px; }
}

/* Match the original JavaScript-rendered pet card text presentation using CSS only.
   The original app_main_page.js applied these properties to species, names, ages, and metadata. */
#pets-grid .pet-species-badge,
#pets-grid .pet-name,
#pets-grid .pet-age,
#pets-grid .pet-meta {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Temporarily hide and disable pet Details links. Keep markup and JS for later re-enabling. */
.pets-grid .pet-details-btn {
  display: none !important;
}


/* CSP hardening: former static inline CSS, migrated without changing layout. */
:root {
      --anchor-offset: 110px;
    }

    /* Smooth scroll + offset for sticky header */
    html {
      scroll-behavior: smooth;
      scroll-padding-top: var(--anchor-offset);
    }

    /* Offset on the actual targets */
    #residents,
    #process,
    #contact {
      scroll-margin-top: var(--anchor-offset);
    }

    /* #top should be true top */
    #top {
      scroll-margin-top: 0px;
    }

/* Static styles formerly stored in HTML style attributes (same declarations). */
.aws-inline-01 { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.aws-inline-02 { margin:0;color:var(--muted);font-weight:700; }
.aws-inline-03 { position:relative; }
.aws-inline-04 { position:absolute;top:8px;left:8px;background:rgba(15,118,110,0.9);color:#fff;font-size:12px;font-weight:700;padding:4px 8px;border-radius:8px;z-index:2;box-shadow:0 2px 6px rgba(0,0,0,0.15); }
.aws-inline-05 { border:none;border-top:1px solid rgba(15,23,42,0.10);margin:18px 0; }
.aws-inline-06 { margin-top:12px; }
.aws-inline-07 { text-align:center;margin-bottom:10px; }
.aws-inline-08 { margin:0;font-size:32px;line-height:1.05;font-weight:800;color:var(--fg); }
.aws-inline-09 { margin:6px 0 0;color:var(--muted); }
.aws-inline-10 { margin:0 0 6px 0; font-size:36px; line-height:1.03; font-weight:800; color:var(--fg); }
.aws-inline-11 { margin:0 0 12px 0; color:var(--muted); font-size:15px; line-height:1.4; }
.aws-inline-12 { margin:8px 0 4px 0; font-weight:700; }
.aws-inline-13 { margin:0; color:var(--muted); }
.aws-inline-14 { margin-top:10px; }
.aws-inline-15 { margin:0; font-weight:700; }
.aws-inline-16 { margin:6px 0 0 0; color:var(--muted); }
.aws-inline-17 { margin-top:14px; }
.aws-inline-18 { min-width:160px; }
.aws-inline-19 { min-width:140px; }
.aws-inline-20 { text-align:center;padding:20px 12px 10px; }
.aws-inline-21 { margin:0 0 6px 0;font-size:32px;font-weight:700;color:var(--fg); }
.aws-inline-22 { margin:0;font-size:18px; }
.aws-inline-23 { color:var(--accent);font-weight:600;text-decoration:none; }
.aws-inline-24 { display:flex;align-items:center;gap:20px;flex-wrap:wrap;justify-content:center;padding:20px 12px; }
.aws-inline-25 { width:120px;height:auto;object-fit:contain; }
.aws-inline-26 { max-width:600px;text-align:left; }
.aws-inline-27 { margin:0 0 6px 0;font-size:26px;font-weight:700; }
.aws-inline-28 { margin:0;font-size:16px;line-height:1.5; }

/* JavaScript error/message state, no dynamic inline style permitted. */
.pets-load-message { margin: 0; color: var(--muted); font-weight: 700; }
