/**
 * CMC Silesia — hero.css
 * 1:1 konwersja z Lovable. Nic nie zmienione.
 * Ładowany tylko na front-page.
 */

/* ─── Scroll reveal ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform: none; } }

/* ════════ HERO ════════
   Lovable: relative overflow-hidden bg-gradient-hero text-white py-20 lg:py-28
   grid lg:grid-cols-[1.3fr_1fr] gap-12 items-center
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0E3A52 0%, #1B5E78 60%, #127A60 100%);
  color: #fff;
  padding: 80px 0;
  overflow: visible;
}
@media (min-width: 1024px) { .hero-section { padding: 112px 0; } }

/* Circuit pattern — dokładnie z Lovable */
.hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, color-mix(in oklab, #3FC9A8 18%, transparent) 0, transparent 40%),
    radial-gradient(circle at 80% 60%, color-mix(in oklab, #127A60 22%, transparent) 0, transparent 45%),
    linear-gradient(0deg, transparent 24%, rgba(63,201,168,.06) 25%, rgba(63,201,168,.06) 26%, transparent 27%, transparent 74%, rgba(63,201,168,.06) 75%, rgba(63,201,168,.06) 76%, transparent 77%),
    linear-gradient(90deg, transparent 24%, rgba(63,201,168,.06) 25%, rgba(63,201,168,.06) 26%, transparent 27%, transparent 74%, rgba(63,201,168,.06) 75%, rgba(63,201,168,.06) 76%, transparent 77%);
  background-size: auto, auto, 60px 60px, 60px 60px;
}
.hero-bg-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, transparent, rgba(0,0,0,.15));
}

/* Grid inside hero */
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 1023px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  border-radius: 99px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); margin-bottom: 24px;
}
.hero-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #3FC9A8; flex-shrink: 0; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.6; transform:scale(.8); } }

/* Title — h1 */
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800; line-height: 1.05; color: #fff;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero-title__accent {
  background: linear-gradient(135deg, #127A60, #3FC9A8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline { font-family: 'Outfit', sans-serif; font-size: 18px; color: rgba(255,255,255,.9); line-height: 1.375; margin-bottom: 16px; max-width: none; }
.hero-description { font-size: 16px; color: rgba(255,255,255,.78); line-height: 1.75; max-width: 55ch; margin: 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* CTA buttons — z Lovable */
.btn-hero-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600;
  color: #0E3A52; background: linear-gradient(135deg, #127A60, #3FC9A8);
  border-radius: var(--r-md, 8px); text-decoration: none;
  box-shadow: 0 4px 20px rgba(63,201,168,.30);
  transition: opacity .2s, transform .15s;
}
.btn-hero-primary:hover { opacity: .9; transform: translateY(-2px); color: #0E3A52; }
.btn-hero-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn-hero-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600;
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.30);
  border-radius: var(--r-md, 8px); text-decoration: none; backdrop-filter: blur(4px);
  transition: background .2s, transform .15s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); color: #fff; }
