:root {
  --primary: #a69076;
  --primary-dark: #8f785f;
  --accent: #c7a56a;
  --dark: #2c2a28;
  --dark-soft: #3a3835;
  --text: #4a4a4a;
  --muted: #7b766f;
  --light: #fdfbf7;
  --light-alt: #f4f0ea;
  --white: #ffffff;
  --line: #e9e2d8;
  --shadow: 0 12px 34px rgba(44, 42, 40, 0.08);
  --shadow-soft: 0 8px 24px rgba(44, 42, 40, 0.05);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --container: 1180px;
  --header-height: 84px;
  --transition: 0.28s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-alt {
  background: linear-gradient(180deg, #f7f3ed 0%, #f2eee7 100%);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 42px;
}

.section-header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  color: var(--dark);
}

.section-subtext {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn-primary,
.btn-outline-white,
.header-cta,
.resource-btn,
.contact-cta,
.float-donate-btn,
.copy-btn {
  transition: var(--transition);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  font-weight: 600;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(166, 144, 118, 0.14);
  transition: var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 10px 24px rgba(44, 42, 40, 0.06);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
}

.brand-sub {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-soft);
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(166, 144, 118, 0.1);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(166, 144, 118, 0.16);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--dark-soft);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 44px;
}

.lang-btn.active {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 3px 10px rgba(44, 42, 40, 0.08);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: #1f1d1b;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(166, 144, 118, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  border-radius: 4px;
  background: var(--dark);
}

/* Prayer strip */
.prayer-strip {
  background: linear-gradient(90deg, #efe6d8 0%, #f7efe4 100%);
  border-bottom: 1px solid rgba(166, 144, 118, 0.14);
}

.prayer-strip .container {
  padding-top: 11px;
  padding-bottom: 11px;
}

.prayer-strip span {
  display: block;
  text-align: center;
  font-size: 0.94rem;
  color: var(--dark-soft);
}

.prayer-strip a {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Hero */
#hero {
  position: relative;
  min-height: min(100vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 26, 24, 0.68) 0%, rgba(28, 26, 24, 0.45) 42%, rgba(28, 26, 24, 0.22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.38) 100%);
}

.hero-glow {
  position: absolute;
  right: 10%;
  top: 16%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 218, 150, 0.18) 0%, rgba(255, 218, 150, 0) 72%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 110px 0 90px;
  color: var(--white);
}

.hero-welcome {
  margin: 0 0 18px;
  font-size: 0.94rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 246, 232, 0.95);
}

