/* ══════════════════════════════════════════════════════════════
   Christ Episcopal Church — Elizabeth City, NC
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --slate:    #1E2A38;
  --slate-m:  #1A2430;
  --slate-d:  #141E2A;
  --slate-dd: #0E1620;
  --gold:     #C8A85A;
  --gold-dim: rgba(200,168,90,0.12);
  --gold-mid: rgba(200,168,90,0.45);
  --gold-bright: #D4B468;
  --cream:    #F0EDE6;
  --cream-d:  rgba(240,237,230,0.65);
  --red-soft: #9A3030;
  --border:   rgba(200,168,90,0.08);
  --border-h: rgba(200,168,90,0.18);
}

html { scroll-behavior: smooth; }
body {
  background: var(--slate-dd);
  color: var(--cream);
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ──────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,22,32,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--cream);
}
.nav-cross { font-size: 24px; color: var(--gold); }
.nav-logo { height: 32px; width: auto; }
.nav-name {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex; gap: 2px; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--cream-d); text-decoration: none;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px; font-weight: 400;
  padding: 7px 14px; border-radius: 5px;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold); background: var(--gold-dim);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--slate-dd) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 5px !important;
  margin-left: 6px;
}
.nav-cta:hover { background: var(--gold-bright) !important; }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 24px; cursor: pointer; padding: 8px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; background: rgba(14,22,32,0.98);
    border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 28px; border-radius: 0; }
  .nav-cta { margin: 8px 20px !important; text-align: center; }
}

/* ── Page Header ─────────────────────────────────────────────── */
.page-header {
  padding: 100px 28px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--slate) 0%, var(--slate-d) 100%);
  border-bottom: 1px solid var(--border);
}
.page-header-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold); margin-bottom: 14px;
  text-transform: uppercase;
}
.page-header h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 300; line-height: 1.2;
  max-width: 700px; margin: 0 auto;
}
.page-header-sub {
  font-size: 17px; color: var(--cream-d);
  max-width: 560px; margin: 14px auto 0;
  line-height: 1.6;
}

/* ── Content ─────────────────────────────────────────────────── */
.content {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 28px 80px;
  width: 100%;
}
.content-wide {
  max-width: 1140px;
}

.section {
  margin-bottom: 64px;
}
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.25em;
  color: var(--gold); margin-bottom: 10px;
  text-transform: uppercase;
}
.section h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 300; margin-bottom: 16px;
  line-height: 1.2;
}
.prose {
  font-size: 17px; color: var(--cream-d); line-height: 1.85;
  max-width: 680px;
}
.prose p { margin-bottom: 18px; }
.prose strong { color: var(--cream); font-weight: 600; }

/* ── Cards ────────────────────────────────────────────────────── */
.card-grid {
  display: grid; gap: 20px; margin-top: 28px;
}
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; } }

.card {
  background: rgba(200,168,90,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-h); }
.card-accent { border-left: 3px solid var(--gold); }
.card h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--gold); margin-bottom: 10px;
}
.card p {
  font-size: 15px; color: var(--cream-d); line-height: 1.7;
}

/* ── People Grid ──────────────────────────────────────────────── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px; margin-top: 28px;
}
.person {
  text-align: center;
  padding: 28px 16px 24px;
  background: rgba(200,168,90,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.person:hover { border-color: var(--border-h); }
.person-photo {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gold-dim);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--gold-mid);
  overflow: hidden;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--cream);
  margin-bottom: 2px;
}
.person-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--gold); letter-spacing: 0.06em;
}

/* ── Service Times ────────────────────────────────────────────── */
.times-row {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px;
}
.time-card {
  flex: 1; min-width: 200px;
  text-align: center;
  padding: 24px;
  background: var(--gold-dim);
  border: 1px solid var(--border-h);
  border-radius: 10px;
}
.time-day {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 8px;
}
.time-val {
  font-size: 24px; font-weight: 600; color: var(--cream);
  font-family: 'Instrument Sans', sans-serif;
}
.time-loc {
  font-size: 14px; color: var(--cream-d); margin-top: 4px;
}

