/* Ebenezer Full Gospel Assembly — site styles */
:root {
  --navy: #14275a;
  --navy-deep: #0d1b40;
  --red: #c8202f;
  --red-deep: #a51826;
  --ink: #1d2433;
  --muted: #5b6477;
  --line: #e3e6ee;
  --paper: #ffffff;
  --wash: #f4f6fb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Header */
.topbar { height: 5px; background: linear-gradient(90deg, var(--red) 0 50%, var(--navy) 50% 100%); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { width: 210px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; border-radius: 6px; }
.nav a:hover { background: var(--wash); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--red); }
.nav a.cta { background: var(--navy); color: #fff; margin-left: 8px; padding: 10px 16px; }
.nav a.cta:hover { background: var(--navy-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

/* Buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: rgba(255,255,255,0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero (home) */
.hero { position: relative; color: #fff; background: var(--navy-deep) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,64,0.72) 0%, rgba(13,27,64,0.55) 45%, rgba(13,27,64,0.82) 100%); }
.hero .wrap { position: relative; padding-top: clamp(72px, 13vw, 150px); padding-bottom: clamp(88px, 14vw, 170px); text-align: center; }
.hero h1 { color: #fff; max-width: 17ch; margin: 0 auto 18px; }
.eyebrow { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--red); margin: 0 0 12px; }
.hero .eyebrow { color: #d6def5; }
.hero .lead { font-size: 1.2rem; max-width: 44ch; margin: 0 auto 28px; color: #eef1fa; }
.hero .btn-row { justify-content: center; }

/* Page banner (inner pages) */
.banner { position: relative; color: #fff; background: var(--navy) center/cover no-repeat; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,64,0.78), rgba(13,27,64,0.7)); }
.banner .wrap { position: relative; padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(48px, 8vw, 88px); }
.banner h1 { color: #fff; margin: 0 0 8px; }
.banner p { margin: 0; max-width: 56ch; font-size: 1.12rem; color: #e6ebf8; }
.banner .eyebrow { color: #d6def5; }

/* Sections */
section { padding: clamp(48px, 7vw, 84px) 0; }
.alt { background: var(--wash); }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.lede { font-size: 1.12rem; color: #3b4458; }
.prose { max-width: 70ch; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.7em; }

/* Service times strip */
.times-strip { margin-top: -54px; position: relative; z-index: 2; padding: 0; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 10px; padding: 24px 22px; box-shadow: 0 8px 24px rgba(13, 27, 64, 0.08); }
.card h3 { margin-bottom: 6px; }
.card .big { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 700; margin: 0 0 4px; }
.card p:last-child { margin-bottom: 0; }
.small { font-size: 0.93rem; color: var(--muted); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.split.flip > :first-child { order: 2; }
.photo { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 32px rgba(13, 27, 64, 0.16); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--muted); padding: 8px 14px 10px; background: var(--paper); }

/* Feature tiles */
.tiles { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13, 27, 64, 0.12); }
.tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tile .body { padding: 20px 22px 24px; }
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; color: #3b4458; }
.tile .more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--red); }

/* Band (call to action) */
.band { background: var(--navy); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band p { max-width: 54ch; margin: 0 auto 22px; color: #e1e7f6; }
.band .btn-row { justify-content: center; }
.verse { font-family: var(--serif); font-style: italic; font-size: 1.25rem; text-align: center; color: var(--navy); max-width: 46ch; margin: 0 auto; }
.verse cite { display: block; font-style: normal; font-size: 0.9rem; letter-spacing: 0.05em; color: var(--muted); margin-top: 8px; }

/* Schedule tables */
.schedule { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.schedule caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--navy); padding: 0 0 10px; }
.schedule th, .schedule td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule thead th { background: var(--navy); color: #fff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.schedule tbody tr:last-child td, .schedule tbody tr:last-child th { border-bottom: 0; }
.schedule tbody th { font-weight: 700; color: var(--navy); width: 34%; }
.schedule td.when { white-space: nowrap; font-weight: 600; }
.schedule.compact tbody th { width: 52%; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--wash); color: var(--navy); border: 1px solid var(--line); margin-left: 6px; vertical-align: middle; }
.stack > * + * { margin-top: 34px; }
.note { background: #fff8e6; border: 1px solid #f1dfa9; border-radius: 10px; padding: 16px 18px; }
.note p:last-child { margin-bottom: 0; }

/* People */
.people { display: grid; gap: 28px; }
.person { display: grid; grid-template-columns: 220px 1fr; gap: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px; align-items: start; }
.person img { border-radius: 10px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person h3 { font-size: 1.45rem; margin-bottom: 2px; }
.role { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin: 0 0 12px; }
.person p:last-child { margin-bottom: 0; }
.board { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.board li { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-weight: 600; }
.board li span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }

/* Ministries */
.ministry-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; list-style: none; }
.ministry-nav a { display: block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.92rem; font-weight: 600; background: var(--paper); }
.ministry-nav a:hover { border-color: var(--navy); }
.ministry { padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.ministry:first-of-type { border-top: 0; }
.ministry .when { font-weight: 700; color: var(--navy); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 56px; }
.two-col > * > :last-child { margin-bottom: 0; }

/* Beliefs */
.beliefs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.belief { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 22px 24px; }
.belief h3 { margin-bottom: 8px; }
.belief p { margin: 0; }
.belief .refs { margin-top: 10px; font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* Tenets of Faith */
.tenets-layout { display: grid; grid-template-columns: 270px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 100px; background: var(--wash); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; max-height: calc(100vh - 124px); overflow: auto; }
.toc h2 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; font-size: 0.93rem; }
.toc li { margin-bottom: 7px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.tenets h2 { margin-top: 1.7em; padding-top: 0.2em; scroll-margin-top: 100px; font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.tenets > :first-child { margin-top: 0; }
.tenets h3 { margin-top: 1.4em; font-size: 1.12rem; }

/* Photo gallery */
.gallery-head { margin: 34px 0 14px; }
.gallery { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 780px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Contact */
.callcard { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 12px; padding: 26px; box-shadow: 0 8px 24px rgba(13, 27, 64, 0.06); scroll-margin-top: 96px; }
.callcard p:last-child { margin-bottom: 0; }
form.contact[hidden] { display: none; }
form.contact { margin-top: 22px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 22px; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list strong { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.info-list a { font-weight: 600; }
form.contact { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: 0 8px 24px rgba(13, 27, 64, 0.06); scroll-margin-top: 96px; }
.field { margin-bottom: 16px; }
.field label, fieldset legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; padding: 12px 13px; border: 1px solid #c4cad8; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.choice { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 6px 0; }
.choice input { width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #eaf6ee; border: 1px solid #b9dfc5; }
.form-msg[hidden] { display: none; }
.map { border: 0; width: 100%; height: 360px; border-radius: 12px; display: block; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #cfd7ec; padding: 52px 0 26px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb0dd; margin-bottom: 12px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin: 0 0 8px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 34px; padding-top: 18px; font-size: 0.86rem; color: #9fb0dd; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 14px 16px; gap: 2px; box-shadow: 0 14px 24px rgba(13,27,64,0.1); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1.02rem; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  body { font-size: 16.5px; }
  .cards, .tiles, .split, .contact-grid, .two-col, .beliefs, .tenets-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .split.flip > :first-child { order: 0; }
  .person { grid-template-columns: 1fr; }
  .person img { max-width: 240px; }
  .brand img { width: 176px; }
  .times-strip { margin-top: -40px; }
  .schedule th, .schedule td { padding: 12px 12px; }
  .schedule tbody th { width: auto; }
  .schedule td.when { white-space: normal; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .foot-grid, .board { grid-template-columns: 1fr; }
  .schedule thead { display: none; }
  .schedule tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .schedule tbody tr:last-child { border-bottom: 0; }
  .schedule th, .schedule td { display: block; padding: 1px 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile { transition: none; } }
