/* =============================================================================
   Still Waters Selah — main.css
   A sanctuary, not a website.
   ========================================================================== */

/* ─── Custom Properties ─────────────────────────────────────────────────── */

:root {
  /* Color palette */
  --sws-bg:           #5C4055;
  --sws-bg-dark:      #3D2B38;
  --sws-bg-deeper:    #2A1D26;
  --sws-bg-surface:   #6B4D63;   /* lifted surface — cards, sections */
  --sws-bg-overlay:   rgba(42, 29, 38, 0.72);

  --sws-text:         #F5F0E8;
  --sws-text-muted:   rgba(245, 240, 232, 0.60);
  --sws-text-faint:   rgba(245, 240, 232, 0.35);

  --sws-accent:       #EDD9A3;   /* soft gold */
  --sws-accent-glow:  rgba(237, 217, 163, 0.18);
  --sws-lavender:     #CBB6E2;
  --sws-brown:        #8B5A3C;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui:      'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --sp-2xs:  0.25rem;
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   2rem;
  --sp-lg:   4rem;
  --sp-xl:   7rem;
  --sp-2xl:  11rem;

  /* Transitions */
  --ease-gentle:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   0.25s;
  --t-base:   0.45s;
  --t-slow:   0.75s;
  --t-xslow:  1.1s;

  /* Border */
  --radius-sm:  4px;
  --radius-md:  10px;

  /* Layout */
  --container: 1140px;
  --gutter:    clamp(1.25rem, 5vw, 3rem);
}


/* ─── Reset / Base ──────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.sws-theme {
  background-color: var(--sws-bg);
  color: var(--sws-text);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Astra resets */
body.sws-theme .ast-container,
body.sws-theme .site-content,
body.sws-theme #page {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}


/* ─── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--sws-text);
  letter-spacing: 0.01em;
}

p {
  font-family: var(--font-body);
}

/* Section label — e.g. "The Selah", "Still" */
.sws-section-label {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sws-accent);
  margin-bottom: var(--sp-xs);
}

.sws-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--sws-text);
}

.sws-section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--sws-text-muted);
  font-style: italic;
  margin-top: var(--sp-xs);
  line-height: 1.6;
}

.sws-section-header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}


/* ─── Layout helpers ─────────────────────────────────────────────────────── */

.sws-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* ─── Buttons ────────────────────────────────────────────────────────────── */

.sws-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 2.4rem;
  border-radius: 0;
  transition: background-color var(--t-base) var(--ease-gentle),
              color            var(--t-base) var(--ease-gentle),
              border-color     var(--t-base) var(--ease-gentle),
              opacity          var(--t-base) var(--ease-gentle);
}

/* Ghost: gold border, transparent fill */
.sws-btn--ghost {
  border: 1px solid var(--sws-accent);
  color: var(--sws-accent);
  background: transparent;
}
.sws-btn--ghost:hover,
.sws-btn--ghost:focus-visible {
  background: var(--sws-accent-glow);
  color: var(--sws-text);
}

/* Outline: lavender */
.sws-btn--outline {
  border: 1px solid rgba(203, 182, 226, 0.45);
  color: var(--sws-lavender);
  background: transparent;
}
.sws-btn--outline:hover,
.sws-btn--outline:focus-visible {
  border-color: var(--sws-lavender);
  background: rgba(203, 182, 226, 0.08);
}

/* Focus ring */
.sws-btn:focus-visible {
  outline: 2px solid var(--sws-accent);
  outline-offset: 4px;
}


/* ─── HEADER & NAVIGATION ─────────────────────────────────────────────────── */

.sws-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.6rem var(--gutter);
  transition: background-color var(--t-slow) var(--ease-gentle),
              backdrop-filter   var(--t-slow) var(--ease-gentle),
              padding           var(--t-base) var(--ease-gentle);
  /* Start fully transparent */
  background-color: transparent;
}

/* Scrolled state — added by JS */
.sws-header.is-scrolled {
  background-color: rgba(42, 29, 38, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.sws-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
}

/* Logo / site name */
.sws-header__logo,
.sws-header__site-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sws-text);
  letter-spacing: 0.03em;
  transition: opacity var(--t-fast);
  flex-shrink: 0;
}
.sws-header__logo:hover {
  opacity: 0.75;
}
.sws-header__logo img {
  height: 42px;
  width: auto;
}

