/* ============================================
   LIVING WORD — Ministry Template
   Palette: Purple + Gold  |  Prefix: lw-
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Purple scale */
  --lw-purple-deep:  #1a1033;
  --lw-purple:       #3d2a6e;
  --lw-purple-mid:   #5b3e9e;
  --lw-purple-light: #a78bfa;
  --lw-purple-pale:  #ddd6fe;

  /* Accent */
  --lw-gold:         #d4a853;
  --lw-gold-hover:   #c49540;
  --lw-gold-light:   #f0d89a;

  /* Neutrals */
  --lw-cream:        #f8f6ff;
  --lw-white:        #ffffff;
  --lw-gray:         #6b6580;
  --lw-gray-light:   #e8e4f0;

  /* Text */
  --lw-text-dark:    #1e1a2b;
  --lw-text-body:    #4a4358;
  --lw-text-on-dark:       rgba(255,255,255,0.92);
  --lw-text-on-dark-muted: rgba(255,255,255,0.55);

  /* Typography */
  --lw-font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --lw-font-body:    'Nunito Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --lw-space-xs:  0.25rem;
  --lw-space-sm:  0.5rem;
  --lw-space-md:  1rem;
  --lw-space-lg:  1.5rem;
  --lw-space-xl:  2rem;
  --lw-space-2xl: 3rem;
  --lw-space-3xl: 4.5rem;
  --lw-space-4xl: 6rem;

  /* Layout */
  --lw-container: 1140px;
  --lw-banner-h:  36px;
  --lw-nav-h:     72px;
  --lw-radius-md: 10px;
  --lw-radius-lg: 16px;
  --lw-radius-xl: 24px;
  --lw-radius-full: 50px;

  /* Motion */
  --lw-ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --lw-dur-fast:  200ms;
  --lw-dur-med:   400ms;
  --lw-dur-slow:  700ms;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--lw-font-body);
  color: var(--lw-text-body);
  background: var(--lw-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

.lw-container {
  width: 100%;
  max-width: var(--lw-container);
  margin: 0 auto;
  padding: 0 var(--lw-space-xl);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--lw-font-display);
  color: var(--lw-text-dark);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

h1 em, h2 em {
  font-style: italic;
  color: var(--lw-purple-light);
}

.lw-eyebrow {
  font-family: var(--lw-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lw-purple-light);
  margin-bottom: var(--lw-space-md);
}

.lw-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--lw-space-3xl);
}

.lw-section-desc {
  font-size: 1.05rem;
  color: var(--lw-gray);
  margin-top: var(--lw-space-md);
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.lw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--lw-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--lw-radius-full);
  transition: all var(--lw-dur-fast) ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.lw-btn-gold {
  background: var(--lw-gold);
  color: var(--lw-purple-deep);
  border-color: var(--lw-gold);
}
.lw-btn-gold:hover {
  background: var(--lw-gold-hover);
  border-color: var(--lw-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,168,83,0.35);
}

.lw-btn-outline {
  background: transparent;
  color: var(--lw-white);
  border-color: rgba(255,255,255,0.35);
}
.lw-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.lw-btn-sm {
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
}

/* On light backgrounds */
.lw-messages .lw-btn-outline,
.lw-resources .lw-btn-outline,
.lw-community .lw-btn-outline,
.lw-giving .lw-btn-outline {
  color: var(--lw-purple);
  border-color: var(--lw-gray-light);
}
.lw-messages .lw-btn-outline:hover,
.lw-resources .lw-btn-outline:hover,
.lw-community .lw-btn-outline:hover,
.lw-giving .lw-btn-outline:hover {
  background: var(--lw-purple-deep);
  color: var(--lw-white);
  border-color: var(--lw-purple-deep);
}

.lw-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--lw-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--lw-purple-mid);
  transition: gap var(--lw-dur-fast) ease;
}
.lw-link-arrow:hover { gap: 0.7rem; }

/* ---------- Scroll Reveal ---------- */
.lw-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--lw-dur-slow) var(--lw-ease),
              transform var(--lw-dur-slow) var(--lw-ease);
}
.lw-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DEMO BANNER
   ============================================ */
.lw-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--lw-banner-h);
  background: var(--lw-purple-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(167,139,250,0.15);
}

.lw-demo-banner a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lw-purple-light);
  letter-spacing: 0.02em;
  transition: color var(--lw-dur-fast) ease;
}
.lw-demo-banner a:hover { color: var(--lw-white); }

