/**
 * Zdrowy Bajtel — assets/css/home.css
 *
 * Style dla strony głównej (front-page.php).
 * Ładowany TYLKO przez is_front_page() — nie na innych stronach.
 * 1:1 konwersja z Lovable index.tsx + styles.css
 *
 * Spis treści:
 *  1. Hero sekcja
 *  2. Sekcja statystyk
 *  3. Sekcja O programie
 *  4. Sekcja Ścieżka zgłoszenia
 *  5. Sekcja Aktualności (homepage)
 *  6. Quick links
 */


/* ══════════════════════════════════════════════════════════════
   1. HERO
   Lovable: <section className="relative overflow-hidden">
             <div className="grid lg:grid-cols-[3fr_2fr] min-h-[90vh]">
   ══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  overflow: visible;  /* NIE hidden — float-card nie będzie obcięty */
  padding-block: 0;   /* Kasuje globalne section { padding-block: 5rem } */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;  /* mobile: stack */
  min-height: 90vh;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 3fr 2fr; }
}

/* ── Lewa kolumna: gradient ── */
.hero-content-col {
  background: var(--gradient-hero);
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
}

/* container-zb spacer (max-width 1280/2 + padding) */
.hero-content-inner {
  width: 100%;
  max-width: 640px;
  padding: 5rem 1.5rem;
}
@media (min-width: 1024px) {
  .hero-content-inner {
    /* Symetrycznie w lewej kolumnie — content wycentrowany */
    margin-left: auto;
    margin-right: auto;
    padding-inline: 3rem 4rem; /* lekko więcej miejsca od foto */
    padding-block: 6rem;
    max-width: 600px;
  }
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.08);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.90);
  backdrop-filter: blur(4px);
  margin-bottom: 1.5rem;
}
.hero-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zb-green-light);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.6; transform:scale(.8); }
}

/* Tytuł */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}
/* "szczęśliwy" — kolor pomarańczowy */
.hero-title__accent {
  color: var(--zb-orange-light);
}

/* Opis */
.hero-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  max-width: 42rem;
  margin-bottom: 0; /* margin przejmują hero-actions */
}

/* Przyciski CTA */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Trust checklist */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  list-style: none;
}
.hero-trust__item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.70);
}
.hero-trust__item svg { color: var(--zb-green-light); flex-shrink: 0; }

/* ── Prawa kolumna: zdjęcie ── */
.hero-photo-col {
  position: relative;
  min-height: 400px;
}
@media (min-width: 1024px) {
  .hero-photo-col { min-height: 100%; }
}

.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #388E3C, #66BB6A);
}

/* Gradient overlay (lewa krawędź — ukrywa przejście) */
.hero-photo-overlay {
  position: absolute;
  inset-y: 0;
  left: 0;
  width: 6rem;
  background: linear-gradient(to right, #1B5E20 60%, transparent);
  display: none;
}
@media (min-width: 1024px) {
  .hero-photo-overlay { display: block; }
}

/* Floating card "Program dla rodzin" */
.hero-float-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: #fff;
  border-radius: var(--r-2xl);
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 2px 12px rgba(0,0,0,.10);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 1px solid var(--zb-border);
}
@media (min-width: 768px) {
  .hero-float-card {
    left: auto;
    right: 2rem;
    bottom: 2rem;
    max-width: 280px;
  }
}

.hero-float-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--zb-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-float-card__icon svg { color: var(--zb-green); }

.hero-float-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--zb-navy);
  line-height: 1.2;
}
.hero-float-card__sub {
  font-size: 0.75rem;
  color: var(--zb-muted);
  margin-top: 0.125rem;
}


/* ══════════════════════════════════════════════════════════════
   2. STATYSTYKI
   Lovable: bg-zb-green-dark, grid 2/4 col, py-14
   ══════════════════════════════════════════════════════════════ */
.stats-section {
  padding-block: 3.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.70);
  line-height: 1.4;
}


/* ══════════════════════════════════════════════════════════════
   3. O PROGRAMIE
   Lovable: py-20 md:py-24, grid lg:grid-cols-2, gap-14
   ══════════════════════════════════════════════════════════════ */
.about-section { padding-block: var(--section-y) var(--section-y-md); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--zb-navy);
  margin: 0.75rem 0 1.25rem;
}
.about-intro {
  color: var(--zb-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-checklist { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.about-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--zb-navy);
  font-size: 0.9375rem;
}
.about-checklist__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--zb-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-checklist__icon svg { color: var(--zb-green); }

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--zb-green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: gap var(--tr);
}
.about-link:hover { gap: 0.875rem; color: var(--zb-green-mid); }

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 479px) {
  .about-cards-grid { grid-template-columns: 1fr; }
}

.about-feature-card {
  padding: 1.5rem;
  border-radius: var(--r-2xl);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--tr), transform var(--tr);
}
.about-feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.about-feature-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--zb-navy);
  margin: 0;
}
.about-feature-card__desc {
  font-size: 0.875rem;
  color: var(--zb-muted);
  margin: 0;
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   4. ŚCIEŻKA ZGŁOSZENIA
   Lovable: bg-[#F1F8F1], py-20 md:py-24
   ══════════════════════════════════════════════════════════════ */
.program-path-section { padding-block: var(--section-y) var(--section-y-md); }

.program-path-header { max-width: 48rem; margin-bottom: 3rem; }
.program-path-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--zb-navy);
  margin: 0.75rem 0 1rem;
}
.program-path-subtitle {
  font-size: 1.125rem;
  color: var(--zb-muted);
  line-height: 1.6;
  margin: 0;
}

