.churches-page {
  background:
    radial-gradient(circle at 90% 14%, rgba(196, 161, 90, 0.14), transparent 25rem),
    var(--warm-frame);
}

.churches-main {
  max-width: var(--max-wide);
  padding: 1.35rem var(--content-gutter) 5rem;
}

.churches-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(19rem, 0.86fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin: 0 calc(50% - 50vw) 3rem;
  padding: clamp(2.7rem, 5vw, 4.8rem) max(var(--content-gutter), calc(50vw - 38rem));
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(196, 161, 90, 0.18), transparent 25rem),
    radial-gradient(circle at 7% 92%, rgba(61, 154, 114, 0.15), transparent 23rem),
    var(--forest);
  color: #f3f6ee;
  isolation: isolate;
}

.churches-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -12rem;
  z-index: -1;
  width: 28rem;
  aspect-ratio: 1;
  border: 1px solid rgba(196, 161, 90, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 2.8rem rgba(196, 161, 90, 0.035), 0 0 0 5.6rem rgba(196, 161, 90, 0.025);
  content: "";
  pointer-events: none;
}

.churches-hero-copy,
.churches-price-card {
  position: relative;
  z-index: 1;
}

.churches-hero .eyebrow,
.churches-renewal .eyebrow {
  color: var(--gold);
}

.churches-hero h1 {
  max-width: 10ch;
  margin-top: 1rem;
  color: #f3f6ee;
  font-size: clamp(3.25rem, 6.8vw, 5.55rem);
  line-height: 0.98;
}

.churches-hero-lede {
  max-width: 34rem;
  margin-top: 1.2rem;
  color: #dce6da;
  font-size: clamp(1.15rem, 2vw, 1.36rem);
  line-height: 1.55;
}

.churches-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.churches-hero .button-quiet {
  border-color: rgba(243, 246, 238, 0.42);
  background: transparent;
  color: #f3f6ee;
}

.churches-hero .button-quiet:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.churches-availability {
  max-width: 34rem;
  margin-top: 1.2rem;
  color: #bdcbbd;
  font-size: 1rem;
  line-height: 1.5;
}

.churches-availability a {
  color: #f0d48a;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.churches-price-card {
  width: 100%;
  padding: clamp(1.3rem, 2.8vw, 2rem);
  border: 1px solid rgba(196, 161, 90, 0.65);
  border-radius: 1.45rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1.4rem 3.8rem rgba(0, 0, 0, 0.22);
}

.churches-price-card::before {
  display: block;
  width: 3rem;
  height: 0.2rem;
  margin-bottom: 1rem;
  border-radius: 99px;
  background: var(--gold);
  content: "";
}

.churches-price-card .eyebrow {
  color: var(--evergreen);
}

.churches-price-title {
  margin-top: 0.45rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.churches-unit-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.05rem;
}

.churches-unit-price strong {
  color: var(--forest);
  font: 400 clamp(3rem, 5vw, 4.3rem)/0.95 var(--display);
  letter-spacing: -0.04em;
}

.churches-unit-price span {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.25;
}

.churches-price-note {
  margin-top: 0.6rem;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.churches-quantity-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 0.8rem;
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
}

