:root {
  --psc-purple: #4a2c6d;
  --psc-purple-dark: #3a2255;
  --psc-teal: #00a3b4;
  --psc-teal-dark: #008a99;
  --psc-magenta: #c94f9a;
  --psc-red: #c62828;
  --psc-bg-soft: #f4f1f8;
  --psc-text: #2b2b2b;
  --psc-heading: "Bebas Neue", Impact, sans-serif;
  --psc-body: "DM Sans", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--psc-body);
  color: var(--psc-text);
  background: #fff;
}

h1, h2, h3, h4, h5, h6,
.display-heading {
  font-family: var(--psc-heading);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ====== HEADER / NAV ====== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(74, 44, 109, 0.08);
  z-index: 1030;
}

.site-header .navbar-brand {
  font-family: var(--psc-heading);
  font-size: 1.6rem;
  color: var(--psc-purple) !important;
  letter-spacing: 0.04em;
}

.site-header .nav-link {
  color: var(--psc-purple) !important;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.6rem !important;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--psc-teal) !important;
}

.site-header .nav-link--accent {
  color: var(--psc-magenta) !important;
}

.site-header .dropdown-menu {
  border: none;
  box-shadow: 0 8px 24px rgba(74, 44, 109, 0.12);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 12rem;
}

.site-header .dropdown-item {
  font-size: 0.85rem;
  padding: 0.45rem 1.25rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--psc-purple);
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
  background: var(--psc-bg-soft);
  color: var(--psc-teal);
}

/* ====== BUTTONS ====== */
.btn-cta {
  --bs-btn-bg: var(--psc-teal);
  --bs-btn-border-color: var(--psc-teal);
  --bs-btn-hover-bg: var(--psc-teal-dark);
  --bs-btn-hover-border-color: var(--psc-teal-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.25rem;
  border-radius: 2rem;
}

.btn-cta img,
.btn-outline-light img {
  width: 1.1rem;
  height: auto;
  margin-left: 0.35rem;
  vertical-align: -0.1em;
}

.btn-danger-soft {
  background: var(--psc-red);
  color: #fff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-outline-header {
  border: 2px solid var(--psc-purple);
  color: var(--psc-purple);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2rem;
  font-size: 0.8rem;
}

.btn-outline-header:hover {
  background: var(--psc-purple);
  color: #fff;
}

.btn-tertiary {
  color: var(--psc-teal);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
}

.btn-tertiary:hover {
  color: var(--psc-teal-dark);
}

/* ====== HERO ====== */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background: var(--psc-purple-dark);
}

.hero-bg img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(58, 34, 85, 0.92) 0%, rgba(58, 34, 85, 0.45) 45%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
}

.hero-trophy {
  max-width: min(280px, 42vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hero-kicker {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 28rem;
  margin-bottom: 1.25rem;
}

/* ====== PAGE HERO MINI (sub-pages) ====== */
.page-hero-mini {
  background: var(--psc-purple);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.page-hero-mini .display-heading {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero-mini .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}

.breadcrumb-light .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb-light .breadcrumb-item a:hover {
  color: #fff;
}

.breadcrumb-light .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ====== STORY HERO ====== */
.story-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 3rem 0 2rem;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.story-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 34, 85, 0.3) 0%, rgba(58, 34, 85, 0.85) 100%);
}

/* ====== SECTION - PROMISE ====== */
.section-promise {
  padding: 4rem 0;
  background: var(--psc-bg-soft);
}

.promise-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(74, 44, 109, 0.1);
}

