/* ============================================================
   INDEX.CSS — Strona główna (mobile-first, spójna z resztą)
   ============================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(179, 146, 104, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(179, 146, 104, 0.05) 0%, transparent 50%);
  padding: 1.25rem 0 var(--section-pad);
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  text-align: center;
}

.hero-section h1 {
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.hero-desc {
  font-size: var(--fs-lead);
  color: #d6d3d1;
  margin: var(--space-md) auto var(--space-lg);
  max-width: var(--max-w-narrow);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.hero-actions .btn {
  width: 100%;
  max-width: 320px;
}

.hero-phone-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-light);
  text-decoration: none;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.hero-phone-link:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.hero-phone-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-phone-link .phone-icon-img {
  width: 28px;
  height: 28px;
  background-color: var(--accent-gold);
  mask-image: url('../images/phone-receiver.svg');
  -webkit-mask-image: url('../images/phone-receiver.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  animation: phone-ring 8s infinite ease-in-out;
}

.hero-phone-link strong {
  font-size: 1.5rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.hero-phone-link span {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  margin-left: calc(28px + 0.75rem);
}

/* Obraz hero */
.hero-image-wrapper {
  order: -1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* ============================================================
   PASEK: POMAGAMY W LECZENIU
   ============================================================ */
.categories-bar {
  background-color: var(--bg-light-card);
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border-color);
}

.categories-title {
  color: var(--text-dark);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
}

.cat-item {
  background-color: var(--bg-white);
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  min-height: 54px;
  min-width: 0;
  transition: border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.cat-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cat-name {
  flex: 1;
  overflow-wrap: break-word;
}

/* ============================================================
   OŚRODEK NOWY FILAR
   ============================================================ */
.about-section {
  padding: var(--section-pad) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.about-text h2 {
  text-align: left;
}

.about-text .lead-p {
  margin: var(--space-sm) 0 var(--space-sm);
}

.about-text p {
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.value-card {
  background-color: var(--bg-white);
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}

.value-card h4 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about-image {
  order: -1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.building-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   DLA KOGO POMOC? (3 KARTY)
   ============================================================ */
.target-section {
  background-color: var(--bg-light-card);
  padding: var(--section-pad) 0;
}

.target-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.target-card {
  background-color: var(--bg-white);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.target-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.target-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}

.target-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.card-link {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.card-link:hover {
  transform: translateX(4px);
}

/* ============================================================
   BANER EMOCJONALNY
   ============================================================ */
.quote-banner {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(179, 146, 104, 0.08) 0%, transparent 60%);
}

.banner-flex {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
  align-items: center;
}

.quote-text h2 {
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.quote-cta {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-cta p {
  color: var(--text-muted-light);
  margin-bottom: var(--space-md);
  font-size: var(--fs-lead);
}

.quote-cta .btn {
  width: 100%;
  max-width: 320px;
  white-space: nowrap;
}

/* ============================================================
   PLACEHOLDERY bez błędów 404 (z DOM onerror)
   ============================================================ */
.placeholder-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-dark-card);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  text-align: center;
  color: var(--text-muted-light);
}

.placeholder-title {
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 5px;
}

/* ============================================================
   BREAKPOINTY — >= 480px (większe telefony)
   ============================================================ */
@media (min-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   BREAKPOINTY — >= 600px (małe tablety)
   ============================================================ */
@media (min-width: 600px) {
  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
  }
  .hero-actions .btn {
    width: auto;
  }
}

/* ============================================================
   BREAKPOINTY — >= 768px (tablet/desktop)
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --section-pad: var(--section-pad-lg);
  }

  .hero-section { padding: 2rem 0 var(--section-pad-lg); }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
  }
  .hero-content { text-align: left; }
  .hero-desc { margin-inline: 0; }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-image-wrapper { order: 0; max-width: none; }
  .hero-img { aspect-ratio: 3 / 4; }

  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
  }
  .about-image { order: 1; max-width: none; }

  .target-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .quote-cta {
    text-align: left;
  }
  .quote-cta .btn { width: auto; }
}

/* ============================================================
   BREAKPOINTY — >= 1024px (pełny desktop)
   ============================================================ */
@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-sm);
  }
  .cat-name {
    font-size: 0.85rem;
  }
}
