/* ============================================================
   blog.css — Style dla podstron bloga i artykułów
   ============================================================ */

/* ── Subpage hero ───────────────────────────────────────── */
.subpage-hero {
  padding: 120px 0 64px;
  background: linear-gradient(160deg, #080808 0%, #111111 50%, #1a1a1a 100%);
}
.subpage-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 12px;
  max-width: 800px;
}
.subpage-hero p {
  color: rgba(255,255,255,0.70);
  font-size: 1.05rem;
  max-width: 600px;
}
.subpage-hero--article .breadcrumb { margin-bottom: 16px; }
.article-meta {
  color: rgba(255,255,255,0.55) !important;
  font-size: 0.875rem !important;
  margin-top: 12px !important;
}

/* article hero colour variants */
.hero--prefab   { background: linear-gradient(160deg, #080808 0%, #101820 60%, #182030 100%); }
.hero--outsourcing { background: linear-gradient(160deg, #080808 0%, #0d1a10 60%, #152018 100%); }
.hero--ai       { background: linear-gradient(160deg, #080808 0%, #14101e 60%, #1c1428 100%); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--red); }

/* ── Blog listing page ──────────────────────────────────── */
.blog-page { padding: 60px 0 80px; }

.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  background: var(--bg-light);
  border-color: #999;
  color: #111;
}
.filter-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
  font-weight: 600;
}

.blog-grid--wide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-grid--wide .blog-card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-grid--wide .blog-card h2 a {
  color: var(--navy);
  transition: color var(--transition);
  line-height: 1.4;
  display: block;
}
.blog-grid--wide .blog-card h2 a:hover { color: var(--red); }

/* ── Article layout ─────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 60px 0 80px;
  align-items: start;
}

.article-body {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
}
.article-body .article-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.article-body h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 36px 0 14px;
}
.article-body h2:first-of-type { margin-top: 0; }
.article-body p {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body li {
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 6px;
  list-style: disc;
}
.article-body ol li { list-style: decimal; }
.article-body strong { color: var(--navy); }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body a:hover { color: var(--red); }

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.article-table th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.article-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.article-table tr:nth-child(even) td { background: var(--bg-light); }

/* ── Sidebar ────────────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sidebar-box h3 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.sidebar-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-posts li { list-style: none; }
.sidebar-posts a {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.5;
  transition: color var(--transition);
  display: block;
}
.sidebar-posts a:hover { color: var(--red); }

.sidebar-cta { background: var(--navy); }
.sidebar-cta h3 { color: #fff; border-color: rgba(255,255,255,0.15); }
.sidebar-cta p { color: rgba(255,255,255,0.65); font-size: 0.875rem; margin-bottom: 16px; line-height: 1.55; }

/* ── Back link ──────────────────────────────────────────── */
.back-to-blog {
  padding: 0 0 48px;
}

/* ── Contact cards (no-form layout) ────────────────────── */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}
.contact-card .contact-icon {
  width: 60px;
  height: 60px;
  background: var(--navy);
  color: var(--red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.contact-card strong {
  display: block;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.contact-card p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.6;
}
.contact-card a {
  color: var(--text-mid);
  transition: color var(--transition);
}
.contact-card a:hover { color: var(--red); }
.contact-card .social-links { justify-content: center; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .blog-grid--wide { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .article-body { padding: 28px 20px; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .blog-grid--wide { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .contact-cards { grid-template-columns: 1fr; }
}