/* Nav list */
.sws-nav__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.sws-nav__list li a {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sws-text-muted);
  transition: color var(--t-fast);
  position: relative;
}

/* Gold underline on hover */
.sws-nav__list li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--sws-accent);
  transition: right var(--t-base) var(--ease-out);
}
.sws-nav__list li a:hover,
.sws-nav__list li a:focus-visible {
  color: var(--sws-text);
}
.sws-nav__list li a:hover::after,
.sws-nav__list li a:focus-visible::after {
  right: 0;
}

/* Current page */
.sws-nav__list li.current-menu-item > a {
  color: var(--sws-accent);
}
.sws-nav__list li.current-menu-item > a::after {
  right: 0;
}

/* Mobile toggle */
.sws-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  z-index: 110;
}

.sws-nav__toggle-bar {
  display: block;
  height: 1px;
  background: var(--sws-text);
  transition: transform var(--t-base) var(--ease-out),
              opacity   var(--t-base),
              width     var(--t-base) var(--ease-out);
  transform-origin: center;
}
.sws-nav__toggle-bar:nth-child(2) {
  width: 70%;
}

/* Toggle open state */
.sws-nav__toggle[aria-expanded="true"] .sws-nav__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.sws-nav__toggle[aria-expanded="true"] .sws-nav__toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.sws-nav__toggle[aria-expanded="true"] .sws-nav__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ─── HERO SECTION ────────────────────────────────────────────────────────── */

.sws-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--sws-bg-deeper);
  /* Radial gradient: subtle warmth at center */
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 60%, rgba(92, 64, 85, 0.9) 0%, transparent 70%),
    linear-gradient(175deg, var(--sws-bg-deeper) 0%, #3A2535 40%, #4A3045 70%, var(--sws-bg-deeper) 100%);
}

/* Ambient glow orbs */
.sws-hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sws-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.sws-hero__glow--left {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--sws-lavender) 0%, transparent 70%);
  left: -15%;
  top: 10%;
  animation: sws-pulse 8s ease-in-out infinite alternate;
}

.sws-hero__glow--right {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--sws-accent) 0%, transparent 70%);
  right: -10%;
  bottom: 10%;
  opacity: 0.15;
  animation: sws-pulse 10s ease-in-out 2s infinite alternate;
}

/* Ripple water lines */
.sws-hero__ripple {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 22px,
      rgba(245, 240, 232, 0.03) 22px,
      rgba(245, 240, 232, 0.03) 23px
    );
  mask-image: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

/* Hero content */
.sws-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-2xl) var(--gutter);
  max-width: 720px;
  width: 100%;
}

.sws-hero__eyebrow {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sws-lavender);
  margin-bottom: 1.4rem;
}

/* Small decorative divider */
.sws-hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--sws-accent);
  margin-bottom: 1.6rem;
}
.sws-hero__divider-line {
  display: block;
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.sws-hero__divider svg {
  display: inline-block;
  width: 10px;
  height: 10px;
  opacity: 0.8;
}

.sws-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--sws-text);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(42, 29, 38, 0.5);
}

.sws-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  color: var(--sws-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2.8rem;
}

.sws-hero__cta {
  display: flex;
  justify-content: center;
}

/* Scroll indicator */
.sws-hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sws-hero__scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--sws-accent), transparent);
  animation: sws-scroll-drop 2.4s ease-in-out infinite;
}


/* ─── THE SELAH SECTION ───────────────────────────────────────────────────── */

.sws-selah {
  position: relative;
  background-color: var(--sws-bg-dark);
  padding: var(--sp-xl) var(--gutter);
  overflow: hidden;
}

/* Subtle background texture lines */
.sws-selah::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(245, 240, 232, 0.015) 80px,
      rgba(245, 240, 232, 0.015) 81px
    );
  pointer-events: none;
}

.sws-selah__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.sws-selah__intro {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--sws-text-muted);
  font-style: italic;
  margin-bottom: var(--sp-lg);
}

