/* ============================================================
   Patterson SDA Church — design system
   DNA extracted from the Hubb "Ascend" template:
   Montserrat headings / Nunito Sans body, slate ink, pill CTAs,
   alternating white + deep sections with intersecting images,
   scroll fade-in cards.
   ============================================================ */

:root {
  --ink: #34495e;
  --ink-deep: #22313f;
  --teal: #146b70;
  --teal-deep: #0e4f54;
  --teal-tint: #e7f2f2;
  --gold: #d9a441;
  --paper: #ffffff;
  --mist: #f4f6f7;
  --line: #e3e8ea;
  --shadow: 0 14px 40px rgba(20, 49, 63, 0.12);
  --radius: 14px;
  --font-head: "Montserrat", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  --wrap: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1.1em; }

a { color: var(--teal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons (Ascend pill style) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14, 79, 84, 0.25); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-gold { background: var(--gold); color: #3d2c07; }
.btn-gold:hover { background: #c8932f; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: #fff; color: var(--ink-deep); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { text-decoration: none; line-height: 1.1; display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-text { display: block; }
.footer-logo { width: 64px; height: 64px; display: block; margin-bottom: 14px; }

/* real-photo helpers */
.wide-img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 48px;
}
.sermon-thumb {
  margin: -26px -26px 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  background: var(--ink-deep);
}
.sermon-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.sermon-card:hover .sermon-thumb img { transform: scale(1.05); }
.sermon-thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  background: rgba(11, 38, 46, 0.25);
  transition: background 0.3s ease;
}
.sermon-card:hover .sermon-thumb::after { background: rgba(11, 38, 46, 0.1); }

.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 110px;
}
.video-poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: var(--ink-deep);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.video-poster:hover img { transform: scale(1.05); }
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink-deep);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}
.video-poster:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); }
.video-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-meta { padding: 20px 22px 24px; }
.video-meta h3 { font-size: 1.05rem; margin-bottom: 6px; }
.video-meta .who { font-size: 0.88rem; color: #718192; margin: 0 0 4px; }
.video-meta .when { font-size: 0.78rem; color: #9aa7b1; text-transform: uppercase; letter-spacing: 0.1em; margin: 0; }
@media (max-width: 1020px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .videos-grid { grid-template-columns: 1fr; } .wide-img { height: 260px; } .brand-logo { width: 38px; height: 38px; } }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink-deep);
  display: block;
}
.brand-name .accent { color: var(--teal); }
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7d8b96;
  display: block;
  margin-top: 2px;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.main-nav a {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 8px;
  display: block;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--teal); background: var(--teal-tint); }

.has-drop { position: relative; }
.has-drop > a::after { content: " ▾"; font-size: 0.65em; opacity: 0.6; }
.drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-drop:hover .drop,
.has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { padding: 9px 14px; border-radius: 8px; font-weight: 600; }
.drop a:hover { background: var(--teal-tint); color: var(--teal); }