.btn-hero-secondary:focus-visible { outline: 2px solid #3FC9A8; outline-offset: 2px; }

/* Poster card — lg:justify-self-end w-full max-w-sm rounded-2xl bg-white p-4 shadow-elegant */
.hero-poster-wrap { display: flex; justify-content: flex-end; align-items: center; }
@media (max-width: 1023px) { .hero-poster-wrap { justify-content: center; } }

.hero-poster-card {
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 20px 50px -20px rgba(14,58,82,.35);
  max-width: 384px; width: 100%;
}
.hero-poster-img { width: 100%; height: auto; display: block; border-radius: 8px; }
.hero-poster-caption { text-align: center; font-size: 12px; color: #8899AA; margin-top: 12px; }

.hero-poster-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; color: #BCC9D4; text-align: center; gap: 12px;
  background: #F0F4F7; border-radius: 8px;
}
.hero-poster-placeholder svg { width: 48px; height: 48px; }
.hero-poster-placeholder p { font-size: 14px; color: #8899AA; margin: 0; }
.hero-poster-placeholder small { font-size: 12px; color: #BCC9D4; }

/* ════════ STATS ════════
   Lovable: bg-secondary py-12 grid grid-cols-2 lg:grid-cols-4 gap-8
   ═════════════════════════════════════════════════════════════════ */
.stats-section { background: #0E3A52; padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item { text-align: center; }
.stat-value { font-family: 'Outfit', sans-serif; font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
/* PLN jako mniejszy tekst obok liczby — całość w 1 linii */
.stat-unit { font-size: 0.55em; font-weight: 700; color: #fff; letter-spacing: 0; }
.stat-label { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.65); }

/* ════════ ABOUT ════════
   Lovable: py-20 lg:py-28 grid lg:grid-cols-[1fr_1.4fr] gap-12
   ═══════════════════════════════════════════════════════════════ */
.about-section { background: #fff; padding: 80px 0; }
@media (min-width: 1024px) { .about-section { padding: 112px 0; } }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1.4fr; } }

.about-col--left .section-label { color: #127A60; }
.about-title { font-size: clamp(28px, 3vw, 40px); color: #0E3A52; margin: 12px 0 16px; line-height: 1.2; }
.about-intro { color: #3D5162; font-size: 16px; margin-bottom: 32px; line-height: 1.7; }

/* Project data table */
.project-data-list { display: flex; flex-direction: column; }
.project-data-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid #DDE5EC; font-size: 14px; }
.project-data-row:last-child { border-bottom: none; }
.project-data-row dt { color: #8899AA; }
.project-data-row dd { font-family: 'Outfit', sans-serif; font-weight: 600; color: #0E3A52; text-align: right; }

.about-col--right p { color: #3D5162; line-height: 1.75; margin-bottom: 20px; }
.about-col--right p:last-child { margin-bottom: 0; }
.about-col--right strong { color: #0E3A52; }

/* Highlight box — rounded-xl bg-muted border p-5 */
.about-highlight { background: #E6F5F0; border: 1px solid #C8EDE5; border-radius: 12px; padding: 20px 24px; margin-top: 24px; }
.about-highlight p { font-size: 14px; color: #0E3A52; margin: 0; line-height: 1.6; }

/* ════════ AREAS ════════
   Lovable: py-20 lg:py-28 bg-muted grid md:grid-cols-2 lg:grid-cols-3 gap-5
   ═══════════════════════════════════════════════════════════════════════════ */
.areas-section { background: #E6F5F0; padding: 80px 0; }
@media (min-width: 1024px) { .areas-section { padding: 112px 0; } }

.areas-header { max-width: 512px; margin-bottom: 48px; }
.areas-title { font-size: clamp(28px, 3vw, 40px); color: #0E3A52; margin: 12px 0 16px; }
.areas-intro { color: #3D5162; }

.areas-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }

/* Area card — rounded-xl bg-card border p-6 hover:shadow-card-soft hover:border-primary/40 */
.area-card {
  background: #fff; border: 1px solid #C8EDE5; border-radius: 12px; padding: 24px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.area-card:hover { box-shadow: 0 10px 30px -15px rgba(18,122,96,.25); border-color: rgba(18,122,96,.40); transform: translateY(-2px); }

/* Icon — h-11 w-11 rounded-lg bg-gradient-accent */
.area-icon-svg { width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #127A60, #3FC9A8); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; flex-shrink: 0; }
.area-icon-svg svg { width: 22px; height: 22px; stroke: #fff; display: block; }

.area-card__title { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; color: #127A60; margin-bottom: 8px; }
.area-card__desc { font-size: 14px; color: #8899AA; line-height: 1.6; margin: 0; }

/* ════════ CONSORTIUM ════════
   Lovable: py-20 lg:py-28 text-center grid sm:grid-cols-2 lg:grid-cols-5 gap-4
   ════════════════════════════════════════════════════════════════════════════ */
.consortium-section { background: #E6F5F0; padding: 80px 0; }
@media (min-width: 1024px) { .consortium-section { padding: 112px 0; } }

.consortium-header { text-align: center; max-width: 512px; margin: 0 auto 48px; }
.consortium-title { font-size: clamp(28px, 3vw, 40px); color: #0E3A52; margin: 12px 0 16px; }
.consortium-intro { color: #3D5162; }

.consortium-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 1024px) { .consortium-grid { grid-template-columns: repeat(5, 1fr); } }

/* Card — rounded-xl border p-6 text-center hover:shadow-card-soft */
.consortium-card {
  border: 1px solid #C8EDE5; border-radius: 12px; padding: 24px 16px;
  text-align: center; background: #fff; text-decoration: none; display: block;
  transition: box-shadow .2s, transform .2s;
}
.consortium-card:hover { box-shadow: 0 10px 30px -15px rgba(18,122,96,.25); transform: translateY(-2px); }
/* Lead card — ring-2 ring-primary/40 */
.consortium-card--lead { box-shadow: 0 0 0 2px rgba(18,122,96,.40); }

/* Badge — mx-auto h-16 w-16 rounded-full bg-gradient-accent */
.consortium-badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #127A60, #3FC9A8);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; color: #0E3A52;
}
.consortium-role { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #127A60; margin-bottom: 8px; }
.consortium-name { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; color: #0E3A52; line-height: 1.375; }

/* ════════ NEWS ════════
   Lovable: py-20 lg:py-28 bg-muted grid md:grid-cols-3 gap-6
   ══════════════════════════════════════════════════════════ */
.news-section { background: #fff; padding: 80px 0; }
@media (min-width: 1024px) { .news-section { padding: 112px 0; } }

.news-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.news-title { font-size: clamp(28px, 3vw, 40px); color: #0E3A52; margin: 12px 0 0; }
.news-all-link { font-size: 14px; font-weight: 600; color: #127A60; text-decoration: none; white-space: nowrap; transition: color .2s; }
.news-all-link:hover { color: #0A5A47; text-decoration: underline; }

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

/* Card — rounded-xl bg-card border overflow-hidden hover:shadow-card-soft flex flex-col */
.news-card { background: #fff; border: 1px solid #C8EDE5; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 10px 30px -15px rgba(18,122,96,.25); transform: translateY(-4px); }

/* Thumb — h-40 bg-gradient-hero relative */
.news-card__thumb {
  position: relative; height: 160px; overflow: hidden; flex-shrink: 0;
  display: block; text-decoration: none; /* reset gdy <a> */
}
.news-card__thumb:focus-visible { outline: 2px solid #127A60; outline-offset: -2px; }
.news-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0E3A52 0%, #1B5E78 45%, #127A60 100%);
  background-image:
    linear-gradient(135deg, #0E3A52 0%, #1B5E78 45%, #127A60 100%),
    linear-gradient(0deg, transparent 24%, rgba(63,201,168,.08) 25%, rgba(63,201,168,.08) 26%, transparent 27%),
    linear-gradient(90deg, transparent 24%, rgba(63,201,168,.08) 25%, rgba(63,201,168,.08) 26%, transparent 27%);
  background-size: cover, 40px 40px, 40px 40px;
}
/* Badge — absolute top-4 left-4 bg-white/95 text-secondary */
.news-card__badge { position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.96); color: #0E3A52; padding: 3px 10px; border-radius: 4px; }

.news-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 12px; color: #8899AA; }
.news-card__title { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600; color: #0E3A52; margin: 8px 0 0; line-height: 1.375; }
.news-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
.news-card__title a:hover { color: #127A60; }
.news-card__excerpt { font-size: 14px; color: #8899AA; line-height: 1.6; margin: 8px 0 0; flex: 1; }
.news-card__more { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; color: #127A60; text-decoration: none; transition: color .2s; }
.news-card__more:hover { color: #0A5A47; text-decoration: underline; }

.news-empty { text-align: center; padding: 48px; color: #8899AA; }

/* ── Placeholder logotypu w kartach konsorcjum (homepage) ── */
.consortium-logo-area { width:100%; min-height:56px; display:flex; align-items:center; justify-content:center; border:1.5px dashed #C8EDE5; border-radius:8px; background:#F8FAFB; margin-bottom:14px; padding:8px; transition:border-color .2s; }
.consortium-logo-area img { max-height:48px; width:auto; display:block; }
.consortium-logo-area__placeholder { font-size:11px; color:#8899AA; text-align:center; line-height:1.4; }
.consortium-logo-area__placeholder span { display:block; font-size:16px; margin-bottom:2px; }
.consortium-card:hover .consortium-logo-area { border-color:#127A60; }