/* ============================================
   NAVIGATION
   ============================================ */
.lw-nav {
  position: fixed;
  top: var(--lw-banner-h);
  left: 0;
  right: 0;
  z-index: 960;
  height: var(--lw-nav-h);
  display: flex;
  align-items: center;
  transition: background var(--lw-dur-med) ease, box-shadow var(--lw-dur-med) ease;
}

.lw-nav.scrolled {
  background: rgba(26,16,51,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.lw-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.lw-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--lw-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lw-white);
}

.lw-logo em {
  font-style: italic;
  color: var(--lw-purple-light);
  font-weight: 400;
}

.lw-logo-icon {
  width: 32px;
  height: 32px;
  color: var(--lw-purple-light);
}

/* Nav Links */
.lw-nav-links {
  display: flex;
  align-items: center;
  gap: var(--lw-space-xl);
}

.lw-nav-links a {
  font-family: var(--lw-font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lw-text-on-dark);
  letter-spacing: 0.01em;
  transition: color var(--lw-dur-fast) ease;
  position: relative;
}

.lw-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lw-purple-light);
  transition: width var(--lw-dur-med) var(--lw-ease);
}
.lw-nav-links a:hover::after { width: 100%; }
.lw-nav-links a:hover { color: var(--lw-white); }

/* Nav Actions */
.lw-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--lw-space-md);
}

/* Hamburger */
.lw-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
}

.lw-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--lw-white);
  border-radius: 2px;
  transition: all var(--lw-dur-med) var(--lw-ease);
  transform-origin: center;
}

.lw-menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.lw-menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.lw-menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.lw-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(26,16,51,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--lw-dur-med) var(--lw-ease);
}

.lw-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lw-menu-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--lw-space-lg);
}

.lw-menu-content a {
  font-family: var(--lw-font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lw-white);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--lw-dur-med) var(--lw-ease);
}

.lw-menu-overlay.open .lw-menu-content a {
  opacity: 1;
  transform: translateY(0);
}
.lw-menu-overlay.open .lw-menu-content a:nth-child(1) { transition-delay: 0.1s; }
.lw-menu-overlay.open .lw-menu-content a:nth-child(2) { transition-delay: 0.15s; }
.lw-menu-overlay.open .lw-menu-content a:nth-child(3) { transition-delay: 0.2s; }
.lw-menu-overlay.open .lw-menu-content a:nth-child(4) { transition-delay: 0.25s; }
.lw-menu-overlay.open .lw-menu-content a:nth-child(5) { transition-delay: 0.3s; }
.lw-menu-overlay.open .lw-menu-content a:nth-child(6) { transition-delay: 0.35s; }

.lw-menu-content hr {
  border: none;
  border-top: 1px solid rgba(167,139,250,0.2);
  width: 80px;
  margin: var(--lw-space-sm) auto;
}

.lw-menu-cta {
  color: var(--lw-gold) !important;
}

/* ============================================
   HERO — SPLIT LAYOUT
   ============================================ */
.lw-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--lw-banner-h) + var(--lw-nav-h));
  overflow: hidden;
}

.lw-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--lw-purple-deep) 0%, #2a1754 40%, var(--lw-purple) 100%);
}
.lw-hero-bg::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lw-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lw-space-3xl);
  align-items: center;
  padding-top: var(--lw-space-3xl);
  padding-bottom: var(--lw-space-3xl);
}

.lw-hero-text h1 {
  color: var(--lw-white);
  margin-bottom: var(--lw-space-lg);
}

.lw-hero-desc {
  font-size: 1.1rem;
  color: var(--lw-text-on-dark-muted);
  line-height: 1.8;
  margin-bottom: var(--lw-space-2xl);
  max-width: 480px;
}

.lw-hero-actions {
  display: flex;
  gap: var(--lw-space-md);
  flex-wrap: wrap;
}

/* Hero Video Card */
.lw-hero-video-card {
  position: relative;
  border-radius: var(--lw-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(167,139,250,0.15);
  transition: transform var(--lw-dur-med) var(--lw-ease), box-shadow var(--lw-dur-med) var(--lw-ease);
}
.lw-hero-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(167,139,250,0.25);
}

