/* ==========================================================================
   Prostki Info — main stylesheet
   ========================================================================== */

:root {
  /* Cool modern palette — deep navy + punchy coral/red accent */
  --color-forest: #16273f;
  --color-forest-dark: #0c1929;
  --color-forest-light: #223c5e;
  --color-amber: #e0472c;
  --color-amber-dark: #c23a22;
  --color-cream: #f5f6f8;
  --color-paper: #ffffff;
  --color-sand: #e9edf3;
  --color-ink: #1c222b;
  --color-ink-soft: #5b6472;
  --color-line: #dfe4ea;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.16);

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

svg { width: 1em; height: 1em; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-forest-dark);
}

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-amber-dark);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-amber);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.logo-image {
  width: auto;
  height: 50px;
}

.btn-primary {
  background: var(--color-amber);
  color: #fff;
}
.btn-primary:hover { background: var(--color-amber-dark); transform: translateY(-1px); }

.btn-outline {
  border-color: var(--color-forest);
  color: var(--color-forest);
  background: transparent;
}
.btn-outline:hover { background: var(--color-forest); color: #fff; }

/* ==========================================================================
   Skip link
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-forest);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Top bar (date / weather-style strip)
   ========================================================================== */
.topbar {
  background: var(--color-forest-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-date { font-weight: 600; color: #fff; }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a:hover { color: var(--color-amber); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo .mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-light) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.site-logo .mark-image {
  background: none;
  width: auto;
  height: 44px;
  border-radius: 0;
}
.site-logo .mark-image a {
  display: flex;
  align-items: center;
  height: 100%;
}
.site-logo .mark-image img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.site-logo .text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo .site-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-forest-dark);
}
.site-logo .site-tagline {
  font-size: 0.72rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.03em;
}

.primary-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.primary-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: var(--color-sand);
  color: var(--color-forest-dark);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-forest-dark);
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--color-forest-dark);
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.06), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(217,123,63,0.18), transparent 50%);
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.hero-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--color-forest-light), var(--color-forest));
  box-shadow: var(--shadow-lg);
}
.hero-featured img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,51,42,0.92) 0%, rgba(20,51,42,0.25) 55%, rgba(20,51,42,0.05) 100%);
}
.hero-featured-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #fff;
}
.hero-featured-content .eyebrow { color: var(--color-amber); }
.hero-featured-content h1,
.hero-featured-content h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 8px 0 10px;
}
.hero-featured-content p {
  color: rgba(255,255,255,0.82);
  max-width: 60ch;
}
.hero-meta {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 12px;
  flex-wrap: wrap;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-side-title {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.8;
}
.hero-side-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-side-item:hover { background: rgba(255,255,255,0.1); transform: translateX(2px); }
.hero-side-item .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-amber);
  flex-shrink: 0;
  line-height: 1;
}
.hero-side-item h3 {
  color: #fff;
  font-size: 0.98rem;
  margin: 0 0 4px;
}
.hero-side-item .hero-meta { margin-top: 4px; }

/* ==========================================================================
   Section headers
   ========================================================================== */
.section {
  padding: 52px 0;
}
.section-alt { background: var(--color-sand); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin: 6px 0 0;
}
.section-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-forest);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-link:hover { color: var(--color-amber-dark); }

/* ==========================================================================
   Card grid
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--color-paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-sand), var(--color-line));
  position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20,51,42,0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.08rem; margin: 0; }
.card-body h3 a:hover { color: var(--color-amber-dark); }
.card-excerpt { color: var(--color-ink-soft); font-size: 0.92rem; margin: 0; flex: 1; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  margin-top: 4px;
}
.card-meta .dot::before { content: "•"; margin: 0 6px; opacity: 0.5; }
.card-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Event-style card */
.card-event .card-body { flex-direction: row; align-items: flex-start; gap: 16px; }
.event-date-badge {
  flex-shrink: 0;
  width: 58px;
  text-align: center;
  background: var(--color-forest);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 0;
}
.event-date-badge .day { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.event-date-badge .month { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.85; }

/* ==========================================================================
   Announcements list (Gmina / ogłoszenia)
   ========================================================================== */
.notice-list { display: flex; flex-direction: column; gap: 0; background: var(--color-paper); border-radius: var(--radius-md); border: 1px solid var(--color-line); overflow: hidden; box-shadow: var(--shadow-sm); }
.notice-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-line);
  transition: background 0.15s ease;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--color-cream); }
