/* Emmanuel Baptist Church — site styles */
:root {
  --green-950: #1f2c04;
  --green-900: #2f4306;
  --green-800: #3d570a;
  --green-700: #4d6d0c;
  --green-600: #5f8410;
  --lime: #d7f07a;
  --lime-soft: #eef7cf;
  --cream: #f8f7f0;
  --paper: #ffffff;
  --ink: #23271c;
  --muted: #565c4a;
  --line: #e2e2d6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 44, 4, .06), 0 6px 20px rgba(31, 44, 4, .07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 2px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--green-900); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; top: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  background: var(--green-800);
  background-image: linear-gradient(180deg, var(--green-700), var(--green-800));
  color: #fff;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: .7rem; padding: .5rem 0; }
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--lime); line-height: 1.1; }
.brand-tag { display: block; font-size: .82rem; color: #e9f2d0; letter-spacing: .02em; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px; padding: .5rem .95rem; font: inherit; font-size: .95rem; cursor: pointer; min-height: 44px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.site-nav { display: none; }
.site-nav.open { display: block; padding-bottom: 1rem; max-height: calc(100vh - 70px); overflow-y: auto; }
@media (max-width: 420px) {
  .brand-mark { display: none; }
  .brand-name { font-size: 1.12rem; }
  .brand-tag { font-size: .78rem; }
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a, .sub-toggle {
  display: block; color: #fff; text-decoration: none; padding: .7rem .4rem; font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12); background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; font-family: inherit; cursor: pointer;
}
.site-nav a:hover, .sub-toggle:hover { color: var(--lime); }
.site-nav a[aria-current="page"] { color: var(--lime); font-weight: 600; }
.sub-toggle::after { content: "▾"; margin-left: .35rem; font-size: .8em; }
.submenu { display: none; padding-left: 1rem !important; }
.has-sub.open .submenu { display: block; }

@media (min-width: 960px) {
  .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; padding: 0; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; gap: .15rem; align-items: center; }
  .site-nav a, .sub-toggle { border: 0; padding: .55rem .7rem; border-radius: 8px; font-size: .97rem; width: auto; }
  .site-nav a:hover, .sub-toggle:hover { background: rgba(255,255,255,.1); }
  .has-sub { position: relative; }
  .submenu {
    position: absolute; right: 0; top: 100%; min-width: 250px; padding: .5rem !important;
    background: var(--green-900); border-radius: 10px; box-shadow: var(--shadow);
  }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { display: block; }
  .submenu a { display: block; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--green-950); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,44,4,.85), rgba(31,44,4,.35)); }
.hero-inner { position: relative; z-index: 1; padding: clamp(4rem, 12vw, 8rem) 0; max-width: 720px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--lime); }
.hero p.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: #f2f6e6; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 700; color: var(--green-600); margin-bottom: .6rem; }
.page-hero { position: relative; background: var(--green-900); color: #fff; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero .wrap { position: relative; padding: clamp(2.8rem, 8vw, 4.8rem) 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .6rem 0 0; color: #eef4dc; font-size: 1.1rem; max-width: 680px; }
.page-hero .eyebrow { color: var(--lime); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 46px; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--green-700); color: #fff; border: 2px solid var(--green-700); font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.btn-lime { background: var(--lime); color: var(--green-950); border-color: var(--lime); }
.btn-lime:hover { background: #fff; border-color: #fff; color: var(--green-950); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section-alt { background: var(--paper); }
.section-green { background: var(--green-900); color: #f2f6e6; }
.section-green h2, .section-green h3 { color: #fff; }
.section-green a { color: var(--lime); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } .split.wide-left { grid-template-columns: 1.3fr 1fr; } }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; }
a.card { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(31,44,4,.12); }
a.card .more { color: var(--green-700); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--lime-soft); color: var(--green-800); display: grid; place-items: center; margin-bottom: 1rem; }
.card-icon svg { width: 24px; height: 24px; }
.pastors { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .pastors { grid-template-columns: 1fr 1fr; } }
.pastor { display: flex; gap: 1rem; align-items: flex-start; }
.monogram {
  flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--green-700); color: var(--lime);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
}
.pastor h3 { margin-bottom: .15rem; }
.pastor .role { color: var(--green-700); font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .55rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--green-600); background: var(--lime-soft); border-radius: 0 10px 10px 0; font-family: var(--serif); font-size: 1.12rem; }
.figure-float { margin: 0 0 1.5rem; }
.figure-float img { border-radius: 10px; box-shadow: var(--shadow); }
.figure-float figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; }
@media (min-width: 720px) { .figure-float { float: right; max-width: 300px; margin: .3rem 0 1rem 2rem; } }
.clear { clear: both; }
.content-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .content-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.aside-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); align-self: start; }
.aside-box h2 { font-size: 1.25rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.aside-box li:last-child { border-bottom: 0; }
.belief-list { list-style: none; padding: 0; }
.belief-list li { position: relative; padding-left: 1.6rem; }
.belief-list li::before { content: ""; position: absolute; left: .2rem; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--green-600); }
.belief-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin: 1.5rem 0; box-shadow: var(--shadow); }
.belief-block h2 { margin-top: 0; font-size: 1.45rem; }
.belief-block .num { display: inline-block; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); font-weight: 700; margin-bottom: .3rem; }

