.swa-homepage {
  --home-navy: #17324f;
  --home-navy-deep: #10273d;
  --home-gold: #d2a94e;
  --home-gold-dark: #a87d25;
  --home-sky: #dceaf0;
  --home-sage: #557568;
  --home-cream: #f8f5ef;
  --home-ink: #18222d;
  --home-muted: #5d6873;
  --home-line: #dce1e4;
  background: #fff;
  color: var(--home-ink);
  font-family: "DM Sans", var(--sans);
}

.swa-homepage h1,
.swa-homepage h2,
.swa-homepage h3,
.swa-homepage .brand,
.swa-homepage .public-footer-logo {
  font-family: "Fraunces", Georgia, serif;
}

.swa-homepage .container { max-width: 1180px; }
.swa-homepage .swa-public-footer { margin-top: 0; }
.swa-homepage main { overflow: hidden; }
.home-section { padding: 88px 0; }
.home-kicker {
  margin: 0 0 12px;
  color: var(--home-gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  isolation: isolate;
  color: #fff;
  background: var(--home-navy-deep);
}

.home-hero-image,
.home-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-image {
  z-index: -2;
  background: url("/assets/img/sermon-writer-home-hero.webp") center center / cover no-repeat;
}

.home-hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 32, 51, .97) 0%, rgba(12, 32, 51, .91) 43%, rgba(12, 32, 51, .46) 72%, rgba(12, 32, 51, .22) 100%),
    linear-gradient(0deg, rgba(12, 32, 51, .5), transparent 50%);
}

.home-hero-content {
  padding-top: 66px;
  padding-bottom: 76px;
}

