/*
Theme Name: MB Pocieszenia
Theme URI: https://mbpocieszenia.zyrardow.pl
Description: Responsywny motyw dla Parafii Matki Bożej Pocieszenia w Żyrardowie
Author: Studio Web
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mbp
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 8.1
*/

/* ================================================================
   DESIGN TOKENS — Ceglany Żyrardów
   ================================================================ */
:root {
  --brick: #7C2814;
  --brick-deep: #4C160A;
  --brick-700: #6A2010;
  --terracotta: #B14A21;
  --gold: #E7B642;
  --gold-bright: #F6CE5C;
  --gold-soft: #F0C76B;
  --cream: #F6ECD6;
  --cream-dim: #E6D6B6;
  --sand: #E6D8BD;
  --sand-2: #EFE4CC;
  --ink: #2E1A12;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --wrap: 74rem;
  --corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23F0C76B' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M7 60 L7 22 C7 13 13 7 22 7 L60 7'/%3E%3Cpath d='M13 54 L13 25 C13 18 18 13 25 13 L54 13'/%3E%3Cpath d='M7 22 C2 22 2 15 7 13'/%3E%3Cpath d='M22 7 C22 2 15 2 13 7'/%3E%3Cpath d='M13 25 C20 27 24 31 25 39'/%3E%3Cpath d='M25 13 C27 20 31 24 39 25'/%3E%3Ccircle cx='8' cy='8' r='2.6' fill='%23F0C76B' stroke='none'/%3E%3C/svg%3E");
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

a {
  color: inherit;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
}

/* ================================================================
   FILIGRAN — narożniki .ornate
   ================================================================ */
.ornate {
  position: relative;
}

.ornate > .corner {
  position: absolute;
  width: 34px;
  height: 34px;
  background: var(--corner) center / contain no-repeat;
  pointer-events: none;
}

.ornate > .tl {
  top: 7px;
  left: 7px;
}

.ornate > .tr {
  top: 7px;
  right: 7px;
  transform: rotate(90deg);
}

.ornate > .br {
  bottom: 7px;
  right: 7px;
  transform: rotate(180deg);
}

.ornate > .bl {
  bottom: 7px;
  left: 7px;
  transform: rotate(270deg);
}

/* ================================================================
   PASEK DOTACJI (funding bar)
   ================================================================ */
.funding {
  background: #fff;
  border-bottom: 3px solid var(--brick-deep);
}

.funding .wrap {
  padding: 0.5rem 1rem;
}

.funding-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.funding-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.funding-link:hover .funding-image,
.funding-link:focus-visible .funding-image {
  filter: brightness(0.98);
}

@media (max-width: 768px) {
  .funding-image {
    max-height: 84px;
  }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  color: var(--cream);
  background: radial-gradient(120% 90% at 78% 35%, rgba(177, 74, 33, 0.55), transparent 60%),
              linear-gradient(135deg, var(--brick-deep) 0%, var(--brick) 45%, var(--terracotta) 120%);
  border-bottom: 4px solid var(--gold);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.hero h1 {
  color: #fff;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero h1 .pw {
  display: block;
  font-size: 0.42em;
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
}

.hero h1 .city {
  display: block;
  font-size: 0.5em;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
  margin-top: 0.15em;
}

.hero-lede {
  margin: 1.2rem 0 0;
  max-width: 38ch;
  color: var(--cream-dim);
}

.medallion {
  justify-self: center;
  width: min(74%, 17rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid var(--gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 8px rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at 50% 30%, #7fa9d6, #4f7bb0 55%, #2f3f63);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.medallion svg {
  width: 62%;
  opacity: 0.92;
}

.medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.medallion .cap {
  position: absolute;
  bottom: 0.7rem;
  font-size: 0.68rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
}

/* Hero kompaktowy (podstrony) */
.hero.compact {
  border-bottom: 4px solid var(--gold);
}

.hero.compact.photo {
  overflow: hidden;
  isolation: isolate;
}

.hero.compact.photo::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  min-width: 240px;
  max-width: 540px;
  background-image: var(--_img);
  background-size: cover;
  background-position: center right;
  opacity: 0.46;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.hero.compact.photo::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  min-width: 240px;
  max-width: 540px;
  background: linear-gradient(100deg, rgba(63, 29, 18, 0.08) 0%, rgba(63, 29, 18, 0.34) 45%, rgba(126, 46, 29, 0.48) 100%);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.hero.compact.photo .wrap {
  position: relative;
  z-index: 2;
}

.hero.compact.photo h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.65);
}

.hero.compact.photo .hero-lede,
.hero.compact.photo .crumbs {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
  .hero.compact.photo::before,
  .hero.compact.photo::after {
    width: 34%;
    min-width: 180px;
    max-width: 320px;
  }
}

.hero.compact .hero-inner {
  grid-template-columns: 1fr;
  padding-block: clamp(1.2rem, 3vw, 2rem);
}

.hero.compact h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

.crumbs {
  font-size: 0.85rem;
  color: var(--cream-dim);
  padding-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.crumbs a {
  color: var(--gold-bright);
  text-decoration: none;
}

/* ================================================================
   NAWIGACJA
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--brick);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav li {
  display: flex;
  align-items: center;
}

.nav li + li::before {
  content: '\271A';
  color: var(--gold);
  font-size: 0.7rem;
  padding: 0 0.15rem;
}

.nav a {
  display: block;
  padding: 0.95rem 0.9rem;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.05rem;
  transition: 0.2s;
}

.nav a:hover, .nav a:focus, .nav a.active {
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}

.nav .toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.5rem 0.8rem;
  margin: 0.6rem 0;
  cursor: pointer;
  border-radius: 3px;
}

/* ================================================================
   LAYOUT Z SIDEBAREM
   ================================================================ */
.layout {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 2rem;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.layout.layout--single {
  grid-template-columns: 1fr;
}

.section-title {
  color: var(--brick);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.3rem;
}

.section-title + .sub {
  color: #7a5a44;
  margin: 0 0 1.5rem;
}

/* ================================================================
   SIDEBAR — Menu sekcji (2 poziomy)
   ================================================================ */
.aside .panel {
  background: var(--brick);
  color: var(--cream);
  padding: 1.3rem 1.2rem;
}

.aside h3 {
  color: var(--gold-bright);
  font-size: 1.3rem;
  text-align: center;
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(240, 199, 107, 0.45);
}

.aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside > .panel > ul > li > a {
  display: block;
  padding: 0.55rem 0.4rem 0.55rem 1.5rem;
  text-decoration: none;
  color: var(--cream);
  position: relative;
  border-bottom: 1px dotted rgba(240, 199, 107, 0.32);
}

.aside li a::before {
  content: '\271A';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.65rem;
}

.aside li a:hover {
  color: #fff;
}

.aside li a.active {
  color: var(--gold-bright);
  font-weight: 600;
}

.aside li.current_page_item > a {
  color: var(--gold-bright);
  font-weight: 600;
}

.aside ul ul {
  margin: 0.2rem 0 0.5rem 1.4rem;
}

.aside ul ul li a {
  padding: 0.35rem 0.4rem 0.35rem 1.3rem;
  font-size: 0.92rem;
  border-bottom: none;
  color: var(--cream-dim);
}

.aside ul ul li a::before {
  content: '\00BB';
  color: var(--gold-soft);
}

.aside .cta {
  display: block;
  margin-top: 1.1rem;
  text-align: center;
  background: linear-gradient(var(--brick-700), var(--brick-deep));
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  text-decoration: none;
  padding: 0.7rem;
  font-family: var(--font-display);
}

.news-hub-intro {
  margin-bottom: 1.5rem;
  color: #5a4636;
}

.news-hub-content {
  min-width: 0;
}

.archive-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0d0b8;
}

.archive-item:first-child {
  padding-top: 0;
}

.archive-item h3 {
  margin: 0.35rem 0 0.5rem;
}

.archive-item h3 a {
  text-decoration: none;
  color: var(--brick);
}

.archive-item h3 a:hover {
  color: var(--terracotta);
}

.item-meta {
  font-size: 0.9rem;
  color: #8a6a4f;
  margin-bottom: 0.5rem;
}

.item-excerpt {
  margin: 0.7rem 0 0;
  color: #5a4636;
}

.news-hub-content .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.news-hub-content .page-numbers a,
.news-hub-content .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid #d8c6a3;
  background: #fffdf8;
  color: var(--brick);
  text-decoration: none;
}

.news-hub-content .page-numbers .current {
  background: var(--brick);
  border-color: var(--brick);
  color: #fff;
}

/* ================================================================
   KARTY "Z ŻYCIA"
   ================================================================ */
.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--brick);
  padding-bottom: 0.4rem;
  margin: 0 0 1.2rem;
}