/* Downloads, books, events */
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.file-list a, .file-list .file-missing {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 64px;
}
.file-list a:hover { border-color: var(--green-600); }
.file-type { flex: none; font-size: .75rem; font-weight: 700; letter-spacing: .05em; background: var(--green-700); color: #fff; border-radius: 6px; padding: .25rem .45rem; }
.file-list small { display: block; color: var(--muted); font-size: .85rem; }
.file-missing { opacity: .75; }
.books { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.book { text-decoration: none; color: var(--ink); text-align: center; }
.book img { margin: 0 auto .8rem; border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.18); height: 260px; width: auto; object-fit: contain; }
.book strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--green-900); }
.book span { font-size: .92rem; color: var(--green-700); font-weight: 600; }
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 1.2rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.event-date { background: var(--green-700); color: #fff; border-radius: 12px; text-align: center; padding: .6rem .3rem; font-weight: 700; line-height: 1.1; }
.event-date .m { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.event-date .d { display: block; font-size: 1.8rem; font-family: var(--serif); }
.event h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.event p { margin: 0; color: var(--muted); }

/* Video + embeds */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { padding: 0; cursor: pointer; background: #111; }
.video button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video button:hover img { opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.play svg { width: 30px; height: 30px; margin-left: 4px; fill: var(--green-950); }
.video-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem 1rem .9rem; color: #fff; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.videos { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .videos { grid-template-columns: 1fr 1fr; } }
.audio-embed { width: 100%; border: 0; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); height: 170px; display: block; }

/* Devotionals */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.post-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.post-card:hover { border-color: var(--green-600); color: var(--ink); }
.post-card time, .post-meta { color: var(--green-700); font-size: .88rem; font-weight: 600; letter-spacing: .03em; }
.post-card h3 { margin: .25rem 0 .35rem; font-size: 1.2rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.month-head { font-size: 1.15rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--green-700); margin: 2.4rem 0 1rem; }
.month-head:first-child { margin-top: 0; }
.post-body { font-size: 1.1rem; }
.post-body p { margin-bottom: 1.1em; }
.post-sub { font-family: var(--serif); font-size: 1.2rem; color: #eef4dc; font-style: italic; }
.post-nav { display: grid; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav .next { text-align: right; } }
.post-nav a { display: block; text-decoration: none; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.post-nav a:hover { border-color: var(--green-600); }
.post-nav small { display: block; color: var(--green-700); font-weight: 600; }

/* Forms */
.form-card { background: var(--paper); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; color: var(--green-900); }
input, textarea, select {
  width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #c9ccb9; border-radius: 10px; background: #fff; color: var(--ink); min-height: 46px;
}
input:focus, textarea:focus { border-color: var(--green-600); outline: 3px solid rgba(95,132,16,.25); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
.req { color: #9a2a12; }

/* Footer */
.site-footer { background: var(--green-950); color: #dfe6cc; padding: 3.5rem 0 1.5rem; font-size: .98rem; }
.site-footer h2 { color: var(--lime); font-size: 1.15rem; margin-bottom: .8rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.1fr 1.2fr 1fr 1fr; } }
.footer-brand .brand-name { font-size: 1.4rem; }
.footer-brand p { margin-top: .8rem; color: #c9d3b0; }
.schedule { list-style: none; padding: 0; margin: 0 0 .6rem; }
.schedule li { display: flex; gap: .8rem; padding: .2rem 0; }
.schedule .t { flex: none; width: 5.2rem; color: var(--lime); font-weight: 600; font-variant-numeric: tabular-nums; }
.schedule-day { font-weight: 700; color: #fff; margin: .6rem 0 .2rem; }
.schedule-day:first-of-type { margin-top: 0; }
.footer-note { font-size: .9rem; color: #c9d3b0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: .2rem 0; }
.footer-links a { display: inline-block; padding: .15rem 0; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .88rem; color: #b9c49c; }
.site-footer address { font-style: normal; }
