:root {
  --bg: #f7f4ee;
  --bg-alt: #efe7d8;
  --card: #ffffff;
  --text: #2d2a26;
  --muted: #6f6559;
  --primary: #6c5432;
  --primary-dark: #4e3b22;
  --gold: #b99252;
  --line: #dfd4c5;
  --shadow: 0 12px 30px rgba(50, 39, 22, 0.08);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

.section { padding: 88px 0; }

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

.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

.section-header h2,
.two-col-text h2 {
  margin: 0 0 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #2e241a;
}

.section-subtext {
  max-width: 720px;
  color: var(--muted);
  margin: 0;
}

/* ─── HEADER ─────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(252, 249, 244, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(191, 172, 143, 0.3);
  box-shadow: 0 2px 16px rgba(50, 39, 22, 0.07);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { min-width: 0; flex-shrink: 0; }

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #2c2118;
  line-height: 1.2;
}

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

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

.main-nav a {
  font-size: 0.93rem;
  color: #40342a;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}

.main-nav a:hover { background: rgba(108, 84, 50, 0.08); }

.main-nav a.active {
  color: var(--primary);
  font-weight: 700;
  background: rgba(108, 84, 50, 0.1);
}

/* ─── HEADER RIGHT: LANG SWITCHER + CTA ──────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Three separate language buttons in a pill container */
.lang-switcher {
  display: flex;
  align-items: center;
  background: #f0e5d0;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b5540;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.04em;
}

.lang-btn:hover {
  background: rgba(108, 84, 50, 0.12);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(108, 84, 50, 0.3);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.92rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

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

/* Generic button styles */
.btn-primary,
.resource-btn,
.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s, transform 0.15s;
  text-decoration: none;
}

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

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ─── BURGER ──────────────────────────────────── */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #3b2e22;
  margin: 5px auto;
  transition: 0.22s ease;
}

/* ─── HERO ────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #16110c;
}

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

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

.hero-overlay {
  background:
    linear-gradient(180deg,
      rgba(14,10,6,0.28) 0%,
      rgba(14,10,6,0.50) 50%,
      rgba(14,10,6,0.70) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  color: #fff;
  text-align: center;
  padding: 60px 0 52px;
}

.hero-welcome {
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f5d9a2;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.06;
  text-shadow: 0 3px 20px rgba(0,0,0,0.32);
}

.hero-subtitle {
  max-width: 740px;
  margin: 22px auto 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.9);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── TWO COLUMN ─────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.two-col-rev { grid-template-columns: 0.95fr 1.05fr; }

.two-col-image img,
.priest-photo-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.two-col-text p { margin: 0 0 15px; color: #4d4339; }

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

.stat-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 128px;
  box-shadow: var(--shadow);
}

.stat-item strong {
  display: block;
  color: #2f241a;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.stat-item span { color: var(--muted); font-size: 0.92rem; }

.priest-since { color: var(--gold); font-weight: 600; }

/* ─── GRIDS ───────────────────────────────────── */
.planner-grid,
.resources-grid,
.sacraments-grid,
.life-grid,
.gallery-grid {
  display: grid;
  gap: 22px;
}

.planner-grid { grid-template-columns: repeat(4, 1fr); }
.resources-grid { grid-template-columns: repeat(4, 1fr); }
.sacraments-grid { grid-template-columns: repeat(4, 1fr); }
.life-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid { grid-template-columns: repeat(4, 1fr); }

/* ─── CARDS ───────────────────────────────────── */
.planner-card,
.resource-card,
.sacrament-card,
.life-card,
.gallery-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.planner-card { padding: 24px; }

.planner-card h3,
.resource-card h3,
.sacrament-body h3,
.life-body h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: #312418;
}

.planner-card ul { margin: 0; padding-left: 18px; color: #51473c; }
.planner-card li + li { margin-top: 8px; }

/* ─── RESOURCE CARDS (with photo) ─────────────── */
.resource-card {
  display: flex;
  flex-direction: column;
}

.resource-img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

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

.resource-body p { margin: 0; color: #594f45; font-size: 0.94rem; }

.resource-btn {
  margin: 0 20px 20px;
  font-size: 0.9rem;
  padding: 9px 20px;
}

/* ─── SACRAMENT / LIFE CARDS ─────────────────── */
.sacrament-img img,
.life-card img,
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.sacrament-body,
.life-body {
  padding: 18px 20px;
}

.sacrament-body p,
.life-body p {
  margin: 0;
  color: #594f45;
  font-size: 0.93rem;
}

/* ─── GALLERY ─────────────────────────────────── */
.gallery-item {
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(50,39,22,0.14);
}

.gallery-item figcaption {
  padding: 14px 16px;
  color: #4c4237;
  font-size: 0.92rem;
}

/* ─── SCHEDULE ────────────────────────────────── */
.schedule-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.schedule-table { width: 100%; border-collapse: collapse; }

.schedule-table th,
.schedule-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #ece2d3;
  text-align: left;
  vertical-align: top;
}

.schedule-table th {
  color: #5c4322;
  font-weight: 700;
  background: #fbf6ee;
}

.schedule-table small {
  display: inline-block;
  margin-left: 8px;
  color: var(--gold);
  font-weight: 600;
}

.schedule-note { margin: 16px 0 0; color: var(--muted); }

/* ─── CONTACTS ────────────────────────────────── */
.contacts-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: stretch;
}

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

