/* ============================================
   Strona główna — home.css
   FBX hero, stats, kategorie, dlaczego my, podopieczni, CTA
   ============================================ */

/* === Hero FBX (2-kolumnowy) === */
.hero--fbx {
  text-align: left;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
}

.hero-fbx__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-fbx__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-10);
  }
}

.hero-fbx__text {
  max-width: 600px;
}

@media (min-width: 1024px) {
  .hero-fbx__text {
    max-width: none;
  }
}

.hero--fbx .hero__title {
  text-align: left;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: var(--sp-5);
}

.hero--fbx .hero__subtitle {
  text-align: left;
  margin: 0 0 var(--sp-6);
  font-size: 1.125rem;
}

.text-accent {
  color: var(--accent-green);
}

.hero-fbx__cta {
  margin-bottom: var(--sp-5);
}

.hero-fbx__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-top: var(--sp-3);
}

.hero-fbx__trust span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.hero-fbx__phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-fbx__phone::after {
  content: "";
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(
    circle at center,
    rgba(124, 201, 122, 0.15),
    transparent 60%
  );
  z-index: -1;
  pointer-events: none;
}

.hero-fbx__phone img {
  max-width: 100%;
  width: 320px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-slow);
}

@media (min-width: 1024px) {
  .hero-fbx__phone img {
    width: 380px;
  }
}

.hero-fbx__phone:hover img {
  transform: translateY(-6px) rotate(-1deg);
}

@media (prefers-reduced-motion: reduce) {
  .hero-fbx__phone:hover img {
    transform: none;
  }
}

/* === Stats === */
.section--stats {
  padding-block: var(--sp-8);
}

.stats-grid--lg {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* === Sekcje "section--paws" zostawione jako reset (łapki są w body fixed) === */
.section--paws {
  position: relative;
}

/* === Kategorie — ikona w narożniku obrazka === */
.category-card__image-wrap {
  position: relative;
}

.category-card__icon {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-3);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(14, 20, 24, 0.85);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

/* === Sekcja "Dlaczego my" === */
.section--why {
  background: var(--bg-elevated);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

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

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

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: var(--transition-base);
}

.why-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.why-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-green-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--sp-4);
}

.why-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  font-size: 1.25rem;
}

.why-card p {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.why-card a {
  color: var(--accent-green);
  font-weight: var(--fw-semibold);
}

/* === Animal cards na home === */
.animal-card-home {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.animal-card-home:hover {
  text-decoration: none;
}

/* === CTA finalne === */
.section--cta-final {
  position: relative;
  overflow: hidden;
}

.section--cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(124, 201, 122, 0.10), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 158, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.cta-final {
  position: relative;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-6);
  z-index: 1;
}

@media (min-width: 768px) {
  .cta-final {
    padding: var(--sp-12) var(--sp-10);
  }
}

.cta-final h2 {
  margin-block: var(--sp-3) var(--sp-4);
}

.cta-final p {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin: 0 auto;
}

/* === Mobile fixes === */
@media (max-width: 640px) {
  .hero--fbx .hero__title br {
    display: none;
  }
  .hero-fbx__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-fbx__cta .store-badge {
    width: 100%;
    justify-content: center;
  }
  .hero-fbx__trust {
    justify-content: flex-start;
  }
}
