/*
Theme Name: ROD Oświata
Description: Motyw dla Rodzinnego Ogrodu Działkowego "Oświata" we Wrocławiu.
Author: webmodern.pl
Template: twentytwentyfive
Version: 4.0
*/
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;

  /* paleta — zachowana */
  --green:        #2e7d32;
  --green-d:      #1b5e20;
  --green-l:      #4a7c2a;
  --green-soft:   #a5d6a7;
  --green-pale:   #e8f5ea;
  --wood:         #795548;
  --wood-l:       #a98274;
  --cream:        #f7f4ee;
  --cream-2:      #ede6d3;
  --ink:          #1a2218;
  --ink-soft:     #5a6450;
  --ink-dim:      #8a9080;

  /* modern bordery i tła */
  --bg:           #ffffff;
  --bg-soft:      #fafaf7;
  --bg-app:       #f5f3ed;
  --border:       rgba(26, 34, 24, 0.08);
  --border-strong:rgba(26, 34, 24, 0.14);
  --line-soft:    rgba(26, 34, 24, 0.06);

  /* modern shadows w kolorze zielonym (głębsza percepcja) */
  --shadow-xs:    0 1px 2px rgba(20, 40, 18, 0.04);
  --shadow-sm:    0 2px 8px rgba(20, 40, 18, 0.06);
  --shadow-md:    0 8px 24px rgba(20, 40, 18, 0.08);
  --shadow-lg:    0 16px 48px rgba(20, 40, 18, 0.12);
  --shadow-glow:  0 16px 40px rgba(46, 125, 50, 0.18);

  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --header-h:     76px;
  --maxw:         1250px;
  --ease:         cubic-bezier(.2, .9, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, .wp-site-blocks {
  background: var(--bg-app);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main,
.wp-site-blocks > div { flex: 1 0 auto; }
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child { flex-shrink: 0; }

a { color: var(--green-d); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--green); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .8rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

/* ===================== HEADER ===================== */
.rod-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.rod-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.rod-header__wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.rod-header__logo {
  display: flex; align-items: center; gap: .75rem;
  color: var(--ink); text-decoration: none; font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.rod-header__logo:hover { color: var(--ink); }
.rod-header__logo img { width: 42px; height: 42px; }
.rod-header__logo span strong { color: var(--green); font-weight: 700; }

.rod-header__nav { display: flex; align-items: center; gap: .25rem; }
.rod-header__nav a {
  padding: .55rem .95rem; border-radius: var(--radius-sm);
  color: var(--ink-soft); font-weight: 500; font-size: .98rem;
  text-decoration: none; transition: all .2s var(--ease);
  position: relative;
}
.rod-header__nav a:hover { color: var(--green-d); background: var(--green-pale); }
.rod-header__nav a.is-active { color: var(--green-d); background: var(--green-pale); font-weight: 600; }
.rod-header__nav-cta {
  margin-left: .5rem;
  background: var(--green-d) !important; color: #fff !important;
  padding: .55rem 1.2rem !important;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.25);
}
.rod-header__nav-cta:hover { background: var(--green) !important; color: #fff !important; transform: translateY(-1px); box-shadow: var(--shadow-glow); }

.rod-header__toggle {
  display: none;
  background: transparent; border: 1px solid var(--border); padding: .5rem .6rem;
  border-radius: var(--radius-sm); cursor: pointer;
  flex-direction: column; gap: 4px;
}
.rod-header__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 880px) {
  .rod-header__toggle { display: flex; }
  .rod-header__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; align-items: stretch;
    padding: .8rem 1.5rem 1.2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .rod-header__nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .rod-header__nav a { padding: .8rem 1rem; font-size: 1.05rem; }
  .rod-header__nav-cta { margin-left: 0; text-align: center; }
}

/* ===================== HERO (modern, jasne) ===================== */
.rod-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(74, 124, 42, 0.12), transparent 70%),
    radial-gradient(ellipse 500px 350px at 85% 80%, rgba(46, 125, 50, 0.10), transparent 70%),
    linear-gradient(180deg, #fbfaf5 0%, #f5f3ed 100%);
  color: var(--ink);
  padding: 5rem 1.5rem 4.5rem;
  margin: 1.5rem auto 0;
  max-width: var(--maxw);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.rod-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(46, 125, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 125, 50, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.rod-hero__orb {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: .35;
}
.rod-hero__orb--1 { width: 480px; height: 480px; background: #a5d6a7; left: -100px; top: -100px; }
.rod-hero__orb--2 { width: 380px; height: 380px; background: #ede6d3; right: -80px; bottom: -100px; opacity: .55; }
.rod-hero__orb--3 { width: 280px; height: 280px; background: #4a7c2a; right: 20%; top: 40%; opacity: .15; }

.rod-hero__inner {
  position: relative; z-index: 2;
  max-width: 760px; margin: 0 auto; text-align: center;
}
.rod-hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: .88rem; color: var(--ink-soft); font-weight: 500;
  margin-bottom: 1.4rem;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
}
.rod-hero__badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}
.rod-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700; margin: 0 0 1rem; line-height: 1.05;
  letter-spacing: -0.03em; color: var(--ink);
}
.rod-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--green-l) 0%, var(--green-d) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rod-hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft); margin: 0 auto 2rem; max-width: 56ch; line-height: 1.6;
}
.rod-hero__btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.rod-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .9rem 1.8rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: all .2s var(--ease);
  font-family: var(--font-display);
  cursor: pointer; border: 0;
}
.rod-btn--primary {
  background: linear-gradient(135deg, var(--green-l) 0%, var(--green-d) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.25);
}
.rod-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(46, 125, 50, 0.35); color: #fff; }
.rod-btn--ghost { background: rgba(255,255,255,.6); color: var(--ink); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); }
.rod-btn--ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--green-d); }

