@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap");

:root {
  color-scheme: light;
  --ink: #435c73;
  --muted: #64716b;
  --cream: #f8f5ee;
  --paper: #fffdf8;
  --sage: #435c73;
  --deep-sage: #435c73;
  --pale-blue: #b9dfec;
  --gold: #c79d62;
  --line: #e6e0d4;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  transform: translateY(-150%);
  color: white;
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 7vw, 108px);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 72px;
  height: 43px;
  border-radius: 3px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
}

.brand-name span {
  color: var(--sage);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.15vw, 16px);
}

.site-nav a,
.site-footer nav a {
  position: relative;
  color: #485650;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  content: "";
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 590px;
  align-items: center;
  overflow: hidden;
  padding: 72px clamp(28px, 11vw, 170px);
  color: white;
  background:
    linear-gradient(90deg, rgba(67, 92, 115, 0.18), rgba(67, 92, 115, 0.08)),
    url("assets/blessings-faith-haven-logo.jpg") right 12% center / min(36vw, 420px) auto no-repeat,
    linear-gradient(110deg, #435c73 0%, #435c73 56%, #88b0bd 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--sage);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #e1c99f;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 {
  max-width: 650px;
  margin: 0 0 21px;
  font-size: clamp(46px, 6.1vw, 79px);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero h1 em {
  color: #e4c99d;
  font-weight: 400;
}

.hero-intro {
  max-width: 480px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  color: var(--ink);
  background: #f3ead8;
}

.button-light:hover {
  background: white;
}

.button-dark {
  color: white;
  background: var(--deep-sage);
}

.button-dark:hover {
  background: #435c73;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--deep-sage);
  font-size: 12px;
  font-weight: 700;
  text-decoration-color: rgba(65, 91, 80, 0.4);
  text-underline-offset: 5px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link-light {
  color: white;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.hero-note {
  position: absolute;
  right: clamp(24px, 9vw, 135px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
}

.hero-note-rule {
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.section-wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.welcome {
  max-width: 760px;
  padding-top: 102px;
  padding-bottom: 104px;
}

.section-heading h2,
.content-narrow h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 3.5vw, 43px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.welcome-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
}

.welcome-copy p:last-child {
  margin-bottom: 0;
}

.shop-note {
  padding: 45px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #edf6f7;
  text-align: center;
}

.shop-note-content {
  max-width: 700px;
  margin: 0 auto;
}

.shop-note h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.25;
}

.shop-note-content > p:not(.eyebrow) {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.pathways {
  padding: 85px 0 95px;
  background: var(--cream);
}

.section-heading {
  margin-bottom: 37px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(30px, 3.5vw, 40px);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.pathway-card {
  min-height: 315px;
  padding: 34px 38px;
  background: var(--paper);
  border: 1px solid rgba(210, 199, 177, 0.45);
}

.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--deep-sage);
  background: var(--pale-blue);
}

.card-icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.pathway-card h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

.pathway-card > p:not(.eyebrow) {
  max-width: 440px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 13px;
}

.scripture-callout {
  padding: 83px 24px 86px;
  color: white;
  background: var(--deep-sage);
  text-align: center;
}

.callout-ornament {
  margin-bottom: 9px;
  color: #dfc393;
  font-size: 22px;
}

.scripture-callout .eyebrow {
  margin-bottom: 15px;
  color: #dfc393;
}

.scripture-callout blockquote {
  margin-bottom: 12px;
  font-size: clamp(27px, 4vw, 43px);
  font-style: italic;
  line-height: 1.25;
}

.scripture-reference {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer {
  padding: 42px 24px 24px;
  color: #dce3db;
  background: #435c73;
  text-align: center;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 7px;
  color: white;
  font-family: var(--serif);
  font-size: 20px;
  text-decoration: none;
}

.site-footer > p {
  margin-bottom: 21px;
  color: #bac6bb;
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 25px;
}

.site-footer nav a {
  color: #e3e7df;
  font-size: 11px;
}

.site-footer .copyright {
  margin: 0;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #a9b5aa;
  font-size: 10px;
}

.page-hero {
  display: flex;
  min-height: 320px;
  align-items: center;
  padding: 55px max(24px, calc((100% - 1000px) / 2));
  color: white;
}

.page-hero-prayer {
  background:
    radial-gradient(ellipse at 82% 50%, rgba(196, 159, 99, 0.3), transparent 30%),
    linear-gradient(105deg, rgba(67, 92, 115, 0.98), rgba(67, 92, 115, 0.72) 58%, rgba(136, 176, 189, 0.82));
}

.page-hero-devotionals {
  background:
    radial-gradient(ellipse at 80% 48%, rgba(196, 159, 99, 0.29), transparent 29%),
    linear-gradient(105deg, rgba(67, 92, 115, 0.98), rgba(67, 92, 115, 0.72) 58%, rgba(136, 176, 189, 0.82));
}

.page-hero-content {
  max-width: 650px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(45px, 6vw, 67px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.page-hero-content > p:last-child {
  max-width: 570px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.page-content {
  padding-top: 82px;
  padding-bottom: 90px;
}

.content-narrow {
  max-width: 750px;
  margin-inline: auto;
}

.content-narrow h2 {
  margin-bottom: 18px;
}

.content-narrow > p:not(.eyebrow) {
  color: var(--muted);
}

.privacy-card {
  display: flex;
  gap: 19px;
  margin: 32px 0 25px;
  padding: 25px 27px;
  border: 1px solid #e4dbc9;
  background: #f7f4ec;
}

.privacy-icon {
  flex: 0 0 auto;
  color: var(--deep-sage);
  font-size: 26px;
  line-height: 1;
}

.privacy-card h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.privacy-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-next-step {
  margin-bottom: 25px;
  font-size: 13px;
}

.scripture-callout-small {
  padding-top: 63px;
  padding-bottom: 65px;
}

.devotional-list {
  padding-top: 82px;
  padding-bottom: 92px;
}

.devotional-intro {
  max-width: 650px;
  margin: 0 auto 44px;
}

.devotional-intro > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.devotional-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  max-width: 850px;
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.devotional-number {
  color: #c9b894;
  font-family: var(--serif);
  font-size: 43px;
  line-height: 1;
}

.devotional-body .eyebrow {
  margin-bottom: 8px;
}

.devotional-body h3 {
  margin-bottom: 12px;
  font-size: 28px;
}

.devotional-body > p:not(.eyebrow) {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.devotional-body .reflection-question {
  margin: 18px 0 0;
  padding: 13px 16px;
  color: var(--ink);
  background: var(--cream);
}

.support-hero {
  background:
    radial-gradient(ellipse at 82% 48%, rgba(185, 223, 236, 0.24), transparent 31%),
    linear-gradient(105deg, rgba(67, 92, 115, 0.98), rgba(67, 92, 115, 0.75) 58%, rgba(136, 176, 189, 0.84));
}

.support-hero h1 {
  max-width: 790px;
}

.support-content {
  padding-top: 78px;
  padding-bottom: 88px;
}

.support-intro {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.support-intro h2,
.community-cta h2,
.support-panel h2,
.community-rules h2 {
  margin-bottom: 14px;
  font-size: clamp(27px, 3.5vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.support-intro > p:last-child,
.community-cta > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.community-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: center;
  margin-bottom: 34px;
  padding: 30px 34px;
  border: 1px solid #dce5e6;
  background: #edf6f7;
}

.community-cta .eyebrow {
  margin-bottom: 8px;
}

.community-cta h2 {
  max-width: 650px;
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 31px);
}

.community-cta > .button {
  grid-column: 2;
  grid-row: 1;
}

.integration-status {
  grid-column: 2;
  grid-row: 2;
  max-width: 245px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.support-panel {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.support-panel > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}

.support-panel h2 {
  font-size: clamp(26px, 2.8vw, 32px);
}

.resource-form {
  display: grid;
  gap: 15px;
}

.resource-form > label:not(.checkbox-label) {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.resource-form input:not([type="checkbox"]),
.resource-form textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #ccd7d8;
  border-radius: 0;
  color: var(--ink);
  background: white;
  font: 400 14px var(--sans);
}

.resource-form textarea {
  min-height: 118px;
  resize: vertical;
}

.resource-form input:focus,
.resource-form textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.checkbox-label input {
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: var(--deep-sage);
}

.resource-form .button {
  justify-self: start;
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
}

.form-status {
  margin: 0;
  padding: 11px 13px;
  color: #435c73;
  background: #edf6f7;
  font-size: 11px;
  line-height: 1.55;
}

.form-privacy-note {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.form-status.is-error {
  color: #7e3c33;
  background: #fbefeb;
}

.moderation-note {
  padding: 12px 14px;
  color: var(--ink) !important;
  background: var(--cream);
}

.resource-list {
  margin-top: 25px;
}

.resource-list h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.resource-item {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.resource-item h4 {
  margin: 0 0 5px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.resource-item h4 a {
  color: var(--deep-sage);
  text-underline-offset: 3px;
}

.resource-item > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.community-rules {
  max-width: 900px;
  margin: 34px auto 0;
  padding: 28px 32px;
  border-left: 3px solid var(--sage);
  background: var(--cream);
}

.community-rules h2 {
  font-size: 29px;
}

.community-rules > p:not(.eyebrow),
.community-rules li {
  color: var(--muted);
  font-size: 12px;
}

.community-rules ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.community-rules > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 74px;
    padding-inline: 20px;
  }

  .brand-logo {
    width: 62px;
    height: 38px;
  }

  .brand-name {
    font-size: 17px;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 7px 0 7px 12px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: 600 12px var(--sans);
    cursor: pointer;
  }

  .menu-toggle-icon,
  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    display: block;
    width: 19px;
    height: 1px;
    background: currentColor;
  }

  .menu-toggle-icon {
    position: relative;
  }

  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-toggle-icon::before {
    top: -6px;
  }

  .menu-toggle-icon::after {
    top: 6px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 15px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 9px 14px rgba(38, 58, 54, 0.08);
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .site-nav a {
    padding: 12px 0;
    font-size: 13px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a[aria-current="page"] {
    color: var(--deep-sage);
  }

  .hero {
    min-height: 570px;
    padding: 67px 28px 112px;
    background:
      linear-gradient(90deg, rgba(67, 92, 115, 0.2), rgba(67, 92, 115, 0.12)),
      url("assets/blessings-faith-haven-logo.jpg") right 8% bottom 20% / min(62vw, 300px) auto no-repeat,
      linear-gradient(110deg, #435c73 0%, #435c73 56%, #88b0bd 100%);
  }

  .hero h1 {
    font-size: clamp(48px, 12vw, 68px);
  }

  .hero-note {
    right: 26px;
    bottom: 24px;
  }

  .welcome {
    padding-top: 68px;
    padding-bottom: 70px;
  }

  .pathways {
    padding: 65px 0 70px;
  }

  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .pathway-card {
    min-height: auto;
    padding: 29px;
  }

  .page-hero {
    min-height: 280px;
  }

  .page-content,
  .devotional-list,
  .support-content {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .community-cta {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .community-cta > .button,
  .integration-status {
    grid-column: 1;
    grid-row: auto;
  }

  .integration-status {
    max-width: none;
    text-align: left;
  }

  .privacy-card {
    gap: 12px;
    padding: 20px;
  }

  .devotional-card {
    grid-template-columns: 48px 1fr;
    gap: 13px;
    padding: 28px 0;
  }

  .devotional-number {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
