:root {
  --parchment: #f8f4ed;
  --ivory: #fffdf9;
  --ink: #3d3429;
  --ink-muted: #6b5f52;
  --gold: #b8956a;
  --gold-soft: #e8dcc8;
  --wine: #6b3a42;
  --wine-hover: #5a2f36;
  --sage: #7a8f7a;
  --mary: #7a8fa8;
  --shadow: rgba(61, 52, 41, 0.08);
  --shadow-deep: rgba(61, 52, 41, 0.12);
  --border: #e8dcc8;
  --radius: 14px;
  --radius-sm: 10px;
  --content: 640px;
  --content-wide: 860px;
  --page-pad: clamp(20px, 5vw, 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Hero (full-bleed) —— */

.hero {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 42vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 8vh, 96px) var(--page-pad);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(184, 149, 106, 0.14), transparent 65%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(122, 143, 168, 0.08), transparent 55%),
    linear-gradient(180deg, #f3ece2 0%, var(--parchment) 100%);
  border-bottom: 1px solid var(--gold-soft);
}

.hero__ornament {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero__ornament svg {
  width: 100%;
  height: 100%;
  opacity: 0.08;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
}

.hero__title {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6.5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.hero__title-accent {
  color: var(--gold);
  font-weight: 400;
}

.hero__subtitle {
  margin: 0 auto;
  max-width: 580px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-muted);
  font-weight: 400;
  line-height: 1.75;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px auto 0;
  max-width: 320px;
}

.hero__divider::before,
.hero__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.hero__divider span {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

/* —— Steps bar (full-width band) —— */

.steps-bar {
  width: 100%;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  padding: 18px var(--page-pad);
}

.steps-bar__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.steps__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--wine);
  font-size: 0.8rem;
  font-weight: 700;
}

.steps__arrow {
  color: var(--gold);
  opacity: 0.5;
  margin: 0 8px;
  font-size: 0.75rem;
}

@media (max-width: 480px) {
  .steps__arrow {
    display: none;
  }

  .steps-bar__inner {
    gap: 14px;
  }
}

/* —— Page sections (full-bleed vertical flow) —— */

.page-section {
  width: 100%;
  padding: clamp(40px, 6vh, 72px) var(--page-pad);
}

.page-section--ivory {
  background: var(--ivory);
}

.page-section--parchment {
  background: var(--parchment);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}

.page-section--cta {
  padding-bottom: clamp(56px, 8vh, 88px);
}

.page-section--resources {
  background: linear-gradient(180deg, var(--parchment) 0%, #f0e8dc 100%);
  padding-top: clamp(32px, 5vh, 56px);
  padding-bottom: clamp(32px, 5vh, 56px);
}

.page-section--thankyou {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(56px, 10vh, 96px) var(--page-pad);
}

.page-section__inner {
  max-width: var(--content);
  margin-inline: auto;
}

.page-section__inner--wide {
  max-width: var(--content-wide);
}

/* —— Section typography —— */

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--ink);
}

.section-title__icon {
  color: var(--gold);
  font-size: 0.85rem;
}

.section-lead {
  margin: 0 0 28px;
  font-size: 1.02rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* —— Form fields —— */

.prayer-form {
  flex: 1;
}

.field {
  margin-bottom: 0;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--parchment);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: #9a8f82;
  font-style: italic;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ivory);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.25);
}

textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.65;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field-row .field:first-child {
    margin-bottom: 20px;
  }
}

/* —— Offering panel —— */

.offering {
  margin: 0 0 28px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(232, 220, 200, 0.4), rgba(248, 244, 237, 0.7));
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.offering__text {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.offering__amount {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wine);
}

/* —— Button —— */

.btn {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding: 17px 32px;
  background: var(--wine);
  color: #fffdf9;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
}

.btn:hover {
  background: var(--wine-hover);
  box-shadow: 0 6px 28px var(--shadow-deep);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.45);
}

/* —— Test mode —— */

.test-box {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: rgba(232, 220, 200, 0.3);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.test-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
}

.test-box input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--wine);
}

.test-box p {
  margin: 10px 0 0 26px;
  font-size: 0.85rem;
}

/* —— Resources & promos (horizontal grid) —— */

.resources {
  margin-top: 8px;
}

.resources__heading {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.02em;
}

.resources__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.promo {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  background: var(--ivory);
  box-shadow: 0 4px 20px var(--shadow);
  border-top: 3px solid var(--gold-soft);
}

.promo h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.promo p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.promo a {
  color: var(--wine);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  transition: color 0.2s, border-color 0.2s;
}

.promo a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* —— Ad frames —— */

.ad-frame {
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 249, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
}

.ad-frame__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.65;
  margin-bottom: 8px;
}

.ad-frame[data-live="true"] {
  min-height: 100px;
  background: transparent;
}

.ad-frame[data-live="true"] .ad-frame__label {
  align-self: flex-start;
  padding: 8px 12px 0;
  margin-bottom: 0;
}

/* —— Footer (full-bleed) —— */

.site-footer {
  width: 100%;
  margin-top: auto;
  padding: 36px var(--page-pad) 48px;
  background: var(--ivory);
  border-top: 1px solid var(--gold-soft);
}

.site-footer__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  text-align: center;
}

.site-footer p {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.65;
}

.site-footer p:last-child {
  margin-bottom: 0;
  font-family: "Source Sans 3", sans-serif;
  font-style: normal;
  font-size: 0.82rem;
}

/* —— Blessing card (thank-you) —— */

.blessing-card {
  text-align: center;
  padding: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 40px);
  background: linear-gradient(
    165deg,
    rgba(255, 253, 249, 1) 0%,
    rgba(232, 220, 200, 0.35) 50%,
    rgba(255, 253, 249, 1) 100%
  );
  border-radius: var(--radius);
  border: 1px solid var(--gold-soft);
  margin-bottom: 28px;
  box-shadow: 0 8px 32px var(--shadow);
}

.blessing-card__icon {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 14px;
  letter-spacing: 0.3em;
}

.blessing-card__title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--ink);
}

.blessing-card__text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.blessing-card__peace {
  margin: 18px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sage);
}

.thank-you__help {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.thank-you__link {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: var(--wine);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  width: fit-content;
  margin-inline: auto;
  transition: color 0.2s;
}

.thank-you__link:hover {
  color: var(--gold);
}
