/* modern-editorial — v2 (redesign 2026-05-15). Universal layout: asymmetric hero,
   contact strip pod hero, gallery strip między section[0] a section[1], split sections. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf9;
  --bg-alt: #f4f4f0;
  --paper: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #e63946;
  --accent-dark: #c5202c;
  --border: #e7e5e4;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 14px 32px rgba(15,23,42,0.12);
  --max-width: 1120px;
  --content-width: 720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,249,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px; padding-top: 14px; padding-bottom: 14px;
  flex-wrap: wrap; gap: 16px;
}
.brand {
  font-family: 'Lora', serif; font-weight: 600; font-size: 22px;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em;
}
.brand:hover { color: var(--accent); }
.main-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-muted); text-decoration: none; font-weight: 500;
  font-size: 14px; transition: color 0.15s;
  position: relative; padding: 4px 0;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.main-nav a.is-active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* ── Hero (asymmetric: text + image) ── */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(135deg, #fff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: clamp(30px, 4.6vw, 48px); line-height: 1.15;
  letter-spacing: -0.02em; max-width: 580px;
  margin-bottom: 18px; color: var(--text);
}
.hero .lead {
  font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6;
  color: var(--text-muted); max-width: 540px;
  margin-bottom: 28px;
}
.hero-image {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px;
  text-decoration: none; border-radius: 8px; border: 0;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer; box-shadow: var(--shadow-sm);
}
.btn-cta:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-cta span { transition: transform 0.15s; }
.btn-cta:hover span { transform: translateX(3px); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { aspect-ratio: 16/9; max-width: 720px; }
  .hero h1 { max-width: 100%; }
}

/* ── Contact strip (pod hero, na home) ── */
.contact-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.contact-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-strip-info h2 {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.25;
  margin-bottom: 12px;
}
.contact-strip-info p {
  color: var(--text-muted); font-size: 16px; line-height: 1.6;
  max-width: 380px;
}
.contact-form {
  background: var(--bg-alt);
  padding: 28px; border-radius: 12px;
  border: 1px solid var(--border);
}
.contact-form label {
  display: block; margin-bottom: 12px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 7px;
  font-family: inherit; font-size: 15px;
  color: var(--text); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}
.contact-form textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form .btn-cta { width: 100%; justify-content: center; margin-top: 4px; }

@media (max-width: 800px) {
  .contact-strip-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Content ── */
.content { padding: 72px 0; }

.content-section {
  max-width: var(--content-width);
  margin: 0 auto 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.content-section h2 {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.25;
  letter-spacing: -0.015em; margin-bottom: 18px;
  color: var(--text);
}
.content-section.is-alt h2::before {
  content: ''; display: inline-block; width: 32px; height: 3px;
  background: var(--accent); margin-right: 14px; vertical-align: middle;
  border-radius: 2px;
}
.section-lead {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 18px; line-height: 1.55;
  color: var(--text-muted); margin: 0 0 20px; max-width: 640px;
}
.prose { color: var(--text); font-size: 16px; line-height: 1.75; }
.prose p { margin-bottom: 14px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-dark); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 12px 0 14px 22px; }
.prose li { margin-bottom: 6px; }

/* Split section: tekst + obraz side-by-side. Max szerszy (max-width: 1100). */
.content-section.is-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; padding: 40px 0;
  max-width: 1100px;
}
.content-section.is-split .section-body { min-width: 0; }
.section-side {
  margin: 0; aspect-ratio: 4/3;
  overflow: hidden; border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.section-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .content-section.is-split { grid-template-columns: 1fr; gap: 24px; }
  .content-section.is-split.is-side-left .section-side,
  .content-section.is-split.is-side-right .section-side { order: -1; }
}

/* ── Gallery strip (3-col fotki między sekcjami) ── */
.gallery-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 56px;
}
.gallery-strip-item {
  margin: 0; aspect-ratio: 4/3;
  overflow: hidden; border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-strip-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) {
  .gallery-strip { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Mid image ── */
.content-mid-image {
  margin: 48px auto;
  max-width: 1100px;
  border-radius: 12px; overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
}
.content-mid-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Pull quote ── */
.pull-quote {
  max-width: var(--content-width); margin: 36px auto;
  padding: 28px 0;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
}
.pull-quote blockquote {
  font-family: 'Lora', serif; font-size: 22px;
  line-height: 1.5; color: var(--text);
  font-weight: 500; max-width: 640px; margin: 0;
}

/* ── CTA banner ── */
.cta-banner {
  margin: 48px auto 0;
  max-width: 1100px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; border-radius: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; box-shadow: var(--shadow-md);
}
.cta-banner-text strong { font-family: 'Lora', serif; font-size: 22px; display: block; margin-bottom: 4px; }
.cta-banner-text span { color: rgba(255,255,255,0.85); font-size: 14px; }
.cta-banner .btn-cta { background: #fff; color: var(--text); }
.cta-banner .btn-cta:hover { background: var(--bg-alt); }

/* ── Blog crosslink ── */
.blog-crosslink {
  margin: 64px auto 0;
  max-width: 1100px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.blog-crosslink > h2 {
  font-family: 'Lora', serif; font-size: 24px;
  margin: 0 0 24px; font-weight: 600;
}
.blog-crosslink-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-crosslink-card {
  display: block; text-decoration: none; color: var(--text);
  transition: transform .15s;
}
.blog-crosslink-card:hover { transform: translateY(-2px); }
.blog-crosslink-card:hover strong { text-decoration: underline; text-decoration-color: var(--accent); }
.blog-crosslink-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 8px; display: block; margin-bottom: 12px;
}
.blog-crosslink-card strong { font-size: 15px; line-height: 1.4; font-weight: 500; }

@media (max-width: 800px) {
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
  .blog-crosslink-grid { grid-template-columns: 1fr; }
}

/* ── Footer ── */
.site-footer {
  padding: 40px 0 30px; background: var(--text); color: #d4d4d4;
  margin-top: 64px;
}
.site-footer .container { text-align: center; }
.brand-foot {
  font-family: 'Lora', serif; font-size: 18px; font-weight: 600;
  color: #fff; margin-bottom: 8px;
}
.muted { color: #9a9a9a; font-size: 13px; }