.nav-give { margin-left: 10px; }
.nav-give .btn { padding: 11px 24px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-deep);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- hero carousel ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  overflow: hidden;
  background: var(--ink-deep);
}
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.on { opacity: 1; z-index: 2; }
/* fade text out fast so headlines don't overlap during the 1s crossfade */
.hero-slide .hero-content { transition: opacity 0.35s ease; }
.hero-slide:not(.on) .hero-content { opacity: 0; }
.hero-slide.on .hero-content { transition-delay: 0.4s; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 38, 46, 0.55), rgba(11, 38, 46, 0.65));
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-kicker {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.hero-dots button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-deep);
}
.hero-dots button.on { background: var(--ink-deep); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-mist { background: var(--mist); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-head p { color: #5c6f7e; }

/* welcome intro */
.welcome { text-align: center; max-width: 780px; margin: 0 auto; }
.welcome p { font-size: 1.12rem; color: #4a5d6d; }

/* ---------- card grids ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(20, 49, 63, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { height: 210px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: #5c6f7e; font-size: 0.98rem; flex: 1; }
.card-link {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal);
}
.card-link:hover { color: var(--teal-deep); }
.card-link::after { content: " →"; }

/* ---------- intersecting feature blocks (Ascend signature) ---------- */
.feature {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.92);
  padding: 96px 0;
  position: relative;
  overflow: visible;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature h2 { color: #fff; }
.feature p { color: rgba(255, 255, 255, 0.85); }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  margin-top: -160px;   /* image intersects the section above */
  margin-bottom: -160px; /* and bleeds into the section below */
  position: relative;
  z-index: 3;
}
.feature-media img { width: 100%; height: 520px; object-fit: cover; }
.feature .kicker { color: var(--gold); }
.feature-pad { padding: 40px 0; }

/* spacer sections that give the intersecting image room */
.after-feature { padding-top: 200px; }
.before-feature { padding-bottom: 200px; }

/* ---------- events ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.event-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--teal-tint);
  color: var(--teal-deep);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: var(--font-head);
  margin-bottom: 16px;
}
.event-date .d { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.event-date .m { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.event-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.event-meta { font-size: 0.85rem; color: #718192; margin: 0; }

/* ---------- sermons ---------- */
.sermons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.sermon-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
}
.sermon-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sermon-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.sermon-card h3 { font-size: 1rem; }
.sermon-card .who { font-size: 0.85rem; color: #718192; margin: 0 0 4px; }
.sermon-card .when { font-size: 0.78rem; color: #9aa7b1; text-transform: uppercase; letter-spacing: 0.1em; margin: 0; }

.center-cta { text-align: center; margin-top: 44px; }

/* ---------- stats / worldwide strip ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal);
}
.stat .lbl { font-size: 0.9rem; color: #5c6f7e; }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: #fff;
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.page-hero::before {
  content: "";
  position: absolute;
  right: 60px;
  bottom: -160px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero .crumb {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.page-hero .crumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.page-hero .crumb a:hover { color: #fff; }

/* ---------- interior layout (content + sidebar, Ascend style) ---------- */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.page-content > img,
.page-content .content-img {
  border-radius: var(--radius);
  margin-bottom: 28px;
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.page-content h2 { margin-top: 1.6em; }
.page-content h2:first-child { margin-top: 0; }
.page-content ul { color: #4a5d6d; }
.lead { font-size: 1.15rem; color: #4a5d6d; }

.sidebar { position: sticky; top: 96px; }
.side-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 24px;
  background: #fff;
}
.side-nav .side-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-deep);
  padding: 10px 14px 6px;
}
.side-nav a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
}
.side-nav a:hover { background: var(--teal-tint); color: var(--teal); }
.side-nav a.active { background: var(--teal); color: #fff; }
.quick-links { display: flex; flex-direction: column; gap: 12px; }
.quick-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  padding: 13px 22px;
  text-decoration: none;
  color: var(--ink-deep);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-pill:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 49, 63, 0.1); }
.quick-pill .qp-icon { color: var(--teal); font-size: 1.05rem; }

/* info boxes */
.info-box {
  background: var(--teal-tint);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 28px 0;
}
.info-box h3 { color: var(--teal-deep); }
.info-box p:last-child { margin-bottom: 0; }

/* resource list */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0 34px;
}
.resource-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: #fff;
}
.resource-item:hover { border-color: var(--teal); transform: translateY(-3px); }
.resource-item h4 { margin: 0 0 4px; font-size: 0.98rem; }
.resource-item p { margin: 0; font-size: 0.88rem; color: #5c6f7e; }

/* forms */
.form-grid { display: grid; gap: 18px; max-width: 620px; }
.form-grid label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-deep);
  display: block;
  margin-bottom: 6px;
}
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}
.form-grid input:focus, .form-grid textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 107, 112, 0.12);
}

/* schedule table */
.schedule {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
}
.schedule td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.schedule td:first-child {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal-deep);
  white-space: nowrap;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: #fff;
  text-align: center;
  padding: 76px 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin: 0 auto 28px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, 0.75); }
.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 70px 24px 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid a { color: rgba(255, 255, 255, 0.75); text-decoration: none; display: block; padding: 4px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 0.92rem; }
.footer-brand .brand-name { color: #fff; font-size: 1.25rem; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, 0.5); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .events-grid, .sermons-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-media { margin-top: 0; margin-bottom: 0; }
  .feature-media img { height: 340px; }
  .after-feature { padding-top: 84px; }
  .before-feature { padding-bottom: 84px; }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 20px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 10px; }
  .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }
  .nav-give { margin: 12px 0 0; }
  .cards-3, .events-grid, .sermons-grid, .stats-grid, .resource-grid { grid-template-columns: 1fr; }
  .hero { min-height: 66vh; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 60px 0; }
}