.lw-hero-video-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.lw-hero-video-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--lw-space-lg);
  background: linear-gradient(to top, rgba(26,16,51,0.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lw-hero-video-badge {
  font-family: var(--lw-font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lw-gold);
}

.lw-hero-video-title {
  font-family: var(--lw-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lw-white);
}

/* Play Button */
.lw-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lw-purple);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all var(--lw-dur-med) var(--lw-ease);
  cursor: pointer;
  z-index: 3;
}
.lw-play-btn svg { margin-left: 3px; }
.lw-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(167,139,250,0.4);
}

.lw-play-btn-lg {
  width: 80px;
  height: 80px;
}

.lw-play-btn-sm {
  width: 44px;
  height: 44px;
}
.lw-play-btn-sm svg { margin-left: 2px; }

/* Duration Badge */
.lw-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--lw-font-display);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0,0,0,0.7);
  color: var(--lw-white);
  padding: 0.2rem 0.6rem;
  border-radius: var(--lw-radius-full);
  backdrop-filter: blur(4px);
  z-index: 3;
}

/* ============================================
   LATEST MESSAGES
   ============================================ */
.lw-messages {
  padding: var(--lw-space-4xl) 0;
  background: var(--lw-cream);
}

/* Featured Message */
.lw-featured-message {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--lw-space-2xl);
  align-items: center;
  margin-bottom: var(--lw-space-3xl);
}

.lw-featured-thumb {
  position: relative;
  border-radius: var(--lw-radius-lg);
  overflow: hidden;
}
.lw-featured-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lw-featured-info {
  display: flex;
  flex-direction: column;
  gap: var(--lw-space-sm);
}

.lw-series-badge {
  font-family: var(--lw-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lw-purple-mid);
  background: var(--lw-purple-pale);
  padding: 0.25rem 0.75rem;
  border-radius: var(--lw-radius-full);
  display: inline-block;
  width: fit-content;
}

.lw-speaker {
  font-weight: 600;
  color: var(--lw-text-dark);
  font-size: 0.9rem;
}
.lw-date {
  font-size: 0.85rem;
  color: var(--lw-gray);
}

.lw-featured-info h3 {
  margin-top: var(--lw-space-xs);
}
.lw-featured-info .lw-btn {
  margin-top: var(--lw-space-sm);
}

/* Messages Grid */
.lw-messages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lw-space-xl);
}

.lw-message-card {
  background: var(--lw-white);
  border-radius: var(--lw-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform var(--lw-dur-med) var(--lw-ease), box-shadow var(--lw-dur-med) var(--lw-ease);
}
.lw-message-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.lw-message-thumb {
  position: relative;
  overflow: hidden;
}
.lw-message-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--lw-dur-slow) var(--lw-ease);
}
.lw-message-card:hover .lw-message-thumb img {
  transform: scale(1.05);
}

.lw-message-body {
  padding: var(--lw-space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lw-message-body h4 { margin-top: 0.2rem; }

.lw-section-footer {
  text-align: center;
  margin-top: var(--lw-space-2xl);
}

/* ============================================
   PODCAST
   ============================================ */
.lw-podcast {
  padding: var(--lw-space-4xl) 0;
  background: var(--lw-white);
}

.lw-podcast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lw-space-xl);
}

.lw-podcast-card {
  background: var(--lw-cream);
  border-radius: var(--lw-radius-lg);
  overflow: hidden;
  transition: transform var(--lw-dur-med) var(--lw-ease), box-shadow var(--lw-dur-med) var(--lw-ease);
}
.lw-podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.lw-podcast-artwork {
  position: relative;
  overflow: hidden;
}
.lw-podcast-artwork img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--lw-dur-slow) var(--lw-ease);
}
.lw-podcast-card:hover .lw-podcast-artwork img {
  transform: scale(1.05);
}

.lw-podcast-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,42,110,0.5) 0%, rgba(26,16,51,0.3) 100%);
}

.lw-episode-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--lw-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.9);
  color: var(--lw-purple);
  padding: 0.25rem 0.65rem;
  border-radius: var(--lw-radius-full);
}

.lw-podcast-body {
  padding: var(--lw-space-lg);
}
.lw-podcast-body h4 {
  margin-bottom: 0.5rem;
}
.lw-podcast-body p {
  font-size: 0.9rem;
  color: var(--lw-gray);
  line-height: 1.6;
}

.lw-podcast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--lw-space-md);
  padding-top: var(--lw-space-md);
  border-top: 1px solid var(--lw-gray-light);
}

