/* ==========================================================================
   Our Lady of Perpetual Help Catholic Church, Dromana — Site Styles
   Palette: Marian navy blue, liturgical gold, warm cream
   Fonts: Cormorant Garamond (headings), Karla (body)
   ========================================================================== */

:root {
  --navy-900: #101d38;
  --navy-800: #182a4c;
  --navy-700: #223763;
  --navy-600: #30497c;
  --gold-700: #9a7333;
  --gold-600: #b0853f;
  --gold-500: #c69a4c;
  --gold-400: #d9b972;
  --cream: #f7f2e8;
  --cream-2: #efe6d4;
  --ink: #232430;
  --ink-soft: #565766;
  --white: #ffffff;
  --line: rgba(35, 36, 48, 0.12);
  --shadow-sm: 0 4px 18px rgba(16, 29, 56, 0.08);
  --shadow-md: 0 20px 50px rgba(16, 29, 56, 0.16);
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.08;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: 0;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 600; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 600; }

a { color: var(--navy-700); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--gold-700); }
img { max-width: 100%; display: block; }
p { color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Karla", sans-serif; font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-700);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 30px; height: 1.5px; background: var(--gold-500); display: inline-block; }
.eyebrow.center { justify-content: center; }

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Karla", sans-serif; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.03em; padding: 15px 32px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-primary { background: var(--gold-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-500); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: rgba(16,29,56,0.25); }
.btn-ghost:hover { background: var(--navy-900); color: #fff; transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--cream-2); transform: translateY(-3px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); transform: translateY(-3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 232, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-400);
  display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; color: var(--navy-900); font-weight: 600; }
.brand-text span { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-weight: 600; font-size: 0.92rem; color: var(--ink);
  padding: 10px 14px; border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { background: rgba(34, 55, 99, 0.1); color: var(--navy-800); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; background: var(--navy-800); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 10px; cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Hero */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(9,16,32,0.92) 0%, rgba(16,29,56,0.78) 45%, rgba(16,29,56,0.42) 100%);
}
.hero-inner { padding: 130px 0; max-width: 740px; }
.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::before { background: var(--gold-400); }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero p { color: rgba(255,255,255,0.9); font-size: 1.22rem; max-width: 54ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-verse {
  position: absolute; bottom: 34px; right: 24px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px); padding: 12px 22px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; font-style: italic; letter-spacing: 0.02em;
}

/* Sections */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; }

.bg-navy { background: var(--navy-900); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,0.82); }
.bg-cream2 { background: var(--cream-2); }

/* Mass times strip */
.masstimes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.mass-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border-top: 3px solid var(--gold-500);
}
.mass-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mass-card .day { font-family: "Cormorant Garamond", serif; font-size: 1.7rem; color: var(--navy-900); font-weight: 600; }
.mass-card .time { margin-top: 8px; font-weight: 700; color: var(--gold-700); font-size: 1.05rem; }
.mass-card .note { font-size: 0.9rem; margin-top: 4px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 66px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.split-media .caption {
  position: absolute; left: 20px; bottom: 20px; background: rgba(16,29,56,0.86); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; backdrop-filter: blur(6px);
}
.split-body h2 { margin-bottom: 22px; }
.split-body p + p { margin-top: 16px; }
.check-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.check-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--gold-600); margin-top: 3px; }

/* Grid cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-media { height: 220px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 12px; }
.card-body p { flex: 1; }
.card-tag {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-700); background: rgba(176, 133, 63, 0.12);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* Feature */
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease);
}
.feature:hover { transform: translateY(-6px); }
.feature-icon {
  width: 58px; height: 58px; border-radius: 50%; background: var(--navy-800); color: var(--gold-400);
  display: grid; place-items: center; margin-bottom: 22px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 10px; }

/* Sacraments list */
.sacraments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.sacrament {
  display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: flex-start;
}
.sacrament .si {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: rgba(198, 154, 76, 0.14); color: var(--gold-700);
  display: grid; place-items: center; font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 700;
}
.sacrament h3 { font-size: 1.4rem; margin-bottom: 4px; }
.sacrament p { font-size: 0.98rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { padding-top: 20px; border-top: 2px solid var(--gold-500); }
.step .n { font-family: "Cormorant Garamond", serif; font-size: 2.6rem; color: var(--gold-600); font-weight: 600; line-height: 1; }
.step h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.step p { font-size: 0.98rem; }

/* Quote / verse */
.quote-block { max-width: 900px; margin: 0 auto; text-align: center; }
.quote-block blockquote { font-family: "Cormorant Garamond", serif; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.32; color: #fff; font-weight: 500; font-style: italic; }
.quote-block .cite { margin-top: 26px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold-400); text-transform: uppercase; font-size: 0.85rem; }

/* CTA banner */
.cta-banner {
  background: var(--navy-800); border-radius: var(--radius-lg); padding: 66px 58px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(217,185,114,0.28), transparent 70%); }
.cta-banner h2 { color: #fff; max-width: 20ch; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 46ch; margin-top: 12px; position: relative; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* Page hero */
.page-hero { background: var(--navy-900); color: #fff; padding: 96px 0 82px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(217,185,114,0.2), transparent 70%); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 62ch; margin-top: 18px; font-size: 1.18rem; }
.breadcrumb { font-size: 0.84rem; color: var(--gold-400); margin-bottom: 20px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.breadcrumb a { color: var(--gold-400); }

/* Values / rows */
.value-row { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-row .vi { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; background: rgba(34,55,99,0.1); color: var(--navy-700); display: grid; place-items: center; }
.value-row .vi svg { width: 26px; height: 26px; }
.value-row h3 { margin-bottom: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.info-card .ii { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--navy-800); color: var(--gold-400); display: grid; place-items: center; }
.info-card .ii svg { width: 24px; height: 24px; }
.info-card h3 { font-size: 1.25rem; margin-bottom: 3px; }
.info-card p, .info-card a { font-size: 1rem; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--navy-900); font-size: 0.95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: var(--cream); color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(34,55,99,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.form-success { display: none; background: rgba(34,55,99,0.1); border: 1px solid rgba(34,55,99,0.3); color: var(--navy-800); padding: 14px 18px; border-radius: 8px; font-weight: 700; margin-top: 18px; }
.form-success.show { display: block; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 24px 0; font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: var(--navy-900); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-q svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--gold-700); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding-bottom: 24px; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 74px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .brand-text strong { color: #fff; }
.site-footer p { color: rgba(255,255,255,0.65); margin-top: 16px; max-width: 36ch; }
.footer-col h4 { color: #fff; font-family: "Karla", sans-serif; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.72); font-weight: 600; font-size: 0.96rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 8px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.8); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .masstimes { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .split-media img { min-height: 340px; }
  .sacraments { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 46px 34px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 18px 24px 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform 0.4s var(--ease); gap: 4px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: grid; }
  .masstimes, .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 68px 0; }
  .hero-inner { padding: 100px 0; }
}