/* ─── Scripture Pull Quote ─── */
.sws-scripture {
  position: relative;
  padding: var(--sp-lg) var(--sp-lg);
  margin-block: var(--sp-lg);
  border: 1px solid rgba(237, 217, 163, 0.2);
  background: rgba(237, 217, 163, 0.04);
}

.sws-scripture::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--sws-accent);
}

.sws-scripture__text {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--sws-text);
  margin-bottom: 1.4rem;
}

.sws-scripture__open-mark,
.sws-scripture__close-mark {
  font-size: 1.3em;
  color: var(--sws-accent);
  opacity: 0.6;
  vertical-align: -0.05em;
}
.sws-scripture__open-mark {
  margin-right: 0.1em;
}
.sws-scripture__close-mark {
  margin-left: 0.1em;
}

.sws-scripture__footer {
  display: block;
}

.sws-scripture__reference {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sws-accent);
  font-style: normal;
}

/* Decorative water SVG */
.sws-selah__water-mark {
  margin-top: var(--sp-lg);
  color: var(--sws-lavender);
  opacity: 0.5;
}
.sws-water-svg {
  width: 100%;
  max-width: 400px;
  height: 40px;
  margin-inline: auto;
}


/* ─── STILL — BLOG SECTION ────────────────────────────────────────────────── */

.sws-still {
  background-color: var(--sws-bg);
  padding: var(--sp-xl) var(--gutter);
  position: relative;
}

/* Very subtle noise pattern */
.sws-still::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  opacity: 0.4;
}

.sws-still__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
}

/* 3-column grid */
.sws-still__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: var(--sp-lg);
}

/* ─── Blog Card ─── */
.sws-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-top: 1px solid rgba(237, 217, 163, 0.25);
  padding-top: 1.8rem;
  transition: border-color var(--t-base) var(--ease-gentle);
}
.sws-card:hover {
  border-top-color: var(--sws-accent);
}

.sws-card__image-wrap {
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 4 / 3;
}
.sws-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-xslow) var(--ease-gentle),
              filter    var(--t-xslow) var(--ease-gentle);
  filter: saturate(0.7) brightness(0.88);
}
.sws-card:hover .sws-card__image {
  transform: scale(1.04);
  filter: saturate(0.85) brightness(0.95);
}

.sws-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sws-card__category {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sws-accent);
  margin-bottom: 0.75rem;
}
.sws-card__category a {
  transition: opacity var(--t-fast);
}
.sws-card__category a:hover {
  opacity: 0.7;
}

.sws-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--sws-text);
  margin-bottom: 0.85rem;
}
.sws-card__title a {
  transition: color var(--t-fast);
}
.sws-card__title a:hover {
  color: var(--sws-accent);
}

.sws-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--sws-text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.sws-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sws-lavender);
  margin-top: auto;
  transition: color var(--t-fast), gap var(--t-base) var(--ease-out);
}
.sws-card__read-more:hover {
  color: var(--sws-accent);
  gap: 0.85rem;
}
.sws-card__arrow {
  transition: transform var(--t-base) var(--ease-out);
}
.sws-card__read-more:hover .sws-card__arrow {
  transform: translateX(4px);
}

/* View all button */
.sws-still__view-all {
  text-align: center;
  margin-top: var(--sp-md);
}

/* Empty state */
.sws-still__empty {
  text-align: center;
  color: var(--sws-text-muted);
  font-style: italic;
  font-size: 1.1rem;
  padding: var(--sp-lg) 0;
}


/* ─── GATHER — EMAIL SIGNUP SECTION ──────────────────────────────────────── */

.sws-gather {
  background-color: #0D0818;
  padding: var(--sp-xl) var(--gutter);
  text-align: center;
  position: relative;
}

.sws-gather__inner {
  max-width: 560px;
  margin-inline: auto;
}

/* Top ornament */
.sws-gather__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--sws-accent);
  opacity: 0.55;
  margin-bottom: 2.4rem;
}
.sws-gather__ornament-line {
  display: block;
  width: 52px;
  height: 1px;
  background: currentColor;
}
.sws-gather__ornament-icon {
  flex-shrink: 0;
}