.notice-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-sand);
  color: var(--color-amber-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notice-icon svg { width: 20px; height: 20px; }
.notice-body h3 { font-size: 1rem; margin: 0 0 4px; }
.notice-body p { margin: 0; color: var(--color-ink-soft); font-size: 0.9rem; }

/* ==========================================================================
   Newsletter / CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; max-width: 46ch; }
.cta-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-form input[type="email"] {
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  min-width: 240px;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.cta-form-message {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
}
.cta-form-message.is-success { color: #8fe3b0; }
.cta-form-message.is-error { color: #ffb4a8; }

/* ==========================================================================
   Sidebar widgets (single/archive)
   ========================================================================== */
.widget {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.widget h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-forest-dark);
  border-bottom: 2px solid var(--color-sand);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--color-line); font-size: 0.92rem; }
.widget li:last-child { border-bottom: none; }
.widget a:hover { color: var(--color-amber-dark); }
.widget_categories li, .widget_archive li { display: flex; justify-content: space-between; }

/* ==========================================================================
   Content area / single post / page
   ========================================================================== */
.content-layout {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.entry-header { margin-bottom: 20px; }
.entry-title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.entry-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--color-ink-soft);
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.entry-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.entry-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.entry-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}
.entry-content { font-size: 1.05rem; }
.entry-content p { margin-bottom: 1.3em; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.4em; font-size: 1.2rem; }
.entry-content img { border-radius: var(--radius-md); margin: 1.4em 0; }
.entry-content blockquote {
  border-left: 4px solid var(--color-amber);
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  font-style: italic;
  color: var(--color-ink-soft);
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content a { color: var(--color-forest); text-decoration: underline; text-decoration-color: var(--color-line); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--color-amber-dark); }

.entry-source {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}
.entry-source a {
  color: var(--color-forest);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-line);
  text-underline-offset: 3px;
}
.entry-source a:hover { color: var(--color-amber-dark); }

.entry-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.tag-pill {
  background: var(--color-sand);
  color: var(--color-forest-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   Page header (archives, pages)
   ========================================================================== */
.page-banner {
  background: var(--color-forest-dark);
  padding: 40px 0;
  color: #fff;
}
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { color: rgba(255,255,255,0.75); margin: 8px 0 0; }
.breadcrumbs { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.breadcrumbs a:hover { color: var(--color-amber); }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  font-weight: 600;
  font-size: 0.9rem;
}
.pagination .current { background: var(--color-forest); color: #fff; border-color: var(--color-forest); }
.pagination a:hover { background: var(--color-sand); }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-body {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line);
  font-family: var(--font-body);
  margin-bottom: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-forest-dark);
  color: rgba(255,255,255,0.75);
  margin-top: 60px;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-col p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-amber); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-amber); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a:hover { color: var(--color-amber); }

/* ==========================================================================
   Search & 404
   ========================================================================== */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  font-family: var(--font-body);
}
.no-results { text-align: center; padding: 60px 20px; }
.no-results h1 { font-size: 3rem; color: var(--color-amber); }

/* ==========================================================================
   Alerty / powiadomienia gminne (opcjonalny top-strip)
   ========================================================================== */
.alert-strip {
  background: var(--color-amber);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.alert-strip .container { display: flex; align-items: center; gap: 10px; padding: 10px 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .content-layout { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar-links { display: none; }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .primary-nav.is-open {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: var(--color-paper);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    z-index: 200;
    overflow-y: auto;
  }
  .primary-nav.is-open ul { flex-direction: column; gap: 2px; }
  .primary-nav.is-open a { padding: 14px 16px; font-size: 1.05rem; }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,51,42,0.45);
    z-index: 150;
  }
  .nav-backdrop.is-open { display: block; }

  .hero { padding: 32px 0 40px; }
  .hero-featured { min-height: 320px; }
  .hero-featured-content { padding: 22px; }

  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }

  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .cta-form { width: 100%; flex-direction: column; align-items: stretch; }
  .cta-form input[type="email"] { flex: 1; min-width: 0; width: 100%; }
  .cta-form .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .site-logo .site-title { font-size: 1.15rem; }
}

@media (max-width: 420px) {
  .card-event .card-body { flex-direction: column; }
}
