/* ==========================================================================
   Parohia Memmingen — stiluri
   Identitate: ia românească — roșu și negru de cusătură pe pânză de in.
   Litere clasice de pisanie (Marcellus), colțuri drepte, compoziție centrată.
   ========================================================================== */

:root {
  --bg: #f6f1e7;            /* pânză de in */
  --bg-2: #efe7d8;
  --surface: #fffdf8;
  --ink: #1c1715;           /* negru de cusătură */
  --ink-2: #3d3531;
  --muted: #6c625b;
  --line: #ddd1bd;
  --red: #9e1b22;           /* roșu de ie */
  --red-deep: #7c1218;
  --red-soft: #f4e2dc;
  --ochre: #b7832f;
  --green: #2f5d50;
  --on-red: #fff8ee;
  --fill: #9e1b22;          /* roșu pentru fundaluri (butoane, bandă) */
  --fill-deep: #7c1218;
  --radius: 4px;
  --container: 1160px;
  --display: "Marcellus", "Trajan Pro", "Times New Roman", serif;
  --sans: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 0 var(--line), 0 12px 24px -18px rgba(28, 23, 21, .35);
  --stitch-a: #9e1b22;
  --stitch-b: #1c1715;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17120f; --bg-2: #1e1814; --surface: #221b17; --ink: #f1e8da; --ink-2: #d9cebf; --muted: #a99c8e;
  --line: #3a302a; --red: #e0565c; --red-deep: #f07a7f; --red-soft: #3a1d1d; --ochre: #d9a55a; --green: #7fb3a3; --on-red: #fff8ee; --fill: #a3222a; --fill-deep: #8a1a21;
  --shadow: 0 1px 0 var(--line), 0 12px 24px -18px rgba(0,0,0,.8);
  --stitch-a: #c8343b; --stitch-b: #e9dcc8;
  color-scheme: dark;
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.05rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--on-red); }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.center { text-align: center; margin-top: 2.2rem; }
.screen-reader-text, .pm-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--red); color: var(--on-red); padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.icon { flex: none; }
.kicker, .section-title__label {
  font: 700 .74rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 0 0 .7rem;
}

/* ---------- Cusătura (bandă în cruciuliță, roșu + negru) ---------- */
.ornament {
  height: 18px; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='18' shape-rendering='crispEdges'%3E%3Cpath fill='%239e1b22' d='M16 2h2v2h-2zM14 4h2v2h-2zM18 4h2v2h-2zM12 6h2v2h-2zM20 6h2v2h-2zM10 8h2v2h-2zM22 8h2v2h-2zM12 10h2v2h-2zM20 10h2v2h-2zM14 12h2v2h-2zM18 12h2v2h-2zM16 14h2v2h-2zM2 8h2v2h-2z'/%3E%3Cpath fill='%231c1715' d='M2 6h2v2h-2zM0 8h2v2h-2zM4 8h2v2h-2zM2 10h2v2h-2zM16 6h2v2h-2zM14 8h2v2h-2zM18 8h2v2h-2zM16 10h2v2h-2zM16 8h2v2h-2zM0 0h32v1H0zM0 17h32v1H0z'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
}
:root[data-theme="dark"] .ornament, .site-footer .ornament {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='18' shape-rendering='crispEdges'%3E%3Cpath fill='%23c8343b' d='M16 2h2v2h-2zM14 4h2v2h-2zM18 4h2v2h-2zM12 6h2v2h-2zM20 6h2v2h-2zM10 8h2v2h-2zM22 8h2v2h-2zM12 10h2v2h-2zM20 10h2v2h-2zM14 12h2v2h-2zM18 12h2v2h-2zM16 14h2v2h-2zM2 8h2v2h-2z'/%3E%3Cpath fill='%23e9dcc8' d='M2 6h2v2h-2zM0 8h2v2h-2zM4 8h2v2h-2zM2 10h2v2h-2zM16 6h2v2h-2zM14 8h2v2h-2zM18 8h2v2h-2zM16 10h2v2h-2zM16 8h2v2h-2zM0 0h32v1H0zM0 17h32v1H0z'/%3E%3C/svg%3E");
}
.pm-rosette__a { fill: var(--stitch-a); }
.pm-rosette__b { fill: var(--stitch-b); }