/* Eyebrow */
.sws-gather__eyebrow {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sws-accent);
  margin-bottom: 1.1rem;
}

/* Heading */
.sws-gather__heading {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--sws-text);
  margin-bottom: 1.1rem;
}

/* Subtext */
.sws-gather__subtext {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--sws-text-muted);
  line-height: 1.65;
  margin-bottom: 2.6rem;
}

/* Form wrapper */
.sws-gather__form {
  width: 100%;
}

/* ── MailerLite form overrides ── */

/* Hide MailerLite's built-in title, description, and field labels —
   our custom .sws-gather__heading and .sws-gather__subtext replace them */
.ml-form-embedWrapper .ml-form-embedHeader,
.sws-gather__form .ml-form-embedBody h4,
.sws-gather__form .ml-form-embedBody > p,
.sws-gather__form .ml-form-embedBody .ml-form-fieldRow label {
  display: none !important;
}

/* Outer wrappers */
.sws-gather__form .ml-form-embedWrapper,
.sws-gather__form .ml-embedded,
.sws-gather__form .ml-form-embedBody {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
}

/* Row / field group */
.sws-gather__form .ml-form-fieldRow,
.sws-gather__form .ml-form-embedSubmit {
  display: block;
  width: 100%;
  margin-bottom: 0.9rem;
}

/* Email input */
.ml-form-embedWrapper input[type="email"],
.sws-gather__form input[type="email"],
.sws-gather__form input[type="text"] {
  width: 100% !important;
  background-color: #F5F0E8 !important;
  color: #2A1A35 !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 1rem 1.5rem !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
}
.ml-form-embedWrapper input[type="email"]::placeholder,
.sws-gather__form input[type="email"]::placeholder,
.sws-gather__form input[type="text"]::placeholder {
  color: rgba(42, 26, 53, 0.5) !important;
  font-style: italic;
}
.ml-form-embedWrapper input[type="email"]:focus,
.sws-gather__form input[type="email"]:focus,
.sws-gather__form input[type="text"]:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(237, 217, 163, 0.45) !important;
}

/* Submit button */
.sws-gather__form button[type="submit"],
.sws-gather__form input[type="submit"],
.sws-gather__form .ml-form-embedSubmit button {
  width: 100% !important;
  background: #5C4055 !important;
  color: #EDD9A3 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.75rem 2rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 300 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background-color 0.35s ease, color 0.35s ease !important;
  -webkit-appearance: none;
}
.sws-gather__form button[type="submit"]:hover,
.sws-gather__form input[type="submit"]:hover,
.sws-gather__form .ml-form-embedSubmit button:hover {
  background: #6B4D63 !important;
  color: #F5F0E8 !important;
}

/* Success / error messages */
.sws-gather__form .ml-form-successBody,
.sws-gather__form .ml-form-checkboxRow {
  color: var(--sws-text-muted) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-style: italic !important;
}

/* Responsive */
@media (max-width: 660px) {
  .sws-gather {
    padding-block: var(--sp-lg);
  }
}


/* ─── BENEDICTION SECTION ─────────────────────────────────────────────────── */

.sws-benediction {
  background-color: var(--sws-bg-darker, var(--sws-bg-dark));
  background-image: linear-gradient(180deg, var(--sws-bg) 0%, var(--sws-bg-darker, var(--sws-bg-deep, #2A1D26)) 100%);
  padding: var(--sp-xl) var(--gutter);
  text-align: center;
}

.sws-benediction__inner {
  max-width: 560px;
  margin-inline: auto;
}

.sws-benediction__text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--sws-text);
  margin-bottom: 1rem;
}

.sws-benediction__secondary {
  color: var(--sws-text-muted);
  display: block;
  font-size: 0.88em;
}

.sws-benediction__reference {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sws-accent);
  opacity: 0.7;
}


/* ─── FOOTER ──────────────────────────────────────────────────────────────── */

.sws-footer {
  background-color: var(--sws-bg-deeper);
  padding: var(--sp-xl) var(--gutter) var(--sp-lg);
  text-align: center;
  border-top: 1px solid rgba(237, 217, 163, 0.1);
}