.promise-visual {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.promise-body {
  padding: 2rem;
}

.tagline-icon {
  width: 48px;
  height: auto;
  margin-bottom: 1rem;
}

.promise-stat {
  font-family: var(--psc-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--psc-purple);
  line-height: 1;
}

.section-heading-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-heading-row h2 {
  margin: 0;
  color: var(--psc-purple);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.icon-heart-sm {
  width: 28px;
  height: auto;
}

/* ====== FEATURED / CARDS ====== */
.featured-slider {
  padding: 3rem 0 4rem;
  background: #fff;
}

.feature-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #f8f6fb;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(74, 44, 109, 0.12);
}

.feature-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.feature-card .card-body {
  padding: 1.25rem;
}

/* ====== SPOTLIGHT ====== */
.spotlight {
  padding: 4rem 0;
  background: linear-gradient(180deg, #fff 0%, var(--psc-bg-soft) 100%);
}

.spotlight .media-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.spotlight .media-wrap img {
  width: 100%;
  display: block;
}

.play-btn {
  width: 64px;
  height: 64px;
  opacity: 0.95;
}

.play-btn.position-static.translate-none {
  transform: none;
}

.info-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.info-tag h6 {
  margin: 0;
  font-family: var(--psc-heading);
  color: var(--psc-magenta);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

/* ====== IMPACT MAP ====== */
.impact-map {
  padding: 3rem 0;
  background: #fff;
}

.impact-map img.map-img {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: block;
}

/* ====== GRANTS ====== */
.grants-block {
  padding: 4rem 0;
  background: #ece8f2;
}

.grants-block .media-wrap img {
  width: 100%;
  border-radius: 1rem;
}

/* ====== STORIES SLIDER ====== */
.stories-slider {
  padding: 4rem 0;
  background: var(--psc-purple);
  color: #fff;
}

.stories-slider .section-heading-row h2 {
  color: #fff;
}

.stories-slider .card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 1rem;
}

.stories-slider .card img {
  height: 220px;
  object-fit: cover;
}

.stories-slider .btn-tertiary {
  color: #7fe8f0;
}

/* ====== DONATE BAR ====== */
.donate-bar {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f9f6fc 0%, #ece8f2 100%);
}

.donate-bar .display-heading {
  color: var(--psc-purple);
}

.btn-donate-amount {
  min-width: 60px;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--psc-purple);
  border-radius: 2rem;
  color: var(--psc-purple);
  font-weight: 700;
  font-size: 0.9rem;
  background: transparent;
}

.btn-donate-amount:hover,
.btn-donate-amount.active {
  background: var(--psc-purple);
  color: #fff;
  border-color: var(--psc-purple);
}

.btn-donate-other {
  font-size: 0.8rem;
  text-transform: lowercase;
}

/* ====== FIND A PET - HERO ====== */
.find-pet-hero {
  background: var(--psc-purple);
  color: #fff;
  padding: 3.5rem 0 3rem;
}

.find-hero-kicker {
  font-family: var(--psc-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
}

.find-hero-title {
  font-family: var(--psc-heading);
  font-size: clamp(3rem, 7vw, 5rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1rem;
  color: #fff;
}

.find-hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.6;
}

/* ====== FIND A PET - FILTERS ====== */
.find-pet-filters {
  background: #fff;
  padding: 1.25rem 0;
  border-bottom: 3px solid var(--psc-teal);
  position: sticky;
  top: 56px;
  z-index: 1020;
}

.btn-filter-pill {
  background: var(--psc-teal);
  color: #fff;
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.btn-filter-pill:hover {
  background: var(--psc-teal-dark);
  color: #fff;
}

.btn-pet-type {
  border: 2px solid #ddd;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  color: var(--psc-text);
  text-transform: lowercase;
  background: transparent;
}

.btn-pet-type:hover {
  border-color: var(--psc-purple);
  color: var(--psc-purple);
}

.btn-pet-type.active {
  background: var(--psc-purple);
  border-color: var(--psc-purple);
  color: #fff;
}

.filter-detail-row {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.filter-detail-row .form-select {
  font-size: 0.82rem;
  border-radius: 0.5rem;
}

/* ====== PET CARDS ====== */
.pet-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74, 44, 109, 0.14);
}

.pet-card-img {
  position: relative;
  overflow: hidden;
}

.pet-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.pet-card-badges {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
}

.btn-pet-share,
.btn-pet-fav {
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--psc-purple);
  padding: 0;
}

.btn-pet-fav:hover {
  background: var(--psc-magenta);
  color: #fff;
}

.pet-card-body {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pet-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 0.15rem;
}

.pet-card-name {
  font-family: var(--psc-heading);
  font-size: 1.3rem;
  color: var(--psc-purple);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.pet-card-breed {
  font-size: 0.82rem;
  color: var(--psc-text);
  margin-bottom: 0.15rem;
}

.pet-card-location {
  font-size: 0.78rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--psc-purple-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-nav-title {
  font-family: var(--psc-heading);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #fff;
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
  .hero-content .row {
    text-align: center;
  }

  .hero-trophy {
    max-width: 200px;
    margin: 0 auto 1rem;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(58, 34, 85, 0.88) 0%, rgba(58, 34, 85, 0.55) 100%);
  }

  .find-pet-filters {
    position: static;
  }
}

@media (max-width: 767px) {
  .pet-card-img img {
    height: 160px;
  }

  .pet-card-name {
    font-size: 1.1rem;
  }
}