/* ---------- Butoane (drepte, cu litere spațiate) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border: 1.5px solid var(--fill); border-radius: var(--radius);
  background: var(--fill); color: var(--on-red); text-decoration: none; cursor: pointer;
  font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--fill-deep); border-color: var(--fill-deep); color: var(--on-red); }
.btn--line, .btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover, .btn--outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--paper { background: var(--on-red); color: #7c1218; border-color: var(--on-red); }
.btn--paper:hover { background: #fff; color: #1c1715; border-color: #fff; }
.btn--line-light { background: transparent; color: var(--on-red); border-color: rgba(255, 248, 238, .6); }
.btn--line-light:hover { background: rgba(255, 248, 238, .12); color: #fff; border-color: #fff; }
.btn--live { background: #c0392b; border-color: #c0392b; }
.btn--sm { padding: .7rem 1.05rem; font-size: .72rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { color: var(--red); border-color: var(--red); }
.icon-btn--sm { width: 32px; height: 32px; }
.icon-btn--live { color: #c0392b; }
.icon-btn.is-done { color: var(--green); border-color: var(--green); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--red); }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Bandă anunț ---------- */
.notice-bar { background: var(--ochre); color: #1c1715; font-size: .95rem; }
.notice-bar--blue { background: var(--green); color: #fff; }
.notice-bar--red { background: var(--fill); color: var(--on-red); }
.notice-bar__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .55rem 0; text-align: center; }
.notice-bar p { margin: 0; }
.notice-bar a { color: inherit; font-weight: 700; }
.notice-bar__close { background: none; border: 0; color: inherit; cursor: pointer; opacity: .75; }
.notice-bar.is-hidden { display: none; }

/* ---------- Antet: siglă centrată + meniu dedesubt ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); transition: box-shadow .3s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 10px 24px -20px rgba(28, 23, 21, .6); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .9rem 0 .6rem; }
.masthead__side { display: flex; align-items: center; gap: 1.1rem; font-size: .85rem; }
.masthead__side--right { justify-content: flex-end; gap: .5rem; }
.masthead__side a:not(.btn) { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); text-decoration: none; }
.masthead__side a:not(.btn):hover { color: var(--red); }
.brand { display: grid; justify-items: center; text-align: center; gap: .15rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { color: var(--red); }
.brand__logo { width: 56px; height: 56px; object-fit: contain; }
.brand__text { display: grid; line-height: 1.1; }
.brand__top { font: 700 .62rem/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brand__name { font: 400 1.75rem/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; }

.nav { border-top: 1px solid var(--line); }
.nav .menu { list-style: none; display: flex; justify-content: center; gap: .3rem 1.6rem; flex-wrap: wrap; margin: 0; padding: 0; }
.nav .menu > li { position: relative; }
.nav a { display: block; padding: .75rem 0; color: var(--ink); text-decoration: none; font: 700 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--red); }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { color: var(--red); border-bottom-color: var(--red); }
.nav .sub-menu { list-style: none; position: absolute; top: 100%; left: 50%; translate: -50% 0; min-width: 220px; padding: .4rem 1rem; margin: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .2s; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.ornament--header { height: 18px; }

.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }
.menu-toggle, .menu-toggle__close { display: none; }
.menu-open .menu-toggle__open { display: none; }
.menu-open .menu-toggle__close { display: block; }

/* ---------- Prima secțiune: compoziție centrată ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); text-align: center;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--surface) 80%, transparent), transparent 60%),
    var(--bg);
}
.hero::before, .hero::after { /* rozete mari, discrete, în colțuri */
  content: ""; position: absolute; top: 2.5rem; width: 180px; height: 180px; opacity: .07; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%239e1b22' d='M4 0h1v1H4zM3 1h1v1H3zM5 1h1v1H5zM0 2h1v1H0zM3 2h1v1H3zM5 2h1v1H5zM8 2h1v1H8zM1 3h2v1H1zM6 3h2v1H6zM0 4h1v1H0zM4 4h1v1H4zM8 4h1v1H8zM1 5h2v1H1zM6 5h2v1H6zM0 6h1v1H0zM3 6h1v1H3zM5 6h1v1H5zM8 6h1v1H8zM3 7h1v1H3zM5 7h1v1H5zM4 8h1v1H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero::before { left: max(1rem, calc(50% - 640px)); }
.hero::after { right: max(1rem, calc(50% - 640px)); }
.hero__inner { position: relative; max-width: 860px; display: grid; justify-items: center; }
.hero__rosette { margin-bottom: 1.4rem; }
.hero__pre { font: 700 .76rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.hero__title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.08; margin-bottom: 1.4rem; }
.hero__title span { display: block; }
.hero__and { font: 400 .45em/1.8 var(--display); color: var(--red); letter-spacing: .12em; text-transform: uppercase; }
.hero__lead { font-size: 1.18rem; color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.4rem; }
.hero__photo { margin-top: clamp(2.5rem, 5vw, 4rem); padding: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero__photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }

/* Banda roșie cu următoarea slujbă */
.band { background: var(--fill); color: var(--on-red); position: relative; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, #1c1715 0 6px, transparent 6px 12px); opacity: .55; }
.band::before { top: 0; } .band::after { bottom: 0; }
.band__grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 2rem; align-items: center; padding: 2.1rem 0; }
.band__cell + .band__cell { border-left: 1px solid rgba(255, 248, 238, .25); padding-left: 2rem; }
.band__label { font: 700 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .8; margin: 0 0 .55rem; }
.band__title { font: 400 1.6rem/1.15 var(--display); margin: 0 0 .25rem; }
.band__text { margin: 0; opacity: .92; }
.band__cell--actions { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; }
.countdown { display: flex; gap: 1rem; margin: .7rem 0 0; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.countdown__part b { font: 400 1.5rem/1 var(--display); margin-right: .15rem; font-variant-numeric: tabular-nums; }

/* ---------- Secțiuni ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--linen { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-title { text-align: center; margin: 0 auto 2.6rem; max-width: 700px; display: grid; justify-items: center; }
.section-title h2 { margin: 0; }
.section-title__mark { margin-top: 1rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.split__aside { display: grid; gap: 1.2rem; position: sticky; top: 150px; }

.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-hero__inner { display: grid; justify-items: center; }
.page-hero__title { margin: 0; max-width: 22ch; }
.page-hero__lead { max-width: 62ch; color: var(--ink-2); font-size: 1.1rem; margin: 1.2rem 0 0; }
.page-cover { margin: 0 0 2rem; padding: 8px; background: var(--surface); border: 1px solid var(--line); }
.page-cover img { width: 100%; }

/* ---------- Program: file de calendar ---------- */
.services { list-style: none; margin: 0 0 1.6rem; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.service--estimated .service__title::after { content: " *"; color: var(--muted); }
.services--past .service { opacity: .65; }
.date-chip { display: grid; width: 74px; text-align: center; line-height: 1; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 3px 3px 0 var(--line); }
.date-chip__month { background: var(--fill); color: var(--on-red); font: 700 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: .4rem 0; }
.date-chip__day { font: 400 2.1rem/1.15 var(--display); padding-top: .25rem; }
.date-chip__dow { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 .2rem .45rem; }
.service--highlight .date-chip { border-color: var(--red); box-shadow: 3px 3px 0 var(--red-soft); }
.service--highlight .service__title { color: var(--red); }
.service__title { font-size: 1.35rem; margin: 0 0 .3rem; }
.service__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; color: var(--muted); font-size: .9rem; }
.service__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.service__note { margin: .45rem 0 0; font-size: .95rem; color: var(--ink-2); }
.service__note--muted { color: var(--muted); font-style: italic; font-size: .86rem; }
.service__actions { display: flex; gap: .4rem; }
.month-title { font-size: 1.5rem; margin: 2.4rem 0 .6rem; text-transform: capitalize; }
.month-title:first-of-type { margin-top: 0; }
.program-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.past { margin: 2rem 0; }
.past summary { cursor: pointer; font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }

/* ---------- Calendar ortodox ---------- */
.season { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--ink); background: var(--surface); }
.season__now { padding: 1.8rem; background: var(--ink); color: var(--bg); }
.season__now .kicker { color: var(--ochre); }
.season__now h3 { color: var(--bg); font-size: 1.55rem; }
.season__now .muted { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.season__easter { display: flex; align-items: center; gap: .45rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); font-size: .92rem; color: color-mix(in srgb, var(--bg) 80%, transparent); }
.progress { height: 6px; background: color-mix(in srgb, var(--bg) 20%, transparent); margin: .9rem 0 .5rem; }
.progress span { display: block; height: 100%; background: var(--red); }
.feasts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.feast { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem 1.3rem; border-left: 1px solid var(--line); }
.feast__when { font: 400 1.7rem/1 var(--display); }
.feast__name { font-weight: 700; line-height: 1.35; flex: 1; font-size: .98rem; }
.feast__days { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.feast--imparatesc .feast__when, .feast--pasti .feast__when { color: var(--red); }
.feast--hram { background: var(--red-soft); }
.feast--hram .feast__when { color: var(--red); }
.info-card--plain .season { grid-template-columns: 1fr; }
.info-card--plain .feasts { grid-template-columns: 1fr; }
.info-card--plain .feast { border-left: 0; border-top: 1px solid var(--line); padding: .9rem 1.2rem; }
.info-card--plain .feast__when { font-size: 1.2rem; }
.info-card--plain .season__now { padding: 1.3rem; }
.info-card--plain { padding: 0; border: 0; background: none; }

/* ---------- Carduri ---------- */
.info-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 1.6rem; }
.info-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; }
.checklist { list-style: none; margin: 0 0 1.3rem; padding: 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 1.5rem; color: var(--ink-2); font-size: .97rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--red); box-shadow: 3px 3px 0 var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.6rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.card:hover { border-color: var(--ink); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); display: block; border-bottom: 3px solid var(--red); }
.card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: filter .4s; }
.card:hover .card__media img { filter: saturate(1.05); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--red); opacity: .5; }
.card__body { padding: 1.3rem 1.4rem 1.6rem; }
.card__meta { font: 700 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 .6rem; }
.card__title { font-size: 1.4rem; margin: 0 0 .5rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--red); }
.card__excerpt { color: var(--ink-2); margin: 0; font-size: .96rem; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); background: var(--surface); }
.tile { position: relative; display: flex; flex-direction: column; padding: 2rem 1.6rem 1.7rem; color: var(--ink); text-decoration: none; transition: background .25s, color .25s; }
.tile + .tile { border-left: 1px solid var(--line); }
.tile:hover { background: var(--fill); color: var(--on-red); }
.tile:hover h3, .tile:hover p, .tile:hover .tile__more, .tile:hover .tile__icon, .tile:hover .tile__num { color: var(--on-red); }
.tile__num { position: absolute; top: 1.2rem; right: 1.3rem; font: 400 1rem/1 var(--display); color: var(--muted); }
.tile__icon { color: var(--red); margin-bottom: 1.2rem; }
.tile h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.tile p { color: var(--muted); font-size: .94rem; margin: 0 0 1.3rem; }
.tile__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font: 700 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }

/* ---------- Galerie ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.album { display: block; background: var(--surface); border: 1px solid var(--line); padding: 8px 8px 0; color: var(--ink); text-decoration: none; transition: border-color .2s; }
.album:hover { border-color: var(--ink); color: var(--ink); }
.album__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album__img--empty { display: grid; place-items: center; background: var(--bg-2); color: var(--red); }
.album__info { display: grid; gap: .2rem; padding: .9rem .4rem 1rem; }
.album__title { font: 400 1.25rem/1.2 var(--display); }
.album__meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose .wp-block-gallery img, .prose--gallery img { cursor: zoom-in; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; background: rgba(18, 13, 11, .95); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: .8rem; grid-column: 2; }
.lightbox__figure img { max-height: 84vh; max-width: 100%; width: auto; border: 6px solid #fff8ee; }
.lightbox__figure figcaption { color: rgba(255,248,238,.8); font-size: .95rem; text-align: center; }
.lightbox__btn { background: transparent; color: #fff8ee; border: 1px solid rgba(255,248,238,.35); width: 50px; height: 50px; border-radius: var(--radius); font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; justify-self: center; }
.lightbox__btn:hover { background: var(--fill); border-color: var(--fill); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
.lightbox__prev { grid-column: 1; } .lightbox__next { grid-column: 3; }

/* ---------- Contact ---------- */
.section--contact { border-top: 1px solid var(--line); }
.contact-band { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: .7rem; align-items: center; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.contact-list .icon { color: var(--red); }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: var(--surface); }
.person-card { padding: 2rem 1.8rem; text-align: center; display: grid; justify-items: center; align-content: start; }
.person-card + .person-card { border-left: 1px solid var(--line); }
.person-card h2 { font-size: 1.6rem; }
.person-card__photo { width: 88px; height: 88px; overflow: hidden; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 1.2rem; border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--red); }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-lines { display: grid; gap: .55rem; margin-top: .8rem; justify-items: center; }
.contact-lines a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; }