.sws-footer__inner {
  max-width: 680px;
  margin-inline: auto;
}

/* Ornament */
.sws-footer__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--sws-accent);
  opacity: 0.45;
  margin-bottom: 2.4rem;
}
.sws-footer__ornament-line {
  display: block;
  width: 60px;
  height: 1px;
  background: currentColor;
}
.sws-footer__ornament-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Logo */
.sws-footer__logo {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--sws-text);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  transition: opacity var(--t-fast);
}
.sws-footer__logo:hover {
  opacity: 0.7;
}

.sws-footer__tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--sws-text-muted);
  margin-bottom: 2rem;
}

/* Footer nav */
.sws-footer__nav {
  margin-bottom: 2.4rem;
}
.sws-footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 2rem;
}
.sws-footer__nav-list li a {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sws-text-faint);
  transition: color var(--t-fast);
}
.sws-footer__nav-list li a:hover {
  color: var(--sws-accent);
}

.sws-footer__signature {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--sws-text);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.sws-footer__copy {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--sws-text-faint);
}


/* ─── SCROLL ANIMATIONS ───────────────────────────────────────────────────── */

/* Base state — invisible */
.animate {
  opacity: 0;
  will-change: opacity, transform;
}

/* Fade up */
.animate--fade-up {
  transform: translateY(28px);
  transition:
    opacity  var(--t-xslow) var(--ease-out),
    transform var(--t-xslow) var(--ease-out);
}

/* Fade in (no movement) */
.animate--fade-in {
  transform: none;
  transition: opacity var(--t-xslow) var(--ease-out);
}

/* Visible state */
.animate.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays */
.animate--delay-1 { transition-delay: 0.1s; }
.animate--delay-2 { transition-delay: 0.2s; }
.animate--delay-3 { transition-delay: 0.35s; }
.animate--delay-4 { transition-delay: 0.5s; }
.animate--delay-5 { transition-delay: 0.7s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .sws-hero__glow,
  .sws-hero__scroll-line {
    animation: none !important;
  }
}


/* ─── KEYFRAME ANIMATIONS ─────────────────────────────────────────────────── */

@keyframes sws-pulse {
  0%   { transform: scale(1) translate(0, 0); opacity: 0.18; }
  50%  { opacity: 0.28; }
  100% { transform: scale(1.12) translate(2%, 2%); opacity: 0.18; }
}

@keyframes sws-scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .sws-still__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sws-still__grid .sws-card:nth-child(3) {
    display: none;
  }
}

/* Mobile */
@media (max-width: 660px) {
  /* Show nav toggle */
  .sws-nav__toggle {
    display: flex;
  }

  /* Slide-down mobile nav */
  .sws-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(42, 29, 38, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-slow) var(--ease-out),
                padding   var(--t-slow) var(--ease-out);
  }

  .sws-nav.is-open {
    max-height: 400px;
    padding: 1.5rem var(--gutter) 2rem;
  }

  .sws-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }

  .sws-nav__list li a {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }

  /* Selah adjustments */
  .sws-selah,
  .sws-still,
  .sws-benediction {
    padding-block: var(--sp-lg);
  }

  .sws-scripture {
    padding: var(--sp-md) var(--sp-sm);
  }

  .sws-still__grid {
    grid-template-columns: 1fr;
  }

  .sws-still__grid .sws-card:nth-child(3) {
    display: flex;
  }

  .sws-footer {
    padding-block: var(--sp-lg);
  }
}


/* ─── SINGLE POST PAGE ────────────────────────────────────────────────────── */

.sws-single {
  background-color: #1A0F22;
  min-height: 100vh;
  padding-top: 7rem; /* clears fixed header */
  padding-bottom: var(--sp-xl);
}

/* Centered reading column */
.sws-post__header-inner,
.sws-post__body,
.sws-post__footer {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Post Header ── */
.sws-post__header {
  padding-bottom: 0;
  margin-bottom: var(--sp-md);
}

.sws-post__category {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sws-accent);
  margin-bottom: 1.2rem;
}
.sws-post__category a {
  color: inherit;
  transition: opacity var(--t-fast);
}
.sws-post__category a:hover {
  opacity: 0.7;
}