.feed-head h2 {
  color: var(--brick);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.feed-head a {
  font-size: 0.85rem;
  color: var(--terracotta);
  text-decoration: none;
  white-space: nowrap;
}

.item {
  padding: 1.1rem 0;
  border-bottom: 1px solid #cdb78f;
}

.item:first-child {
  padding-top: 0;
}

.item .meta {
  font-size: 0.8rem;
  color: #8a6a4f;
  letter-spacing: 0.03em;
}

.cat {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--brick);
  padding: 0.08rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.cat.i {
  background: #7a5a18;
}

.cat.a {
  background: #5a6a2a;
}

.cat.o {
  background: #8a3f18;
}

.cat.rem {
  background: #8b2f18;
}

.cat.p {
  background: #66445b;
}

.item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.3rem 0;
}

.item h3 a {
  text-decoration: none;
  color: var(--brick);
}

.item h3 a:hover {
  color: var(--terracotta);
}

.item p {
  margin: 0.2rem 0 0.5rem;
  color: #5a4636;
  font-size: 0.97rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(var(--brick-700), var(--brick-deep));
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  text-decoration: none;
  padding: 0.5rem 1.3rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  filter: brightness(1.15);
}

/* ================================================================
   FEEDS / Z ŻYCIA
   ================================================================ */