.lw-podcast-play {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--lw-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lw-purple-mid);
  cursor: pointer;
  transition: color var(--lw-dur-fast) ease;
}
.lw-podcast-play:hover { color: var(--lw-purple); }

.lw-podcast-duration {
  font-family: var(--lw-font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--lw-gray);
}

/* Podcast Platforms */
.lw-podcast-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--lw-space-md);
  margin-top: var(--lw-space-2xl);
  flex-wrap: wrap;
}

.lw-platform-label {
  font-family: var(--lw-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lw-gray);
}

.lw-platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--lw-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lw-text-dark);
  background: var(--lw-cream);
  padding: 0.5rem 1rem;
  border-radius: var(--lw-radius-full);
  transition: all var(--lw-dur-fast) ease;
}
.lw-platform-btn:hover {
  background: var(--lw-purple-deep);
  color: var(--lw-white);
}

/* ============================================
   DEVOTIONAL
   ============================================ */
.lw-devotional {
  padding: var(--lw-space-4xl) 0;
  background: linear-gradient(135deg, var(--lw-purple-deep) 0%, #2a1754 50%, var(--lw-purple) 100%);
  position: relative;
  overflow: hidden;
}

.lw-devotional-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--lw-space-3xl);
  align-items: center;
}

.lw-devotional-text .lw-eyebrow {
  color: var(--lw-gold);
}
.lw-devotional-text h2 {
  color: var(--lw-white);
  margin-bottom: var(--lw-space-md);
}

.lw-devotional-date {
  font-family: var(--lw-font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lw-text-on-dark-muted);
  margin-bottom: var(--lw-space-xl);
}

.lw-scripture {
  border-left: 3px solid var(--lw-purple-light);
  padding: var(--lw-space-lg) 0 var(--lw-space-lg) var(--lw-space-xl);
  margin-bottom: var(--lw-space-xl);
}
.lw-scripture p {
  font-family: var(--lw-font-display);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--lw-text-on-dark);
  line-height: 1.7;
}
.lw-scripture cite {
  display: block;
  margin-top: var(--lw-space-sm);
  font-family: var(--lw-font-display);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: normal;
  color: var(--lw-purple-light);
}

.lw-devotional-excerpt {
  font-size: 1rem;
  color: var(--lw-text-on-dark-muted);
  line-height: 1.8;
  margin-bottom: var(--lw-space-xl);
}

/* Devotional Visual */
.lw-devotional-visual {
  position: relative;
}
.lw-devotional-visual img {
  border-radius: var(--lw-radius-lg);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.lw-devotional-glow {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   RESOURCES
   ============================================ */
.lw-resources {
  padding: var(--lw-space-4xl) 0;
  background: var(--lw-cream);
}

/* Tabs */
.lw-tabs {
  display: flex;
  justify-content: center;
  gap: var(--lw-space-sm);
  margin-bottom: var(--lw-space-2xl);
  flex-wrap: wrap;
}

.lw-tab {
  font-family: var(--lw-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  border-radius: var(--lw-radius-full);
  color: var(--lw-gray);
  background: var(--lw-white);
  border: 1px solid var(--lw-gray-light);
  transition: all var(--lw-dur-fast) ease;
}
.lw-tab:hover {
  color: var(--lw-purple);
  border-color: var(--lw-purple-light);
}
.lw-tab.active {
  background: var(--lw-gold);
  color: var(--lw-purple-deep);
  border-color: var(--lw-gold);
}

/* Resource Grid */
.lw-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lw-space-xl);
}

.lw-resource-card {
  background: var(--lw-white);
  border-radius: var(--lw-radius-lg);
  padding: var(--lw-space-2xl) var(--lw-space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--lw-space-sm);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all var(--lw-dur-med) var(--lw-ease);
}
.lw-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.lw-resource-card.hidden {
  display: none;
}

.lw-resource-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lw-purple-pale);
  color: var(--lw-purple-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--lw-space-sm);
}

