/* Homepage 2026 — rebuilt as a photographic invitation, independent of legacy hero rules. */
.home-cover {
  position: relative;
  isolation: isolate;
  min-height: min(570px, calc(100vh - 82px));
  overflow: hidden;
  background: #17272d;
  color: #fff;
}

.home-cover-photo,
.home-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-cover-photo {
  z-index: -3;
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.01);
}

.home-cover-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8,22,29,.88) 0%, rgba(8,22,29,.68) 34%, rgba(8,22,29,.16) 68%, rgba(8,22,29,.08) 100%),
    linear-gradient(180deg, rgba(6,18,24,.08) 48%, rgba(6,18,24,.72) 100%);
}

.home-cover-content {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 54px;
  padding-bottom: 82px;
}

.home-cover-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: #8fe1fa;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
}

.home-cover-kicker::before {
  content: "";
  width: 46px;
  height: 3px;
  border-radius: 99px;
  background: #34c1ee;
}

.home-cover h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 4.7vw, 80px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0,0,0,.28);
}

.home-cover-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1.78;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.home-cover-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 25px;
}

.home-cover .btn.primary {
  background: #12afe6;
  box-shadow: 0 14px 34px rgba(0,145,198,.3);
}

.home-cover-text-link {
  padding: 10px 2px;
  border-bottom: 1px solid rgba(255,255,255,.6);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.home-cover-text-link:hover,
.home-cover-text-link:focus-visible {
  border-color: #77ddfa;
  color: #9ee8fc;
}

.home-cover-caption {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: auto;
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 750;
}

.home-cover-caption span:first-child {
  color: #fff;
  font-weight: 950;
}

.sunday-bridge {
  display: grid;
  grid-template-columns: minmax(470px,.9fr) minmax(0,1.1fr);
  gap: clamp(34px,4vw,64px);
  align-items: center;
  padding-top: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(137,106,76,.18);
}

.sunday-bridge-intro h2 {
  max-width: none;
  margin: 8px 0 0;
  font-size: clamp(34px,2.35vw,42px);
  line-height: 1.12;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.sunday-bridge-places {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.sunday-bridge-places a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  min-height: 90px;
  padding: 20px 54px 20px 26px;
  color: var(--ink);
  text-decoration: none;
}

.sunday-bridge-places a + a { border-left: 1px solid rgba(137,106,76,.2); }

.sunday-bridge-places a::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  color: var(--brand-blue-deep);
  font-weight: 950;
  transition: transform .2s ease;
}

.sunday-bridge-places a:hover::after,
.sunday-bridge-places a:focus-visible::after { transform: translate(4px,-50%); }
.sunday-bridge-places span { color: var(--brand-blue-deep); font-size: 16px; font-weight: 950; }
.sunday-bridge-places strong { padding-right: 28px; font-size: 14px; }
.sunday-bridge-places small { grid-column: 1/-1; color: var(--muted); font-size: 12px; }

.sunday-bridge + .sermons { padding-top: clamp(50px,5vw,72px); }

html[data-theme="dark"] .sunday-bridge { border-bottom-color: rgba(116,203,234,.2); }
html[data-theme="dark"] .sunday-bridge-places a { color: #f5fbfe; }
html[data-theme="dark"] .sunday-bridge-places a + a { border-left-color: rgba(116,203,234,.18); }
html[data-theme="dark"] .sunday-bridge-places span,
html[data-theme="dark"] .sunday-bridge-places a::after { color: #72d4f5; }

@media (max-width: 900px) {
  .home-cover { min-height: 580px; }
  .home-cover-shade {
    background:
      linear-gradient(90deg, rgba(8,22,29,.84), rgba(8,22,29,.28)),
      linear-gradient(180deg, transparent 40%, rgba(6,18,24,.72));
  }
  .sunday-bridge { grid-template-columns: 1fr; gap: 24px; }
  .sunday-bridge-intro h2 { white-space: normal; }
}

@media (max-width: 640px) {
  .home-cover { min-height: 560px; }
  .home-cover-photo { object-position: 60% center; }
  .home-cover-shade {
    background: linear-gradient(180deg, rgba(7,20,27,.34), rgba(7,20,27,.9) 80%);
  }
  .home-cover-content { justify-content: flex-end; padding-top: 86px; padding-bottom: 80px; }
  .home-cover-kicker { margin-bottom: 17px; font-size: 10px; }
  .home-cover-kicker::before { width: 28px; }
  .home-cover h1 { font-size: clamp(42px,12vw,58px); }
  .home-cover-lead { margin-top: 20px; font-size: 16px; line-height: 1.7; }
  .home-cover-actions { gap: 18px; margin-top: 23px; }
  .home-cover-caption { bottom: 17px; justify-content: flex-start; }
  .sunday-bridge { padding-top: 38px; padding-bottom: 38px; }
  .sunday-bridge-places { grid-template-columns: 1fr; }
  .sunday-bridge-places a { padding: 18px 4px; }
  .sunday-bridge-places a + a { border-top: 1px solid rgba(137,106,76,.2); border-left: 0; }
}

/* One warm visual system from header to footer. */
.home-page {
  --home-ink: #302822;
  --home-muted: #6f6258;
  --home-cream: #fbf7ef;
  --home-warm: #f2e8da;
  --home-aqua: #e4f5f4;
  --home-line: rgba(113,87,65,.16);
  background: var(--home-cream);
  color: var(--home-ink);
}

.home-page .site-header {
  border-top: 3px solid #28b9e7;
  border-bottom-color: rgba(113,87,65,.12);
  background: rgba(251,247,239,.94);
  box-shadow: 0 8px 28px rgba(73,55,42,.05);
  backdrop-filter: blur(18px);
}

.home-page .desktop-nav {
  border-color: rgba(18,175,230,.16);
  background: rgba(255,255,255,.54);
}

.home-page .desktop-nav a,
.home-page .brand-copy strong { color: var(--home-ink); }
.home-page .brand-copy small { color: #8a7a6d; }

.home-page .section { padding-top: clamp(58px,6vw,86px); padding-bottom: clamp(58px,6vw,86px); }
.home-page .section-heading h2 { color: var(--home-ink); letter-spacing: -.035em; }
.home-page .section-heading > p:not(.eyebrow),
.home-page .row-heading p { color: var(--home-muted); line-height: 1.75; }
.home-page .eyebrow { color: #0585b5; }

/* Latest message: quiet editorial feature, not a dashboard widget. */
.home-page .sermons {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px,.68fr) minmax(600px,1.32fr);
  gap: clamp(34px,4vw,60px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  padding-top: 42px;
  padding-bottom: 42px;
}

.home-page .sermons::before {
  content: none;
  display: none;
}

.home-page .sermons .row-heading { display: block; }
.home-page .sermons .sermon-heading-actions { max-width: 430px; margin-top: 25px; }
.home-page .sermons .sermon-heading-actions .text-link { display: inline-block; margin-top: 8px; }

.home-page .sermon-placeholder {
  grid-template-columns: minmax(0,1fr) 240px;
  height: 180px;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 22px 58px rgba(78,58,43,.08);
}

.home-page .sermon-placeholder::before,
.home-page .sermon-placeholder::after {
  content: none;
  display: none;
}

.home-page .latest-sermon-main .play {
  width: 54px;
  height: 54px;
  min-width: 54px;
  background: #18ace0;
  box-shadow: 0 12px 28px rgba(18,175,230,.24);
}

.home-page .sermon-summary-band {
  height: 100%;
  margin: 0;
  padding: 14px 16px;
  overflow: hidden;
  border-color: rgba(44,167,185,.2);
  background: linear-gradient(145deg,#eaf8f5,#dff1ee);
}

.home-page .sermon-summary-band p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 12px;
  line-height: 1.5;
}

.home-page .latest-sermon-main { height: 100%; gap: 14px; overflow: hidden; }
.home-page .latest-sermon-main > div { min-width: 0; }
.home-page .latest-sermon-main h3 {
  display: -webkit-box;
  margin: 5px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(19px,1.45vw,24px);
  line-height: 1.2;
}
.home-page .latest-sermon-main .auto-sermon-meta { line-height: 1.35; }
.home-page .latest-sermon-main .auto-sermon-scripture {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: 1.4;
}

/* Church life: large human photograph with a simple story rail. */
.home-page .activity-gallery {
  width: 100%;
  max-width: none;
  padding-right: max(24px,calc((100vw - 1500px)/2));
  padding-left: max(24px,calc((100vw - 1500px)/2));
  background: var(--home-warm);
}

.home-page .activity-gallery .row-heading {
  max-width: 1500px;
  margin: 0 auto 30px;
}

.home-page .activity-layout {
  max-width: 1500px;
  margin: 0 auto;
  gap: 24px;
}

.home-page .activity-carousel {
  min-height: 420px;
  border-radius: 30px;
  box-shadow: 0 24px 58px rgba(70,51,38,.13);
}

.home-page .activity-side-rail { gap: 16px; }
.home-page .activity-summary-list,
.home-page .activity-upcoming {
  border-color: rgba(113,87,65,.14);
  background: rgba(255,251,244,.74);
}

/* Locations: two generous places, one shared rhythm. */
.home-page .gatherings .section-heading { max-width: 760px; }
.home-page .gathering-grid { gap: 28px; }
.home-page .gathering-card {
  overflow: hidden;
  padding: 0 28px 30px;
  border: 1px solid var(--home-line);
  border-radius: 27px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 18px 48px rgba(78,58,43,.07);
}

.home-page .gathering-photo {
  width: calc(100% + 56px);
  height: 240px;
  margin: 0 -28px 25px;
  border-radius: 0;
}

.home-page .gathering-card .card-top { margin-bottom: 14px; }
.home-page .gathering-card h3 { color: var(--home-ink); }
.home-page .weekly-program {
  border-color: rgba(44,167,185,.18);
  background: #edf8f6;
}

/* First visit: a soft pause in the story. */
.home-page .welcome {
  background: linear-gradient(135deg,#dff2f0 0%,#edf8f5 52%,#f8eee2 100%);
}

.home-page .welcome .split {
  grid-template-columns: minmax(390px,.72fr) minmax(0,1.28fr);
  align-items: start;
  gap: clamp(38px,4vw,64px);
}
.home-page .welcome .section-heading h2 {
  max-width: 12em;
  font-size: clamp(40px,3.2vw,52px);
  line-height: 1.08;
  text-wrap: balance;
}
.home-page .welcome-support { display: grid; gap: 24px; }
.home-page .expect-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.home-page .expect-list article {
  display: block;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(63,106,103,.14);
  border-radius: 15px;
  background: rgba(255,255,255,.46);
}
.home-page .expect-list article:first-child { padding-top: 16px; }
.home-page .expect-list strong { display: block; margin-bottom: 8px; color: #078ab9; font-size: 12px; }
.home-page .expect-list h3 { margin: 0 0 6px; font-size: 16px; }
.home-page .expect-list p { margin: 0; font-size: 12px; line-height: 1.55; }

.home-page .welcome-faq-inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid rgba(63,106,103,.16);
}
.home-page .welcome-faq-inline-heading h3 { margin: 7px 0 0; font-size: 22px; line-height: 1.2; white-space: nowrap; }
.home-page .welcome-faq-inline .faq-list { gap: 7px; }
.home-page .faq-list details {
  border-color: var(--home-line);
  background: rgba(255,255,255,.5);
}
.home-page .faq-list summary { color: var(--home-ink); }
.home-page .faq-list p { color: var(--home-muted); }

/* Groups: map and invitation feel like one place. */
.home-page .group-map {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 30px;
  background: #fffaf2;
  box-shadow: 0 22px 58px rgba(78,58,43,.08);
}
.home-page .group-map-copy { padding: clamp(32px,4vw,56px); }
.home-page .group-map-visual { border-radius: 0; }

/* About: remove the generic card, make it a short statement. */
.home-page .about { text-align: center; }
.home-page .about-card {
  display: flex;
  max-width: 1040px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(38px,5vw,60px);
  border: 0;
  border-radius: 42% 42% 26px 26px / 18% 18% 26px 26px;
  background: #f1e6d8;
  box-shadow: none;
}
.home-page .about-copy { max-width: 720px; }
.home-page .about-copy p { color: var(--home-muted); }
.home-page .about-emblem { order: -1; }

/* Contact: a warm closing, with the form kept effortless. */
.home-page .contact-card {
  border-radius: 30px;
  background: linear-gradient(135deg,#173c46,#205561 58%,#246775);
  box-shadow: 0 25px 65px rgba(18,61,73,.18);
}
.home-page .contact-form {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}
.home-page .contact-form input,
.home-page .contact-form textarea {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.94);
  color: #302822;
}
.home-page .contact-form label > span {
  color: #f5fbfd;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
}
.home-page .contact-form small {
  color: rgba(255,255,255,.84);
  font-size: 13px;
  font-weight: 650;
}
.home-page .contact-form input::placeholder,
.home-page .contact-form textarea::placeholder {
  color: #746f6a;
  opacity: 1;
}

.home-page .site-footer {
  display: grid;
  grid-template-columns: minmax(260px,1fr) auto;
  grid-template-areas:
    "brand links"
    "copyright credit";
  align-items: center;
  column-gap: 44px;
  row-gap: 24px;
  border-top: 1px solid var(--home-line);
  background: transparent;
}
.home-page .footer-brand { grid-area: brand; justify-self: start; }
.home-page .footer-links { grid-area: links; justify-self: end; }
.home-page .footer-meta { display: contents; }
.home-page .footer-meta > small { grid-area: copyright; justify-self: start; }
.home-page .footer-legal { display: flex; flex-direction: column; gap: 4px; max-width: 640px; line-height: 1.45; }
.home-page .footer-legal span:last-child { font-size: 11px; color: var(--home-muted); opacity: .82; }
.home-page .site-credit { grid-area: credit; justify-self: end; }
.home-page .footer-links a,
.home-page .footer-brand strong { color: var(--home-ink); }

html[data-theme="dark"] .home-page {
  --home-ink: #f3eee7;
  --home-muted: #c8bbb0;
  --home-cream: #081923;
  --home-warm: #102832;
  --home-line: rgba(121,200,222,.17);
  background: var(--home-cream);
}
html[data-theme="dark"] .home-page .site-header { background: rgba(7,23,33,.94); }
html[data-theme="dark"] .home-page .activity-gallery { background: var(--home-warm); }
html[data-theme="dark"] .home-page .sermon-placeholder,
html[data-theme="dark"] .home-page .gathering-card,
html[data-theme="dark"] .home-page .faq-list details { background: rgba(13,38,50,.72); }
html[data-theme="dark"] .home-page .weekly-program { background: #102f3a; }
html[data-theme="dark"] .home-page .welcome { background: linear-gradient(135deg,#102f39,#102a34 55%,#2f2925); }
html[data-theme="dark"] .home-page .group-map { background: #0d2732; }
html[data-theme="dark"] .home-page .about-card { background: #292722; }

@media (max-width: 980px) {
  .home-page .sermons { grid-template-columns: 1fr; gap: 32px; }
  .home-page .activity-carousel { min-height: 420px; }
  .home-page .welcome .split { grid-template-columns: 1fr; }
  .home-page .sermons { width: min(100% - 30px,900px); }
  .home-page .sermon-placeholder { height: auto; grid-template-columns: 1fr; }
  .home-page .sermon-summary-band { min-height: 150px; }
}

@media (max-width: 760px) {
  .home-page .section { padding-top: 58px; padding-bottom: 58px; }
  .home-page .sermon-placeholder { min-height: 0; padding: 20px; }
  .home-page .activity-gallery { padding-right: 14px; padding-left: 14px; }
  .home-page .activity-carousel { min-height: 350px; border-radius: 22px; }
  .home-page .gathering-card { padding: 0 20px 24px; }
  .home-page .gathering-photo { width: calc(100% + 40px); height: 230px; margin-right: -20px; margin-left: -20px; }
  .home-page .group-map { margin-right: 11px; margin-left: 11px; border-radius: 23px; }
  .home-page .about-card { border-radius: 24px; }
  .home-page .contact-card { border-radius: 24px; }
  .home-page .expect-list { grid-template-columns: 1fr; }
  .home-page .welcome-faq-inline { grid-template-columns: 1fr; gap: 14px; }
  .home-page .site-footer {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "links" "copyright" "credit";
    justify-items: start;
    gap: 18px;
  }
  .home-page .footer-links,
  .home-page .site-credit { justify-self: start; }
}
