/* Pāvesta misiju darbi Latvijā — galvenais stils */
:root {
  --red: #a8102b;
  --red-dark: #7d0b20;
  --gold: #c39a45;
  --ink: #1f1b18;
  --muted: #6a6058;
  --line: #e7dfd3;
  --cream: #faf6ef;
  --paper: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 27, 24, .06), 0 8px 24px rgba(31, 27, 24, .08);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--white { background: var(--paper); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Pogas */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: var(--cream); color: var(--red-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Galvene */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.1; display: block; }
.brand small { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 11px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: #f1e9dc; color: var(--red); }
.nav .btn { margin-left: 8px; padding: .7em 1.2em; color: #fff; }
.nav .btn:hover { background: var(--red-dark); color: #fff; }
.burger { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.burger svg { width: 26px; height: 26px; }

@media (max-width: 1140px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 32px;
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { padding: 15px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a[aria-current="page"] { background: none; }
  .nav .btn { margin: 20px 0 0; justify-content: center; border-bottom: 0; border-radius: 999px; }
  body.menu-open { overflow: hidden; }
}

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 span { color: var(--red); font-style: italic; }
.hero__img { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__meta { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero__meta div { font-size: .85rem; color: var(--muted); }
.hero__meta b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--ink); font-weight: 600; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__img { order: -1; aspect-ratio: 16 / 10; }
}

/* Lapas virsraksts */
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-head .lead { max-width: 680px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Kartītes */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 2px 4px rgba(31,27,24,.06), 0 16px 36px rgba(31,27,24,.12); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #eee5d8; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__date { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card__more { margin-top: auto; padding-top: 10px; color: var(--red); font-weight: 600; font-size: .9rem; }

.tile { padding: 28px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.tile__icon { width: 46px; height: 46px; border-radius: 12px; background: #f6e7e9; color: var(--red); display: grid; place-items: center; margin-bottom: 14px; }
.tile__icon svg { width: 24px; height: 24px; }
.tile p { color: var(--muted); margin: 0; font-size: .96rem; }

.values { display: flex; flex-wrap: wrap; gap: 10px; }
.values span { padding: 10px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; }

/* Citāts */
.quote { background: var(--red); color: #fff; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 820px; font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-style: italic; line-height: 1.3; }
.quote cite { display: block; margin-top: 18px; font: 500 .9rem var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .85; font-style: normal; }

/* CTA josla */
.cta { background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #d9d1c7; margin: 0; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* Raksts */
.prose { font-size: 1.08rem; }
.prose p { margin-bottom: 1.15em; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-style: italic; color: #3d362f; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); }
.prose .sign { font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.prose .prayer { background: var(--paper); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); font-style: italic; }
.article-hero { border-radius: 20px; overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow); }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.toc { background: var(--paper); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin: 0 0 32px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }

/* Galerija */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line); background: var(--paper); padding: 8px 16px; border-radius: 999px; font: 500 .9rem var(--sans); cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 12px; overflow: hidden; position: relative; background: #eee5d8; }
.gallery img { width: 100%; transition: transform .4s, opacity .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; color: #fff; font-size: .88rem;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .25s;
}
.gallery a:hover span, .gallery a:focus-visible span { opacity: 1; }
@media (hover: none) { .gallery a span { opacity: 1; } }
.gallery a[hidden] { display: none; }
.gallery-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-strip a { aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 12, 10, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #e9e2d8; margin-top: 12px; text-align: center; font-size: .95rem; padding: 0 12px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 26px; left: 24px; color: #bdb3a7; font-size: .9rem; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video button:hover img { opacity: 1; }
.video .play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .2s; }
.video button:hover .play { transform: scale(1.08); }
.video .play svg { width: 28px; height: 28px; color: #fff; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-item h3 { margin-top: 16px; }
.video-item p { color: var(--muted); font-size: .95rem; }

/* PDF */
.doc { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.doc__icon { flex: none; width: 54px; height: 66px; border-radius: 6px; background: #f6e7e9; color: var(--red); display: grid; place-items: center; font: 700 .75rem var(--sans); position: relative; }
.doc__icon::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 14px 14px 0; border-style: solid; border-color: var(--cream) var(--cream) #e9c9ce #e9c9ce; }
.doc h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.doc p { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.doc .btn { padding: .6em 1.1em; font-size: .88rem; }

/* Ziedot */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--red); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
.bank { background: var(--paper); border: 2px solid var(--red); border-radius: 18px; padding: clamp(22px, 4vw, 36px); }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0 0 8px; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-word; }
.copy { border: 1px solid var(--line); background: var(--cream); border-radius: 8px; padding: 4px 10px; font: 500 .8rem var(--sans); cursor: pointer; color: var(--ink); }
.copy.done { background: #e6f2e6; border-color: #b9d8b9; }
@media (max-width: 520px) { .bank dl { grid-template-columns: 1fr; gap: 2px; } .bank dd { margin-bottom: 10px; } }
.mass-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mass-list li { background: var(--paper); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); }

/* Divas kolonnas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }
.split img { border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Kontakti */
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; box-shadow: var(--shadow); background: #eee5d8; }

/* Kājene */
.footer { background: var(--ink); color: #cfc6bb; padding: 56px 0 28px; font-size: .93rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font: 600 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: #cfc6bb; text-decoration: none; }
.footer ul a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand small { color: #a79d92; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: var(--red); }
.social svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8f857a; font-size: .85rem; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Facebook lapas logrīks */
.fb { width: 100%; max-width: 500px; justify-self: center; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fb iframe { display: block; width: 100%; height: 640px; border: 0; }
.fb { margin: 0 auto; }
.fb-posts .card__img { position: relative; }
.fb-text { color: var(--ink) !important; white-space: pre-line; }
.fb-play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(168, 16, 43, .9); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.fb-source { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.fb-source svg { width: 18px; height: 18px; flex: none; }
.fb-source b { color: #1877f2; font-weight: 600; }
.fb-posts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .fb-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fb-posts { grid-template-columns: 1fr; } }
.fb-source { white-space: nowrap; }

/* Holy Donation logrīks */
.hd-widget { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; overflow: hidden; }
.hd-embed { display: block; width: 100%; height: 640px; border: 0; overflow: hidden; }
