/* Public Adoção — community discovery surfaces */
.public-adoption {
  --pa-ink: #0f2f3a;
  --pa-muted: #5b6f78;
  --pa-surface: #f3f8f7;
  --pa-band: #004f6d;
  --pa-accent: #0f8a74;
  --pa-warm: #f6e7d4;
  --pa-line: rgba(15, 47, 58, 0.12);
  color: var(--pa-ink);
  background:
    radial-gradient(1200px 520px at 12% -10%, rgba(15, 138, 116, 0.16), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(246, 231, 212, 0.7), transparent 50%),
    linear-gradient(180deg, #f7fbfa 0%, var(--pa-surface) 42%, #eef5f4 100%);
  font-family: Outfit, sans-serif;
  min-height: 100vh;
}

.public-adoption a {
  text-decoration: none;
}

.pa-shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.pa-top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 250, 0.82);
  border-bottom: 1px solid var(--pa-line);
}

.pa-top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.pa-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.pa-brand img {
  height: 2.5rem;
  width: auto;
}

.pa-brand-copy {
  min-width: 0;
}

.pa-brand-kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pa-accent);
  font-weight: 600;
}

.pa-brand-name {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pa-ink);
  line-height: 1.15;
}

.pa-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.pa-nav a {
  color: var(--pa-muted);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 160ms ease;
}

.pa-nav a:hover,
.pa-nav a[aria-current="page"] {
  color: var(--pa-band);
}

.pa-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  background: var(--pa-band);
  transform-origin: left;
  animation: pa-underline 420ms ease both;
}

.pa-hero {
  padding: 3.25rem 0 2.25rem;
  animation: pa-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pa-hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pa-accent);
}

.pa-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--pa-ink);
}

.pa-hero p {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--pa-muted);
}

.pa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 1.75rem 0 0;
  align-items: end;
}

.pa-filters label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pa-muted);
}

.pa-filters select,
.pa-filters input {
  min-width: 10rem;
  height: 2.75rem;
  border: 1px solid var(--pa-line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 0.9rem;
  color: var(--pa-ink);
  font: inherit;
}

.pa-filters select {
  padding-right: 2.5rem;
}

.pa-filters input.pa-filter-state {
  min-width: 4.5rem;
  width: 4.5rem;
  text-transform: uppercase;
}

.pa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.35rem;
  padding: 0.5rem 0 3rem;
}

.pa-pet {
  display: block;
  color: inherit;
  border-radius: 1.35rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--pa-line);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: pa-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pa-pet:nth-child(2) { animation-delay: 60ms; }
.pa-pet:nth-child(3) { animation-delay: 120ms; }
.pa-pet:nth-child(4) { animation-delay: 180ms; }

.pa-pet:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 138, 116, 0.35);
  box-shadow: 0 18px 40px rgba(15, 47, 58, 0.08);
}

.pa-pet-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15, 138, 116, 0.18), rgba(246, 231, 212, 0.7));
  display: grid;
  place-items: center;
}

.pa-pet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.pa-pet:hover .pa-pet-media img {
  transform: scale(1.04);
}

.pa-pet-placeholder {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  color: rgba(15, 47, 58, 0.45);
  font-weight: 600;
  font-size: 0.9rem;
}

.pa-pet-body {
  padding: 1.05rem 1.1rem 1.2rem;
}

.pa-pet-body h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.pa-pet-meta {
  margin: 0.35rem 0 0;
  color: var(--pa-muted);
  font-size: 0.9rem;
}

.pa-pet-summary {
  margin: 0.7rem 0 0;
  color: var(--pa-ink);
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pa-pet-cta {
  display: inline-block;
  margin-top: 0.95rem;
  color: var(--pa-band);
  font-weight: 700;
  font-size: 0.92rem;
}

.pa-empty {
  margin: 2rem 0 3rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--pa-muted);
  border: 1px dashed var(--pa-line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.55);
}

.pa-footer {
  padding: 0 0 2.5rem;
  text-align: center;
  color: rgba(15, 47, 58, 0.45);
  font-size: 0.75rem;
}

.pa-section {
  padding: 2.75rem 0 3rem;
  animation: pa-rise 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pa-section h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.pa-section > .pa-lede {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: var(--pa-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.pa-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.pa-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--pa-line);
  background: rgba(255, 255, 255, 0.75);
  transition: transform 200ms ease, border-color 200ms ease;
}

.pa-row:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 138, 116, 0.28);
}

