/* ==========================================================================
   Churches page
   Homepage materials, aimed at one church site: Planning Center Groups,
   staff who can edit, and a fast pivot when the season changes.
   ========================================================================== */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 92px)) 0 clamp(24px, 4vw, 48px);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 42% at 50% 0%, rgba(124, 58, 237, 0.28), transparent 68%),
    radial-gradient(ellipse 36% 28% at 82% 18%, rgba(234, 179, 8, 0.08), transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-head { margin-bottom: 0; }
.page-hero .h-display { max-width: 12em; }

.page-hero .hero-kicker,
.page-hero .hero-actions,
.page-hero .hero-note { animation: none; }

.page-hero .hero-actions { margin-top: 28px; }

.cms-strip.is-plain {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
  justify-content: center;
}

.page-hero .console-wrap { margin-top: clamp(40px, 6vw, 72px); }

/* ----- Season console ----- */
.church-console .cs-top,
.church-console .cs-selectors,
.church-console .cs-actions,
.church-console .cs-pill { min-width: 0; }

.church-console .cs-selectors { flex: 1; }

.church-body {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}

.church-side,
.church-main,
.church-seasons,
.church-tiles,
.church-tile,
.act-row { min-width: 0; }

.church-side {
  border-right: 1px solid var(--line);
  background: rgba(4, 6, 12, 0.35);
  padding-bottom: 14px;
}

.church-side-label {
  padding: 16px 16px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.church-seasons {
  display: grid;
  gap: 2px;
  padding: 0 8px;
}

.church-season {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.church-season:hover { background: rgba(255, 255, 255, 0.04); }

.church-season.on {
  border-color: rgba(139, 92, 246, 0.32);
  background: rgba(139, 92, 246, 0.1);
}

.church-season i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--swatch, var(--violet-300));
  box-shadow: 0 0 8px var(--swatch, var(--violet-300));
}

.church-side-note {
  margin: 14px 16px 0;
  color: var(--text-3);
  font-size: 0.75rem;
  line-height: 1.45;
}

.church-main {
  padding: 16px;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 60%);
}

.season-site {
  --bg: #0f1a33;
  --fg: #f5ecd7;
  --ac: #eab308;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 0.55s var(--ease-out), color 0.55s var(--ease-out);
}

.season-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

.season-nav b { margin-right: auto; font-size: 0.8rem; letter-spacing: -0.02em; }
.season-nav .on { color: var(--ac); }

.season-hero {
  min-height: 168px;
  padding: 8px 22px 28px;
}

.season-hero small {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac);
}

.season-hero h4 {
  max-width: 16ch;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.season-hero p {
  max-width: 36ch;
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.78;
}

.season-ask {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.season-ask span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-300);
}

.church-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.church-tile {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
}

.church-tile .icon-wrap {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--violet-300);
}

.church-tile .icon { width: 15px; height: 15px; }
.church-tile .ttl { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.02em; }
.church-tile .meta { margin-top: 2px; color: var(--text-3); font-size: 0.76rem; line-height: 1.4; }

.church-activity {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 6, 12, 0.28);
  overflow: hidden;
}

.church-activity h4 {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.act-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.88rem;
}

.act-row:first-of-type { border-top: 0; }
.act-row strong { color: var(--text); font-weight: 600; }
.act-row .ago { margin-left: auto; color: var(--text-3); font-size: 0.75rem; white-space: nowrap; }

.avatar {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
}

.avatar.a2 { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.avatar.a3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

/* ----- Shared card treatments ----- */
.band {
  background:
    radial-gradient(ellipse 46% 32% at 12% 0%, rgba(139, 92, 246, 0.12), transparent 70%),
    linear-gradient(180deg, var(--ink-0), var(--ink-1) 42%, var(--ink-0));
}

.bento-card.is-flat,
.bento-card.is-cap { min-height: 0; }

.bento-card.is-flat { grid-column: span 6; }
.bento-card.is-cap { grid-column: span 4; gap: 14px; }
.bento-card.is-cap h3 { font-size: 1.22rem; }

.bento-card.b-pain {
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, rgba(248, 113, 113, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}

.bento-card.b-gain {
  background:
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(16, 185, 129, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}

.split-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.split-list li {
  display: flex;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

.split-icon {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.split-icon .icon { width: 15px; height: 15px; }
.b-pain .split-icon { color: #fca5a5; }
.b-gain .split-icon { color: var(--green-300); }

.cap-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet-300);
}

.cap-icon .icon { width: 18px; height: 18px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.8rem;
}

.chip .icon { width: 13px; height: 13px; color: var(--violet-300); }

.step-num {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--violet-300);
}

.field-list,
.limit-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.field-list {
  grid-template-columns: 1fr 1fr;
}

.field-list li,
.limit-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.45;
}

.field-list .icon {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  color: var(--green-300);
}

.limit-list strong { color: var(--text); font-weight: 600; }

.price-table {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}

.price-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.price-row:first-child {
  border-top: 0;
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.price-row:first-child span:nth-child(n + 2) { text-align: right; }
.price-row:first-child .is-us { color: var(--violet-300); }
.price-label { font-weight: 500; letter-spacing: -0.015em; }
.price-other { text-align: right; color: var(--text-3); }
.price-other.is-bad { color: #fca5a5; }

.price-us {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--green-300);
  font-weight: 600;
  text-align: right;
}

.price-us .icon { width: 15px; height: 15px; }

.fine-print {
  max-width: 68ch;
  margin: 18px auto 0;
  text-align: center;
  color: var(--text-3);
  font-size: 0.85rem;
  line-height: 1.55;
}

.fine-print a { color: var(--text-2); }
.fine-print a:hover { color: var(--violet-300); }

@media (max-width: 1000px) {
  .bento-card.is-cap { grid-column: span 6; }
  .field-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .church-body { grid-template-columns: minmax(0, 1fr); }
  .church-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .church-seasons {
    display: flex;
    gap: 8px;
    padding: 0 12px 14px;
    overflow-x: auto;
  }
  .church-season {
    flex: none;
    width: auto;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
  }
  .church-side-note { display: none; }
  .church-tiles,
  .bento-card.is-flat { grid-column: span 12; }
  .church-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .price-row { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .price-label,
  .price-row:first-child span:first-child { grid-column: 1 / -1; text-align: left; }
  .price-other,
  .price-us,
  .price-row:first-child span { text-align: left; justify-content: flex-start; }
  .bento-card.is-cap { grid-column: span 12; }
  .page-hero .hero-actions .btn { width: 100%; }
}