.home-hero .home-kicker { color: #f2cf7b; }
.home-hero h1 {
  max-width: 740px;
  margin: 0 0 22px;
  color: #fff;
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: 0;
}

.home-hero-lede {
  max-width: 690px;
  margin: 0;
  color: #e2eaf0;
  font-size: 19px;
  line-height: 1.7;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-btn-gold {
  border: 1px solid var(--home-gold);
  border-radius: 8px;
  background: var(--home-gold);
  color: #172230;
}
.home-btn-gold:hover { border-color: #e3bd64; background: #e3bd64; color: #172230; }
.home-btn-light {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
}
.home-btn-light:hover { background: #fff; color: var(--home-navy); }
.home-btn-outline {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
  background: transparent;
  color: #fff;
}
.home-btn-outline:hover { background: #fff; color: var(--home-navy); }

.home-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  color: #d7e1e9;
  font-size: 13px;
  font-weight: 600;
}
.home-hero-proof i { margin-right: 7px; color: #f2cf7b; }

.home-trust-strip {
  border-bottom: 1px solid var(--home-line);
  background: #fff;
}
.home-trust-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.home-trust-strip .container > div {
  min-height: 104px;
  padding: 25px 28px;
  border-right: 1px solid var(--home-line);
}
.home-trust-strip .container > div:first-child { border-left: 1px solid var(--home-line); }
.home-trust-strip strong { display: block; margin-bottom: 3px; color: var(--home-navy); font-family: "Fraunces", Georgia, serif; font-size: 18px; }
.home-trust-strip span { color: var(--home-muted); font-size: 13px; }

.home-generator-section { background: var(--home-cream); }
.home-generator-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(570px, 1.28fr);
  gap: 58px;
  align-items: start;
}
.home-generator-intro {
  position: sticky;
  top: 96px;
  padding-top: 30px;
}
.home-generator-intro h2,
.home-section-heading h2,
.home-founder-copy h2,
.home-faq-layout h2 {
  margin: 0 0 16px;
  color: var(--home-navy);
  font-size: 40px;
  line-height: 1.14;
  letter-spacing: 0;
}
.home-generator-intro > p:not(.home-kicker),
.home-section-heading > p:not(.home-kicker),
.home-founder-copy > p,
.home-faq-layout > div:first-child > p:not(.home-kicker) {
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.75;
}
.home-generator-intro .denom-hero {
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid #cbd6dc;
  border-radius: 8px;
  background: #fff;
}
.home-generator-intro .denom-hero label { color: var(--home-navy); }
.home-generator-intro .denom-hero select { border: 1px solid var(--home-line); border-radius: 6px; }
.home-generator-intro .denom-blurb { color: var(--home-sage); }
.home-generator-intro .denom-help > summary { color: var(--home-navy); }
.home-generator-intro .denom-help-body { background: var(--home-sky); color: var(--home-ink); }
.home-generator-intro .denom-help-body strong { color: var(--home-navy); }
.home-check-list { margin: 24px 0 0; padding: 0; list-style: none; }
.home-check-list li { display: flex; gap: 10px; margin: 11px 0; color: #3f4b56; font-size: 14px; }
.home-check-list i { margin-top: 4px; color: var(--home-sage); }
.home-generator-form .generator {
  margin: 0;
  padding: 34px;
  border: 1px solid #d6dde1;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 50, 79, .1);
}
.home-generator-form .generator h2 { font-size: 30px; }
.home-generator-form .field input,
.home-generator-form .field select,
.home-generator-form .field textarea { border-radius: 6px; }
.home-generator-form .btn { border-radius: 6px; }
.home-generator-proof {
  display: flex;
  gap: 30px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #d6dde1;
  align-items: center;
  justify-content: space-between;
}
.home-generator-review { display: flex; min-width: 0; max-width: 780px; gap: 16px; align-items: center; }
.home-generator-review > img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; }
.home-review-stars { margin-bottom: 5px; color: var(--home-gold-dark); font-size: 12px; }
.home-generator-review blockquote { margin: 0 0 5px; color: var(--home-navy); font-family: "Fraunces", Georgia, serif; font-size: 17px; line-height: 1.45; }
.home-generator-review p { margin: 0; color: var(--home-muted); font-size: 12px; }
.home-generator-review p strong { color: var(--home-ink); }
.home-generator-review p span { display: block; margin-top: 2px; }
.home-plan-assurance { display: grid; min-width: 235px; gap: 8px; color: var(--home-navy); font-size: 13px; font-weight: 700; }
.home-plan-assurance > span { display: flex; gap: 8px; align-items: center; }
.home-plan-assurance i { width: 16px; color: var(--home-sage); text-align: center; }

.home-section-heading { max-width: 750px; margin: 0 auto 46px; text-align: center; }
.home-section-heading-left { max-width: 760px; margin-left: 0; text-align: left; }

.home-workspace-section { background: #fff; }
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}
.home-feature {
  min-height: 292px;
  padding: 32px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: #fff;
  color: var(--home-ink);
}
.home-feature:hover { z-index: 1; background: #fbfcfc; text-decoration: none; box-shadow: inset 0 3px 0 var(--home-gold); }
.home-feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--home-sky);
  color: var(--home-navy);
  font-size: 18px;
}
.home-feature h3 { margin: 0 0 10px; color: var(--home-navy); font-size: 22px; }
.home-feature p { margin: 0 0 20px; color: var(--home-muted); font-size: 14px; line-height: 1.7; }
.home-text-link { color: var(--home-navy); font-size: 14px; font-weight: 700; }
.home-text-link i { margin-left: 6px; font-size: 11px; }

.home-occasions-section { background: #eef4f5; }
.home-occasion-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  gap: 18px;
}
.home-occasion {
  overflow: hidden;
  border: 1px solid #d2dfe2;
  border-radius: 8px;
  background: #fff;
}
.home-occasion img { display: block; width: 100%; height: 180px; object-fit: cover; }
.home-occasion > div,
.home-occasion-text { padding: 24px; }
.home-occasion span { color: var(--home-gold-dark); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-occasion h3 { margin: 7px 0 9px; color: var(--home-navy); font-size: 21px; }
.home-occasion p { margin: 0 0 16px; color: var(--home-muted); font-size: 14px; line-height: 1.65; }
.home-occasion a { color: var(--home-navy); font-size: 13px; font-weight: 700; }
.home-occasion-featured {
  grid-row: span 2;
}
.home-occasion-featured img { height: 290px; }
.home-occasion-text {
  min-height: 216px;
  background: var(--home-navy);
}
.home-occasion-text span { color: #efca73; }
.home-occasion-text h3,
.home-occasion-text a { color: #fff; }
.home-occasion-text p { color: #d8e2e9; }

.home-process-section { background: #fff; }
.home-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.home-process li {
  min-height: 252px;
  padding: 28px;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  border-right: 1px solid var(--home-line);
}
.home-process li:first-child { border-left: 1px solid var(--home-line); }
.home-process li > span {
  display: block;
  margin-bottom: 28px;
  color: var(--home-gold-dark);
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
}
.home-process h3 { margin: 0 0 10px; color: var(--home-navy); font-size: 20px; }
.home-process p { margin: 0; color: var(--home-muted); font-size: 14px; line-height: 1.7; }

.home-denominations-section { background: var(--home-navy-deep); }
.home-denominations-section .home-kicker { color: #efca73; }
.home-denominations-section .home-section-heading h2 { color: #fff; }
.home-denominations-section .home-section-heading p:not(.home-kicker) { color: #c7d4df; }
.home-denominations-section .denom-cards { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.home-denominations-section .denom-cards a {
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  color: #edf3f7;
  font-family: "DM Sans", var(--sans);
  font-size: 13px;
}
.home-denominations-section .denom-cards a:hover { border-color: var(--home-gold); background: rgba(255,255,255,.11); box-shadow: none; }

.home-founder-section { background: #fff; }
.home-founder-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 68px;
  align-items: center;
}
.home-founder-photo { position: relative; }
.home-founder-photo::before {
  position: absolute;
  top: -16px;
  right: -16px;
  bottom: 16px;
  left: 16px;
  z-index: 0;
  border: 1px solid var(--home-gold);
  content: "";
}
.home-founder-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 56% center;
}
.home-founder-copy { max-width: 650px; }
.home-founder-copy .home-founder-name { margin: 22px 0 0; color: var(--home-navy); font-weight: 700; }
.home-founder-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; align-items: center; }
.home-founder-actions .btn { border-radius: 6px; }

.home-resource-section { background: var(--home-cream); }
.home-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-resource-grid > a {
  min-height: 236px;
  padding: 26px;
  border: 1px solid #dedbd5;
  border-radius: 8px;
  background: #fff;
  color: var(--home-ink);
}
.home-resource-grid > a:hover { border-color: var(--home-gold); text-decoration: none; transform: translateY(-2px); }
.home-resource-grid span { color: var(--home-gold-dark); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.home-resource-grid h3 { margin: 16px 0 10px; color: var(--home-navy); font-size: 20px; }
.home-resource-grid p { margin: 0; color: var(--home-muted); font-size: 14px; line-height: 1.65; }

.home-faq-section { background: #fff; }
.home-faq-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.home-faq-list { border-top: 1px solid var(--home-line); }
.home-faq-list details { border-bottom: 1px solid var(--home-line); }
.home-faq-list summary {
  position: relative;
  padding: 22px 38px 22px 0;
  color: var(--home-navy);
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after { position: absolute; top: 20px; right: 4px; content: "+"; font-family: "DM Sans", sans-serif; font-size: 22px; font-weight: 400; }
.home-faq-list details[open] summary::after { content: "−"; }
.home-faq-list p { margin: -4px 42px 22px 0; color: var(--home-muted); font-size: 14px; line-height: 1.7; }

.home-final-cta {
  padding: 74px 0;
  background: var(--home-navy);
  text-align: center;
}
.home-final-cta .home-kicker { color: #efca73; }
.home-final-cta h2 { max-width: 820px; margin: 0 auto 28px; color: #fff; font-size: 40px; line-height: 1.18; }
.home-final-cta .container > div { display: flex; justify-content: center; gap: 12px; }
.home-final-assurance { margin: 18px 0 0; color: #d8e2e9; font-size: 13px; }
.home-final-assurance i { margin-right: 6px; color: #efca73; }
.home-final-assurance b { margin: 0 8px; color: rgba(255,255,255,.4); font-weight: 400; }

@media (max-width: 1000px) {
  .home-hero h1 { font-size: 46px; }
  .home-generator-layout { grid-template-columns: 1fr; }
  .home-generator-intro { position: static; max-width: 720px; padding-top: 0; }
  .home-generator-proof { align-items: flex-start; flex-direction: column; }
  .home-plan-assurance { display: flex; min-width: 0; flex-wrap: wrap; gap: 12px 24px; }
  .home-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .home-occasion-grid { grid-template-columns: 1fr 1fr; }
  .home-occasion-featured { grid-column: span 2; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .home-occasion-featured img { height: 100%; min-height: 320px; }
  .home-process { grid-template-columns: repeat(2, 1fr); }
  .home-process li:nth-child(3) { border-left: 1px solid var(--home-line); }
  .home-denominations-section .denom-cards { grid-template-columns: repeat(3, 1fr); }
  .home-resource-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .home-section { padding: 64px 0; }
  .home-hero { min-height: 580px; align-items: flex-end; }
  .home-hero-image { background-position: 61% center; }
  .home-hero-overlay {
    background:
      linear-gradient(0deg, rgba(12,32,51,.98) 4%, rgba(12,32,51,.89) 58%, rgba(12,32,51,.45) 100%),
      linear-gradient(90deg, rgba(12,32,51,.65), transparent);
  }
  .home-hero-content { padding-top: 130px; padding-bottom: 54px; }
  .home-hero h1 { font-size: 38px; }
  .home-hero-lede { font-size: 17px; }
  .home-trust-strip .container { grid-template-columns: 1fr; }
  .home-trust-strip .container > div,
  .home-trust-strip .container > div:first-child { min-height: auto; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--home-line); border-left: 0; }
  .home-generator-intro h2,
  .home-section-heading h2,
  .home-founder-copy h2,
  .home-faq-layout h2,
  .home-final-cta h2 { font-size: 32px; }
  .home-generator-form .generator { padding: 22px; }
  .home-generator-review { align-items: flex-start; }
  .home-feature-grid { grid-template-columns: 1fr; }
  .home-feature { min-height: auto; }
  .home-occasion-grid { grid-template-columns: 1fr; }
  .home-occasion-featured { grid-column: auto; display: block; }
  .home-occasion-featured img { height: 230px; min-height: 0; }
  .home-process { grid-template-columns: 1fr; }
  .home-process li,
  .home-process li:first-child,
  .home-process li:nth-child(3) { min-height: auto; border-left: 1px solid var(--home-line); border-bottom: 0; }
  .home-process li:last-child { border-bottom: 1px solid var(--home-line); }
  .home-denominations-section .denom-cards { grid-template-columns: repeat(2, 1fr); }
  .home-founder-layout { grid-template-columns: 1fr; gap: 50px; }
  .home-founder-photo { max-width: 520px; }
  .home-resource-grid { grid-template-columns: 1fr; }
  .home-resource-grid > a { min-height: auto; }
  .home-faq-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 520px) {
  .home-hero { min-height: auto; }
  .home-hero-content { padding-top: 42px; padding-bottom: 40px; }
  .home-hero h1 { margin-bottom: 16px; font-size: 31px; }
  .home-hero-lede { font-size: 16px; line-height: 1.55; }
  .home-hero-actions { margin-top: 22px; }
  .home-hero-proof { margin-top: 20px; }
  .home-hero-actions,
  .home-final-cta .container > div { flex-direction: column; align-items: stretch; }
  .home-hero-actions .btn,
  .home-final-cta .btn { width: 100%; text-align: center; }
  .home-hero-proof { gap: 10px 18px; }
  .home-generator-form .grid-2 { grid-template-columns: 1fr; }
  .home-generator-form .row-end { align-items: stretch; flex-direction: column; }
  .home-generator-form .row-end .btn { width: 100%; text-align: center; }
  .home-generator-review > img { width: 52px; height: 52px; flex-basis: 52px; }
  .home-generator-review blockquote { font-size: 15px; }
  .home-denominations-section .denom-cards { grid-template-columns: 1fr; }
  .home-founder-photo::before { top: -10px; right: -10px; bottom: 10px; left: 10px; }
}

@media (max-width: 360px) {
  .home-hero-content { padding-top: 28px; padding-bottom: 30px; }
  .home-hero .home-kicker { margin-bottom: 8px; }
  .home-hero h1 { margin-bottom: 14px; font-size: 29px; line-height: 1.05; }
  .home-hero-lede { font-size: 15.5px; line-height: 1.48; }
  .home-hero-actions { margin-top: 18px; }
  .home-hero-actions .home-btn-light { display: none; }
  .home-hero-proof { margin-top: 14px; }
  .home-hero-proof > span:not(:first-child) { display: none; }

  html[lang^="es"] .home-hero-content { padding-top: 22px; padding-bottom: 24px; }
  html[lang^="es"] .home-hero h1 { font-size: 27px; }
  html[lang^="es"] .home-hero-lede { font-size: 15px; line-height: 1.45; }
  html[lang^="es"] .home-hero-actions { margin-top: 16px; }
  html[lang^="es"] .home-hero-proof { margin-top: 12px; }
}
