/*
Theme Name: KRD-IG
Theme URI: https://krd-ig.com.pl
Author: KRD-IG
Description: Motyw WordPress przygotowany dla serwisu KRD-IG.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: krd-ig
*/

:root { --ink: #17242b; --muted: #64747a; --accent: #e6532f; --paper: #f5f3ee; --line: #d8d9d4; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, sans-serif; line-height: 1.65; }
a { color: var(--accent); }
.site-header, .site-footer { background: var(--ink); color: #fff; }
.site-header-inner, .site-main, .site-footer-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-width { width: min(1280px, calc(100% - 56px)); margin: 0 auto; }
.site-header-inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; min-height: 84px; }
.site-title { color: #fff; font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.main-navigation ul { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: #fff; text-decoration: none; font-family: Arial, sans-serif; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.site-main { padding: 72px 0; }
.entry-header { max-width: 820px; margin-bottom: 32px; }
.entry-title { margin: 0 0 12px; font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1.05; }
.entry-meta, .entry-summary { color: var(--muted); }
.entry-content { max-width: 820px; font-size: 1.1rem; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.post-list { display: grid; gap: 24px; }
.post-card { padding: 24px 0; border-top: 1px solid var(--line); }
.post-card h2 { margin: 0 0 8px; }
.site-footer { padding: 32px 0; font-family: Arial, sans-serif; font-size: .9rem; }
.home-page { width: 100%; padding: 0; }
.home-hero { min-height: 650px; display: flex; align-items: center; background: linear-gradient(90deg, rgba(14,18,20,.62), rgba(14,18,20,.08)), url('https://krd-ig.com.pl/wp-content/uploads/2024/08/KRD_Hero_Image.webp') center / cover no-repeat; }
.home-hero h1 { max-width: 720px; margin: 0 0 24px; color: #fff; font-size: clamp(3.4rem, 8vw, 7.5rem); line-height: .94; letter-spacing: -.06em; }
.home-hero h1 em { color: #f4f0eb; font-style: normal; font-weight: 400; }
.home-hero .eyebrow, .home-hero-copy > p:not(.eyebrow) { color: rgba(255,255,255,.9); }
.hero-text { max-width: 560px; margin: 0 0 30px; color: var(--muted); font-size: 1.15rem; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-family: Arial, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: #f5f3ee; }
.home-stats { padding: 58px 0; background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.stats-grid h2 { margin: 0; font-size: 2rem; line-height: 1.1; }
.stats-grid strong { display: block; color: #fff; font-size: 2rem; }
.stats-grid p:not(.eyebrow) { color: #b8c1c2; }
.home-section { padding: 112px 0; }
.home-section h2 { max-width: 760px; margin: 0 0 35px; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; }
.pathway-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.pathway-card { min-height: 230px; padding: 28px; background: var(--paper); transition: transform .2s ease, background .2s ease; }
.pathway-card:hover { background: #fff; transform: translateY(-5px); }
.pathway-card span { color: var(--accent); font-size: 1.5rem; }
.pathway-card h3 { margin: 45px 0 8px; font-size: 1.25rem; }
.pathway-card p { margin: 0; color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.latest-section { background: #e7ebe6; }
.latest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.latest-card { overflow: hidden; background: var(--paper); }
.latest-card img { width: 100%; height: 170px; object-fit: cover; }
.latest-card > div { padding: 22px; }
.latest-card h3 { margin: 8px 0; font-size: 1.15rem; line-height: 1.15; }
.latest-card p { color: var(--muted); font-size: .92rem; }
.latest-meta, .entry-meta { color: var(--accent) !important; font-size: .76rem !important; font-weight: 700; }
.membership-cta { padding: 90px 0; background: var(--accent); color: #fff; }
.membership-cta h2 { max-width: 650px; margin: 0 0 20px; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .95; }
.membership-cta p:not(.eyebrow) { max-width: 540px; }
.button-white { margin-top: 18px; background: #fff; color: var(--ink); }
.button-outline { border-color: var(--ink); color: var(--ink); }
@media (max-width: 820px) { .stats-grid, .pathway-grid, .latest-grid { grid-template-columns: repeat(2, 1fr); } .section-heading { align-items: start; flex-direction: column; } }
@media (max-width: 720px) { .site-header-inner { display: block; padding: 20px 0; } .main-navigation ul { margin-top: 16px; gap: 10px 14px; } .site-main { padding: 44px 0; } .home-hero { min-height: 520px; } .stats-grid, .pathway-grid, .latest-grid { grid-template-columns: 1fr; } .home-section { padding: 60px 0; } }