: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;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(252, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(191, 172, 143, 0.28);
}

.header-inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #2c2118;
}

.brand-sub {
  font-size: 0.98rem;
  color: var(--muted);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 1rem;
  color: #40342a;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a.active {
  color: var(--primary);
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn,
.header-cta,
.btn-primary,
.btn-outline-white,
.resource-btn,
.contact-cta {
  border: none;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  transition: 0.25s ease;
}

.lang-btn {
  min-width: 56px;
  height: 40px;
  background: #f2e7d3;
  color: #4b3925;
  font-weight: 700;
}

.lang-btn:hover {
  background: #e7d3b2;
}

.header-cta,
.btn-primary,
.resource-btn,
.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.header-cta:hover,
.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: 12px 20px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #3b2e22;
  margin: 5px auto;
  transition: 0.25s ease;
}

#hero {
  position: relative;
  min-height: 52vh;
  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: contain;
  object-position: center center;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(16,11,7,0.38) 0%, rgba(16,11,7,0.62) 50%, rgba(16,11,7,0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  color: #fff;
  text-align: center;
  padding: 56px 0 48px;
}

.hero-welcome {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f5d9a2;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 1.04;
  text-shadow: 0 3px 18px rgba(0,0,0,0.3);
}

.hero-subtitle {
  max-width: 760px;
  margin: 22px auto 0;
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: rgba(255,255,255,0.92);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  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%;
  object-fit: cover;
}

.two-col-text p {
  margin: 0 0 15px;
  color: #4d4339;
}

.stats-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.stat-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  min-width: 140px;
  box-shadow: var(--shadow);
}

.stat-item strong {
  display: block;
  color: #2f241a;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.stat-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.priest-since {
  color: var(--gold);
  font-weight: 600;
}

.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);
}

.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,
.resource-card {
  padding: 24px;
}

.planner-card h3,
.resource-card h3,
.sacrament-body h3,
.life-body h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: #312418;
}

.planner-card ul {
  margin: 0;
  padding-left: 18px;
  color: #51473c;
}

.planner-card li + li {
  margin-top: 8px;
}

.resource-icon-area {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f0e2c8;
  color: #644726;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.resource-body p,
.sacrament-body p,
.life-body p {
  margin: 0;
  color: #594f45;
}

.sacrament-img img,
.life-card img,
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sacrament-body,
.life-body {
  padding: 20px;
}

.gallery-item {
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item figcaption {
  padding: 16px;
  color: #4c4237;
  font-size: 0.96rem;
}

.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: 16px 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: 18px 0 0;
  color: var(--muted);
}

.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.92rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-value {
  color: #473c31;
}

.contact-cta {
  margin-top: 22px;
}

.map-hint {
  margin: 12px 0 0;
}

#site-footer {
  background: #241c15;
  color: rgba(255,255,255,0.82);
  padding: 34px 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.15rem;
  color: #fff;
}

.footer-city,
.footer-copy {
  color: rgba(255,255,255,0.74);
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.82);
}

.footer-nav a:hover {
  color: #fff;
}

.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.82);
  backdrop-filter: blur(3px);
}

.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 18px 60px rgba(0,0,0,0.28);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(35, 28, 21, 0.08);
  font-size: 1.8rem;
  cursor: pointer;
}

#lightbox-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
}

#lightbox-caption {
  margin: 16px 6px 6px;
  color: #4a4035;
  font-size: 1rem;
}

@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: 109px;
    left: 16px;
    right: 16px;
    background: rgba(255, 251, 245, 0.98);
    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;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 68px 0;
  }

  .planner-grid,
  .resources-grid,
  .sacraments-grid,
  .life-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-outline-white {
    width: min(320px, 100%);
  }
}