/* Engelhard Christian Church site styles */
:root {
  --navy: #1a2744;
  --navy-deep: #10182c;
  --navy-soft: #243556;
  --burgundy: #7a3040;
  --gold: #c4a35a;
  --gold-light: #e6d3a3;
  --cream: #f6f1e8;
  --paper: #fdfbf7;
  --ink: #2a2724;
  --muted: #5c574f;
  --line: rgba(26, 39, 68, 0.12);
  --shadow: 0 18px 40px rgba(16, 24, 44, 0.12);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.05rem;
}
img, svg, iframe { max-width: 100%; }
a { color: var(--burgundy); }
a:hover { color: var(--navy); }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }


.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  background: var(--navy);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 16px rgba(16, 24, 44, .25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-text span {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  width: 2.6rem;
  height: 2.4rem;
  border: 1px solid rgba(230, 211, 163, .35);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: .55rem .5rem;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--gold-light);
  margin: 5px 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .15rem 1.15rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: #f3ebda;
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(196,163,90,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #3a2240 100%);
  color: var(--cream);
  padding: 4.5rem 0 4.2rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: linear-gradient(to bottom right, transparent 49%, var(--paper) 50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  color: var(--gold-light);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  margin: 0 0 .8rem;
}
.hero h1, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  margin: 0 0 1rem;
  color: #fff;
}
.lede, .hero p {
  font-size: 1.15rem;
  max-width: 38rem;
  color: #e8dfcf;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.8rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-ghost {
  border-color: rgba(230, 211, 163, .5);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-navy {
  background: var(--navy);
  color: var(--cream);
}
.btn-navy:hover { background: var(--navy-soft); color: #fff; }
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }

.hero-card {
  background: rgba(253, 251, 247, .08);
  border: 1px solid rgba(230, 211, 163, .28);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  backdrop-filter: blur(8px);
}
.hero-card h2 {
  margin: 0 0 .8rem;
  font-size: 1.55rem;
  color: #fff;
}
.hero-card dl { margin: 0; }
.hero-card dt {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: .85rem;
}
.hero-card dd {
  margin: .15rem 0 0;
  color: #f3ebda;
}
.placeholder {
  display: inline-block;
  background: #f3e3b8;
  color: #4a3a12;
  padding: .05rem .45rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: .95em;
}

section { padding: 4rem 0; }
.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 0 0 .6rem;
  color: var(--navy);
}
.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}
.band { background: var(--cream); }
.band-navy {
  background: var(--navy);
  color: var(--cream);
}
.band-navy .section-title { color: #fff; }
.band-navy .section-intro { color: #d9d0bf; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: .2rem 0 .5rem;
  font-size: 1.45rem;
  color: var(--navy);
}
.icon-line {
  width: 36px;
  height: 3px;
  background: var(--gold);
  margin-bottom: .85rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}
.map-frame, .video-frame {
  border: 0;
  border-radius: 16px;
  width: 100%;
  min-height: 320px;
  box-shadow: var(--shadow);
  background: #ddd;
}
.video-frame { aspect-ratio: 16/9; min-height: 0; }

.sermon-list {
  display: grid;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sermon-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.sermon-list a:hover { border-color: var(--gold); }
.sermon-list strong { color: var(--navy); display: block; }
.sermon-list span { color: var(--muted); font-size: .92rem; }

.note {
  background: #fff8ea;
  border-left: 4px solid var(--gold);
  padding: .9rem 1rem;
  border-radius: 0 10px 10px 0;
  color: #3f3828;
}
.prose p { margin: 0 0 1rem; max-width: 42rem; }
.prose h2 { margin: 2rem 0 .7rem; color: var(--navy); }
.prose h3 { font-size: 1.35rem; margin: 0 0 .35rem; color: var(--navy); }
.beliefs {
  margin: 1.2rem 0 2rem;
  max-width: 42rem;
}
.beliefs article {
  margin: 0 0 1.25rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--line);
}
.beliefs article:last-child { border-bottom: 0; padding-bottom: 0; }
.beliefs p { margin: 0 0 .35rem; max-width: none; }
.beliefs .refs {
  display: block;
  font-size: .92rem;
  color: var(--muted);
  font-style: normal;
}

.pastor-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 2.2rem;
  align-items: start;
}
.pastor-photo {
  aspect-ratio: 3 / 4;
  min-height: 280px;
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 1.2rem;
  font-size: .95rem;
}
.pastor-photo p { margin: 0; max-width: 12rem; }

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.contact-list strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .2rem;
}

