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

:root {
  --ivory:   #f8f4ee;
  --brown:   #4a2c15;
  --dark:    #2e1a0e;
  --gold:    #b8860b;
  --gold-lt: #d4a830;
  --white:   #ffffff;
  --shadow:  rgba(74,44,21,.12);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--ivory);
  color: var(--dark);
  line-height: 1.7;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--gold-lt); }

h1,h2,h3 { line-height: 1.25; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, #3b1d09 0%, #6b3a1c 60%, #8c5228 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  flex-wrap: wrap;
}

.brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--white);
}

.brand p {
  margin: 2px 0 0;
  font-size: .82rem;
  opacity: .82;
  font-style: italic;
}

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 6px;
  color: #fff;
  font-size: 1.4rem;
  padding: 4px 10px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255,255,255,.88);
  font-size: .88rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.site-nav a:hover { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }

.lang-btn {
  background: var(--gold);
  color: var(--white) !important;
  border-radius: 6px;
  padding: 6px 14px !important;
  font-size: .82rem !important;
  letter-spacing: .04em;
  transition: background .2s !important;
}
.lang-btn:hover { background: var(--gold-lt) !important; }

/* ===== HERO ===== */
.hero {
  padding: 36px 22px 0;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 40px var(--shadow);
}

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

.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(to top, rgba(30,10,0,.72) 0%, rgba(30,10,0,.18) 55%, transparent 100%);
  color: #fff;
}

.hero-caption h2 {
  margin: 0 0 8px;
  font-size: 2.6rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.hero-caption p {
  margin: 0;
  font-size: 1.12rem;
  opacity: .9;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* ===== SECTIONS ===== */
.section {
  padding: 58px 22px;
  max-width: 1140px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.9rem;
  color: var(--brown);
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

.section-intro {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: #5a3a20;
}

/* ===== CARD ===== */
.card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 6px 24px var(--shadow);
  border-top: 4px solid var(--gold);
}

/* ===== PRIEST ===== */
.priest-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
}

.priest-grid img {
  border-radius: 16px;
  width: 100%;
  box-shadow: 0 6px 20px var(--shadow);
}

.priest-info h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--brown);
}

.priest-info .priest-since {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: .82rem;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}

/* ===== SACRAMENTS ===== */
.sacraments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.sacrament-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.sacrament-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.sacrament-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.sacrament-card .sc-body {
  padding: 18px 20px;
}

.sacrament-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--brown);
}

.sacrament-card p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

/* ===== PARISH LIFE (feature cards) ===== */
.life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.life-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow);
  transition: transform .25s;
}

.life-card:hover { transform: translateY(-4px); }

.life-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.life-card .lc-body {
  padding: 18px 22px;
}

.life-card h3 { margin: 0 0 8px; color: var(--brown); font-size: 1.1rem; }
.life-card p  { margin: 0; font-size: .9rem; line-height: 1.55; }

/* ===== GALLERY ===== */
.gallery-section { background: #f0ebe2; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}

.gallery-grid figure:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px var(--shadow);
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--brown);
}

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
}

.lb-close {
  position: fixed;
  top: 22px;
  right: 28px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: .8;
}
.lb-close:hover { opacity: 1; }

/* ===== SCHEDULE ===== */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 1rem;
}

.schedule-table th {
  background: var(--brown);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
}

.schedule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8ddd0;
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: #fdf8f2; }

.gold-tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: .8rem;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== CONTACTS ===== */
.contacts-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

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

.contact-value {
  font-size: 1rem;
}

/* ===== MAP ===== */
.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow);
  height: 380px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 28px 20px;
  font-size: .88rem;
  margin-top: 40px;
}

.site-footer a { color: var(--gold-lt); }
.site-footer .footer-cross { font-size: 1.4rem; display: block; margin-bottom: 8px; color: var(--gold-lt); }

/* ===== DIVIDER ===== */
.gold-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  max-width: 320px;
  border: none;
}

/* ===== MOBILE ===== */
@media (max-width: 800px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 12px;
    gap: 4px;
  }

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

  .site-nav a { width: 100%; padding: 10px 14px; }

  .header-inner { flex-wrap: wrap; }

  .hero-caption h2 { font-size: 1.8rem; }
  .hero-wrap img   { height: 300px; }

  .priest-grid      { grid-template-columns: 1fr; }
  .contacts-wrap    { grid-template-columns: 1fr; }

  .section-title { font-size: 1.5rem; }
}

@media (max-width: 500px) {
  .hero-wrap img { height: 220px; }
  .card { padding: 20px 18px; }
}
