/* ==============================================
   PetFi Cards & Buttons
   Buttons, generic cards, and rescue card components
   ============================================== */

/* ==============================================
   BUTTONS
   ============================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-purple);
  color: white;
  padding: 12px 24px;
  box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn-secondary {
  background: white;
  color: var(--petfi-purple-600);
  border: 2px solid var(--petfi-purple-600);
  padding: 10px 22px;
}

.btn-secondary:hover {
  background: var(--petfi-purple-50);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 16px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-base);
  border-radius: var(--radius-xl);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ==============================================
   CARDS
   ============================================== */

.card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-dark {
  background: var(--gradient-dark);
  color: white;
}

.card-purple {
  background: var(--gradient-purple);
  color: white;
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

/* ==============================================
   RESCUE CARDS (Shelves/Grids)
   ============================================== */

.rescue-card {
  flex-shrink: 0;
  width: 280px;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.rescue-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.rescue-card__image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.rescue-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rescue-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.rescue-card__content {
  padding: 16px;
}

.rescue-card__name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.rescue-card__location {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.rescue-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pet-grid-card .group:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ==============================================
   HOME — Modern cards, CTAs & interactions
   Easing var + arrow slide + unified fluid transitions
   ============================================== */

:root {
  --home-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --home-dur: 280ms;
}

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

@media (min-width: 1024px) {
  .home-hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
}

.home-impact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .home-impact-split {
    grid-template-columns: 1.15fr 1fr;
  }
}

/* ---- HOME — Layout grids ---- */

/* Discovery: filters | quiz card */
.home-discover-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 1280px) {
  .home-discover-panel {
    grid-template-columns: 1.35fr 1fr;
  }
}

/* NearYouA: 5-col grid */
.home-nearyou-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .home-nearyou-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-nearyou-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .home-nearyou-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Forgotten feature (photo | story) + mini pager */
.home-forgotten-feature {
  display: grid;
  grid-template-columns: 1fr;
}

/* On mobile (single-column stack), the photo wrapper has no intrinsic
   height (img is position:absolute) so it would collapse to 0. Give it
   an aspect-ratio so it renders visibly above the story panel. */
.home-forgotten-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
}

@media (min-width: 768px) {
  .home-forgotten-feature {
    grid-template-columns: 1fr 1fr;
  }
  /* In side-by-side layout the photo cell shares the row height with the
     story cell — let the grid drive height. */
  .home-forgotten-photo {
    aspect-ratio: auto;
    height: 100%;
  }
}

.home-forgotten-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .home-forgotten-mini {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* PawFoundations: 4-col foundation/rescuer cards */
.home-paw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .home-paw-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .home-paw-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-paw-card:hover {
  border-color: #D1D5DB !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(16, 24, 40, 0.12);
}

/* Mobile (< md): stack avatar above text so the title and meta have
   the full card width. The inline flex layout uses ~52px for the
   avatar + 12px gap, which on a 2-col mobile grid leaves ~80px for
   the title and forces ugly wrapping. */
@media (max-width: 767.98px) {
  .home-paw-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 14px !important;
  }
  .home-paw-card > div:first-child {
    width: 44px !important;
    height: 44px !important;
  }
  .home-paw-card > div:last-child {
    width: 100% !important;
  }
}

/* /adoptar results grid — Jaspr inline style hardcodes
   grid-template-columns: repeat(4, 1fr) regardless of viewport, which
   on mobile shows 4 squished cards per row. Override to 2/3/4 cols
   per the responsive spec (2-col mobile, 3-col tablet, 4-col desktop). */