/* ── Stat Row ─────────────────────────────────────────────────── */
.stat-row {
  display: flex; gap: 48px; justify-content: center;
  margin: 40px 0; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-size: 38px; font-weight: 600; color: var(--gold);
  font-family: 'Instrument Sans', sans-serif;
}
.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--cream-d); margin-top: 4px;
}

/* ── Announcements ────────────────────────────────────────────── */
.announce-list {
  display: flex; flex-direction: column; gap: 14px; margin-top: 24px;
}
.announce {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px; border-radius: 10px;
  background: rgba(200,168,90,0.03);
  border: 1px solid var(--border);
}
.announce-date {
  flex-shrink: 0; text-align: center;
  padding: 8px 12px; background: var(--gold-dim);
  border-radius: 6px; min-width: 54px;
}
.announce-date-m {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.15em; color: var(--gold);
}
.announce-date-d {
  font-size: 22px; font-weight: 600; color: var(--gold);
  font-family: 'Instrument Sans', sans-serif;
}
.announce-title {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px; font-weight: 600; color: var(--cream);
  margin-bottom: 3px;
}
.announce-body {
  font-size: 14px; color: var(--cream-d); line-height: 1.6;
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--gold); margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(200,168,90,0.04);
  border: 1px solid rgba(200,168,90,0.12);
  border-radius: 6px;
  padding: 11px 14px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 16px; color: var(--cream);
  outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--gold); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-check {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px; font-size: 15px; color: var(--cream-d);
  cursor: pointer;
}
.form-check input { accent-color: var(--gold); width: 16px; height: 16px; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 12px 28px; border-radius: 6px;
  text-decoration: none; cursor: pointer;
  border: none; transition: all 0.15s;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--slate-dd); }
.btn-gold:hover { background: var(--gold-bright); color: var(--slate-dd); }
.btn-outline {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(240,237,230,0.2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { display: block; width: 100%; }

/* ── Contact Grid ──────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 28px;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item {
  text-align: center; padding: 30px;
  background: rgba(200,168,90,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.contact-icon { font-size: 22px; color: var(--gold); margin-bottom: 10px; }
.contact-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--gold-mid); margin-bottom: 8px;
}
.contact-value { font-size: 16px; color: var(--cream); }
.contact-value a { color: var(--cream); border-bottom: 1px solid rgba(200,168,90,0.2); }
.contact-value a:hover { color: var(--gold); }

/* ── Hero (Home only) ──────────────────────────────────────────── */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--slate-dd) 0%, var(--slate) 40%, var(--slate-d) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 25%, rgba(200,168,90,0.05) 0%, transparent 65%);
}
.hero-bg-cross {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  font-size: min(28vw, 260px);
  color: rgba(200,168,90,0.035);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 680px; padding: 0 28px;
}
.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--gold); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 300; line-height: 1.18;
  margin-bottom: 16px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 18px; color: var(--cream-d);
  margin-bottom: 36px; line-height: 1.65;
}
.hero-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── Live Player ──────────────────────────────────────────────── */
.player-wrap {
  position: relative;
  width: 100%; padding-top: 56.25%;
  background: #000; border-radius: 10px;
  overflow: hidden; margin-top: 28px;
  border: 1px solid var(--border);
}
.player-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--slate-dd);
  border-top: 1px solid var(--border);
  padding: 48px 28px;
  text-align: center;
  margin-top: auto;
}
.footer-affiliate {
  display: flex; gap: 28px; justify-content: center;
  margin-bottom: 20px; flex-wrap: wrap;
}
.footer-affiliate a {
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--gold-mid); letter-spacing: 0.06em;
}
.footer-affiliate a:hover { color: var(--gold); }
.footer-links {
  display: flex; gap: 20px; justify-content: center;
  margin-bottom: 16px; flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px; color: var(--cream-d);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: rgba(240,237,230,0.25);
  letter-spacing: 0.06em;
}

/* ── Utility ──────────────────────────────────────────────────── */
.divider {
  max-width: 1000px; margin: 0 auto;
  border: none; border-top: 1px solid var(--border);
}
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.mb-lg { margin-bottom: 48px; }
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
@media (max-width: 768px) { .split { grid-template-columns: 1fr; } }
