/* Parafia pw. Wszystkich Świętych - Mysłowice-Dziećkowice
   Wspólne style dla wszystkich podstron */

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

:root {
  --cream:   #FAF7F2;
  --warm:    #F0EAE0;
  --ink:     #1A0F07;
  --ink-mid: #3E2D1C;
  --wine:    #6A1A28;
  --wine-d:  #4A1018;
  --gold:    #A07228;
  --gold-l:  #C49040;
  --rule:    #C8B898;
  --white:   #FDFAF6;
  --nav-h:   68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,250,246,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1360px; margin: 0 auto;
  padding: 0 56px; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.nav-logo { height: 38px; width: auto; display: block; opacity: 0.85; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.96rem; font-weight: 500;
  color: var(--ink); line-height: 1.2;
}
.nav-brand-sub {
  font-size: 0.67rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
}
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mid); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--wine); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HERO (podstrony) ── */
.page-hero {
  position: relative; height: 300px;
  overflow: hidden; display: flex; align-items: flex-end;
  margin-top: var(--nav-h);
}
.page-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,15,7,0.2) 0%, rgba(26,15,7,0.82) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 0 80px 44px;
  animation: fadeUp 0.8s 0.15s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-hero-kicker {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.page-hero-kicker-rule { width: 28px; height: 2px; background: var(--gold-l); flex-shrink: 0; }
.page-hero-kicker-text {
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); font-weight: 400;
}
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: #fff; line-height: 1.1;
}
.page-hero-title em {
  font-weight: 400; font-style: italic;
  color: rgba(240,210,152,0.92);
}

/* ── SEKCJE - wspólne ── */
section { border-top: 1px solid var(--rule); }
section:first-of-type { border-top: none; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 80px 56px; }
.sec-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 48px; }
.sec-label {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 400; white-space: nowrap;
}
.sec-rule { flex: 1; height: 1px; background: var(--rule); }
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500; color: var(--wine); line-height: 1.2;
}

/* ── LINK "WIĘCEJ" ── */
.sec-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 28px;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wine); text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.sec-link:hover { color: var(--wine-d); border-color: var(--wine); }

/* ── NAGŁÓWEK SEKCJI Z PRZYCISKIEM ── */
.sec-title-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.sec-title-row h2 { margin-bottom: 0; }

/* ── PRZYCISK DRUKUJ / PDF ── */
.print-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wine); background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.print-btn:hover { color: var(--white); background: var(--wine); border-color: var(--wine); }
.print-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 600px) {
  .sec-title-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── WYDRUK ── */
@media print {
  @page { size: A4; margin: 12mm; }
  nav, .page-hero, footer, .print-btn { display: none !important; }
  body { background: #fff; }
  section { border-top: none; }
  .wrap { padding: 0; max-width: 100%; }
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 56px 56px 36px;
}
.footer-inner { max-width: 1360px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: #fff; margin-bottom: 6px;
}
.footer-brand-tag {
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-l);
}
.footer-brand-desc {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem; line-height: 1.7;
  color: rgba(255,255,255,0.4);
  margin-top: 12px; max-width: 260px;
}
.footer-col-head {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-l); margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li {
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem; padding: 3px 0;
  color: rgba(255,255,255,0.55);
}
.footer-col li strong { color: rgba(255,255,255,0.8); font-weight: 400; display: block; }
.footer-konto {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.35);
  margin-top: 6px; line-height: 1.7;
  white-space: nowrap;
}
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.68rem; color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
}
.footer-bottom a { color: var(--gold-l); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-inner { padding: 0 24px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(253,250,246,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0; gap: 0; list-style: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(200,184,152,0.3); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 16px 24px; font-size: 0.88rem; }
  .page-hero { height: 220px; }
  .page-hero-content { padding: 0 24px 32px; }
  .wrap { padding: 56px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer { padding: 48px 24px 32px; }
}
@media (max-width: 480px) {
  .wrap { padding: 40px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  footer { padding: 40px 20px 28px; }
}
