/* ============================================================
   J. Delano Ellis II Ministries — Legacy & Training Academy
   Design system: elegant serif, regal navy & gold
   ============================================================ */

:root {
  --navy:        #0e1f3d;
  --navy-deep:   #0a1730;
  --navy-soft:   #16294b;
  --gold:        #c6a24c;
  --gold-soft:   #d8bd7e;
  --gold-deep:   #a8863a;
  --paper:       #ffffff;
  --cream:       #faf7f0;
  --cream-warm:  #f3ecdd;
  --ink:         #23262e;
  --ink-soft:    #4a4e57;
  --line:        rgba(198, 162, 76, 0.35);
  --shadow:      0 18px 50px rgba(10, 23, 48, 0.16);
  --serif-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --serif-body:    "EB Garamond", "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 20px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.25em; }

a { color: var(--gold-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

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

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; }

/* ---------- Decorative label ---------- */
.eyebrow {
  font-family: var(--serif-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 1rem;
}
.eyebrow.on-dark { color: var(--gold-soft); }

.rule {
  width: 74px; height: 2px; border: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  margin: 1.4rem 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; max-width: 1180px; margin: 0 auto; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--cream); text-decoration: none;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name {
  font-family: var(--serif-display); font-size: 1.15rem; letter-spacing: .02em;
  color: var(--navy);
}
.brand .brand-sub {
  font-size: 0.62rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep);
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--navy); font-size: 0.86rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 500; position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-deep); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1.5px; background: var(--gold);
}
.nav-donate {
  border: 1px solid var(--gold); padding: 8px 18px !important; border-radius: 2px;
  color: var(--gold-deep) !important;
}
.nav-donate:hover { background: var(--gold); color: #fff !important; }

.nav-toggle { display: none; background: none; border: 0; color: var(--navy); font-size: 1.6rem; cursor: pointer; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block; font-family: var(--serif-body); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; font-size: 0.82rem;
  padding: 15px 34px; border-radius: 2px; cursor: pointer; transition: all .22s ease;
  border: 1px solid var(--gold);
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); color: var(--cream); border-color: var(--gold-deep); }
.btn-ghost { background: transparent; color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(198,162,76,.12); color: var(--cream); }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--cream); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; background: var(--paper);
  color: var(--ink); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 24%, rgba(198,162,76,.14), transparent 58%),
    linear-gradient(180deg, #ffffff, var(--cream) 100%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto;
  padding: 78px 28px 84px;
}
.hero-copy .eyebrow { margin-bottom: 1.3rem; }
.hero .eyebrow.on-dark { color: var(--gold-deep); }
.hero h1 {
  color: var(--navy); font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 600; letter-spacing: .01em; margin-bottom: .3rem;
}
.hero .dates {
  font-family: var(--serif-display); font-style: italic;
  color: var(--gold-deep); font-size: 1.5rem; margin-bottom: 1.4rem;
}
.hero .lede { font-size: 1.24rem; color: var(--ink-soft); max-width: 33ch; }
.hero .btn-ghost { color: var(--navy); border-color: var(--navy); }
.hero .btn-ghost:hover { background: var(--navy); color: var(--cream); }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2rem; }