.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}
@media (min-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

/* /adoptar "Otras formas de encontrar a tu mascota" rail — inline
   style sets repeat(6, 1fr), forcing 6 narrow squished cards on
   mobile (5th/6th overflow horizontally). Override to 2/3/6 cols. */
.collections-rail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
@media (min-width: 768px) {
  .collections-rail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1024px) {
  .collections-rail-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* /adoptar foundations strip (4-col grid of foundation cards) —
   same issue: repeat(4, 1fr) inline. Override to 2/3/4 cols. */
.foundations-strip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
@media (min-width: 768px) {
  .foundations-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1024px) {
  .foundations-strip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

/* /adoptar foundation match cards — horizontal flex layout (logo +
   text) gets too tight in 2-col mobile, truncating names like
   "Fundación Alma Linda". Stack vertically on mobile, same pattern
   as .home-paw-card. */
@media (max-width: 767.98px) {
  .adoptar-foundation-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 14px !important;
  }
  .adoptar-foundation-card > div:first-child {
    width: 44px !important;
    height: 44px !important;
  }
  .adoptar-foundation-card > div:last-child {
    width: 100% !important;
  }
}

/* BrandStudio: featured brand panel + product rail */
.home-brand-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

@media (min-width: 1024px) {
  .home-brand-feature {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.home-brand-feature-pane {
  min-width: 0;
}

/* Adaptive product grid — 1 to 3 cards; auto-fit collapses on narrow widths.
 * Min 150px per card prevents stripes/imagery from looking cramped. The
 * single-product variant caps width so a lone card doesn't sprawl. */
.home-brand-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-content: start;
}

.home-brand-products--1 {
  grid-template-columns: minmax(0, 320px);
  justify-content: start;
}

.home-brand-product-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.home-brand-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(16, 24, 40, 0.18);
}

.home-brand-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(16, 24, 40, 0.35);
}

.home-brand-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.95) !important;
}

.home-brand-pitch-cta:hover {
  background: rgba(16, 24, 40, 0.06);
}

/* Testimonials: 3-col happy-ending cards */
.home-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .home-testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Sponsors strip: auto-fit brand badges */
.home-sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* WaysToHelp: 4-col */
.home-ways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .home-ways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .home-ways-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer: logo + 3 link cols */
.home-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .home-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* ---- HOME — Discovery filter controls ---- */

/* Especie (large card with emoji + label) */
.home-especie-card {
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 16px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background var(--home-dur) var(--home-ease),
    border-color var(--home-dur) var(--home-ease),
    color var(--home-dur) var(--home-ease),
    box-shadow var(--home-dur) var(--home-ease);
}

.home-especie-card:hover {
  border-color: #9638EB80;
  color: #1F2937;
}

.home-especie-card.is-active {
  background: #fff;
  border: 1.5px solid #9638EB;
  color: #1F2937;
  box-shadow: 0 6px 18px -10px rgba(150, 56, 235, 0.45);
}

/* Text pill (Tamaño/Energía/Edad/Vivienda) */
.home-filter-pill {
  background: transparent;
  color: #6B7280;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--home-dur) var(--home-ease),
    color var(--home-dur) var(--home-ease),
    border-color var(--home-dur) var(--home-ease);
}

.home-filter-pill:hover {
  background: #1F2937;
  color: #fff;
  border-color: #1F2937;
}

.home-filter-pill.is-active {
  background: #7C3AED;
  color: #fff;
  border-color: #7C3AED;
}

button.home-filter-pill,
button.home-especie-card {
  font-family: inherit;
  cursor: pointer;
}

/* Result CTA — dark pill */
.home-result-cta {
  background: #1F2937;
  color: #fff;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--home-dur) var(--home-ease),
    box-shadow var(--home-dur) var(--home-ease);
}

.home-result-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(31, 41, 55, 0.45);
}

/* Collection pill (outlined) */
.home-collection-pill {
  background: transparent;
  border: 1px solid #E5E7EB;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--home-dur) var(--home-ease),
    border-color var(--home-dur) var(--home-ease);
}

.home-collection-pill:hover {
  background: #fff;
  border-color: #9638EB80;
}

