/* =========================================================================
   Zbór w Dubiczach Cerkiewnych — arkusz stylów
   -------------------------------------------------------------------------
   WSKAZÓWKA: kolory i kroje pisma zdefiniowane są w :root na samej górze.
   Jeśli chcecie zmienić odcień granatu albo krój czcionki dla całej
   strony — wystarczy zmienić wartość tutaj, w jednym miejscu.
   ========================================================================= */

:root {
  /* -- Kolory ------------------------------------------------------------ */
  --navy-900: #0e1c2e;
  --navy-800: #16283f;
  --navy-700: #203955;
  --steel-500: #5d7290;
  --steel-300: #a8b7c9;
  --steel-100: #e2e8ef;
  --white: #ffffff;
  --bg: #f5f7fa;
  --ink: #1c2733;
  --ink-soft: #4a5666;

  /* -- Typografia ---------------------------------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* -- Odstępy -------------------------------------------------------------- */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 2px;
}

/* -- Reset podstawowy ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 0.9em;
}

:focus-visible {
  outline: 2px solid var(--steel-500);
  outline-offset: 3px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* =========================================================================
   NAGŁÓWEK / NAWIGACJA
   ========================================================================= */

.site-header {
  background: var(--navy-900);
  position: relative;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem var(--gutter);
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  color: var(--white);
  text-decoration: none;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: block;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-300);
  display: block;
  margin-top: 0.15rem;
}

.nav-toggle { display: none; }

.nav-list {
  display: flex;
  gap: clamp(1.1rem, 2vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--steel-100);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--steel-300);
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ""; position: absolute; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

@media (max-width: 780px) {
  .nav-toggle-label { display: block; }
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-800);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-list a {
    display: block;
    padding: 0.95rem var(--gutter);
    border-bottom: 1px solid var(--navy-700);
  }
  .nav-toggle:checked ~ .nav-list { max-height: 400px; }
  .nav-toggle:checked ~ .nav-toggle-label span { transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(0); opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span::after { top: 0; transform: rotate(90deg); }
}

/* =========================================================================
   HERO (strona główna)
   ========================================================================= */

.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 0 0;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 5rem);
  max-width: 720px;
}

.hero .eyebrow { color: var(--steel-300); }

.hero h1 {
  color: var(--white);
  animation: rise 0.7s ease both;
}

.hero-lede {
  color: var(--steel-100);
  font-size: 1.1rem;
  max-width: 46ch;
  animation: rise 0.7s ease 0.1s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* Sylwetka lasu — motyw graficzny nawiązujący do Puszczy Białowieskiej,
   w tonacji granatu i stali. Rozciąga się na całą szerokość paska. */
.forest-line {
  display: block;
  width: 100%;
  height: clamp(48px, 9vw, 96px);
  color: var(--navy-700);
}
.forest-line .fg { color: var(--navy-700); }
.forest-line .bg { color: var(--steel-500); opacity: 0.45; }

/* Pasek tytułowy podstron (mniejszy wariant hero) */
.page-title {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: clamp(2.75rem, 7vw, 4rem) 0 0;
}
.page-title-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2rem, 5vw, 3rem);
}
.page-title h1 { color: var(--white); margin-bottom: 0.3em; }
.page-title p { color: var(--steel-100); max-width: 60ch; }

/* =========================================================================
   PRZYCISKI
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--white);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--steel-100); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); }

.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-800); }

/* =========================================================================
   SEKCJE / UKŁAD OGÓLNY
   ========================================================================= */

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--white); }

.section-head { max-width: 60ch; margin-bottom: 2.75rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* -- Karta informacyjna --------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-top: 3px solid var(--navy-800);
  padding: 1.9rem 1.7rem;
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 0.5rem; }
.card .card-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}

/* -- Panel cytatu / informacji o prowadzeniu zboru ----------------------- */
.info-panel {
  background: var(--navy-900);
  color: var(--white);
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
}
.info-panel .eyebrow { color: var(--steel-300); }
.info-panel p { color: var(--steel-100); }
.info-panel .name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 1rem;
}
.info-panel .role {
  font-size: 0.85rem;
  color: var(--steel-300);
}

/* -- Pasek wezwania do działania (CTA) ------------------------------------ */
.cta-band {
  background: var(--navy-800);
  color: var(--white);
  padding: clamp(2.75rem, 6vw, 4rem) 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: var(--steel-100); margin-bottom: 1.6rem; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }

/* -- Mapa ------------------------------------------------------------------ */
.map-wrap {
  border: 1px solid var(--steel-100);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* -- Lista kontaktowa -------------------------------------------------------- */
.contact-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.4rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--steel-100);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .k {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-500);
  font-weight: 600;
}
.contact-list .v { font-size: 1.05rem; }
.contact-list .v a { color: var(--navy-800); text-decoration: underline; text-decoration-color: var(--steel-300); }
@media (max-width: 560px) {
  .contact-list li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* -- Treść w formie nagłówków + akapitów (lista przekonań, kalendarium
   historii, lista spotkań) — proste, spójne stylowanie sekwencji
   <h3>/<p> bez potrzeby osobnych klas dla każdej sekcji. */
.md-content h2,
.md-content h3 {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--steel-100);
}
.md-content h2:first-child,
.md-content h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.md-content h3 { font-size: 1.05rem; }
.md-content p { margin: 0 0 1em; }
.md-content a { text-decoration: underline; text-decoration-color: var(--steel-300); }

/* =========================================================================
   STOPKA
   ========================================================================= */

.site-footer {
  background: var(--navy-900);
  color: var(--steel-300);
  padding: clamp(2.75rem, 6vw, 3.5rem) 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--navy-700);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 0.9rem;
}
.site-footer .brand-name { color: var(--white); }
.site-footer p, .site-footer a { color: var(--steel-300); font-size: 0.92rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--steel-500);
}
.footer-bottom a { color: var(--steel-500); }