.hero-figure { position: relative; display: flex; justify-content: center; }
.hero-figure .portrait {
  width: 100%; max-width: 460px; aspect-ratio: 5 / 6; object-fit: cover;
  object-position: top center; border-radius: 3px;
}
.hero-figure .crest-badge {
  position: absolute; left: 8px; bottom: -20px; width: 150px; height: 150px;
  object-fit: contain; z-index: 6;
  filter: drop-shadow(0 8px 18px rgba(10,23,48,.35));
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.cream { background: var(--cream); }
.section.warm  { background: var(--cream-warm); }
/* "navy" sections are now light feature bands with navy text + gold framing */
.section.navy  {
  background: var(--cream-warm); color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section.navy h1, .section.navy h2, .section.navy h3 { color: var(--navy); }
.section.navy p { color: var(--ink-soft); }
.section.navy .eyebrow.on-dark { color: var(--gold-deep); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }
.section.navy .section-head p { color: var(--ink-soft); }

.prose { max-width: 760px; margin: 0 auto; }
.prose p:first-of-type::first-letter {
  font-family: var(--serif-display); font-size: 3.6rem; line-height: .8;
  float: left; color: var(--gold-deep); padding: 6px 12px 0 0; font-weight: 600;
}
.prose.no-cap p:first-of-type::first-letter {
  font-size: inherit; float: none; color: inherit; padding: 0;
}

/* ---------- Split feature ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: 3px; box-shadow: var(--shadow); }
.split-copy h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 38px 30px; text-align: center;
}
.pillar .num {
  font-family: var(--serif-display); font-style: italic; font-size: 2.2rem;
  color: var(--gold-deep); display: block; margin-bottom: .4rem;
}
.pillar h3 { font-size: 1.4rem; }
.pillar p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

/* ---------- Quote ---------- */
.quote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote blockquote {
  font-family: var(--serif-display); font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.4; color: var(--navy);
  margin: 0 0 1.2rem;
}
.quote cite { font-style: normal; letter-spacing: .18em; text-transform: uppercase;
  font-size: .8rem; color: var(--gold-deep); }

/* ---------- Event card ---------- */
.event-card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: 4px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto;
  padding: 46px 48px; text-align: center;
}
.event-card .tag {
  display: inline-block; background: var(--navy); color: var(--gold-soft);
  letter-spacing: .22em; text-transform: uppercase; font-size: .68rem;
  padding: 6px 16px; border-radius: 2px; margin-bottom: 1.4rem;
}
.event-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.event-meta { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 1.6rem 0 2rem; }
.event-meta .item .label {
  display: block; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem;
  color: var(--gold-deep); margin-bottom: .3rem;
}
.event-meta .item .val { font-size: 1.08rem; color: var(--ink); }

/* Two-column event (details + flyer graphic) */
.event-2col {
  display: grid; grid-template-columns: 1fr 0.82fr; gap: 46px;
  align-items: center; max-width: 1010px; margin: 0 auto;
}
.event-2col .event-card { max-width: none; margin: 0; text-align: left; }
.event-graphic { text-align: center; }
.event-graphic img {
  width: 100%; max-width: 430px; max-height: 660px; object-fit: contain;
  border-radius: 6px; box-shadow: var(--shadow); margin: 0 auto;
  border: 1px solid var(--line);
}
.event-graphic.ph { aspect-ratio: 4 / 5; max-width: 430px; margin: 0 auto; }
.event-graphic.ph > img { object-fit: contain; }
@media (max-width: 900px) {
  .event-2col { grid-template-columns: 1fr; gap: 30px; }
  .event-graphic { order: -1; }
}

/* ---------- Memorial banner ---------- */
.memorial {
  text-align: center; padding: 26px 0; background: var(--cream-warm);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.memorial p {
  margin: 0; font-family: var(--serif-display); font-style: italic;
  color: var(--gold-deep); font-size: 1.2rem;
}

/* ============================================================
   Image placeholder (shown until real images are added)
   ============================================================ */
.ph {
  position: relative; background:
    linear-gradient(135deg, #f6f1e6, #ece4d3);
  border: 1px solid rgba(198,162,76,.5);
  box-shadow: 0 16px 44px rgba(14,31,61,.12);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--gold-deep); border-radius: 3px; overflow: hidden;
}
.ph::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(198,162,76,.25);
  border-radius: 2px; pointer-events: none;
}
.ph .ph-label {
  font-family: var(--serif-body); text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; line-height: 1.7; padding: 20px; position: relative; z-index: 1;
}
.ph .ph-label strong { display:block; font-size: 1.4rem; letter-spacing: .12em; color: var(--gold-soft);
  font-family: var(--serif-display); margin-bottom: .4rem; text-transform: none; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: top center; z-index: 2; }
/* aspect ratios for placeholder frames */
.ph.frame-portrait { aspect-ratio: 5 / 6; }
.ph.frame-wide     { aspect-ratio: 3 / 2; }
.ph.frame-square   { aspect-ratio: 1 / 1; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-deep); color: #cdd4e0; padding: 62px 0 34px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.site-footer h4 {
  color: var(--gold-soft); font-family: var(--serif-body); text-transform: uppercase;
  letter-spacing: .2em; font-size: .78rem; margin-bottom: 1.1rem;
}
.site-footer a { color: #cdd4e0; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-brand .brand-name { font-family: var(--serif-display); color: var(--cream); font-size: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.social { display: flex; gap: 14px; margin-top: .4rem; }
.social a {
  width: 40px; height: 40px; border: 1px solid rgba(198,162,76,.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gold-soft);
}
.social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center;
  font-size: .82rem; color: #97a1b4; letter-spacing: .04em;
}
.footer-bottom .mem { color: var(--gold-soft); font-style: italic; font-family: var(--serif-display); font-size: 1rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero-copy .eyebrow, .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-figure { order: -1; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .social { justify-content: center; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep);
    flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden;
    transition: max-height .3s ease; border-bottom: 1px solid rgba(198,162,76,.3);
  }
  .nav-links.open { max-height: 460px; }
  .nav-links li { width: 100%; text-align: center; border-top: 1px solid rgba(255,255,255,.06); }
  /* Mobile dropdown sits on dark navy — make text readable (white), gold when active */
  .nav-links a { display: block; padding: 16px 0; color: var(--cream); }
  .nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
  .nav-toggle { display: block; }
  .nav-donate { border: 0 !important; color: var(--gold-soft) !important; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .section { padding: 60px 0; }
  .event-card { padding: 34px 24px; }
  .event-meta { gap: 24px; }
  .brand .brand-sub { display: none; }
}