.churches-quantity-label span {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.churches-quantity-label .churches-label-main {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
}

.churches-quantity-help {
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.churches-quantity-input {
  width: 100%;
  min-height: 3.4rem;
  margin-top: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: #fffdf8;
  color: var(--ink);
  font: 700 1.2rem/1.2 var(--sans);
}

.churches-quantity-input:focus-visible {
  border-color: var(--evergreen);
  outline: 3px solid color-mix(in srgb, var(--focus-ring) 58%, transparent);
  outline-offset: 2px;
}

.churches-quantity-input[aria-invalid="true"] {
  border-color: #a3382b;
}

.churches-field-error {
  margin-top: 0.35rem;
  color: #842a20;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

.churches-field-error[hidden] {
  display: none;
}

.churches-total-box {
  display: grid;
  gap: 0.1rem;
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-left: 3px solid var(--gold);
  border-radius: 0.25rem 0.85rem 0.85rem 0.25rem;
  background: color-mix(in srgb, var(--mint) 58%, var(--surface));
}

.churches-total-label {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.churches-total-value {
  color: var(--forest);
  font: 400 clamp(2.25rem, 4vw, 3.1rem)/1.05 var(--display);
  font-variant-numeric: tabular-nums;
}

.churches-total-summary {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

.churches-estimate-note {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.churches-checkout-button {
  width: 100%;
  margin-top: 1rem;
}

.churches-checkout-button:disabled {
  background: #687970;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.78;
  transform: none;
}

.churches-checkout-status {
  margin-top: 0.65rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.churches-account-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 750;
  text-underline-offset: 0.17em;
}

.churches-section {
  padding: clamp(2.6rem, 5vw, 4rem) 0;
  scroll-margin-top: 6rem;
}

.churches-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.7fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
}

.churches-section-heading .eyebrow {
  margin-bottom: 0.75rem;
}

.churches-section-heading h2 {
  max-width: 15ch;
}

.churches-section-heading > p {
  color: var(--ink-muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.churches-detail-grid,
.churches-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.7rem;
}

.churches-detail-card,
.churches-step-card {
  min-width: 0;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--rule) 82%, transparent);
  border-radius: 1.2rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-soft);
}

.churches-detail-card:nth-child(2) {
  background: color-mix(in srgb, var(--mint) 74%, var(--surface));
}

.churches-detail-card:nth-child(3) {
  background: color-mix(in srgb, var(--gold-soft) 62%, var(--surface));
}

.churches-detail-card .eyebrow,
.churches-step-card .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}

.churches-detail-card h3,
.churches-step-card h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
}

.churches-detail-card p,
.churches-step-card p {
  margin-top: 0.65rem;
  color: var(--ink-muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.churches-renewal {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  padding: clamp(2rem, 5vw, 3.7rem);
  border: 1px solid rgba(196, 161, 90, 0.32);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 100% 4%, rgba(196, 161, 90, 0.16), transparent 22rem),
    var(--forest);
  color: #f3f6ee;
  box-shadow: var(--shadow);
}

.churches-renewal h2 {
  max-width: 15ch;
  margin-top: 0.65rem;
  color: #f3f6ee;
}

.churches-renewal-intro {
  max-width: 47rem;
  margin-top: 0.95rem;
  color: #dce6da;
  font-size: 1.1rem;
  line-height: 1.55;
}

.churches-renewal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 2rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.churches-renewal-list li {
  position: relative;
  padding-left: 1.4rem;
  color: #e8eee6;
  font-size: 1.04rem;
  line-height: 1.5;
}

.churches-renewal-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.churches-step-card {
  position: relative;
  padding-top: 1.65rem;
}

.churches-step-number {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.8rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 72%, var(--rule));
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 800;
}

.churches-next-step {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

.churches-next-step p {
  flex: 1 1 18rem;
  color: var(--ink-muted);
}

.churches-next-step a {
  font-weight: 750;
  text-underline-offset: 0.17em;
}

.churches-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid color-mix(in srgb, var(--evergreen) 22%, var(--rule));
  border-radius: 1.4rem;
  background: var(--mint);
}

.churches-final-cta h2 {
  max-width: 16ch;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.churches-final-cta p {
  max-width: 42rem;
  margin-top: 0.6rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.churches-final-actions {
  display: grid;
  gap: 0.6rem;
  min-width: 14rem;
}

.churches-final-actions .button {
  width: 100%;
}

@media (max-width: 940px) {
  .churches-hero {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  }

  .churches-detail-grid,
  .churches-steps-grid {
    grid-template-columns: 1fr;
  }

  .churches-detail-card,
  .churches-step-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
  }

  .churches-detail-card .eyebrow,
  .churches-step-number {
    grid-row: span 2;
    align-self: start;
  }

  .churches-detail-card h3,
  .churches-step-card h3,
  .churches-detail-card p,
  .churches-step-card p {
    grid-column: 2;
  }

  .churches-detail-card .eyebrow { margin: 0; }
  .churches-step-number { margin: 0; }
  .churches-step-card .eyebrow { grid-column: 2; margin: 0 0 0.35rem; }
}

@media (max-width: 760px) {
  .churches-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    padding-top: 2.65rem;
    padding-bottom: 2.65rem;
  }

  .churches-hero h1 { max-width: 12ch; }

  .churches-price-card {
    max-width: 40rem;
  }

  .churches-detail-card { display: block; }
  .churches-detail-card .eyebrow { margin-bottom: 0.75rem; }

  .churches-section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

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

  .churches-final-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .churches-final-actions {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .churches-main {
    padding-top: 0.8rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .churches-page .crumbs { margin-bottom: 0.75rem; }

  .churches-hero {
    padding-right: 1rem;
    padding-left: 1rem;
    padding-top: 1.75rem;
  }

  .churches-hero h1 {
    margin-top: 0.7rem;
    font-size: clamp(3rem, 14vw, 3.9rem);
  }

  .churches-hero-lede { margin-top: 0.95rem; }

  .churches-hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 1.3rem;
  }

  .churches-hero-actions .button { width: 100%; }

  .churches-unit-price { flex-wrap: wrap; }

  .churches-price-card,
  .churches-renewal { border-radius: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .churches-page *,
  .churches-page *::before,
  .churches-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
