/* ==========================================================================
   Parousia Church: Bridal ivory & gold
   Colors and fonts are set once here in :root.
   ========================================================================== */

:root {
  --ivory: #fbf7ef;
  --paper: #fffdf9;
  --cream: #f4ecdd;
  --linen: #ece1cc;
  --line: #e4d7bf;
  --gold: #b8893a;
  --gold-deep: #8c6420;      /* gold for text on light backgrounds */
  --gold-soft: #e3c78f;
  --ink: #2c2620;
  --ink-soft: #4a4139;
  --muted: #74685c;
  --night: #2a221b;          /* deep warm band */

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(76, 54, 20, .35);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
h4 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* Gold ornament rule */
.rule {
  display: flex; align-items: center; gap: 12px;
  width: 140px; margin: 1.2rem 0 1.6rem; color: var(--gold);
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.rule span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.8em;
  border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 24px -12px rgba(140, 100, 32, .7); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-outline { border-color: var(--gold); color: var(--gold-deep); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .7em 1.3em; font-size: .75rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(76,54,20,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); }
.logo-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.brand-sub { font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-top: 5px; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 600;
  position: relative; padding: 6px 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--ink); }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    display: none;
  }
  #site-header.open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 18px; }
  #site-header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  #site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 130px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(236, 200, 128, .42), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 120%, rgba(227, 199, 143, .35), transparent 70%),
    var(--ivory);
}
.hero::before { /* soft rays of light */
  content: ""; position: absolute; inset: -40% -20% auto; height: 160%;
  background: repeating-conic-gradient(from 0deg at 50% 32%, rgba(184,137,58,.07) 0deg 2deg, transparent 2deg 12deg);
  -webkit-mask: radial-gradient(circle at 50% 32%, #000 0, transparent 55%);
          mask: radial-gradient(circle at 50% 32%, #000 0, transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-mark { display: block; width: 74px; height: 74px; margin: 0 auto 26px; color: var(--gold); }
.hero h1 { max-width: 20ch; margin: 0 auto .35em; }
.hero h1 em { color: var(--gold-deep); white-space: nowrap; }
.hero .lead { max-width: 620px; margin: 0 auto 2.2rem; }
.hero-verse { margin-top: 3.2rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.hero-verse span { display: block; font-family: var(--sans); font-style: normal; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-top: 6px; }

.page-hero { padding: 96px 0 72px; text-align: center; background:
  radial-gradient(ellipse 55% 80% at 50% 0%, rgba(236, 200, 128, .35), transparent 70%), var(--ivory); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero .lead { max-width: 640px; margin: 0 auto; }

/* ---------- Info bar ---------- */
.info-bar { margin-top: -56px; position: relative; z-index: 2; padding: 0; }
.info-card {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card > div { padding: 30px 32px; }
.info-card > div + div { border-left: 1px solid var(--line); }
.info-card h4 { margin-bottom: .4rem; }
.info-card .big { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; color: var(--ink); }
.info-card p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) {
  .info-card { grid-template-columns: 1fr; }
  .info-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.reverse > :first-child { order: 0; } }

.photo-frame { position: relative; }
.photo-frame img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.photo-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold-soft); border-radius: var(--radius); z-index: -1;
}
.photo-frame.wide img { aspect-ratio: 4/3; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 30px; position: relative;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.pillar .num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .1em; }
.pillar h3 { margin: .5rem 0 .6rem; font-size: 1.55rem; }
.pillar p { color: var(--muted); font-size: .96rem; margin-bottom: .8rem; }
.pillar .ref { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Scripture band ---------- */
.scripture-band {
  background:
    radial-gradient(ellipse 50% 70% at 50% 50%, rgba(227,199,143,.16), transparent 70%),
    var(--night);
  color: #f3e9d6; text-align: center; padding: 110px 0;
}
.scripture-band blockquote { margin: 0 auto; max-width: 860px; }
.scripture-band p {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.3; font-style: italic; margin-bottom: 1.2rem;
}
.scripture-band cite { font-style: normal; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.lamp { width: 46px; height: 46px; margin: 0 auto 28px; color: var(--gold-soft); }
.lamp .flame { transform-origin: 50% 90%; animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%,100% { transform: scale(1) rotate(0); opacity: 1; } 30% { transform: scale(.94, 1.05) rotate(-2deg); } 60% { transform: scale(1.04, .97) rotate(2deg); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .lamp .flame { animation: none; } }

/* ---------- Cards / photo strip ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .3s, box-shadow .3s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 26px 26px 28px; }
.card-body h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.card-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.card .more { display: inline-block; margin-top: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Mission list ---------- */
.mission { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .mission { grid-template-columns: 1fr; } }
.mission li { list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.mission ul { padding: 0; margin: 0; display: contents; }
.mission strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--ink); margin-bottom: 4px; }
.mission span { color: var(--muted); font-size: .96rem; }

/* ---------- Beliefs ---------- */
.faith-text p { font-size: 1.08rem; color: var(--ink-soft); }
.faith-text .refs { display: block; font-size: .8rem; letter-spacing: .06em; color: var(--gold-deep); font-weight: 600; margin-top: 4px; }
.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; counter-reset: b; }
@media (max-width: 760px) { .beliefs { grid-template-columns: 1fr; } }
.belief {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 26px; counter-increment: b; position: relative;
}
.belief::before {
  content: counter(b, decimal-leading-zero);
  font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .1em;
}
.belief h3 { margin: .3rem 0 .6rem; font-size: 1.5rem; }
.belief p { color: var(--ink-soft); font-size: .98rem; margin-bottom: .9rem; }
.belief .refs { font-size: .8rem; color: var(--gold-deep); font-weight: 600; letter-spacing: .03em; margin: 0; }
.belief.featured {
  background: linear-gradient(135deg, #fffaf0, #f7ecd6);
  border-color: var(--gold-soft);
}
.belief.featured h3 { color: var(--gold-deep); }

/* ---------- Pastor ---------- */
.pastor-quote { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--gold-deep); border-left: 2px solid var(--gold-soft); padding-left: 20px; margin: 1.6rem 0; }

/* ---------- Steps (what to expect) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step .icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 14px; }
.step h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Schedule ---------- */
.schedule { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 700px) { .schedule { grid-template-columns: 1fr; } }
.time-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; text-align: center; }
.time-card .day { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.time-card .time { font-family: var(--serif); font-size: 3rem; line-height: 1.1; margin: .3rem 0; }
.time-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Map + contact ---------- */
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius); filter: sepia(.25) saturate(.85); box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list h4 { margin-bottom: 4px; }
.contact-list a { color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { color: var(--gold-deep); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form { padding: 28px 22px; } }
label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 6px; }
label .req { color: var(--gold-deep); }
input, textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,58,.18); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-size: .95rem; color: var(--muted); min-height: 1.4em; }
.form-status.ok { color: #3f6b3a; font-weight: 600; }

/* ---------- Media ---------- */
.coming-soon {
  border: 1px dashed var(--gold-soft); border-radius: var(--radius);
  padding: 56px 32px; text-align: center; background: linear-gradient(180deg, var(--paper), var(--ivory));
}
.coming-soon .icon { width: 52px; height: 52px; margin: 0 auto 18px; color: var(--gold); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery a { display: block; border-radius: 12px; overflow: hidden; position: relative; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(30, 24, 18, .92);
  display: none; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 92vw; width: auto; border-radius: 8px; }
.lightbox p { color: #e9dcc4; margin-top: 14px; font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.lb-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; border-radius: 22px; padding: 72px 32px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(236,200,128,.5), transparent 70%),
    linear-gradient(180deg, #fffaf0, #f3e6cc);
  border: 1px solid var(--gold-soft);
}
.cta p { max-width: 560px; margin-left: auto; margin-right: auto; color: var(--ink-soft); }

/* ---------- Footer ---------- */
#site-footer { background: var(--night); color: #d9ccb6; padding: 80px 0 0; font-size: .95rem; }
#site-footer a { color: #f3e9d6; text-decoration: none; }
#site-footer a:hover { color: var(--gold-soft); }
#site-footer .brand-name { color: #fff; }
#site-footer .brand-sub, #site-footer h4 { color: var(--gold-soft); }
#site-footer .brand { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-motto { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin: 22px 0 10px; font-style: italic; }
.footer-verse { font-size: .9rem; color: #b8a98f; max-width: 34ch; }
.footer-verse span { display: block; margin-top: 4px; color: var(--gold-soft); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-social { display: flex; gap: 16px; margin-top: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(227,199,143,.18); padding-top: 22px; padding-bottom: 28px;
  font-size: .82rem; color: #a3957d;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .hero { padding: 84px 0 110px; }
}
