/* ============================================================
   PARISH OF THE DORMITION — style.css
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --gold:        #C9A84C;
  --gold-dark:   #A07830;
  --gold-light:  #E8D5A0;
  --ivory:       #FAF8F4;
  --ivory-alt:   #F2EDE4;
  --ivory-dark:  #EAE2D6;
  --brown:       #5C3D1E;
  --brown-soft:  #7A5530;
  --text-dark:   #1E1209;
  --text-body:   #3D2B14;
  --text-muted:  #7A6A56;
  --border:      #D8C9B0;
  --white:       #FFFFFF;
  --header-h:    90px;
  --radius:      6px;
  --shadow:      0 2px 12px rgba(94,58,18,0.10);
  --shadow-lg:   0 8px 32px rgba(94,58,18,0.14);
  --transition:  0.22s ease;
  --max-w:       1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--ivory);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--brown);
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { max-width: 68ch; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--ivory-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 { margin-top: 8px; }
.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding: 4px 14px;
  border: 1px solid var(--gold-light);
  border-radius: 40px;
  background: var(--white);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  transition: background var(--transition), border-color var(--transition);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
.btn-outline-white {
  display: inline-block;
  padding: 13px 30px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.65);
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250,248,244,0.96);
  border-bottom: 1px solid transparent;
  z-index: 900;
  transition: border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

/* Brand */
.brand { flex-shrink: 0; line-height: 1.3; }
.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
}
.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--gold-dark); background: var(--ivory-alt); }

/* Header right */
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-btn {
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brown-soft);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}
.lang-btn:hover { background: var(--ivory-alt); color: var(--brown); }
.header-cta {
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.header-cta:hover { background: var(--gold-dark); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  gap: 5px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 52vh;
  min-height: 360px;
  max-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-h);
  overflow: hidden;
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,10,5,0.28) 0%,
    rgba(30,10,5,0.52) 60%,
    rgba(30,10,5,0.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
}
.hero-welcome {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  max-width: none;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  margin: 0 auto 32px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col-rev { direction: rtl; }
.two-col-rev > * { direction: ltr; }
.two-col-text { display: flex; flex-direction: column; gap: 16px; }
.two-col-text .section-label { align-self: flex-start; }
.two-col-text h2 { margin-top: 0; }
.two-col-text p { color: var(--text-body); }
.two-col-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; }
.stat-item strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold-dark);
}
.stat-item span { font-size: 0.82rem; color: var(--text-muted); }

/* Priest */
.priest-photo-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.priest-since {
  font-size: 0.88rem;
  color: var(--gold-dark);
  font-weight: 500;
  font-style: italic;
  max-width: none;
  margin-top: -8px;
}

/* ============================================================
   PASTORAL PROGRAM 2026
   ============================================================ */
.program-theme {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--gold-dark);
  margin-top: 14px;
  max-width: none;
}

/* Direction cards */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 52px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 22px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.program-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.program-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--ivory-alt);
  border: 1.5px solid var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.program-card-header h3 {
  font-size: 0.98rem;
  margin: 0;
}
.program-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
}
.program-list li {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.45;
  padding-left: 14px;
  position: relative;
}
.program-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Feast Calendar */
.program-calendar { margin-top: 8px; }
.program-calendar h3 {
  font-size: 1.2rem;
  margin-bottom: 22px;
  text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cal-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--shadow);
}
.cal-item.cal-highlight {
  background: var(--ivory-alt);
  border-color: var(--gold-light);
  border-width: 1.5px;
}
.cal-date {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.cal-name {
  font-size: 0.83rem;
  color: var(--text-body);
  line-height: 1.4;
}
.cal-item.cal-highlight .cal-name {
  font-weight: 500;
  color: var(--brown);
}

@media (max-width: 1024px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .program-grid { grid-template-columns: 1fr; }
  .cal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESOURCES
   ============================================================ */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.resource-icon-area {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory-alt);
  border-radius: 50%;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.resource-body { flex: 1; }
.resource-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.resource-body p  { font-size: 0.9rem; color: var(--text-muted); }
.resource-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  background: transparent;
}
.resource-btn:hover {
  background: var(--gold);
  color: var(--white);
}

/* ============================================================
   SACRAMENTS
   ============================================================ */
.sacraments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sacrament-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.sacrament-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.sacrament-body {
  padding: 20px 18px 24px;
}
.sacrament-body h3 { font-size: 1rem; margin-bottom: 8px; }
.sacrament-body p  { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================================
   PARISH LIFE
   ============================================================ */
.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.life-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.life-card > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.life-body {
  padding: 20px 18px 24px;
  flex: 1;
}
.life-body h3 { font-size: 1.02rem; margin-bottom: 8px; }
.life-body p  { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  outline: none;
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.03);
}
.gallery-item figcaption {
  padding: 10px 12px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule-wrap {
  max-width: 700px;
  margin: 0 auto;
}
.schedule-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.94rem;
  box-shadow: var(--shadow);
  background: var(--white);
}
.schedule-table thead tr {
  background: var(--ivory-dark);
}
.schedule-table th {
  padding: 14px 20px;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--brown);
  border-bottom: 1px solid var(--border);
}
.schedule-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--ivory-dark);
  vertical-align: top;
}
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table td:nth-child(2) {
  font-weight: 600;
  color: var(--gold-dark);
  white-space: nowrap;
}
.schedule-table small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.schedule-note {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: none;
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contacts-info { display: flex; flex-direction: column; gap: 0; }
.contact-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-label {
  flex-shrink: 0;
  width: 110px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 2px;
}
.contact-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
}
.contact-value a {
  color: var(--gold-dark);
  font-weight: 500;
}
.contact-value a:hover { text-decoration: underline; }
.contact-cta {
  margin-top: 24px;
  align-self: flex-start;
}
.contacts-map iframe {
  width: 100%;
  height: 380px;
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.map-hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
  max-width: none;
}
.map-hint a { color: var(--gold-dark); }
.map-hint a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--ivory-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { flex-shrink: 0; }
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
}
.footer-city {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.footer-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--brown); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,10,3,0.88);
}
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
#lightbox-caption {
  color: rgba(255,255,255,0.80);
  font-size: 0.88rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: -4px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .sacraments-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid    { grid-template-columns: repeat(3, 1fr); }
  .life-grid       { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet ≤ 860px */
@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 10px 4px;
    font-size: 0.96rem;
    border-bottom: 1px solid var(--ivory-dark);
  }
  .main-nav a:last-child { border-bottom: none; }

  .two-col, .two-col-rev  { grid-template-columns: 1fr; direction: ltr; gap: 36px; }
  .two-col-image img,
  .priest-photo-wrap img  { height: 300px; }
  .contacts-grid          { grid-template-columns: 1fr; }
  .resources-grid         { grid-template-columns: 1fr; }
}

/* Mobile ≤ 600px */
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .section { padding: 52px 0; }

  #hero {
    height: 50vh;
    min-height: 300px;
    max-height: 440px;
  }

  .brand-name { font-size: 0.88rem; }
  .brand-sub  { display: none; }

  .sacraments-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .sacrament-img img { height: 140px; }

  .life-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item img { height: 130px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-nav { justify-content: flex-start; }

  .hero-actions { flex-direction: column; align-items: center; }
  .stats-row { gap: 20px; }
}

/* Mobile ≤ 380px */
@media (max-width: 380px) {
  .sacraments-grid { grid-template-columns: 1fr; }
  .gallery-grid    { grid-template-columns: 1fr 1fr; }
}