.feeds {
  background: linear-gradient(180deg, #f4ead3 0%, #f0e4c9 100%);
  border-top: 1px solid #d8c6a3;
}

.feeds .wrap {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.feeds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.feed-card {
  background: #f8efd9;
  border: 1px solid #d8c6a3;
  border-top: 3px solid var(--gold);
  padding: 1.4rem 1.3rem 1.1rem;
}

.fhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--brick);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}

.fhead h2 {
  color: var(--brick);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.feed-card .more {
  font-size: 0.82rem;
  color: var(--terracotta);
  text-decoration: none;
  white-space: nowrap;
}

.feed-card .src {
  font-size: 0.76rem;
  color: #8a6a4f;
  margin: 0 0 0.7rem;
}

.feed-card .item {
  padding: 0.95rem 0;
  border-bottom: 1px solid #d8c49b;
}

.feed-card .item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feed-card .item .src {
  display: block;
  font-size: 0.78rem;
  color: #8a6a4f;
  margin-bottom: 0.15rem;
}

.feed-card .item .cat {
  margin-left: 0;
  margin-bottom: 0.35rem;
}

.feed-card .item ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.feed-card .item li {
  margin: 0.15rem 0;
}

.feed-card .r {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.8rem 0;
  border-bottom: 1px dotted #d8c49b;
}

.feed-card .r:last-child {
  border-bottom: none;
}

.feed-card .r time {
  display: block;
  font-size: 0.75rem;
  color: #8a6a4f;
  margin-bottom: 0.2rem;
}

.feed-card .r strong {
  display: block;
  color: var(--brick);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.feed-card .r span {
  display: block;
  color: #5a4636;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ================================================================
   INFO — dark panels
   ================================================================ */
.info {
  background: var(--brick);
  border-top: 5px solid var(--gold);
}

.info .wrap {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.box {
  background: var(--brick-700);
  border: 1px solid rgba(240, 199, 107, 0.5);
  padding: 1.8rem 1.6rem;
  color: var(--cream);
}

.box h3 {
  color: var(--gold-bright);
  font-size: 1.3rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(240, 199, 107, 0.4);
}

.box p,
.box ul,
.box li,
.box a {
  color: var(--cream);
}

.box p {
  margin: 0.3rem 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

.box ul {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}

.box li {
  padding: 0.15rem 0;
}

.footer-gallery-strip {
  background: linear-gradient(180deg, #f3e7cc 0%, #ecdec0 100%);
  border-top: 1px solid #d8c6a3;
  border-bottom: 1px solid #d8c6a3;
}

.footer-gallery-strip .wrap {
  padding-block: 1rem;
}

.footer-gallery-strip .gallery-grid.gallery-grid--nextgen {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.footer-gallery-strip .gallery-grid.gallery-grid--nextgen figure {
  aspect-ratio: 1 / 1;
}

.footer-gallery-strip .gallery-grid.gallery-grid--nextgen img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .footer-gallery-strip .gallery-grid.gallery-grid--nextgen {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .footer-gallery-strip .gallery-grid.gallery-grid--nextgen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ================================================================
   CMENTARZ / GALLERY
   ================================================================ */
.graves {
  background: var(--sand-2);
}

.graves .wrap {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.graves .card {
  background: var(--brick);
  color: var(--cream);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.graves h2 {
  color: var(--gold-bright);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.graves p {
  margin: 0.5rem 0 0;
  color: var(--cream-dim);
  max-width: 46ch;
}

.graves form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.graves input {
  padding: 0.7rem 1rem;
  border: 1px solid var(--gold);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  border-radius: 3px;
  min-width: 12rem;
}

.gallery .wrap {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.gallery h2 {
  color: var(--brick);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.gallery > .wrap > p {
  color: #7a5a44;
  margin: 0.35rem 0 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 3px solid var(--gold);
  background: linear-gradient(135deg, var(--brick), var(--terracotta));
}

.gallery-grid a,
.gallery-grid img,
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-grid img {
  object-fit: cover;
}

.gallery-placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #fff;
  font-family: var(--font-display);
  text-align: center;
  background: linear-gradient(135deg, var(--brick), var(--terracotta));
}

.gallery-placeholder span {
  max-width: 10ch;
}

/* Fallback layout for NextGEN pages when plugin styles are not loaded */
.ngg-galleryoverview {
  width: 100%;
  font-size: 0;
}

.ngg-galleryoverview .ngg-gallery-thumbnail-box {
  display: inline-block !important;
  vertical-align: top;
  float: none !important;
  clear: none !important;
  width: calc(25% - 0.75rem) !important;
  max-width: 260px;
  margin: 0 0.75rem 0.75rem 0 !important;
}

.ngg-galleryoverview .ngg-gallery-thumbnail {
  width: 100%;
}

.ngg-galleryoverview .ngg-gallery-thumbnail a,
.ngg-galleryoverview .ngg-gallery-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1100px) {
  .ngg-galleryoverview .ngg-gallery-thumbnail-box {
    width: calc(33.333% - 0.75rem) !important;
  }
}

@media (max-width: 760px) {
  .ngg-galleryoverview .ngg-gallery-thumbnail-box {
    width: calc(50% - 0.75rem) !important;
    max-width: none;
  }
}

/* ================================================================
   STOPKA
   ================================================================ */
.footer {
  background: var(--brick);
  color: var(--cream);
  margin-top: 3rem;
}

.footer .wrap {
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
}

.footer h3 {
  color: var(--gold-bright);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.footer a {
  text-decoration: none;
  color: var(--cream-dim);
}

.footer a:hover {
  color: #fff;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  padding: 0.3rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(240, 199, 107, 0.2);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

/* ================================================================
   RESPONSYWNOŚĆ
   ================================================================ */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .feeds-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .nav ul {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .nav.active ul {
    max-height: 500px;
  }

  .nav li + li::before {
    display: none;
  }

  .nav a {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav .toggle {
    display: block;
  }

  .footer .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: 100% - 1rem;
  }

  h1, h2, h3 {
    text-wrap: balance;
  }

  .ornate > .corner {
    width: 24px;
    height: 24px;
  }
}

/* ================================================================
   INTENCJE MSZALNE — FULL WIDTH (ARCHIWUM + SINGLE)
   ================================================================ */
.single-post.category-intencje-mszalne .wrap,
.single-post .full-width-intencje {
  width: calc(100% - 2rem);
  max-width: none;
}

.single-post.category-intencje-mszalne .layout,
.single-post .full-width-intencje {
  grid-template-columns: 1fr !important;
}

.single-post.category-intencje-mszalne .aside {
  display: none;
}

/* ================================================================
   OGLOSZENIA — SINGLE FULL WIDTH
   ================================================================ */
.single-post.category-ogloszenia .wrap,
.single-post .full-width-ogloszenia {
  width: calc(100% - 2rem);
  max-width: none;
}

.single-post.category-ogloszenia .layout,
.single-post .full-width-ogloszenia {
  grid-template-columns: 1fr !important;
}

.single-post.category-ogloszenia .aside {
  display: none;
}