.program-path-card {
  padding: 1rem;
  border-radius: var(--r-3xl);
  background: #fff;
  border: 1px solid var(--zb-border);
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
  .program-path-card { padding: 2rem; }
}

/* Infografika — pełna szerokość, zachowane proporcje */
.program-path-img {
  display: block;
  width: 100%;
  max-width: 48rem;
  height: auto;
  margin-inline: auto;
  border-radius: var(--r-lg);
}

.program-path-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--zb-muted);
}
.program-path-placeholder p { font-size: 0.875rem; max-width: 40rem; }


/* ══════════════════════════════════════════════════════════════
   5. AKTUALNOŚCI (homepage — 3 karty)
   ══════════════════════════════════════════════════════════════ */
.home-news-section { padding-block: var(--section-y) var(--section-y-md); }

.home-news-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.home-news-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--zb-navy);
  margin: 0.75rem 0 0;
}
.news-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--zb-green);
  text-decoration: none;
  white-space: nowrap;
  transition: gap var(--tr), color var(--tr);
}
.news-all-link:hover { gap: 0.75rem; color: var(--zb-green-mid); }

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Karta newsa */
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--zb-border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--tr), transform var(--tr);
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

/* Thumbnail — link do posta */
.news-card__thumb {
  display: block;
  position: relative;
  height: 160px;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}
.news-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
}
.news-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.1875rem 0.625rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.95);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zb-orange);
}

.news-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card__date {
  font-size: 0.75rem;
  color: var(--zb-muted);
  display: block;
}
.news-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--zb-navy);
  margin: 0.5rem 0 0;
  line-height: 1.375;
}
.news-card__title a { color: inherit; text-decoration: none; transition: color var(--tr); }
.news-card__title a:hover { color: var(--zb-green); }

.news-card__excerpt {
  font-size: 0.875rem;
  color: var(--zb-muted);
  line-height: 1.6;
  margin: 0.5rem 0 0;
  flex: 1;
}
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--zb-green);
  text-decoration: none;
  transition: gap var(--tr);
}
.news-card__more:hover { gap: 0.625rem; }

.news-empty {
  text-align: center;
  padding: 2rem;
  color: var(--zb-muted);
  font-size: 0.9375rem;
}


/* ══════════════════════════════════════════════════════════════
   6. QUICK LINKS
   Lovable: bg-zb-orange-pale, py-16, grid sm:2 lg:4
   ══════════════════════════════════════════════════════════════ */
.quick-links-section { padding-block: 4rem; }

.quick-links-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.quick-links-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--zb-navy);
  margin: 0.75rem 0 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 1024px) {
  .quick-links-grid { grid-template-columns: repeat(4, 1fr); }
}

.quick-link-tile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--r-2xl);
  background: #fff;
  border: 1px solid var(--zb-border);
  text-decoration: none;
  transition: background var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.quick-link-tile:hover {
  background: var(--zb-green-pale);
  border-color: var(--zb-green);
  box-shadow: var(--shadow-card);
}

.quick-link-tile__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--zb-navy);
  margin: 0;
  line-height: 1.3;
}
.quick-link-tile__desc {
  font-size: 0.8125rem;
  color: var(--zb-muted);
  line-height: 1.5;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
   FLOATING CARD — dostosowanie dla długiej nazwy projektu
   ────────────────────────────────────────────────────────── */
.hero-float-card {
  max-width: 340px; /* zwiększone dla dłuższego tytułu */
}
.hero-float-card__text {
  flex: 1;
  min-width: 0; /* pozwala na zawijanie tekstu */
}
.hero-float-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;  /* 13px — mniejszy dla długiego tekstu */
  color: var(--zb-navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* maks. 4 linie */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-float-card__sub {
  font-size: .6875rem; /* 11px */
  color: var(--zb-muted);
  margin-top: .25rem;
  white-space: nowrap;
}


/* ══════════════════════════════════════════════════════════════
   HERO — logo okrągłe po prawej stronie tekstu
   Wgraj w Customizer → 🖼 Hero → "Logo okrągłe (obok tekstu hero)"
   ══════════════════════════════════════════════════════════════ */

/* ── HERO HEADLINE ROW — nagłówek + logo w jednym flexboxie ── */
.hero-headline-row {
  display: flex;
  align-items: center;        /* logo wyrównane ze środkiem h1 */
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-right: 20px;        /* 20px od prawej krawędzi */
}

/* Logo okrągłe — obok nagłówka, po prawej */
.hero-badge-logo-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hero-badge-logo {
  width: clamp(180px, 18vw, 240px);
  height: clamp(180px, 18vw, 240px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,.32));
  transition: transform .3s ease, filter .3s ease;
}
.hero-badge-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 10px 36px rgba(0,0,0,.42));
}

/* Tablet */
@media (max-width: 1199px) {
  .hero-badge-logo {
    width: clamp(150px, 15vw, 200px);
    height: clamp(150px, 15vw, 200px);
  }
}

/* Mobile — logo pod nagłówkiem */
@media (max-width: 767px) {
  .hero-headline-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-right: 0;
  }
  .hero-badge-logo {
    width: 150px;
    height: 150px;
  }
}
