/* ============================================================
   Our Lady of Perpetual Help Catholic Church — Dromana
   Design System: Organic & Earthy · Playfair Display + Manrope
   ============================================================ */

:root {
  --bg: #FDFBF7;
  --surface: #F4F1EA;
  --primary: #1B4332;
  --primary-dark: #133124;
  --terracotta: #8E2B2B;
  --terracotta-dark: #6E2020;
  --gold: #D4AF37;
  --gold-soft: #F0E6C8;
  --text: #1A1C1A;
  --muted: #4A4D4A;
  --border: #E5E1D8;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(27, 67, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(27, 67, 50, 0.10);
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--primary); font-weight: 700; }

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; line-height: 1.35; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.15rem; color: var(--text); }

.overline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.overline--gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-donate { background: var(--terracotta); color: #FDFBF7; }
.btn-donate:hover { background: var(--terracotta-dark); color: #fff; }

.btn-primary { background: var(--primary); color: #FDFBF7; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #FDFBF7; }

.btn-light { background: var(--gold); color: var(--primary-dark); }
.btn-light:hover { background: #c29f2c; color: var(--primary-dark); }

.btn-outline-light { background: transparent; color: #FDFBF7; border-color: rgba(253,251,247,0.5); }
.btn-outline-light:hover { background: rgba(253,251,247,0.12); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark svg { width: 22px; height: 22px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--primary);
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.main-nav { display: flex; align-items: center; gap: 0.2rem; }

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--primary); background: var(--surface); }
.nav-link.active { color: var(--primary); border-bottom: 2px solid var(--gold); border-radius: 0; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--primary); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 640px;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 64px 90px max(24px, calc((100vw - 1180px) / 2 + 24px));
  background: var(--bg);
}

.hero-content h1 { margin-bottom: 1.4rem; }
.hero-content .lead { max-width: 34rem; margin-bottom: 2.2rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}
.trust-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.hero-media { position: relative; overflow: hidden; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27,67,50,0.28), rgba(27,67,50,0) 40%);
}

.hero-badge {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 2;
  background: rgba(253, 251, 247, 0.94);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 300px;
}
.hero-badge strong { display: block; font-family: var(--serif); color: var(--primary); font-size: 1rem; }
.hero-badge span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--primary);
  color: #FDFBF7;
  padding: 84px 0 76px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50%;
}
.page-hero h1 { color: #FDFBF7; margin-bottom: 1rem; }
.page-hero p { color: rgba(253, 251, 247, 0.82); max-width: 46rem; font-size: 1.08rem; }
.page-hero .overline { color: var(--gold); }

.breadcrumb {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.65);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--surface { background: var(--surface); }
.section--tight { padding: 64px 0; }

.section-head { max-width: 46rem; margin-bottom: 3.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.two-col--media-left > .media { order: -1; }

.media-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-frame--tall img { aspect-ratio: 3 / 3.6; }

.img-caption {
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  margin-top: 0.7rem;
}

.check-list { list-style: none; margin: 1.4rem 0 2rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  color: var(--text);
  font-weight: 500;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 0.36rem;
  top: 0.55rem;
  width: 0.42rem;
  height: 0.24rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.95rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--terracotta);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* Mass time cards */
.time-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem;
}
.time-card--highlight { border-top-color: var(--gold); background: var(--gold-soft); }
.time-card h3 { font-size: 1.15rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
.time-card h3 svg { width: 20px; height: 20px; }
.time-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.time-row:last-child { border-bottom: none; }
.time-row span:first-child { color: var(--muted); }
.time-row strong { color: var(--primary); font-weight: 700; white-space: nowrap; }

/* Sacrament tiles */
.sacrament-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
}
.sacrament-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.sacrament-tile:hover { background: #fff; border-color: var(--gold); transform: translateY(-3px); }
.sacrament-tile--wide { grid-column: span 3; }
.sacrament-tile--third { grid-column: span 2; }
.sacrament-tile h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.sacrament-tile p { font-size: 0.93rem; }
.sacrament-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--primary); color: #FDFBF7; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label { font-size: 0.85rem; color: rgba(253,251,247,0.78); margin-top: 0.4rem; }

/* ---------- News ---------- */
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.news-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-body { padding: 1.8rem; }
.news-date {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.7rem;
  display: block;
}
.news-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.news-body p { font-size: 0.93rem; }

/* ---------- Quote / verse band ---------- */
.verse-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}
.verse-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--primary);
  max-width: 46rem;
  margin: 0 auto 1rem;
  line-height: 1.45;
}
.verse-band cite {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--primary);
  color: #FDFBF7;
  padding: 88px 0;
  text-align: center;
}
.cta-band h2 { color: #FDFBF7; margin-bottom: 1rem; }
.cta-band p { color: rgba(253,251,247,0.8); max-width: 40rem; margin: 0 auto 2.2rem; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }

.info-block { margin-bottom: 2.2rem; }
.info-block h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; margin-bottom: 0.5rem; }
.info-block h3 svg { width: 20px; height: 20px; flex-shrink: 0; }
.info-block p, .info-block a { font-size: 0.97rem; }
.info-block a { color: var(--terracotta); font-weight: 600; text-decoration: none; }
.info-block a:hover { text-decoration: underline; }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.6rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.45rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.12);
}
.form-field textarea { min-height: 130px; resize: vertical; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.5rem;
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Donate block ---------- */
.donate-panel {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.6rem;
}
.donate-panel h3 { margin-bottom: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(253, 251, 247, 0.82);
  padding-top: 88px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 64px;
}
.footer-grid h4 {
  color: #FDFBF7;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.footer-brand .brand-name { color: #FDFBF7; font-size: 1.2rem; }
.footer-brand .brand-sub { color: var(--gold); }
.footer-brand p { font-size: 0.9rem; color: rgba(253,251,247,0.72); margin-top: 1.2rem; }

.charity-badges { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
.charity-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
}
.charity-badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.charity-badge a { color: var(--gold); text-decoration: underline; }
.charity-badge a:hover { color: #fff; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(253, 251, 247, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }

.footer-contact p { font-size: 0.9rem; color: rgba(253,251,247,0.78); margin-bottom: 0.7rem; }
.footer-contact a { color: var(--gold); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.footer-times { list-style: none; font-size: 0.9rem; }
.footer-times li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(253, 251, 247, 0.12);
}
.footer-times strong { color: #FDFBF7; font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(253, 251, 247, 0.14);
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: rgba(253, 251, 247, 0.6);
}
.footer-bottom a { color: rgba(253, 251, 247, 0.75); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sacrament-grid { grid-template-columns: repeat(2, 1fr); }
  .sacrament-tile--wide, .sacrament-tile--third { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 72px 24px; }
  .hero-media { min-height: 380px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 0.2rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-link.active { border-bottom: 1px solid var(--border); border-left: 3px solid var(--gold); padding-left: 0.9rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-donate { padding: 0.65rem 1.1rem; font-size: 0.85rem; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .two-col--media-left > .media { order: 0; }
  .section { padding: 64px 0; }
  .form-card, .donate-panel { padding: 1.8rem; }
}

@media (max-width: 560px) {
  .grid-3, .grid-2, .sacrament-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .brand-name { font-size: 0.92rem; }
  .brand-sub { font-size: 0.6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .hero-badge { left: 16px; bottom: 16px; right: 16px; max-width: none; }
}