/* ===================== STATS ===================== */
.rod-stats {
  max-width: var(--maxw); margin: -2.5rem auto 3rem;
  padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  position: relative; z-index: 3;
}
.rod-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rod-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.rod-stat__val { font-size: 2.1rem; font-weight: 700; color: var(--green-d); line-height: 1; letter-spacing: -0.02em; font-family: var(--font-display); }
.rod-stat__val span { font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; margin-left: .15rem; }
.rod-stat__label { color: var(--ink-soft); font-size: .92rem; margin-top: .5rem; font-weight: 500; }

/* ===================== LAYOUT GRID ===================== */
.rod-content-wrap {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  max-width: var(--maxw); margin: 0 auto 4rem; padding: 0 1.5rem;
}
@media (min-width: 960px) {
  .rod-content-wrap { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 2.5rem; }
}

.rod-section-title {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--ink); margin: 0 0 1.5rem; padding: 0;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: .8rem;
}
.rod-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ===================== OGŁOSZENIA (lista na froncie) ===================== */
#rod-news-list { display: flex; flex-direction: column; gap: 1.2rem; }
.rod-news-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  position: relative;
}
.rod-news-item::before {
  content: ''; position: absolute; left: 0; top: 1.6rem; bottom: 1.6rem;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--green-l), var(--green));
}
.rod-news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 125, 50, 0.2);
}
.rod-news-item h3 {
  font-size: 1.3rem; margin: 0 0 .4rem; line-height: 1.3; font-weight: 700;
  letter-spacing: -0.01em;
}
.rod-news-item h3 a { color: var(--ink); }
.rod-news-item h3 a:hover { color: var(--green-d); }
.rod-news-item .rod-news-date {
  display: inline-block;
  font-size: .82rem; color: var(--ink-soft); margin-bottom: .7rem;
  padding: .15rem .55rem; background: var(--green-pale); border-radius: 999px;
  font-weight: 500;
}
.rod-news-item p { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: 1rem; }

.rod-news-more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.5rem; padding: .85rem 1.5rem;
  background: var(--bg); color: var(--green-d);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius); font-weight: 600;
  transition: all .2s var(--ease); text-decoration: none;
}
.rod-news-more:hover {
  background: var(--green-d); color: #fff; border-color: var(--green-d);
  transform: translateY(-1px); box-shadow: var(--shadow-glow);
}