/* ---- HOME — Forgotten mini pager tile ---- */
.home-forgotten-tile:hover {
  background: #fff !important;
  border-color: #9638EB !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(150, 56, 235, 0.25);
}

/* Animated arrow — lives inside buttons/links.
   Slides 3-4px right on hover. */
.home-arrow {
  display: inline-block;
  transition: transform var(--home-dur) var(--home-ease);
  will-change: transform;
}

a:hover > .home-arrow,
button:hover > .home-arrow,
a:hover .home-arrow,
button:hover .home-arrow {
  transform: translateX(3px);
}

/* ---- CARDS ---- */
.home-card {
  cursor: pointer;
}

.home-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(16, 24, 40, 0.06),
    0 24px 48px -16px rgba(16, 24, 40, 0.16) !important;
}

.home-card:hover img {
  transform: scale(1.05);
}

.home-card-dark:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6) !important;
}

.home-card-dark:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* ---- PRIMARY CTA (weight 10) ---- */
.home-adopt-cta,
.home-quiz-cta {
  transition: transform var(--home-dur) var(--home-ease),
    box-shadow var(--home-dur) var(--home-ease) !important;
}

.home-adopt-cta:hover,
.home-quiz-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px -12px rgba(124, 58, 237, 0.55),
    0 8px 16px -8px rgba(124, 58, 237, 0.4) !important;
}

.home-adopt-cta:active,
.home-quiz-cta:active {
  transform: translateY(0);
  transition-duration: 80ms;
}

/* ---- SECONDARY CTA (weight 6) — outlined purple ---- */
.home-cta-secondary {
  transition: background var(--home-dur) var(--home-ease),
    border-color var(--home-dur) var(--home-ease),
    transform var(--home-dur) var(--home-ease),
    box-shadow var(--home-dur) var(--home-ease) !important;
}

.home-cta-secondary:hover {
  background: #FBF5FF !important;
  border-color: #7C3AED !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(124, 58, 237, 0.3) !important;
}

/* ---- TERTIARY CTA (weight 4) — muted ---- */
.home-cta-tertiary {
  transition: background var(--home-dur) var(--home-ease),
    border-color var(--home-dur) var(--home-ease),
    color var(--home-dur) var(--home-ease) !important;
}

.home-cta-tertiary:hover {
  background: #F3F4F6 !important;
  border-color: #D1D5DB !important;
  color: #1F2937 !important;
}

/* ---- VIEW-ALL LINKS (weight 3) — light mode ---- */
.home-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.14);
  color: #7C3AED;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1px;
  white-space: nowrap;
  transition: background var(--home-dur) var(--home-ease),
    border-color var(--home-dur) var(--home-ease),
    transform var(--home-dur) var(--home-ease);
}

.home-view-all:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.28);
  transform: translateY(-1px);
}

/* ---- VIEW-ALL LINKS (weight 3) — dark mode (forgotten, footer) ---- */
.home-view-all-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1px;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--home-dur) var(--home-ease),
    border-color var(--home-dur) var(--home-ease),
    transform var(--home-dur) var(--home-ease);
}

.home-view-all-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* ---- NAV LINKS ---- */
.home-nav-link {
  position: relative;
  transition: color 150ms var(--home-ease);
}

.home-nav-link:hover {
  color: #7C3AED !important;
}

.home-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #7C3AED;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--home-dur) var(--home-ease);
}

.home-nav-link:hover::after {
  transform: scaleX(1);
}

/* ---- WAYS-TO-HELP CARDS ---- */
.home-ways-card {
  transition: background var(--home-dur) var(--home-ease),
    border-color var(--home-dur) var(--home-ease),
    transform var(--home-dur) var(--home-ease),
    box-shadow var(--home-dur) var(--home-ease) !important;
}

.home-ways-card:hover {
  background: #FFFFFF !important;
  border-color: #D1D5DB !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(16, 24, 40, 0.1) !important;
}