.pa-row-media {
  min-height: 160px;
  background:
    linear-gradient(145deg, rgba(0, 79, 109, 0.14), rgba(246, 231, 212, 0.75));
  display: grid;
  place-items: center;
}

.pa-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pa-row-body {
  padding: 1.25rem 1.35rem;
}

.pa-row-body h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.pa-row-meta {
  margin: 0.55rem 0 0;
  color: var(--pa-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pa-row-meta strong {
  color: var(--pa-ink);
  font-weight: 650;
}

.pa-row-summary {
  margin: 0.7rem 0 0;
  color: var(--pa-ink);
  line-height: 1.55;
}

.pa-row-cta {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--pa-band);
}

.pa-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.pa-story {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-top: 3px solid var(--pa-band);
  padding: 1.25rem 0 0.5rem;
  animation: pa-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pa-story img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.pa-story h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pa-story-by {
  margin: 0.45rem 0 0;
  color: var(--pa-muted);
  font-size: 0.9rem;
}

.pa-story p {
  margin: 0.8rem 0 0;
  color: var(--pa-ink);
  line-height: 1.6;
  flex: 1;
}

.pa-story-cta {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--pa-band);
}

.pa-detail {
  padding: 1.5rem 0 3rem;
  animation: pa-rise 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pa-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 650;
  color: var(--pa-band);
}

.pa-detail-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 980px) {
  .pa-detail-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.pa-gallery {
  display: grid;
  gap: 0.75rem;
}

.pa-gallery-main {
  aspect-ratio: 4 / 3;
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15, 138, 116, 0.18), rgba(246, 231, 212, 0.7));
  display: grid;
  place-items: center;
}

.pa-gallery-main img,
.pa-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pa-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.65rem;
}

.pa-gallery-thumbs > * {
  aspect-ratio: 1;
  border-radius: 0.9rem;
  overflow: hidden;
}

.pa-detail h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pa-detail-meta {
  margin: 0.55rem 0 0;
  color: var(--pa-muted);
}

.pa-detail h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pa-accent);
}

.pa-detail-copy {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--pa-ink);
}

.pa-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pa-traits li {
  border: 1px solid var(--pa-line);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.pa-traits li.is-available {
  border-color: rgba(15, 138, 116, 0.35);
  background: rgba(15, 138, 116, 0.1);
  color: var(--pa-band);
}

.pa-panel {
  border: 1px solid var(--pa-line);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 1.35rem;
  padding: 1.35rem;
}

.pa-panel h2 {
  margin: 0;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  color: var(--pa-ink);
}

.pa-panel > p {
  margin: 0.55rem 0 0;
  color: var(--pa-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.pa-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.pa-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 650;
}

.pa-form :is(input, textarea) {
  width: 100%;
  border: 1px solid var(--pa-line);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--pa-ink);
}

.pa-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.public-adoption .pa-form input.pa-submit,
.public-adoption .pa-submit {
  appearance: none;
  -webkit-appearance: none;
  height: 3rem;
  border: 0 !important;
  border-radius: 0.9rem;
  background: var(--pa-band) !important;
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.public-adoption .pa-form input.pa-submit:hover,
.public-adoption .pa-submit:hover {
  background: #043f57 !important;
  transform: translateY(-1px);
}

.public-adoption .pa-form input.pa-submit:disabled,
.public-adoption .pa-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.pa-flash {
  margin-bottom: 0.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  font-size: 0.92rem;
}

.pa-flash-ok {
  background: #e8f8f4;
  color: #07645d;
}

.pa-flash-err {
  background: #fef3f2;
  color: #b42318;
}

.pa-article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
  animation: pa-rise 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pa-article img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: 1.35rem;
  margin: 1.25rem 0 0;
}

.pa-article h1 {
  margin: 1.35rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.pa-article-by {
  margin: 0.7rem 0 0;
  color: var(--pa-muted);
}

.pa-article-body {
  margin: 1.35rem 0 0;
  white-space: pre-wrap;
  font-size: 1.125rem;
  line-height: 1.75;
}

@keyframes pa-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pa-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 720px) {
  .pa-row {
    grid-template-columns: 1fr;
  }

  .pa-row-media {
    min-height: 180px;
  }

  .pa-hero {
    padding-top: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-pet,
  .pa-story,
  .pa-hero,
  .pa-section,
  .pa-detail,
  .pa-article,
  .pa-nav a[aria-current="page"]::after {
    animation: none !important;
  }

  .pa-pet:hover,
  .pa-row:hover,
  .pa-pet:hover .pa-pet-media img,
  .pa-submit:hover {
    transform: none;
  }
}