/* ===================== SIDEBAR ===================== */
.rod-sidebar { display: flex; flex-direction: column; gap: 1.2rem; }
.rod-widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow .25s var(--ease);
}
.rod-widget:hover { box-shadow: var(--shadow-sm); }
.rod-widget__title {
  color: var(--ink);
  padding: 1.1rem 1.3rem .7rem;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: .5rem;
}
.rod-widget__body { padding: 0 1.3rem 1.3rem; }
.rod-widget--weather .rod-widget__title,
.rod-widget--weather .rod-widget__body { padding: 0; }
.rod-widget--weather { border: 0; box-shadow: var(--shadow-sm); }

/* lista wpisów */
.rod-recent { list-style: none; padding: 0; margin: 0; }
.rod-recent li {
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.rod-recent li:last-child { border-bottom: 0; padding-bottom: 0; }
.rod-recent li:first-child { padding-top: 0; }
.rod-recent a {
  color: var(--ink); font-weight: 600; font-size: .95rem;
  display: block; line-height: 1.4; text-decoration: none;
  transition: color .15s;
}
.rod-recent a:hover { color: var(--green-d); }
.rod-recent .rod-recent-date { font-size: .8rem; color: var(--ink-dim); margin-top: .15rem; font-weight: 500; }

/* ===================== POGODA OWM (zachowana, lekko docięta) ===================== */
[data-rod-weather] {
  background: linear-gradient(180deg, #4a90c8 0%, #6ba9d6 35%, #8fc1de 60%, #b0d2e6 100%);
  position: relative;
  min-height: 360px;
  display: flex; flex-direction: column;
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
[data-rod-weather]::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 200px 80px at 20% 30%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(ellipse 280px 100px at 75% 45%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(ellipse 180px 60px at 50% 20%, rgba(255,255,255,.4), transparent 60%);
  pointer-events: none;
}
[data-rod-weather] > * { position: relative; z-index: 1; }
.rod-owm__top { padding: .85rem 1rem; text-align: center; }
.rod-owm__city { font-weight: 700; letter-spacing: 1.5px; font-size: .92rem; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.rod-owm__main {
  background: rgba(40, 50, 60, 0.45);
  backdrop-filter: blur(2px);
  padding: 1rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  margin-top: auto;
}
.rod-owm__temp { font-size: 4rem; font-weight: 300; line-height: 1; text-shadow: 0 2px 4px rgba(0,0,0,.3); letter-spacing: -0.03em; }
.rod-owm__temp span { font-size: 2rem; vertical-align: top; opacity: .85; }
.rod-owm__meta { flex: 1; }
.rod-owm__label { font-weight: 700; font-size: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,.4); letter-spacing: .3px; }
.rod-owm__day { font-size: .85rem; color: rgba(255,255,255,.92); margin-top: .2rem; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.rod-owm__stats {
  display: flex; justify-content: space-around;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.97); color: var(--ink);
  font-size: .92rem; font-weight: 600;
}
.rod-owm__stats span { display: flex; align-items: center; gap: .3rem; white-space: nowrap; }
.rod-owm__forecast {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 1rem .6rem; background: #fff; color: var(--ink);
  border-top: 1px solid var(--line-soft);
  text-align: center; gap: .3rem;
}
.rod-owm__day-fc { display: flex; flex-direction: column; gap: .35rem; align-items: center; }
.rod-owm__day-name { font-weight: 700; font-size: .8rem; letter-spacing: .5px; color: var(--ink-soft); }
.rod-owm__day-icon { font-size: 1.6rem; line-height: 1; }
.rod-owm__day-temp { font-weight: 700; font-size: 1rem; color: var(--ink); }

/* ===================== KALENDARZ ===================== */
.rod-cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.rod-cal-nav button {
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 4px 10px; cursor: pointer; color: var(--ink-soft); font-size: 1.05rem; line-height: 1;
  transition: all .15s var(--ease);
}
.rod-cal-nav button:hover { border-color: var(--green); color: var(--green-d); background: var(--green-pale); }
.rod-cal-nav strong { color: var(--ink); font-size: 1.02rem; font-weight: 700; }
.rod-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; font-size: .88rem; text-align: center; }
.rod-cal-grid .dow { font-weight: 600; color: var(--ink-dim); padding: 4px 0; font-size: .78rem; letter-spacing: .5px; }
.rod-cal-day { padding: 7px 2px; border-radius: var(--radius-sm); color: var(--ink); transition: background .15s; }
.rod-cal-day.is-today { background: var(--green-pale); color: var(--green-d); font-weight: 700; }
.rod-cal-day.has-event { background: var(--green); color: #fff; cursor: pointer; font-weight: 600; }
.rod-cal-day.has-event:hover { background: var(--green-d); }
.rod-cal-upcoming { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); font-size: .9rem; }
.rod-cal-upcoming strong { color: var(--ink); }
.rod-cal-upcoming ul { margin: .4rem 0 0; padding-left: 1.1rem; line-height: 1.55; }
.rod-cal-upcoming a { color: var(--green-d); }

/* ===================== KARTA WPISU/STRONY ===================== */
.rod-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2.5rem 2.8rem;
}
.rod-content > :first-child { margin-top: 0; }
.rod-content > :last-child { margin-bottom: 0; }
@media (max-width: 700px) { .rod-content { padding: 1.6rem 1.6rem 2rem; } }
.rod-content h1 { font-size: clamp(1.9rem, 3.8vw, 2.5rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.rod-content .rod-post-date {
  display: inline-block;
  font-size: .85rem; color: var(--green-d); font-weight: 500;
  margin-bottom: 1.5rem; padding: .25rem .7rem;
  background: var(--green-pale); border-radius: 999px;
}
.rod-content p, .rod-content li { font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
.rod-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.rod-content h3 { font-size: 1.2rem; margin-top: 1.5rem; color: var(--green-d); }
.rod-content a { font-weight: 500; }
.rod-content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .98rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.rod-content table th, .rod-content table td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); text-align: left; }
.rod-content table thead th { background: var(--green-pale); color: var(--green-d); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .5px; }
.rod-content table tr:nth-child(even) td { background: var(--bg-soft); }
.rod-content table tr:last-child td { border-bottom: 0; }
.rod-content ul, .rod-content ol { padding-left: 1.3rem; }
.rod-content blockquote {
  border-left: 4px solid var(--green);
  background: var(--green-pale);
  padding: 1rem 1.4rem; margin: 1.4rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--ink);
}

/* ===================== FOOTER ===================== */
.rod-footer {
  background: linear-gradient(180deg, #14471a 0%, #0a2e10 100%);
  color: var(--cream); margin-top: auto;
  position: relative; overflow: hidden;
}
.rod-footer::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 20% 0%, rgba(165, 214, 167, 0.08), transparent 70%),
    radial-gradient(ellipse 400px 200px at 80% 100%, rgba(165, 214, 167, 0.06), transparent 70%);
  pointer-events: none;
}
.rod-footer__wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  position: relative;
}
@media (min-width: 720px) { .rod-footer__wrap { grid-template-columns: repeat(3, 1fr); } }
.rod-footer__title {
  font-size: 1.15rem; color: #fff;
  margin: 0 0 1rem; font-weight: 700; letter-spacing: -0.01em;
}
.rod-footer__col p { margin: .35rem 0; color: #d4e3d6; font-size: .98rem; }
.rod-footer__col a { color: var(--green-soft); transition: color .15s; }
.rod-footer__col a:hover { color: #fff; }
.rod-footer__muted { font-size: .88rem; color: #88a88a; }
.rod-footer__links { list-style: none; padding: 0; margin: 0; line-height: 2.1; }
.rod-footer__bar {
  text-align: center; padding: 1.4rem 1.5rem;
  border-top: 1px solid rgba(165,214,167,.12);
  font-size: .88rem; color: #88a88a;
  position: relative;
}
