/* Christ Embassy Laurel — site styles (navy + gold, from the logo) */
:root {
  --navy: #0b1d4a;
  --navy-deep: #06122f;
  --navy-soft: #16306e;
  --gold: #d4a537;
  --gold-light: #f1d27a;
  --gold-deep: #9c7420;
  --cream: #fbf7ee;
  --ink: #1b2236;
  --muted: #5b6478;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 18, 47, 0.12);
  --max: 1180px;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-soft); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-deep);
  color: var(--gold-light);
  font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: var(--gold-light); text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); color: var(--gold-light); font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
.brand-tag { color: #c9d3ee; font-size: .78rem; font-style: italic; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  display: block; padding: 9px 11px; border-radius: 8px;
  color: #e7ecfa; text-decoration: none; font-size: .9rem; font-weight: 500;
}
.nav a:hover { color: var(--gold-light); background: rgba(255,255,255,.06); }
.nav a.active { color: var(--navy-deep); background: var(--gold); }
.nav a.live-link::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #e5484d; margin-right: 6px; vertical-align: middle;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.menu-toggle {
  display: none; background: none; border: 2px solid var(--gold); color: var(--gold-light);
  border-radius: 8px; padding: 8px 12px; font-size: .95rem; cursor: pointer;
}

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 3px solid var(--gold); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .nav a { padding: 12px 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: .97rem; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--navy-deep); }
.btn-outline { border-color: var(--gold); color: var(--gold-light); background: transparent; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(212,165,55,.28), transparent 55%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: var(--white);
  padding: 80px 0 90px;
}
.hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--gold-light); }
.hero .tagline { font-family: var(--serif); font-style: italic; color: var(--gold-light); font-size: 1.25rem; margin-bottom: 1.2em; }
.hero p.lead { color: #d3dbf1; font-size: 1.08rem; max-width: 560px; }
.hero-logo { justify-self: center; width: min(340px, 80%); filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
@media (max-width: 820px) {
  .hero { padding: 56px 0 64px; text-align: center; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: 200px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
}

.page-hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--white); padding: 56px 0 50px; border-bottom: 4px solid var(--gold);
}
.page-hero h1 { color: var(--gold-light); margin-bottom: .25em; }
.page-hero p { color: #d3dbf1; margin: 0; max-width: 680px; }

/* ---------- Sections ---------- */
section.block { padding: 70px 0; }
section.alt { background: var(--white); }
section.dark { background: var(--navy); color: #dfe6f8; }
section.dark h2, section.dark h3 { color: var(--gold-light); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--gold-deep); margin-bottom: .5em; }
section.dark .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
section.alt .card { background: var(--cream); }
section.dark .card { background: var(--navy-soft); color: #dfe6f8; box-shadow: none; }
.card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 a { text-decoration: none; color: inherit; }

.service-time { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed rgba(212,165,55,.45); gap: 12px; }
.service-time:last-child { border-bottom: 0; }
.service-time strong { font-family: var(--serif); color: var(--gold-light); }

.note {
  background: #fff7df; border-left: 4px solid var(--gold); padding: 14px 18px;
  border-radius: 8px; font-size: .92rem; color: #5a4a1e;
}

/* ---------- Live ---------- */
.live-wrap { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--gold); }
.live-frame { position: relative; padding-top: 56.25%; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #dfe6f8; padding: 24px;
  background: radial-gradient(circle at center, var(--navy-soft), var(--navy-deep));
}
.live-placeholder img { width: 110px; margin-bottom: 14px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; background: #e5484d; color: #fff; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.platforms a { background: var(--navy); color: var(--gold-light); padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: .9rem; }
.countdown { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-light); margin-top: 6px; }

/* ---------- Forms ---------- */
form.form { display: grid; gap: 14px; }
form.form label { font-weight: 600; font-size: .9rem; display: grid; gap: 6px; }
form.form input, form.form select, form.form textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfd5e3; background: #fff; width: 100%;
}
form.form input:focus, form.form textarea:focus, form.form select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-msg { font-weight: 600; }
.form-msg.ok { color: #1d7a3a; }
.form-msg.err { color: #b42318; }

/* ---------- Prayer ---------- */
.prayer {
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.8; color: var(--navy);
  background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
  border-left: 6px solid var(--gold);
}

/* ---------- Events / announcements ---------- */
.event { display: flex; gap: 18px; align-items: flex-start; }
.event-date {
  flex: 0 0 74px; text-align: center; background: var(--navy); color: var(--gold-light);
  border-radius: 12px; padding: 10px 6px; font-family: var(--serif);
}
.event-date .m { font-size: .8rem; letter-spacing: .1em; }
.event-date .d { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff1c9; color: var(--gold-deep); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- Map ---------- */
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c4e0; padding: 56px 0 20px; border-top: 4px solid var(--gold); }
.site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 820px) { .site-footer .grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--serif); color: var(--gold-light); margin: 0 0 12px; font-size: 1.05rem; }
.site-footer a { color: #dfe6f8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.footer-brand img { width: 60px; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; font-size: .84rem; text-align: center; }

/* ---------- Hero photo (replaces logo in front banner) ---------- */
.hero { padding-bottom: 0; }
.hero .container > div:first-child { padding-bottom: 80px; }
.hero-photo {
  position: relative; align-self: end; justify-self: center;
  display: flex; justify-content: center;
}
.hero-photo::before {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241,210,122,.55), rgba(212,165,55,.15) 55%, transparent 70%);
  z-index: 0;
}
.hero-photo img {
  position: relative; z-index: 1; display: block;
  height: min(540px, 70vh); width: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.45));
}
@media (max-width: 820px) {
  .hero .container > div:first-child { padding-bottom: 0; }
  .hero-photo { order: 2; margin-top: 28px; }
  .hero-photo::before { width: 300px; height: 300px; }
  .hero-photo img { height: 360px; }
}