.lw-resource-badge {
  font-family: var(--lw-font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: var(--lw-radius-full);
}
.lw-badge-study {
  background: #e0f2fe;
  color: #0369a1;
}
.lw-badge-sermon {
  background: var(--lw-purple-pale);
  color: var(--lw-purple-mid);
}
.lw-badge-worship {
  background: #fef3c7;
  color: #92400e;
}

.lw-resource-card h4 {
  margin-top: 0.2rem;
}
.lw-resource-card p {
  font-size: 0.9rem;
  color: var(--lw-gray);
  line-height: 1.6;
  margin-bottom: var(--lw-space-sm);
}
.lw-resource-card .lw-btn {
  margin-top: auto;
}

/* ============================================
   COMMUNITY / TESTIMONIALS
   ============================================ */
.lw-community {
  padding: var(--lw-space-4xl) 0;
  background: var(--lw-white);
}

.lw-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lw-space-xl);
}

.lw-testimonial-card {
  background: var(--lw-cream);
  border-radius: var(--lw-radius-lg);
  padding: var(--lw-space-2xl);
  border-left: 3px solid var(--lw-purple-light);
  transition: transform var(--lw-dur-med) var(--lw-ease), box-shadow var(--lw-dur-med) var(--lw-ease);
}
.lw-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.lw-testimonial-card blockquote p {
  font-family: var(--lw-font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--lw-text-dark);
  line-height: 1.7;
  margin-bottom: var(--lw-space-xl);
}

.lw-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--lw-space-md);
}

.lw-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lw-purple);
  color: var(--lw-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lw-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lw-testimonial-author strong {
  display: block;
  font-family: var(--lw-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lw-text-dark);
}
.lw-testimonial-author span {
  font-size: 0.8rem;
  color: var(--lw-gray);
}

/* ============================================
   GIVING
   ============================================ */
.lw-giving {
  padding: var(--lw-space-4xl) 0;
  background: var(--lw-cream);
}

.lw-giving-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lw-space-3xl);
  align-items: start;
}

.lw-giving-message h2 {
  margin-bottom: var(--lw-space-lg);
}
.lw-giving-message > p {
  font-size: 1rem;
  color: var(--lw-text-body);
  line-height: 1.7;
}

.lw-giving-quote {
  border-left: 3px solid var(--lw-gold);
  padding: var(--lw-space-md) 0 var(--lw-space-md) var(--lw-space-xl);
  margin: var(--lw-space-xl) 0;
}
.lw-giving-quote p {
  font-family: var(--lw-font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--lw-text-dark);
  line-height: 1.6;
}
.lw-giving-quote cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--lw-gray);
}

.lw-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lw-space-lg);
}
.lw-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lw-gray);
}

/* Giving Options */
.lw-giving-options {
  display: flex;
  flex-direction: column;
  gap: var(--lw-space-lg);
}

.lw-give-card {
  background: var(--lw-white);
  border-radius: var(--lw-radius-lg);
  padding: var(--lw-space-xl);
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: var(--lw-space-md);
  text-align: left;
  border: 1px solid var(--lw-gray-light);
  transition: all var(--lw-dur-med) var(--lw-ease);
}
.lw-give-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.lw-give-featured {
  border-color: var(--lw-purple-light);
  box-shadow: 0 4px 16px rgba(167,139,250,0.12);
  position: relative;
}

.lw-give-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  font-family: var(--lw-font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--lw-gold);
  color: var(--lw-purple-deep);
  padding: 0.25rem 0.7rem;
  border-radius: var(--lw-radius-full);
}

.lw-give-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lw-purple-pale);
  color: var(--lw-purple-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lw-give-text {
  min-width: 0; /* allow 1fr column to shrink correctly in grid */
}

.lw-give-card h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.lw-give-card p {
  font-size: 0.85rem;
  color: var(--lw-gray);
  line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
.lw-footer {
  background: var(--lw-purple-deep);
  color: var(--lw-text-on-dark-muted);
  padding: var(--lw-space-4xl) 0 var(--lw-space-xl);
}

.lw-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--lw-space-2xl);
  padding-bottom: var(--lw-space-3xl);
  border-bottom: 1px solid rgba(167,139,250,0.12);
}

.lw-footer-brand .lw-logo {
  margin-bottom: var(--lw-space-lg);
}
.lw-footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--lw-space-sm);
}

.lw-footer-col h4 {
  font-family: var(--lw-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lw-purple-light);
  margin-bottom: var(--lw-space-lg);
}

.lw-footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--lw-text-on-dark-muted);
  padding: 0.3rem 0;
  transition: color var(--lw-dur-fast) ease;
}
.lw-footer-col a:hover { color: var(--lw-white); }