/* ---------- blog (quiet, essay-style) ---------- */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-row-media { border-radius: 10px; overflow: hidden; }
.post-row-media img { width: 100%; height: 150px; object-fit: cover; display: block; }
.post-row-body h2 { font-size: 1.35rem; margin: 4px 0 8px; color: var(--ink-deep); transition: color 0.2s ease; }
.post-row:hover .post-row-body h2 { color: var(--teal); }
.post-row-body p { color: #5c6f7e; margin-bottom: 10px; }
.post-tags {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.post-meta { font-size: 0.82rem; color: #8a98a4; }
.post-kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.post-meta-hero { color: rgba(255, 255, 255, 0.7); margin-top: 10px; position: relative; z-index: 1; }

.post-wrap { max-width: 720px; }
.post-body .content-img { border-radius: 10px; margin-bottom: 36px; height: 360px; }
.post-body .lead { font-size: 1.2rem; line-height: 1.7; color: var(--ink); margin-bottom: 1.6em; }
.post-body p { font-size: 1.08rem; line-height: 1.8; margin-bottom: 1.4em; }
.post-body h2 { font-size: 1.4rem; margin: 2.2em 0 0.7em; }
.post-body blockquote {
  margin: 1.8em 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--gold);
  background: none;
}
.post-body blockquote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink-deep);
  margin: 0 0 6px;
}
.post-body blockquote cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a98a4;
}
.post-body blockquote cite::before { content: "\2014  "; }
.post-body ul { padding-left: 1.2em; }
.post-body ul li { margin-bottom: 12px; line-height: 1.75; font-size: 1.05rem; }
.post-end { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); font-size: 0.95rem; }
.post-end a { text-decoration: none; font-weight: 600; }
.side-note { font-size: 0.9rem; color: #5c6f7e; padding: 4px 14px 10px; margin: 0; }
@media (max-width: 760px) {
  .post-row { grid-template-columns: 1fr; gap: 14px; }
  .post-row-media img { height: 190px; }
  .post-body .content-img { height: 220px; }
}

/* ---------- explicit defaults (so the site renders identically when hosted inside a
   framework that ships a CSS reset, e.g. the Base44 port) ---------- */
.page-content ul, .post-body ul, .page-content ol { list-style: disc; padding-left: 1.2em; }
.page-content a:not(.btn):not(.quick-pill):not(.resource-item):not(.card-link):not(.post-row),
.post-body a:not(.btn), .info-box a { text-decoration: underline; }
.post-row, .post-row * { text-decoration: none; }

/* long emails/addresses must wrap on narrow phones (contact/giving tables) */
.schedule { table-layout: fixed; width: 100%; }
.schedule td { overflow-wrap: anywhere; word-break: break-word; }
.schedule td:first-child { width: 34%; }
.resource-soon { opacity: 0.85; cursor: default; }
.resource-soon:hover { transform: none; border-color: var(--line); }

/* devotional posts: opening scripture + section rule */
.post-body .lead-scripture { margin: 0 0 1.6em; padding: 0 0 0 22px; }
.post-body .lead-scripture p { font-size: 1.3rem; }
.post-rule { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0 1.6em; }

/* form states */
.form-success { background: var(--mist, #eef5f5); border-left: 4px solid var(--teal, #146b70); border-radius: 14px; padding: 24px 28px; max-width: 620px; }
.form-success h3 { margin: 0 0 8px; color: var(--teal-deep, #0f4f53); }
.form-success p:last-child { margin-bottom: 0; }
.form-error { color: #b23a3a; font-weight: 600; margin: 0; }
.form-grid .hp { display: none; }

/* life-together strip (home) */
.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.life-tile { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.life-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.life-tile:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .life-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* photo gallery page */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 28px; }
.chip { border: 1.5px solid var(--teal); background: #fff; color: var(--teal-deep); border-radius: 999px; padding: 8px 18px; font: 600 14px/1 var(--font-body, inherit); cursor: pointer; transition: all .2s; }
.chip.on, .chip:hover { background: var(--teal); color: #fff; }
.gallery { columns: 3 280px; column-gap: 16px; }
.g-item { display: block; position: relative; break-inside: avoid; margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: var(--mist); }
.g-item img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .25s; }
.g-item:hover .g-cap { opacity: 1; }
.g-item[hidden] { display: none; }
.gallery-note { text-align: center; color: var(--muted, #667); margin-top: 24px; }
.lightbox { position: fixed; inset: 0; background: rgba(10,20,22,.92); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
.lightbox.on { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; margin-top: 12px; font-weight: 600; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 48px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { width: 40px; height: 40px; line-height: 40px; font-size: 24px; } }
