/**
 * BALEON Showcase — rich profiles, shelters, animals, sponsors (web).
 */
@import url("./baleon-tokens.css");

.bs-grid {
  display: grid;
  gap: var(--block-gap);
}
@media (min-width: 640px) {
  .bs-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .bs-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.bs-grid {
  display: grid;
  gap: var(--block-gap);
  align-items: stretch;
}
@media (min-width: 640px) {
  .bs-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .bs-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* —— App-style profile cards —— */
.bs-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-card, 20px);
  background: var(--white);
  border: 1px solid rgba(45, 75, 50, 0.1);
  box-shadow: var(--shadow-card, 0 14px 28px rgba(33, 41, 38, 0.06));
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bs-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(33, 41, 38, 0.1);
  border-color: rgba(45, 75, 50, 0.18);
}
.bs-profile--shelter {
  border-color: rgba(199, 148, 46, 0.22);
  background: linear-gradient(180deg, #fff 0%, rgba(245, 230, 184, 0.12) 100%);
}

.bs-profile__header {
  position: relative;
  flex-shrink: 0;
}

.bs-profile__cover {
  height: 108px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45, 75, 50, 0.12) 0%, rgba(242, 230, 221, 0.55) 100%);
}
.bs-profile__cover--fallback {
  background: linear-gradient(135deg, var(--moss-light) 0%, var(--forest) 100%);
  opacity: 0.35;
}
.bs-profile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.bs-profile__avatar {
  position: absolute;
  left: 1rem;
  bottom: -2rem;
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(33, 41, 38, 0.14);
  overflow: hidden;
  background: var(--forest);
  z-index: 1;
}
.bs-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bs-profile__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2.35rem 1.1rem 1.1rem;
  text-align: left;
}

.bs-verify {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}
.bs-verify--gold { background: var(--gold); }

.bs-profile__eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0;
}
.bs-profile__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest);
}
.bs-profile__tagline {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.35;
}
.bs-profile__region {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.bs-profile__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.35rem;
}

.bs-plan {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.bs-plan--plus { background: rgba(45, 75, 50, 0.12); color: var(--forest); }
.bs-plan--gold { background: var(--gold-light, #f5e6c8); color: var(--gold-ink, #8a6318); }
.bs-plan--free { background: var(--fog); color: var(--forest); }

.bs-profile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}
.bs-profile__stats span {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--fog);
  color: var(--forest);
  white-space: nowrap;
}

.bs-profile__bio {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bs-profile__cta {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--moss);
  text-decoration: none;
}
.bs-profile__cta:hover { text-decoration: underline; }

.bs-special {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--moss-light, #577562) 0%, var(--forest) 100%);
  color: #fff;
  margin: 0 0 0.15rem;
}

.bs-shelter {
  border-radius: var(--radius-card, 20px); overflow: hidden; background: var(--white);
  border: 1px solid rgba(45, 75, 50, 0.1); box-shadow: var(--shadow-card);
}
.bs-shelter__hero { position: relative; height: 140px; }
.bs-shelter__hero > img { width: 100%; height: 100%; object-fit: cover; }
.bs-shelter__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(26, 46, 30, 0.75) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 0.75rem; gap: 0.35rem;
}
.bs-shelter__avatar {
  position: absolute; bottom: -28px; left: 1rem; width: 64px; height: 64px;
  border-radius: 50%; border: 3px solid var(--white); overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.bs-shelter__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bs-shelter__body { padding: 2.25rem 1.15rem 1.15rem; }
.bs-shelter__body h3 { margin: 0 0 0.2rem; font-family: var(--font-display); font-weight: 600; color: var(--forest); }
.bs-shelter__tagline { margin: 0 0 0.35rem; font-size: 0.8125rem; color: var(--ink-muted); font-style: italic; }
.bs-shelter__region { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--ink-soft); }
.bs-shelter__bio { margin: 0 0 0.65rem; font-size: 0.875rem; line-height: 1.45; color: var(--ink-muted); }
.bs-shelter__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.65rem; font-size: 0.75rem; font-weight: 600; color: var(--forest); }
.bs-shelter__thumbs { display: flex; gap: 0.35rem; margin-bottom: 0.65rem; }
.bs-shelter__thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 2px solid var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.bs-shelter__link { font-weight: 650; font-size: 0.875rem; color: var(--moss); text-decoration: none; }