/* Newsletter */
.lw-footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: var(--lw-space-md);
}

.lw-newsletter-form {
  display: flex;
  gap: 0;
  margin-bottom: var(--lw-space-xl);
}

.lw-newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(167,139,250,0.25);
  border-right: none;
  border-radius: var(--lw-radius-full) 0 0 var(--lw-radius-full);
  background: rgba(255,255,255,0.06);
  color: var(--lw-white);
  font-family: var(--lw-font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--lw-dur-fast) ease;
}
.lw-newsletter-form input::placeholder {
  color: var(--lw-text-on-dark-muted);
}
.lw-newsletter-form input:focus {
  border-color: var(--lw-purple-light);
}

.lw-newsletter-form .lw-btn {
  border-radius: 0 var(--lw-radius-full) var(--lw-radius-full) 0;
  padding: 0.7rem 1.3rem;
  font-size: 0.8rem;
}

/* Social */
.lw-social {
  display: flex;
  gap: var(--lw-space-md);
}
.lw-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lw-text-on-dark-muted);
  transition: all var(--lw-dur-fast) ease;
}
.lw-social a:hover {
  background: var(--lw-purple-light);
  border-color: var(--lw-purple-light);
  color: var(--lw-purple-deep);
}

/* Footer Bottom */
.lw-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--lw-space-xl);
  font-size: 0.8rem;
}
.lw-footer-bottom a {
  color: var(--lw-purple-light);
  transition: color var(--lw-dur-fast) ease;
}
.lw-footer-bottom a:hover { color: var(--lw-white); }

/* ============================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  /* Nav */
  .lw-nav-links { display: none; }
  .lw-menu-toggle { display: flex; }
  .lw-nav-actions .lw-btn { display: none; }

  /* Hero */
  .lw-hero { min-height: auto; padding-top: calc(var(--lw-banner-h) + var(--lw-nav-h) + 2rem); padding-bottom: 2rem; }
  .lw-hero-inner { grid-template-columns: 1fr; text-align: center; gap: var(--lw-space-2xl); }
  .lw-hero-text { order: 1; }
  .lw-hero-media { order: 2; max-width: 560px; margin: 0 auto; }
  .lw-hero-desc { margin: 0 auto var(--lw-space-2xl); }
  .lw-hero-actions { justify-content: center; }

  /* Featured Message */
  .lw-featured-message { grid-template-columns: 1fr; }

  /* Messages Grid */
  .lw-messages-grid { grid-template-columns: repeat(2, 1fr); }

  /* Podcast */
  .lw-podcast-grid { grid-template-columns: repeat(2, 1fr); }

  /* Devotional */
  .lw-devotional-inner { grid-template-columns: 1fr; }
  .lw-devotional-visual { max-width: 400px; margin: 0 auto; }

  /* Resources */
  .lw-resources-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials */
  .lw-testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  /* Giving */
  .lw-giving-inner { grid-template-columns: 1fr; }

  /* Footer */
  .lw-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE — Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .lw-container { padding: 0 var(--lw-space-lg); }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }

  /* Sections */
  .lw-messages,
  .lw-podcast,
  .lw-devotional,
  .lw-resources,
  .lw-community,
  .lw-giving { padding: var(--lw-space-3xl) 0; }

  /* Messages */
  .lw-messages-grid { grid-template-columns: 1fr; }

  /* Podcast */
  .lw-podcast-grid { grid-template-columns: 1fr; }

  /* Resources */
  .lw-resources-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .lw-testimonials-grid { grid-template-columns: 1fr; }

  /* Giving */
  .lw-give-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: var(--lw-space-sm);
  }

  /* Footer */
  .lw-footer-grid { grid-template-columns: 1fr; gap: var(--lw-space-2xl); }
  .lw-footer-bottom { flex-direction: column; gap: var(--lw-space-sm); text-align: center; }

  /* Buttons */
  .lw-hero-actions { flex-direction: column; }
  .lw-hero-actions .lw-btn { width: 100%; justify-content: center; }

  /* Tabs */
  .lw-tabs { gap: 0.4rem; }
  .lw-tab { font-size: 0.78rem; padding: 0.45rem 1rem; }
}

/* ============================================
   RESPONSIVE — Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .lw-section-header { margin-bottom: var(--lw-space-2xl); }

  .lw-podcast-platforms { flex-direction: column; }
}