/* ---- ALIADOS STRIP CHIPS ---- */
.home-aliado-chip {
  transition: background var(--home-dur) var(--home-ease),
    border-color var(--home-dur) var(--home-ease),
    transform var(--home-dur) var(--home-ease);
}

.home-aliado-chip:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-1px);
}

/* ---- FOOTER LINKS ---- */
.home-footer-link {
  transition: color 150ms var(--home-ease);
}

.home-footer-link:hover {
  color: #9638EB !important;
}

/* ---- ACCESSIBILITY: focus-visible ---- */
.home-adopt-cta:focus-visible,
.home-quiz-cta:focus-visible,
.home-cta-secondary:focus-visible,
.home-cta-tertiary:focus-visible,
.home-view-all:focus-visible,
.home-view-all-dark:focus-visible,
.home-card:focus-visible,
.home-card-dark:focus-visible,
.home-ways-card:focus-visible,
.home-aliado-chip:focus-visible {
  outline: 2px solid #9638EB;
  outline-offset: 3px;
}

/* ---- PREFERS-REDUCED-MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  .home-card,
  .home-card-dark,
  .home-adopt-cta,
  .home-quiz-cta,
  .home-cta-secondary,
  .home-cta-tertiary,
  .home-view-all,
  .home-view-all-dark,
  .home-nav-link,
  .home-ways-card,
  .home-aliado-chip,
  .home-footer-link,
  .home-arrow {
    transition: none !important;
  }
  .home-card:hover,
  .home-card-dark:hover,
  .home-adopt-cta:hover,
  .home-quiz-cta:hover,
  .home-cta-secondary:hover,
  .home-ways-card:hover,
  .home-view-all:hover,
  .home-view-all-dark:hover,
  .home-aliado-chip:hover {
    transform: none;
  }
}

/* ──────────────────────────────────────────────────────────────────
   Fundaciones — directory + org profile
   ────────────────────────────────────────────────────────────────── */

/* Directory hero: copy column + stats aside stack on mobile. */
.fv-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: end;
}
@media (min-width: 1024px) {
  .fv-hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
  }
}

/* Directory results grid: 1/2/3/4 cols.
   <480px stays single-column so each card has room for the full name +
   verified badge + the 3-col stats row ("Activas · Adoptadas · Desde YYYY"). */
.fv-orgs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 480px) {
  .fv-orgs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (min-width: 768px) {
  .fv-orgs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (min-width: 1024px) {
  .fv-orgs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fv-org-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04),
    0 20px 36px -14px rgba(124, 58, 237, 0.22);
  border-color: rgba(150, 56, 235, 0.33) !important;
}

.fv-chip:hover {
  border-color: rgba(150, 56, 235, 0.55) !important;
  color: #7c3aed !important;
}

/* Register banner: stacks on mobile. */
.fv-register-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) {
  .fv-register-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
  }
}

/* Org profile — hero dossier top row: logo | identity | actions. */
.org-hero-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.org-hero-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
  margin-top: 12px;
}
@media (min-width: 768px) {
  .org-hero-top {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
  }
  .org-hero-actions {
    grid-column: auto;
    flex-direction: column;
    margin-top: 0;
  }
}

/* Hero stats row: 2 cols mobile, 4 cols desktop. */
.org-hero-stats {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed rgba(16, 24, 40, 0.1);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (min-width: 768px) {
  .org-hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Pets grid inside profile: 2/3/4 cols. */
.org-pets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) {
  .org-pets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .org-pets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.org-pets-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(16, 24, 40, 0.15);
}

/* About: copy column + methodology sidebar. */
.org-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .org-about-grid {
    grid-template-columns: 2fr 1fr;
    gap: clamp(32px, 4vw, 56px);
  }
}

/* Ways to help: 1/2/4 cols. */
.org-help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px) {
  .org-help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .org-help-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Donate grid: copy + bank card. */
.org-donate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .org-donate-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }
}