.contact-row + .contact-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee3d5;
}

.contact-label {
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.contact-value { color: #473c31; }

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

.map-hint { margin: 12px 0 0; font-size: 0.9rem; }

.contacts-map iframe {
  display: block;
  border-radius: 12px;
  border: none;
}

/* ─── FOOTER ──────────────────────────────────── */
#site-footer {
  background: #241c15;
  color: rgba(255,255,255,0.82);
  padding: 32px 0;
}

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

.footer-name {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: #fff;
}

.footer-city,
.footer-copy { color: rgba(255,255,255,0.72); }

.footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.8); }
.footer-nav a:hover { color: #fff; }

/* ─── LIGHTBOX ────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 999; display: none; }
.lightbox.open { display: block; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 9, 0.84);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100% - 24px));
  margin: 4vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(35,28,21,0.1);
  font-size: 1.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.lightbox-close:hover { background: rgba(35,28,21,0.18); }

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

#lightbox-caption {
  margin: 14px 6px 4px;
  color: #4a4035;
  font-size: 0.98rem;
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  .planner-grid,
  .resources-grid,
  .sacraments-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 920px) {
  .burger { display: block; }

  .main-nav {
    position: absolute;
    top: 77px;
    left: 16px;
    right: 16px;
    background: rgba(255, 251, 245, 0.99);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .two-col-image img,
  .priest-photo-wrap img {
    height: 320px;
  }
}

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

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

  .header-cta { display: none; }

  #hero { min-height: 80vh; }

  .hero-content { padding-top: 80px; }

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

  .btn-primary,
  .btn-outline-white {
    width: min(320px, 100%);
  }

  .lang-btn { min-width: 30px; padding: 0 8px; font-size: 0.78rem; }
}

/* ─── DONATE SECTION ──────────────────────────── */
.donate-section {
  background: linear-gradient(135deg, #3d2a14 0%, #5c3d1e 50%, #3d2a14 100%);
  color: #f5e8d0;
}

.donate-section .section-label {
  color: #e8c07a;
}

.donate-section .section-header h2 {
  color: #fff;
}

.donate-subtext {
  color: rgba(245, 232, 208, 0.82);
  max-width: 620px;
  margin: 0;
}

/* Currency tabs */
.currency-tabs {
  display: flex;
  gap: 8px;
  margin: 28px 0 30px;
  flex-wrap: wrap;
}

.currency-tab {
  padding: 10px 24px;
  border: 1.5px solid rgba(245, 232, 208, 0.35);
  background: transparent;
  color: rgba(245, 232, 208, 0.78);
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.currency-tab:hover {
  background: rgba(245, 232, 208, 0.12);
  color: #fff;
}

.currency-tab.active {
  background: #c9993a;
  border-color: #c9993a;
  color: #fff;
  box-shadow: 0 3px 12px rgba(201, 153, 58, 0.4);
}

/* Currency panels */
.currency-panel {
  display: none;
}

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

/* Bank detail card */
.bank-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 232, 208, 0.18);
  border-radius: var(--radius);
  padding: 28px 32px;
  backdrop-filter: blur(6px);
}

.bank-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.bank-row {
  padding: 13px 0;
  border-bottom: 1px solid rgba(245, 232, 208, 0.12);
}

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

.bank-row-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9993a;
  margin-bottom: 4px;
}

.bank-row-value {
  color: #f5e8d0;
  font-size: 0.97rem;
  word-break: break-all;
}

/* IBAN row — full width */
.bank-row-iban {
  grid-column: 1 / -1;
  padding: 16px 0 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.iban-value {
  font-family: "Courier New", monospace;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}

.copy-btn {
  padding: 7px 18px;
  background: rgba(201, 153, 58, 0.22);
  border: 1.5px solid #c9993a;
  color: #e8c07a;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: #c9993a;
  color: #fff;
}

.copy-btn.copied {
  background: #4a7c59;
  border-color: #4a7c59;
  color: #fff;
}

/* Intermediary banks list */
.intermediary-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.interm-item {
  font-size: 0.9rem;
  color: rgba(245, 232, 208, 0.8);
}

.interm-swift {
  font-family: "Courier New", monospace;
  font-weight: 700;
  color: #e8c07a;
}

/* ─── FLOATING DONATE BUTTON ─────────────────── */
.float-donate {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 190;
}

.float-donate-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #b07d2a, #c9993a);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(108, 78, 20, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.float-donate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(108, 78, 20, 0.55);
  background: linear-gradient(135deg, #c9993a, #e0b04a);
  color: #fff;
}

/* ─── RESPONSIVE — DONATE ─────────────────────── */
@media (max-width: 920px) {
  .bank-rows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .bank-card {
    padding: 20px 18px;
  }
  .float-donate-btn {
    padding: 11px 16px;
    font-size: 0.88rem;
  }
  .float-donate {
    bottom: 18px;
    right: 16px;
  }
}