/* ---------- Field validation ---------- */
.field-error { color: #b42318; font-size: .82rem; font-weight: 500; min-height: 0; }
.field-error:empty { display: none; }
form.form .invalid { border-color: #b42318; background: #fff6f5; }
.phone-row { display: grid; grid-template-columns: 170px 1fr; gap: 8px; }
@media (max-width: 480px) { .phone-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-card { display: flex; gap: 18px; align-items: center; }
.book-card .icon { font-size: 2.6rem; margin: 0; }

section.dark .field-error { color: #ffb4a9; }
section.dark .form-msg.err { color: #ffb4a9; }
section.dark .form-msg.ok { color: #9be3b0; }

/* ---------- Statement of faith ---------- */
.faith-intro { font-size: 1.05rem; }
.ref { color: var(--gold-deep); font-weight: 600; font-size: .9em; white-space: normal; }
.faith-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.faith-list > li {
  position: relative; background: var(--cream); border-radius: 12px; padding: 16px 18px 16px 52px;
  border-left: 4px solid var(--gold);
}
.faith-list > li::before {
  content: "✝"; position: absolute; left: 18px; top: 14px; color: var(--gold-deep); font-size: 1.1rem;
}
.faith-list ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.faith-list ul li::marker { color: var(--gold-deep); }

/* service-time contrast on light cards */
.service-time strong { color: var(--gold-deep); }
section.dark .service-time strong, .on-dark .service-time strong { color: var(--gold-light); }

/* ---------- About photo (replaces logo in "Who We Are") ---------- */
.about-photo { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.about-photo::before {
  content: ""; position: absolute; inset: 8% 10% 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,55,.35), rgba(212,165,55,.08) 60%, transparent 72%);
}
.about-photo img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 16px 26px rgba(6,18,47,.25)); }
.about-photo img { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }

/* ---------- Partnership arms (image + text rows) ---------- */
.arm { align-items: center; gap: 48px; }
.arm-photo { display: flex; justify-content: center; }
.arm-photo img {
  max-height: 480px; width: auto; max-width: 100%;
  border-radius: var(--radius);
  filter: drop-shadow(0 16px 26px rgba(6,18,47,.25));
}
@media (min-width: 760px) {
  .arm.reverse > .arm-photo { order: 2; }
}
.arm .btn-row { margin-top: 8px; }

.arm-chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.arm-chips a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--navy); color: var(--gold-light); text-decoration: none; font-size: .9rem;
}
.arm-chips a:hover { background: var(--navy-soft); }

.give-soon { margin-top: 14px; font-size: .92rem; color: var(--gold-light); }
#rhapsody, #healing-school, #innercity, #reachout, #healing-streams, #become-partner { scroll-margin-top: 90px; }

/* ---------- Text wrapping around an image (Rhapsody section) ---------- */
.arm-wrap { display: flow-root; max-width: 1040px; margin: 0 auto; }
.arm-float {
  float: left; width: min(40%, 380px); margin: 6px 40px 20px 0;
  padding: 14px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
  shape-outside: margin-box;
}
.arm-float img { width: 100%; height: auto; border-radius: 10px; }
.arm-wrap > p { text-align: justify; hyphens: auto; }
.arm-wrap .arm-lead::first-letter {
  float: left; font-family: var(--serif); font-size: 3.4rem; line-height: .9;
  color: var(--gold-deep); margin: 6px 10px 0 0;
}
.arm-wrap .btn-row { clear: none; margin-top: 18px; }
@media (max-width: 700px) {
  .arm-float { float: none; width: min(100%, 360px); margin: 0 auto 24px; }
  .arm-wrap > p { text-align: left; }
}

/* ---------- Events page ---------- */
.event-date .d.sm { font-size: 1.05rem; line-height: 1.15; margin-top: 4px; }
.event h3 { margin-bottom: .4em; }
.event-meta { font-size: .9rem; color: var(--muted); margin: 0; }
.event-wide { max-width: 900px; }
.arm-list {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 18px;
}
.arm-list li { position: relative; padding-left: 22px; }
.arm-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold-deep); }
@media (max-width: 480px) {
  .event { flex-direction: column; }
  .event-date { flex-basis: auto; width: 90px; }
}

/* ---------- Events grid fix: always 2 columns, 1 on phones ---------- */
.events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .events-grid { grid-template-columns: 1fr; } }
.events-grid .event > div:last-child { min-width: 0; }