.sws-post__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #CBB6E2;
  margin-bottom: 1.4rem;
}

.sws-post__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #EDD9A3;
  margin-bottom: 2rem;
}

.sws-post__meta-sep {
  opacity: 0.4;
}

/* Gold horizontal rule between header and body */
.sws-post__rule {
  border: none;
  border-top: 1px solid rgba(237, 217, 163, 0.35);
  margin: 0;
}

/* ── Post Body ── */
.sws-post__body {
  padding-top: var(--sp-md);
}

.sws-post__content {
  color: #F5F0E8;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.9;
}

.sws-post__content p {
  margin-bottom: 1.6em;
  color: #F5F0E8;
  font-family: var(--font-body);
  line-height: 1.9;
}

.sws-post__content h2,
.sws-post__content h3,
.sws-post__content h4 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  color: #CBB6E2;
  margin-top: 2.2em;
  margin-bottom: 0.75em;
  line-height: 1.25;
}

.sws-post__content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.sws-post__content h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.sws-post__content h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.sws-post__content a {
  color: var(--sws-accent);
  text-decoration: underline;
  text-decoration-color: rgba(237, 217, 163, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast), color var(--t-fast);
}
.sws-post__content a:hover {
  color: #F5F0E8;
  text-decoration-color: rgba(245, 240, 232, 0.5);
}

.sws-post__content blockquote {
  border-left: 2px solid rgba(237, 217, 163, 0.45);
  padding-left: 1.5rem;
  margin-inline: 0;
  margin-block: 2em;
  font-style: italic;
  color: var(--sws-text-muted);
}

.sws-post__content hr {
  border: none;
  border-top: 1px solid rgba(237, 217, 163, 0.25);
  margin-block: 2.5em;
}

.sws-post__content ul,
.sws-post__content ol {
  list-style: revert;
  padding-left: 1.5rem;
  margin-bottom: 1.6em;
  color: #F5F0E8;
}

.sws-post__content li {
  margin-bottom: 0.4em;
  line-height: 1.9;
}

/* ── Post Footer / Back Link ── */
.sws-post__footer {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(237, 217, 163, 0.12);
}

.sws-post__back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sws-lavender);
  transition: color var(--t-fast), gap var(--t-base) var(--ease-out);
}
.sws-post__back:hover {
  color: var(--sws-accent);
  gap: 0.85rem;
}
.sws-post__back-arrow {
  transition: transform var(--t-base) var(--ease-out);
  flex-shrink: 0;
}
.sws-post__back:hover .sws-post__back-arrow {
  transform: translateX(-4px);
}

/* ── Responsive ── */
@media (max-width: 660px) {
  .sws-single {
    padding-top: 5.5rem;
  }
  .sws-post__title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }
}


/* ─── Astra theme overrides ───────────────────────────────────────────────── */

/* Hide Astra's default header and footer on the homepage and single posts */
body.home .ast-site-header-area,
body.home #masthead,
body.home #colophon,
body.home .ast-footer-area,
body.single .ast-site-header-area,
body.single #masthead,
body.single #colophon,
body.single .ast-footer-area {
  display: none !important;
}

/* ── Single post: force dark background on every Astra wrapper ── */
body.single,
body.single .site,
body.single #page,
body.single .site-content,
body.single .content-area,
body.single .ast-container,
body.single article,
body.single .entry-content {
  background-color: #1A0F22 !important;
}

body.single {
  color: #F5F0E8 !important;
}

/* Strip Astra's padding/shadow/max-width constraints */
body.single .site-content,
body.single #page,
body.single .ast-container,
body.single .content-area,
body.single .ast-article-single,
body.single .ast-article-post,
body.single .entry-content-wrap,
body.single .ast-separate-container,
body.single .ast-separate-container .ast-article-single,
body.single .ast-separate-container .ast-article-post {
  background-color: #1A0F22 !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Astra layout overrides (non-single pages) */
body.sws-theme .ast-separate-container .ast-article-single,
body.sws-theme .ast-separate-container .ast-article-post {
  padding: 0;
}

body.sws-theme .site-content,
body.sws-theme .content-area {
  background: transparent;
}