form {
  display: grid;
  gap: .85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
label { font-weight: 600; color: var(--navy); }
input, textarea, select {
  width: 100%;
  margin-top: .3rem;
  padding: .7rem .8rem;
  border: 1px solid #d7d0c4;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
input:focus, textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
textarea { min-height: 8rem; resize: vertical; }

.site-footer {
  background: var(--navy-deep);
  color: #d7d0c0;
  padding: 2.5rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.site-footer h2 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 .6rem;
}
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
  font-size: .88rem;
  color: #b5ae9f;
}

@media (max-width: 880px) {
  .hero-grid, .split, .cards, .contact-grid, .footer-grid, .pastor-layout {
    grid-template-columns: 1fr;
  }
  .nav-burger { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    padding: .6rem 1.2rem 1rem;
    gap: 0;
  }
  .main-nav a { padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .hero { padding-top: 3rem; }
}

/* Church photos (draft) */
.hero.hero-photo {
  background:
    linear-gradient(90deg, rgba(16,24,44,.78) 0%, rgba(16,24,44,.45) 45%, rgba(16,24,44,.10) 100%),
    url("images/church-rainbow.jpg") center 40% / cover no-repeat,
    var(--navy-deep);
  padding: 6rem 0 5.5rem;
}
.hero.hero-photo h1,
.hero.hero-photo .lede { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero.hero-photo .hero-card { background: rgba(16,24,44,.78); backdrop-filter: blur(3px); }
.photo-right {
  float: right;
  width: min(42%, 340px);
  margin: .3rem 0 1.2rem 1.8rem;
}
.photo-right img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(16,24,44,.22);
  border: 3px solid #fff;
}
.photo-right figcaption {
  font-size: .85rem;
  color: #6b6458;
  margin-top: .45rem;
  text-align: center;
}
@media (max-width: 880px) {
  .hero.hero-photo {
    background:
      linear-gradient(180deg, rgba(16,24,44,.55) 0%, rgba(16,24,44,.85) 60%),
      url("images/church-rainbow.jpg") center top / cover no-repeat,
      var(--navy-deep);
    padding: 4rem 0 4rem;
  }
  .photo-right { float: none; width: 100%; max-width: 420px; margin: 0 auto 1.4rem; }
}

/* Ministries list */
.ministry-list{list-style:none;padding:0;margin:0 0 2rem}
.ministry-list li{position:relative;padding:.55rem 0 .55rem 1.6rem;border-bottom:1px solid rgba(0,0,0,.07);line-height:1.6}
.ministry-list li:last-child{border-bottom:0}
.ministry-list li::before{content:"";position:absolute;left:0;top:1.2rem;width:.55rem;height:.55rem;border-radius:50%;background:#b8973f}
.ministry-list strong{color:#1c2340}

/* History page */
.officer-list { max-width: 42rem; }
.prose::after { content: ""; display: table; clear: both; }

/* Past pastors */
.pastor-list{list-style:none;padding:0;margin:0 0 2rem;display:grid;grid-template-columns:1fr 1fr;column-gap:2.5rem;max-width:46rem;grid-auto-flow:column;grid-template-rows:repeat(9,auto)}
.pastor-list li{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px solid rgba(0,0,0,.07);line-height:1.5}
.pastor-list strong{color:#1c2340;font-weight:600}
.pastor-list span{color:#6b6f7b;white-space:nowrap;text-align:right}
@media (max-width:640px){.pastor-list{grid-template-columns:1fr;grid-auto-flow:row;grid-template-rows:none}}

/* ===== Hero mockup A: lighter left-to-right overlay, photo on the right ===== */
.hero.hero-a {
  background: var(--navy-deep);
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.hero.hero-a::after { display: none; }
.hero-a-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  z-index: 0;
  pointer-events: none;
}
.hero-a-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 24% 42%;
  display: block;
}
.hero-a-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--navy-deep) 0%,
    rgba(16, 24, 44, .5) 12%,
    rgba(16, 24, 44, .18) 28%,
    rgba(16, 24, 44, .04) 44%,
    transparent 60%
  );
  z-index: 1;
}
.hero-a-inner {
  position: relative;
  z-index: 1;
  padding: 4.2rem 0 2.4rem;
  flex: 1 1 auto;
}
.hero-a-copy {
  width: min(38.5rem, 100%);
  min-width: 0;
}
.hero-a h1 {
  overflow-wrap: anywhere;
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}
.hero-a .lede {
  text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}
.hero-a-join {
  position: relative;
  z-index: 1;
  background: rgba(16, 24, 44, .78);
  border-top: 1px solid rgba(230, 211, 163, .22);
  padding: 1.25rem 0 1.45rem;
  backdrop-filter: blur(8px);
}
.hero-a-join h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  color: #fff;
  margin: 0 0 .95rem;
}
.hero-a-join .join-facts {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.8fr) minmax(0, 1.35fr) minmax(0, .7fr) minmax(0, 1.4fr);
  gap: 1rem 1.4rem;
  align-items: start;
}
.hero-a-join .join-facts h3 {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 .25rem;
}
.hero-a-join .join-facts p {
  margin: 0;
  color: #f3ebda;
  font-size: 1.02rem;
  line-height: 1.45;
}
@media (max-width: 1024px) {
  .hero-a-join .join-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .hero-a-media {
    position: relative;
    width: 100%;
    height: 230px;
  }
  .hero-a-media img { object-position: 35% 40%; }
  .hero-a-media::before {
    background: linear-gradient(180deg, transparent 55%, rgba(16, 24, 44, .35) 100%);
  }
  .hero-a-inner { padding: 1.7rem 0 1.5rem; }
  .hero-a-copy { width: 100%; }
  .hero-a-join { background: rgba(16, 24, 44, .94); }
}
@media (max-width: 600px) {
  .hero-a-join .join-facts { grid-template-columns: 1fr; }
  .hero-a-join .join-facts-wide { grid-column: auto; }
}