.map { position: relative; min-height: 340px; background: var(--bg-2); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--red-soft); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: .7rem; padding: 2rem; color: var(--muted);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; }
.map__placeholder .icon { color: var(--red); }
.map__placeholder p { margin: 0; }
.map__placeholder strong { color: var(--ink); }
.map__privacy { font-size: .8rem; max-width: 34ch; }

/* ---------- Donații ---------- */
.bank-card { margin: 2rem 0; background: var(--surface); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--red-soft); }
.bank-card__head { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.6rem; background: var(--fill); color: var(--on-red); }
.bank-card__head h2 { margin: 0; font-size: 1.5rem; color: var(--on-red); }
.bank-card__head small { font: 600 .8rem var(--sans); opacity: .8; margin-left: .4rem; letter-spacing: .08em; }
.bank-card__list { margin: 0; padding: .4rem 1.6rem 1rem; }
.copy-field { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.copy-field:last-child { border-bottom: 0; }
.copy-field dt { font: 700 .7rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.copy-field dd { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.copy-field__value { font-weight: 700; font-variant-numeric: tabular-nums; word-break: break-word; }
.qr-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 1.6rem; text-align: center; }
.qr-card__code { background: #fff; padding: 4px; display: inline-block; margin: .6rem 0 1rem; border: 1px solid var(--ink); }
.qr-card__code svg { width: 240px; height: 240px; }
.qr-amount { margin: 0 0 1rem; text-align: left; }
.qr-amount label { display: block; font: 700 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.qr-amount__row { display: flex; gap: .4rem; }
.qr-amount__chip { flex: 1; padding: .55rem .3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: 700 .85rem/1 var(--sans); cursor: pointer; }
.qr-amount__chip:hover, .qr-amount__chip.is-active { border-color: var(--fill); background: var(--fill); color: var(--on-red); }
.qr-amount input { flex: 1.3; min-width: 0; padding: .5rem .6rem; border: 1px solid var(--line); border-bottom: 2px solid var(--ink); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: inherit; }
.qr-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Formulare ---------- */
.form-card { background: var(--surface); border: 1px solid var(--ink); padding: clamp(1.4rem, 3vw, 2.4rem); margin-top: 1.5rem; box-shadow: 8px 8px 0 var(--red-soft); }
.pm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.2rem; }
.pm-input { display: grid; gap: .45rem; }
.pm-input--wide { grid-column: 1 / -1; }
.pm-input__label { display: inline-flex; align-items: center; gap: .4rem; font: 700 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.pm-input--living .icon { color: var(--red); }
.pm-input--departed .icon { color: var(--ink); }
.pm-form input[type="text"], .pm-form input[type="email"], .pm-form textarea, .search-form input {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); border-bottom: 2px solid var(--ink);
  background: var(--bg); color: var(--ink); font: inherit;
}
.pm-form textarea { resize: vertical; min-height: 120px; }
.pm-form input:focus, .pm-form textarea:focus, .search-form input:focus { outline: none; border-color: var(--red); border-bottom-color: var(--red); background: var(--surface); }
.pm-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 1.4rem; }
.pm-check input { margin-top: .3rem; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.pm-alert { padding: 1rem 1.2rem; background: var(--bg-2); border-left: 4px solid var(--ink); }
.pm-alert--success { background: #e5efe9; border-color: var(--green); color: #1f3e35; }
.pm-alert--error { background: var(--red-soft); border-color: var(--red); color: #5a0f13; }
.search-form { display: flex; gap: .5rem; max-width: 480px; margin: 0 auto 1.5rem; }

/* ---------- Conținut din editor ---------- */
.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.9rem; margin-top: 1.8em; }
.prose h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--red); margin-top: .5rem; }
.prose h3 { margin-top: 1.5em; }
.prose .lead { font: 400 1.35rem/1.55 var(--display); color: var(--ink-2); }
.prose img { border: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote, .wp-block-quote.is-style-pm-quote {
  margin: 2.2em 0; padding: 1.8rem 2rem; border: 1px solid var(--ink); border-left: 6px solid var(--red); background: var(--surface);
  font: 400 1.35rem/1.5 var(--display); color: var(--ink);
}
.prose blockquote p { margin: 0; }
.prose cite { display: block; margin-top: .9rem; font: 700 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-style: normal; }
.prose .pm-todo { padding: .8rem 1rem; background: #fff1c9; color: #5c4100; font-size: .95rem; }
.pm-callout { padding: 1.6rem; background: var(--red-soft); border: 1px solid var(--red); }
.is-style-pm-arch img { border-radius: 999px 999px 0 0; }
.wp-block-button__link { border-radius: var(--radius); background: var(--fill); color: var(--on-red); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; }
.has-rosu-color { color: #9e1b22; } .has-rosu-background-color { background-color: #9e1b22; }
.has-negru-color { color: #1c1715; } .has-negru-background-color { background-color: #1c1715; }
.has-in-color { color: #f6f1e7; } .has-in-background-color { background-color: #f6f1e7; }
.has-ocru-color { color: #b7832f; } .has-ocru-background-color { background-color: #b7832f; }
.has-brad-color { color: #2f5d50; } .has-brad-background-color { background-color: #2f5d50; }
.alignwide { width: min(100vw - 2.5rem, var(--container)); margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

.post-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-nav a { text-decoration: none; font-weight: 700; }
.pagination, .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--fill); color: var(--on-red); border-color: var(--fill); }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; display: grid; justify-items: center; gap: 1rem; }

/* ---------- Subsol ---------- */
.site-footer { background: #1c1715; color: rgba(246, 241, 231, .75); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.8rem 0 3rem; }
.site-footer .brand { justify-items: start; text-align: left; color: #f6f1e7; }
.site-footer .brand__top { color: rgba(246, 241, 231, .55); }
.site-footer .brand__mark { color: #e0565c; }
.site-footer a { color: #f6f1e7; text-decoration: none; }
.site-footer a:hover { color: #e0565c; }
.footer-title { color: #f6f1e7; font-size: 1.2rem; margin-bottom: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-hram { margin: 1.2rem 0; font: 400 1.05rem/1.5 var(--display); color: rgba(246, 241, 231, .8); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-list li { display: flex; gap: .55rem; align-items: flex-start; }
.footer-list .icon { margin-top: .3em; color: #e0565c; }
.footer-list--links a { display: inline-flex; gap: .35rem; align-items: center; }
.footer-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; }
.social { display: flex; gap: .5rem; }
.social .icon-btn { border-color: rgba(246, 241, 231, .25); color: #f6f1e7; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 0 1.8rem; border-top: 1px solid rgba(246, 241, 231, .12); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.footer-menu { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; flex-wrap: wrap; }

/* ---------- Animații ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.rise { animation: rise .8s var(--ease) both; }
.rise--late { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feasts, .tiles { grid-template-columns: repeat(2, 1fr); }
  .feast:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feast:nth-child(3) { border-left: 0; }
  .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .masthead__mail { display: none !important; }
}
@media (max-width: 960px) {
  .masthead { grid-template-columns: auto 1fr auto; padding: .7rem 0; }
  .masthead__side--left { display: none; }
  .brand { justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; gap: .7rem; }
  .brand__name { font-size: 1.35rem; }
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); z-index: 60; padding: 6.5rem 1.6rem 2rem; border: 0;
    background: var(--surface); box-shadow: -20px 0 40px -20px rgba(0,0,0,.4); transform: translateX(105%); visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s linear .35s; overflow-y: auto;
  }
  .nav .container { width: auto; }
  .menu-open .nav { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .menu-open .masthead__side--right { position: relative; z-index: 70; }
  .nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 1rem 0; font-size: .85rem; border-bottom: 1px solid var(--line); }
  .nav .current-menu-item > a { border-bottom-color: var(--red); }
  .nav .sub-menu { position: static; translate: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
  .menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(28, 23, 21, .45); z-index: 35; }
  .header-live { display: none; }
  .band__grid, .split, .contact-band, .season { grid-template-columns: 1fr; }
  .band__grid { gap: 1.3rem; }
  .band__cell + .band__cell { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 248, 238, .25); padding-top: 1.3rem; }
  .band__cell--actions { flex-direction: row; flex-wrap: wrap; }
  .split__aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .person-card + .person-card { border-left: 0; border-top: 1px solid var(--line); }
  .hero::before, .hero::after { width: 110px; height: 110px; opacity: .05; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand__top { font-size: .55rem; letter-spacing: .22em; }
  .brand__name { font-size: 1.2rem; }
  .feasts, .tiles, .pm-form__grid, .site-footer__grid { grid-template-columns: 1fr; }
  .feast, .tile { border-left: 0 !important; }
  .feast + .feast, .tile + .tile { border-top: 1px solid var(--line); }
  .service { grid-template-columns: auto 1fr; gap: 1rem; }
  .service__actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: -.5rem; }
  .copy-field { grid-template-columns: 1fr; gap: .2rem; }
  .hero__title { font-size: 2.3rem; }
  .hero::before, .hero::after { display: none; }
  .lightbox { grid-template-columns: 50px 1fr 50px; }
}

/* ---------- Tipărire ---------- */
@media print {
  .site-header, .site-footer, .notice-bar, .no-print, .service__actions, .ornament, .lightbox, .split__aside, .band { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-hero { background: none; border: 0; padding: 0 0 1rem; }
  .split { display: block; }
  .service { break-inside: avoid; }
  .js .reveal { opacity: 1; transform: none; }
}