.bs-strip {
  display: flex;
  gap: var(--block-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.15rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}
.bs-strip::-webkit-scrollbar { display: none; }
.bs-animal {
  flex: 0 0 min(240px, 74vw);
  scroll-snap-align: start;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(45, 75, 50, 0.1);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(33, 41, 38, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.bs-animal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(33, 41, 38, 0.1);
}
.bs-animal__photo { display: block; position: relative; aspect-ratio: 1; overflow: hidden; }
.bs-animal__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.bs-animal:hover .bs-animal__photo img { transform: scale(1.04); }
.bs-animal__intent {
  position: absolute; top: 0.65rem; left: 0.65rem; font-size: 0.625rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: 999px;
  background: rgba(45, 75, 50, 0.88); color: #fff;
}
.bs-animal__body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.bs-animal__body h4 { margin: 0; font-size: 1.05rem; font-family: var(--font-display); font-weight: 600; }
.bs-animal__body h4 a { color: var(--forest); text-decoration: none; }
.bs-animal__meta { margin: 0; font-size: 0.8125rem; color: var(--ink-muted); }
.bs-animal__about { margin: 0; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-soft); }
.bs-animal__owner { margin: 0; font-size: 0.75rem; font-weight: 600; color: var(--moss); }
.bs-animal__cta.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  min-height: 40px;
  padding: 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
}

.bs-sponsor {
  border-radius: var(--radius-card); overflow: hidden; background: var(--white);
  border: 1px solid rgba(45, 75, 50, 0.1); box-shadow: var(--shadow-card);
}
.bs-sponsor__visual { position: relative; height: 160px; }
.bs-sponsor__visual img { width: 100%; height: 100%; object-fit: cover; }
.bs-sponsor__tier {
  position: absolute; top: 0.65rem; right: 0.65rem; font-size: 0.625rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.55rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--forest);
}
.bs-sponsor__body { padding: 1rem 1.1rem 1.15rem; }
.bs-sponsor__body h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--forest); }
.bs-sponsor__body p { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-muted); }
.bs-sponsor__highlight { margin-top: 0.5rem !important; font-size: 0.8125rem !important; font-weight: 600; color: var(--moss) !important; }

.bs-impact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--block-gap);
  margin: 0;
}
@media (min-width: 640px) { .bs-impact { grid-template-columns: repeat(4, 1fr); } }
.bs-impact__item {
  text-align: center;
  padding: 0.85rem 0.65rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(45, 75, 50, 0.08);
  box-shadow: 0 2px 8px rgba(33, 41, 38, 0.04);
}
.bs-impact__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.1;
}
.bs-impact__item span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.bs-mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 72px);
  gap: 0.5rem; max-width: 320px; margin-inline: auto;
}
.bs-mosaic__img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 14px;
  border: 2px solid var(--white); box-shadow: 0 4px 12px rgba(33, 41, 38, 0.1);
}
.bs-mosaic__img--1 { grid-column: 1 / 3; grid-row: 1; }
.bs-mosaic__img--2 { grid-column: 3; grid-row: 1 / 3; }
.bs-mosaic__img--3 { grid-column: 1; grid-row: 2; }
.bs-mosaic__img--4 { grid-column: 2; grid-row: 2; }

.bs-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  margin-bottom: var(--content-stack, 1.75rem);
}

.bs-hero-split > * {
  align-self: center;
  justify-self: stretch;
  width: 100%;
}

.bs-hero-split .bh-hero,
.bs-hero-split .sh-hero {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  margin: 0;
}

.bs-hero-split .bh-hero h1,
.bs-hero-split .sh-hero h1 {
  font-size: var(--text-display-xl);
  margin-bottom: var(--space-lg);
  max-width: none;
}

.bs-hero-split .bh-lead,
.bs-hero-split .sh-lead {
  max-width: none;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.55;
}

.bs-hero-split .bh-cta-row,
.bs-hero-split .sh-cta-row {
  margin-top: var(--space-lg);
}

@media (max-width: 899px) {
  .bs-hero-split {
    grid-template-columns: 1fr;
    max-width: none;
    margin-inline: 0;
  }
}
.bs-section-head {
  margin-bottom: 0;
  max-width: none;
  width: 100%;
  text-align: center;
}
.bs-section-head h2 {
  margin: 0 auto var(--space-sm);
  max-width: min(44rem, 100%);
  font-family: var(--font-display);
  font-size: var(--text-display-lg);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--forest);
}
.bs-section-head p {
  margin: 0 auto;
  max-width: var(--measure-lead);
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
