/* ===========================================================
   Dryad Community Baptist Church — styles
   Color scheme: warm paper, forest green, stained-glass gold
   =========================================================== */
*{ margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #eee7d8;
  --paper: #fffdf8;
  --ink: #23291f;
  --green: #2f3d2a;
  --green-deep: #1d2719;
  --gold: #b08534;
  --gold-soft: #d8c08a;
  --line: #e0d9c8;
  --muted: #6f7263;
}

body {
  font-family: 'Spectral', Georgia, serif;
  color: var(--ink);
  /* Muted-nature background (the approved choice), fixed behind the page */
  background:
    linear-gradient(180deg, rgba(245,241,232,.5), rgba(238,232,220,.88)),
    radial-gradient(40% 50% at 12% 18%, rgba(176,133,52,.35), transparent 70%),
    radial-gradient(50% 60% at 88% 28%, rgba(47,61,42,.45), transparent 70%),
    radial-gradient(70% 70% at 50% 100%, rgba(110,130,80,.5), transparent 70%),
    linear-gradient(160deg, #9fae8a, #7e9168);
  background-attachment: fixed;
}

/* The contained page sitting on the background */
.site {
  max-width: 1040px;
  margin: 34px auto 40px;
  background: var(--bg);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  overflow: hidden;
}

/* ---- Announcement banner ---- */
.announce {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 14px; text-align: center;
  background: var(--green-deep); color: #f1ecdd;
  font-family: 'Inter', sans-serif; font-size: 13.5px; letter-spacing: .02em;
  padding: 11px 22px; text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: background .2s;
}
.announce:hover { background: var(--green); }
.announce-cta { color: var(--gold-soft); font-weight: 600; white-space: nowrap; }
.announce:hover .announce-cta { color: #fff; }
.announce:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

/* ---- Header ---- */
.top { background: var(--paper); padding: 20px 30px 0; text-align: center; }
.brand { display: flex; align-items: center; justify-content: center; }
.brand img { height: 96px; width: auto; }
.menu {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 28px;
  padding: 16px 0 14px; margin-top: 14px;
  font-family: 'Inter', sans-serif; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase;
  border-top: 1px solid var(--line);
}
.menu a { color: var(--green); text-decoration: none; padding-bottom: 5px; border-bottom: 2px solid transparent; }
.menu a.on, .menu a:hover { border-color: var(--gold); }
.menu a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- Page banner ---- */
.pagehead {
  position: relative; height: 300px; display: grid; place-items: end center;
  text-align: center; overflow: hidden; border-bottom: 4px solid var(--gold);
}
.pagehead .img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.pagehead .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,18,.15) 0%, rgba(20,28,18,.15) 45%, rgba(20,28,18,.78) 100%); }
.pagehead .t { position: relative; z-index: 1; color: #fff; padding-bottom: 30px; }
.pagehead .t .eye { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.pagehead .t h1, .pagehead .t h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 44px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.pagehead .t p { font-family: 'Spectral', serif; font-style: italic; font-size: 16px; color: #ece8db; margin-top: 8px; }

/* ---- Content ---- */
.body { padding: 46px 50px 56px; }
.lede { max-width: 680px; margin: 0 auto; text-align: center; font-size: 17px; line-height: 1.75; color: #3c4234; }
.lede + .lede { margin-top: 18px; }
.kicker { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 12px; }
.divider { width: 54px; height: 2px; background: var(--gold); margin: 0 auto 26px; }

.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; margin-top: 6px; }
.feature + .feature { margin-top: 42px; }
.feature .txt h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 27px; color: var(--green-deep); margin-bottom: 14px; }
.feature .txt p { font-size: 16px; line-height: 1.7; color: #3c4234; }
.photo { border-radius: 6px; overflow: hidden; box-shadow: 0 12px 34px rgba(29,39,25,.22); aspect-ratio: 4/3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.tall { aspect-ratio: 3/4; }

.verse { margin: 46px auto 8px; max-width: 720px; text-align: center; font-family: 'Fraunces', serif; font-style: italic; font-size: 24px; line-height: 1.5; color: var(--green-deep); }
.verse small { display: block; font-style: normal; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 14px; }

.cta { display: inline-block; background: var(--gold); color: #20180a; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; padding: 13px 28px; border-radius: 2px; text-decoration: none; cursor: pointer; border: none; }
.cta.green { background: var(--green); color: #fff; }
.cta:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }
.center { text-align: center; margin-top: 30px; }

/* ---- Sermons ---- */
.sfilters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.sfilters input, .sfilters select { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink); }
.sfilters input { min-width: 220px; }
.scard { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 4px; padding: 22px 24px; margin: 0 auto 14px; max-width: 820px; display: flex; align-items: center; gap: 22px; }
.scard .date { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.scard h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: var(--green-deep); margin-bottom: 7px; }
.scard h3 a { color: inherit; text-decoration: none; }
.scard h3 a:hover { color: var(--gold); }
.scard .meta { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--muted); }
.scard .meta b { color: var(--ink); font-weight: 600; }
.scard .right { margin-left: auto; display: flex; flex-direction: column; gap: 7px; min-width: 160px; }
.btn-listen { background: var(--green); color: #fff; border: none; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; padding: 11px 14px; border-radius: 3px; cursor: pointer; }
.btn-dl { background: #fff; color: var(--green); border: 1px solid var(--line); font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12.5px; padding: 8px 14px; border-radius: 3px; cursor: pointer; text-decoration: none; text-align: center; display: block; }
.btn-dl:hover { border-color: var(--gold); }
.player { max-width: 820px; margin: -4px auto 14px; }
.player audio { width: 100%; }
.scard-empty { text-align: center; color: var(--muted); font-style: italic; padding: 30px; }

/* ---- Galleries ---- */
.gallery-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px; }
.gtab {
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green); background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 10px 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.gtab:hover { border-color: var(--gold); }
.gtab.on { background: var(--green); color: #fff; border-color: var(--green); }
.gtab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gallery-panel[hidden] { display: none; }
.gallery-panel .gtitle { margin-top: 22px; }
.gtitle { font-family: 'Fraunces', serif; font-weight: 600; font-size: 23px; color: var(--green-deep); text-align: center; margin: 36px 0 6px; }
.gsub { text-align: center; font-style: italic; color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 880px; margin: 0 auto; }
.grid .ph { aspect-ratio: 4/3; border-radius: 5px; overflow: hidden; box-shadow: 0 6px 18px rgba(29,39,25,.18); }
.grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.grid .ph:hover img { transform: scale(1.05); }
.grid .ph:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 28px;
  background: rgba(18, 24, 15, .92);
}
.lightbox[hidden] { display: none; }
.lb-stage {
  display: flex; flex-direction: column; align-items: center;
  max-width: 88vw; max-height: 90vh;
}
.lb-img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  object-fit: contain; display: block;
  border: 4px solid var(--paper);
  box-shadow: 0 18px 60px rgba(0,0,0,.6);
}
.lb-caption {
  margin-top: 14px; color: var(--gold-soft);
  font-family: 'Spectral', serif; font-style: italic; font-size: 16px;
  text-align: center; max-width: 70ch;
}
.lb-close, .lb-nav {
  background: rgba(255,253,248,.10); color: var(--paper);
  border: 1px solid rgba(216,192,138,.45);
  cursor: pointer; line-height: 1;
  border-radius: 50%; transition: background .2s, border-color .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--gold); border-color: var(--gold); color: #20180a; }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 46px; height: 46px; font-size: 30px;
}
.lb-nav { flex: none; width: 54px; height: 54px; font-size: 30px; }

@media (max-width: 760px) {
  .lightbox { padding: 14px; gap: 4px; }
  .lb-nav { width: 44px; height: 44px; font-size: 26px; }
  .lb-stage { max-width: 80vw; }
}

/* ---- Beliefs / statement of faith ---- */
.creed { max-width: 740px; margin: 14px auto 0; }
.creed .article { padding: 18px 0; border-top: 1px solid var(--line); }
.creed .article:first-child { border-top: 0; padding-top: 4px; }
.creed .article h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; color: var(--green-deep); margin-bottom: 7px; }
.creed .article p { font-size: 16px; line-height: 1.72; color: #3c4234; }
.points { padding-left: 22px; }
.points li { font-size: 16px; line-height: 1.7; color: #3c4234; margin-bottom: 14px; padding-left: 6px; }
.points li::marker { color: var(--gold); font-weight: 600; }
.points .ref { display: block; margin-top: 6px; font-family: 'Spectral', serif; font-style: italic; color: var(--green-deep); }
.points .note { color: var(--muted); font-style: italic; }
.invite { max-width: 740px; margin: 34px auto 0; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 5px; padding: 30px 32px; }
.invite h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 23px; color: var(--green-deep); margin-bottom: 16px; }
.invite .prayer { font-family: 'Spectral', serif; font-style: italic; font-size: 17px; line-height: 1.7; color: #3c4234; margin: 0 auto 22px; max-width: 600px; }

/* ---- Services schedule ---- */
.schedule { max-width: 620px; margin: 10px auto 0; }
.sched-day { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 4px; padding: 22px 26px; margin-bottom: 16px; }
.sched-day h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: var(--green-deep); margin-bottom: 10px; }
.sched-day ul { list-style: none; }
.sched-day li { padding: 11px 0; border-top: 1px solid var(--line); }
.sched-day li:first-child { border-top: 0; }
.s-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.s-desc { margin-top: 5px; font-size: 14px; line-height: 1.55; color: var(--muted); font-style: italic; max-width: 48ch; }
.s-desc a { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }
.s-desc a:hover { color: var(--gold); }
.s-name { font-size: 16.5px; color: #3c4234; }
.s-name em { font-style: italic; color: var(--muted); font-size: 14px; }
.s-time { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--gold); white-space: nowrap; }

/* ---- Giving ---- */
.zeffy-embed { max-width: 600px; margin: 6px auto 0; }
.zeffy-embed iframe { width: 100%; min-width: 300px; height: 700px; border: 0; border-radius: 6px; box-shadow: 0 12px 34px rgba(29,39,25,.18); background: #fff; display: block; }
.give-address { font-style: normal; font-family: 'Fraunces', serif; font-size: 19px; color: var(--green-deep); text-align: center; margin-top: 4px; }

/* ---- Contact ---- */
.contactgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; max-width: 880px; margin: 0 auto; }
.contactgrid .info { font-size: 16px; line-height: 2; color: #3c4234; }
.contactgrid .info b { font-family: 'Fraunces', serif; color: var(--green-deep); }
.mapwrap { border-radius: 6px; overflow: hidden; box-shadow: 0 12px 34px rgba(29,39,25,.22); aspect-ratio: 4/3; }
.mapwrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Footer ---- */
.foot { background: var(--green-deep); color: #cfd0c2; text-align: center; padding: 40px 30px; font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.7; }
.foot b { font-family: 'Fraunces', serif; color: #fff; font-size: 17px; display: block; margin-bottom: 8px; }
.foot a { color: var(--gold-soft); }

@media (max-width: 760px) {
  .site { margin: 0; }
  .menu { gap: 14px; font-size: 12.5px; }
  .body { padding: 34px 22px 40px; }
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip .photo { order: -1; }
  .scard { flex-direction: column; align-items: flex-start; }
  .scard .right { margin-left: 0; width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contactgrid { grid-template-columns: 1fr; }
  .pagehead { height: 230px; }
  .pagehead .t h1, .pagehead .t h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