.hero-title {
  margin: 0;
  max-width: 760px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.hero-subtitle {
  max-width: 710px;
  margin: 22px 0 0;
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  color: rgba(255, 250, 243, 0.94);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* About / Priest */
.two-col {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 46px;
  align-items: center;
}

.two-col-rev {
  grid-template-columns: 0.92fr 1.08fr;
}

.two-col-text h2 {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.14;
  color: var(--dark);
}

.two-col-text p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.02rem;
}

.two-col-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.priest-photo-wrap img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.priest-since {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(166, 144, 118, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.stat-item {
  min-width: 140px;
  padding: 18px 18px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--dark);
  line-height: 1.1;
}

.stat-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Planner */
.planner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.planner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.planner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.plan-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(166, 144, 118, 0.12);
  font-size: 1.5rem;
}

.planner-card h3 {
  margin: 18px 0 14px;
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
}

.planner-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.planner-card li + li {
  margin-top: 8px;
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.resource-img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.resource-body {
  padding: 22px 22px 10px;
  flex: 1;
}

.resource-body h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

.resource-body p {
  margin: 0;
  color: var(--muted);
}

.resource-btn {
  margin: 18px 22px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
}

.resource-btn:hover {
  background: var(--primary);
}

/* Sacraments */
.sacraments-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.sacrament-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.sacrament-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.sacrament-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sacrament-body {
  padding: 22px;
}

.sacrament-body h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: 1.32rem;
}

.sacrament-body p {
  margin: 0;
  color: var(--muted);
}

/* Life */
.life-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.life-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.life-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.life-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.life-body {
  padding: 22px;
}

.life-body h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

.life-body p {
  margin: 0;
  color: var(--muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 13px 14px 15px;
  color: var(--dark);
  font-size: 0.94rem;
  font-weight: 600;
}

/* Verse */
.verse-section {
  padding: 84px 16px;
  background:
    radial-gradient(circle at top, rgba(199, 165, 106, 0.12), transparent 55%),
    linear-gradient(180deg, #f6efe5 0%, #fdfbf7 100%);
}

.verse-inner {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
  padding: 42px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(166, 144, 118, 0.14);
  box-shadow: var(--shadow-soft);
}

.verse-text {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.65rem, 2.7vw, 2.6rem);
  line-height: 1.35;
  color: var(--dark);
}

.verse-ref {
  display: block;
  margin-top: 16px;
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Schedule */
.schedule-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.schedule-table thead th {
  background: #efe6d8;
  color: var(--dark);
  text-align: left;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 700;
}

.schedule-table tbody td {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.schedule-table small {
  color: var(--muted);
  font-size: 0.82rem;
}

.schedule-note {
  margin: 16px 4px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Donate */
.donate-section {
  background:
    radial-gradient(circle at right top, rgba(199, 165, 106, 0.08), transparent 42%),
    linear-gradient(180deg, #fdfbf7 0%, #f8f4ee 100%);
}

.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.donate-content,
.candle-widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.donate-content {
  padding: 34px;
}

.donate-content .section-header {
  text-align: left;
  max-width: none;
  margin: 0 0 28px;
}

.donate-content .section-header h2 {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
}

.donate-subtext {
  margin: 14px 0 0;
  color: var(--muted);
}

.currency-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: rgba(166, 144, 118, 0.08);
  border: 1px solid rgba(166, 144, 118, 0.12);
  border-radius: 999px;
  margin-bottom: 24px;
}

.currency-tab {
  min-height: 44px;
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--dark-soft);
  font-weight: 700;
  cursor: pointer;
}

.currency-tab.active {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(44, 42, 40, 0.08);
  color: var(--primary-dark);
}

.currency-panel {
  display: none;
}

.currency-panel.active {
  display: block;
}

.bank-card {
  padding: 2px;
}

.bank-rows {
  display: grid;
  gap: 12px;
}

.bank-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.bank-row:last-child {
  border-bottom: 0;
}

.bank-row-label {
  color: var(--muted);
  font-weight: 700;
}

.bank-row-value {
  color: var(--dark);
  font-weight: 500;
}

.bank-row-iban {
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 14px;
}

.iban-value {
  font-weight: 800;
  color: var(--dark);
  word-break: break-all;
  font-size: 1rem;
}

.copy-btn {
  border: 0;
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--primary);
}

.intermediary-list {
  display: grid;
  gap: 8px;
}

.interm-item,
.interm-swift {
  color: var(--dark-soft);
}

.donate-candle-col {
  position: sticky;
  top: calc(var(--header-height) + 26px);
}

.candle-widget {
  padding: 30px 24px;
  text-align: center;
}

.candle-invite {
  margin: 0;
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
}

.candle-hint {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.candle-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdfa 0%, #faf5ee 100%);
  border-radius: 24px;
  padding: 22px 20px;
  cursor: pointer;
  transition: var(--transition);
}

.candle-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.candle-btn-label {
  color: var(--primary-dark);
  font-weight: 700;
}

.candle-flame {
  opacity: 0.45;
  transform-origin: center bottom;
  transition: var(--transition);
}

.candle-flame.is-lit,
.candle-btn.lit .candle-flame {
  opacity: 1;
  animation: flameFlicker 1s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.04, 0.96) translateY(-1px);
  }
  100% {
    transform: scale(0.98, 1.03) translateY(1px);
  }
}

.candle-prayer {
  min-height: 72px;
  margin: 18px 0 0;
  color: var(--dark-soft);
  font-size: 0.98rem;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.contacts-info,
.contacts-map {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.contacts-info {
  padding: 30px;
}

.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-of-type {
  border-bottom: 0;
}

.contact-label {
  color: var(--muted);
  font-weight: 700;
}

.contact-value {
  color: var(--dark);
}

.contact-value a {
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-cta {
  margin-top: 18px;
}

.contacts-map {
  padding: 18px;
}

.map-hint {
  margin: 14px 4px 0;
}

.map-hint a {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Footer */
#site-footer {
  padding: 28px 0;
  background: #241f1b;
  color: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-name {
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--white);
}

.footer-city,
.footer-copy {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
  font-size: 0.94rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.lightbox.open {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 15, 14, 0.78);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 960px);
  margin: 50px auto;
  background: var(--white);
  border-radius: 26px;
  padding: 16px 16px 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(44, 42, 40, 0.85);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

#lightbox-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 18px;
}

#lightbox-caption {
  margin: 16px 10px 0;
  color: var(--dark-soft);
  text-align: center;
  font-size: 1rem;
}

/* Floating donate */
.float-donate {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
}

.float-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  font-weight: 800;
}

.float-donate-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1180px) {
  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    font-size: 0.9rem;
  }

  .resources-grid,
  .sacraments-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 78px 0;
  }

  .burger {
    display: inline-flex;
  }

  .header-right {
    gap: 10px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 8px;
  }

  .header-cta {
    display: none;
  }

  .two-col,
  .two-col-rev,
  .contacts-grid,
  .donate-layout {
    grid-template-columns: 1fr;
  }

  .donate-candle-col {
    position: static;
  }

  .hero-content {
    padding-top: 92px;
    padding-bottom: 74px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(100% - 22px, var(--container));
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-sub {
    font-size: 0.76rem;
  }

  .lang-switcher {
    display: none;
  }

  .prayer-strip span {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-row {
    flex-direction: column;
  }

  .planner-grid,
  .resources-grid,
  .sacraments-grid,
  .life-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .donate-content,
  .candle-widget,
  .contacts-info {
    padding: 22px 18px;
  }

  .bank-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bank-row-iban {
    grid-template-columns: 1fr;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lightbox-content {
    width: min(100% - 14px, 960px);
    margin: 18px auto;
    padding: 12px 12px 18px;
  }

  #lightbox-img {
    max-height: 64vh;
  }

  .float-donate {
    right: 12px;
    bottom: 12px;
  }

  .float-donate-btn {
    min-height: 48px;
    padding: 11px 15px;
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-header h2,
  .two-col-text h2 {
    font-size: 1.9rem;
  }

  .verse-inner {
    padding: 28px 18px;
  }

  .verse-text {
    font-size: 1.45rem;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table tr {
    border-top: 1px solid var(--line);
  }

  .schedule-table tr:first-child {
    border-top: 0;
  }

  .schedule-table td {
    padding: 12px 16px;
  }
}