/* ============================================================
   Legacy Bible Church — styles.css
   Dark mode design system
   ============================================================ */

/* ============================================================
   0. LOCAL FONTS
   ============================================================ */
@font-face {
  font-family: 'Priestacy';
  src: url('../fonts/Priestacy.woff') format('woff'),
       url('../fonts/Priestacy.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block; /* block so curtain waits for it */
}

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   NOTE: Google Fonts loaded via <link> in HTML (not @import here)
   to avoid render-blocking double round-trip.
   ============================================================ */
:root {
  --bg-primary: #0e0e0e;
  --bg-secondary: #141414;
  --bg-tertiary: #1c1c1c;
  --surface: #222222;
  --surface-hover: #2c2c2c;
  --border: #2a2a2a;
  --border-light: #363636;
  --accent: #c8c8c8;
  --accent-bright: #efefef;
  --accent-dim: #888888;
  --text-primary: #efefef;
  --text-secondary: #9a9a9a;
  --text-muted: #5a5a5a;
  --nav-height: 72px;
  --max-width: 1200px;
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

/* ============================================================
   3. 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 {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

input,
textarea,
select {
  font-family: inherit;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.875rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 68ch;
}

p + p {
  margin-top: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-bright);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

em {
  font-style: italic;
}

small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

blockquote {
  border-left: 3px solid var(--accent-dim);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.125rem;
}

/* ============================================================
   5. LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 120px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered p {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 56ch;
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

/* Gap utilities */
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* Dividers */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 40px 0;
}

/* ============================================================
   6. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(14, 14, 14, 0.96);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-logo:hover {
  opacity: 1;
}
.nav-logo .logo-script {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--accent-bright);
  line-height: 1;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
}

.nav-logo .logo-sub {
  font-family: system-ui, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: #B8960C;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: -2px;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg {
  width: 18px;
  height: 18px;
  color: var(--bg-primary);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--surface);
}

.nav-link.active {
  color: var(--accent-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg-primary);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-bright);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  background: none;
  border: none;
  padding: 0;
}

.hamburger:hover {
  background: var(--surface);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.mobile-menu-link {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  color: var(--text-primary);
  background: var(--surface);
}

.mobile-menu-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}

.mobile-menu-cta:hover {
  background: var(--accent-bright);
  color: var(--bg-primary);
}

/* Spacer to push content below fixed nav */
.nav-spacer {
  height: var(--nav-height);
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 8px 18px;
}

.btn-lg {
  font-size: 1rem;
  padding: 16px 36px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(200, 200, 200, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-dim);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(200, 200, 200, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.btn-icon {
  padding: 10px;
  width: 40px;
  height: 40px;
}

.btn-icon.btn-lg {
  width: 52px;
  height: 52px;
  padding: 14px;
}

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 14, 0.65) 0%,
    rgba(14, 14, 14, 0.55) 50%,
    rgba(14, 14, 14, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dim);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2.2s ease infinite;
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   9. CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img img {
  transform: scale(1.03);
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   10. FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label span {
  color: var(--accent-dim);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(200, 200, 200, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-error {
  font-size: 0.8125rem;
  color: #e05c5c;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ============================================================
   11. PAGE HEADER
   ============================================================ */
.page-header {
  background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 72px 0 64px;
  text-align: center;
}

.page-header-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
  margin-bottom: 12px;
}

.page-header-title {
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-header-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8125rem;
}

.breadcrumb-item {
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb-item.current {
  color: var(--accent-dim);
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 26ch;
  margin-bottom: 24px;
}

.footer-address {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: normal;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
}

.social-link:hover {
  background: var(--surface-hover);
  color: var(--accent);
  border-color: var(--border-light);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal-link:hover {
  color: var(--accent-dim);
}

/* ============================================================
   13. SERMON CARDS
   ============================================================ */
.sermon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.sermon-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.sermon-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sermon-card:hover .sermon-thumb img {
  transform: scale(1.04);
}

.sermon-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--surface) 100%);
}

.sermon-thumb-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

.sermon-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 14, 0.4);
  opacity: 0;
  transition: opacity var(--transition);
}

.sermon-card:hover .sermon-play-btn {
  opacity: 1;
}

.sermon-play-btn .play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(200, 200, 200, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.sermon-card:hover .play-circle {
  transform: scale(1.08);
}

.sermon-play-btn svg {
  width: 22px;
  height: 22px;
  color: var(--bg-primary);
  margin-left: 3px;
}

.sermon-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(14, 14, 14, 0.85);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

.sermon-body {
  padding: 20px;
}

.sermon-series {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  margin-bottom: 6px;
}

.sermon-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.sermon-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.sermon-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sermon-meta-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.sermon-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sermon-actions {
  display: flex;
  gap: 6px;
}

/* ============================================================
   14. EVENT CARDS
   ============================================================ */
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.event-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.event-date-badge {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 4px;
}

.event-date-month {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 4px;
}

.event-date-day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.event-content {
  flex: 1;
  min-width: 0;
}

.event-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  margin-bottom: 4px;
}

.event-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.event-meta-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--accent-dim);
}

.event-action {
  flex-shrink: 0;
  align-self: center;
}

/* ============================================================
   15. MINISTRY CARDS
   ============================================================ */
.ministry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.ministry-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ministry-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition), border-color var(--transition);
}

.ministry-card:hover .ministry-icon {
  background: rgba(200, 200, 200, 0.06);
  border-color: var(--accent-dim);
}

.ministry-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-dim);
  transition: color var(--transition);
}

.ministry-card:hover .ministry-icon svg {
  color: var(--accent);
}

.ministry-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.ministry-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.ministry-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition), gap var(--transition);
}

.ministry-link:hover {
  color: var(--accent);
  gap: 8px;
}

.ministry-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.ministry-link:hover svg {
  transform: translateX(2px);
}

/* ============================================================
   16. GIVE SECTION
   ============================================================ */
.give-section {
  background: var(--bg-secondary);
}

.give-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 520px;
  margin: 0 auto;
}

.give-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.give-card-sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.give-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.give-amount-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 8px;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition);
  text-align: center;
}

.give-amount-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent-dim);
  color: var(--text-primary);
}

.give-amount-btn.selected {
  background: rgba(200, 200, 200, 0.08);
  border-color: var(--accent);
  color: var(--accent-bright);
}

.give-custom-input {
  position: relative;
  margin-bottom: 20px;
}

.give-custom-input .currency {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.give-custom-input input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px 12px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.give-custom-input input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(200, 200, 200, 0.08);
}

.give-frequency {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 20px;
  gap: 3px;
}

.give-freq-btn {
  flex: 1;
  text-align: center;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  background: none;
  border: none;
}

.give-freq-btn.selected {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.give-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ============================================================
   17. STAFF CARDS
   ============================================================ */
.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.staff-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.staff-photo {
  aspect-ratio: 3 / 4;
  background: var(--bg-tertiary);
  overflow: hidden;
  position: relative;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.staff-card:hover .staff-photo img {
  transform: scale(1.04);
}

.staff-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-tertiary) 0%, var(--surface) 100%);
}

.staff-photo-placeholder svg {
  width: 56px;
  height: 56px;
  color: var(--border-light);
}

.staff-info {
  padding: 20px;
}

.staff-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.staff-role {
  font-size: 0.8125rem;
  color: var(--accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 12px;
}

.staff-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.staff-email {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.staff-email:hover {
  color: var(--accent);
}

/* ============================================================
   18. MISCELLANEOUS SECTION STYLES
   ============================================================ */

/* Service times */
.service-times {
  display: grid;
  gap: 16px;
}

.service-time-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color var(--transition);
}

.service-time-item:hover {
  border-color: var(--border-light);
}

.service-day {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
}

.service-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-time {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Announcement bar */
.announcement-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.announcement-bar a {
  color: var(--accent);
  font-weight: 500;
}

/* Scripture callout */
.scripture-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.scripture-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.scripture-ref {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Stats row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--surface);
  padding: 32px 24px;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Alert / Banner */
.alert {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-info  { border-left: 3px solid #5b9bd5; }
.alert-success { border-left: 3px solid #5da87f; }
.alert-warn  { border-left: 3px solid #c9924a; }
.alert-error { border-left: 3px solid #c05050; }

/* Tag / Badge */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  background: var(--bg-tertiary);
}

/* ============================================================
   19. UTILITY CLASSES
   ============================================================ */

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Text colors */
.text-primary   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-accent    { color: var(--accent) !important; }

/* Font weights */
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semi    { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 800; }

/* Display */
.block         { display: block; }
.inline-block  { display: inline-block; }
.hidden        { display: none; }
.visible       { visibility: visible; }

/* Width */
.w-full  { width: 100%; }
.w-auto  { width: auto; }

/* Margin top */
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

/* Margin bottom */
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

/* Padding top */
.pt-0  { padding-top: 0; }
.pt-8  { padding-top: 8px; }
.pt-16 { padding-top: 16px; }
.pt-24 { padding-top: 24px; }
.pt-32 { padding-top: 32px; }
.pt-40 { padding-top: 40px; }
.pt-48 { padding-top: 48px; }
.pt-64 { padding-top: 64px; }
.pt-80 { padding-top: 80px; }

/* Padding bottom */
.pb-0  { padding-bottom: 0; }
.pb-8  { padding-bottom: 8px; }
.pb-16 { padding-bottom: 16px; }
.pb-24 { padding-bottom: 24px; }
.pb-32 { padding-bottom: 32px; }
.pb-40 { padding-bottom: 40px; }
.pb-48 { padding-bottom: 48px; }
.pb-64 { padding-bottom: 64px; }
.pb-80 { padding-bottom: 80px; }

/* Background */
.bg-primary   { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary  { background-color: var(--bg-tertiary); }
.bg-surface   { background-color: var(--surface); }

/* Border */
.border-top    { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }

/* Max width helpers */
.max-w-sm  { max-width: 480px; margin-left: auto; margin-right: auto; }
.max-w-md  { max-width: 640px; margin-left: auto; margin-right: auto; }
.max-w-lg  { max-width: 820px; margin-left: auto; margin-right: auto; }
.max-w-xl  { max-width: 960px; margin-left: auto; margin-right: auto; }

/* ============================================================
   20. ANIMATIONS & FADE IN
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade-in on scroll — elements start hidden */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 400ms; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   21. RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .give-card {
    max-width: 100%;
  }
}

/* ============================================================
   22. RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Nav: hide desktop links, show hamburger */
  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  /* Typography */
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  /* Layout */
  .section {
    padding: 56px 0;
  }

  .section-lg {
    padding: 72px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Event card */
  .event-card {
    flex-direction: column;
    gap: 14px;
  }

  .event-action {
    width: 100%;
  }

  .event-action .btn {
    width: 100%;
  }

  .event-title {
    white-space: normal;
  }

  /* Give */
  .give-amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero actions */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Page header */
  .page-header {
    padding: 48px 0 40px;
  }

  /* Section header */
  .section-header {
    margin-bottom: 32px;
  }
}

/* ============================================================
   23. SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

/* ============================================================
   24. SELECTION
   ============================================================ */
::selection {
  background: rgba(200, 200, 200, 0.18);
  color: var(--text-primary);
}

/* ============================================================
   25. FOCUS VISIBLE (accessibility)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-dim);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   26. HOUSE CHURCH COMPONENTS
   ============================================================ */

/* --- Hero inner / scripture -----------------------------------*/
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 24px;
  padding-top: var(--nav-height);
}

.hero-scripture {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --- Section variants -----------------------------------------*/
.section--alt {
  background: var(--bg-secondary);
}

.section--dark-cta {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.65;
  max-width: 56ch;
}

.section-footer-text {
  margin-top: 3rem;
  text-align: center;
}

.section-footer-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto;
}

/* --- Text center helper ---------------------------------------*/
.text-center {
  text-align: center;
}

/* --- Inline link ----------------------------------------------*/
.inline-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition), gap var(--transition);
}

.inline-link:hover {
  color: var(--accent-bright);
  gap: 8px;
}

/* --- Button group ---------------------------------------------*/
.btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Two-column layout ----------------------------------------*/
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

.two-col__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.two-col__text h2 {
  margin-bottom: 0.5rem;
}

.two-col__text p {
  max-width: 52ch;
}

.two-col__media {}

/* --- Placeholder image box ------------------------------------*/
.placeholder-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-box span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  padding: 1rem;
}

.placeholder-box--person {
  aspect-ratio: 3 / 4;
}

/* --- Card grid variants ---------------------------------------*/
.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card--featured {
  border-color: var(--border-light);
  background: var(--bg-tertiary);
}

/* --- Card element classes -------------------------------------*/
.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: none;
}

.card__note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: none;
}

.card__action {
  margin-top: 1.5rem;
}

.card__address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.75rem;
}

/* --- Zelle giving block --------------------------------------- */
.zelle-email-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  background: var(--bg-alt, rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.zelle-email {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.btn-copy {
  flex-shrink: 0;
  background: var(--color-accent, #c9a84c);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-copy:hover {
  opacity: 0.85;
}

/* --- Timeline -------------------------------------------------*/
.timeline {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 108px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border-light);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 14px 0;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 105px;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--bg-primary);
}

.timeline-item--final::before {
  background: var(--accent);
}

.timeline-time {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dim);
  text-align: right;
  padding-top: 2px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.timeline-content {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: none;
}

.timeline-content strong {
  color: var(--text-primary);
}

/* --- Prose block ----------------------------------------------*/
.prose {
  max-width: 680px;
}

.prose p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 64ch;
}

.prose p + p {
  margin-top: 1.25rem;
}

/* --- Scripture block (standalone) ----------------------------*/
.scripture-block {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 40px;
  border-left: 3px solid var(--accent-dim);
  background: var(--surface);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dim);
}

.scripture-block p {
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  max-width: none;
}

.scripture-block cite {
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Series card ----------------------------------------------*/
.series-card {
  max-width: 680px;
  margin: 0 auto;
}

.series-card__inner {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.series-card__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.series-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.series-card__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: none;
}

.series-card__scripture {
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  border-left: 2px solid var(--border-light);
  padding-left: 16px;
  margin-bottom: 20px;
  max-width: none;
}

.series-card__ref {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.series-card__status {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: none;
}

/* --- Notify form ----------------------------------------------*/
.notify-form {
  max-width: 640px;
  margin: 0 auto;
}

.notify-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.notify-form__action {
  margin-top: 1.25rem;
}

.notify-form .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.notify-form .form-group input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.notify-form .form-group input::placeholder {
  color: var(--text-muted);
}

.notify-form .form-group input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(200, 200, 200, 0.08);
}

/* --- Contact form ---------------------------------------------*/
.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form .form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(200, 200, 200, 0.08);
}

.contact-form .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form .form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.contact-form .form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: none;
}

.required {
  color: var(--accent-dim);
}

.optional {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- FAQ (details/summary) ------------------------------------*/
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--border-light);
}

.faq-item__question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
  user-select: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-dim);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition), color var(--transition);
}

.faq-item[open] .faq-item__question::after {
  content: '\2212';
  color: var(--accent);
}

.faq-item__question:hover {
  background: var(--surface-hover);
}

.faq-item__answer {
  padding: 0 22px 18px;
  border-top: 1px solid var(--border);
}

.faq-item__answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
  margin-top: 14px;
}

/* --- Footer layout (new page structure) ----------------------*/
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col {}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: none;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  max-width: none;
}

.footer-address {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  max-width: none;
}

/* --- Page header (BEM) ----------------------------------------*/
.page-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-align: center;
}

/* --- Responsive additions for new components -----------------*/
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .card-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .two-col--reverse {
    direction: ltr;
  }

  .timeline::before {
    left: 82px;
  }

  .timeline-item {
    grid-template-columns: 90px 1fr;
  }

  .timeline-item::before {
    left: 80px;
  }

  .notify-form__fields {
    grid-template-columns: 1fr;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col:first-child {
    grid-column: auto;
  }

  .card-grid--2,
  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .scripture-block {
    padding: 24px 20px;
  }

  .series-card__inner {
    padding: 24px;
  }
}

/* =====================
   ANIMATIONS
   ===================== */

/* 1. Button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  background-color: rgba(255,255,255,0.25);
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* 2. Button hover — scale + glow */
.btn-primary {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(200, 200, 200, 0.2);
}
.btn-outline {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-outline:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(200, 200, 200, 0.12);
}

/* 3. Scroll-triggered fade-up (for cards, sections) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* 4. Hero text entrance (staggered fade+slide) */
.hero-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.hero h1 {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-fade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
.hero-sub {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
.hero-actions {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-fade 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}
.hero-scripture {
  opacity: 0;
  animation: hero-fade 0.7s ease 0.75s forwards;
}
@keyframes hero-fade {
  to { opacity: 1; transform: translateY(0); }
}

/* 5. Card hover lift */
.card, .sermon-card, .event-card, .ministry-card, .staff-card, .give-card, .belief-card, .value-card, .series-card, .info-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover, .sermon-card:hover, .event-card:hover, .ministry-card:hover, .give-card:hover, .belief-card:hover, .series-card:hover, .info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* 6. Nav link underline slide animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-bright);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 7. Page header — let body page-enter animation handle entry */
.page-header h1 {
  opacity: 1;
  transform: none;
}

/* 8. Timeline step entrance (for Sunday timeline on home) */
.timeline-step {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-step.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 9. Subtle pulse on the "Give Now" button */
.btn-give-pulse {
  animation: give-pulse 2.5s ease-in-out infinite;
}
@keyframes give-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,200,200,0.18); }
  50% { box-shadow: 0 0 0 10px rgba(200,200,200,0); }
}

/* ============================================================
   PAGE REVEAL CURTAIN
   ============================================================ */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: all;
}

.page-curtain.is-open {
  pointer-events: none;
}

.page-curtain__panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: #0e0e0e;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-curtain__panel--top  { top: 0; }
.page-curtain__panel--bottom { bottom: 0; }

.page-curtain.is-open .page-curtain__panel--top {
  transform: translateY(-100%);
}
.page-curtain.is-open .page-curtain__panel--bottom {
  transform: translateY(100%);
}

.page-curtain__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.5s ease 0.1s;
}

.page-curtain.is-open .page-curtain__center {
  opacity: 0;
}

/* --- Curtain logo draw-on animation --- */
.curtain-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* The official logo, revealed left-to-right by sweeping a soft-edged
   mask across it so it appears to be drawn. */
.curtain-logo {
  width: clamp(240px, 46vw, 520px);
  height: auto;
  display: block;
  opacity: 0;
  -webkit-mask-image: linear-gradient(to right, #000 0 44%, rgba(0, 0, 0, 0) 49%);
          mask-image: linear-gradient(to right, #000 0 44%, rgba(0, 0, 0, 0) 49%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 235% 100%;
          mask-size: 235% 100%;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
}

.curtain-go .curtain-logo {
  animation: logo-draw 2.6s cubic-bezier(0.62, 0.03, 0.24, 1) forwards;
}

@keyframes logo-draw {
  0%   { opacity: 0; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  6%   { opacity: 1; }
  100% { opacity: 1; -webkit-mask-position: 0% 0; mask-position: 0% 0;
         filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.55)); }
}

/* "Redlands, California" — subtle, fades in as the draw finishes */
.curtain-location {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.5rem, 1vw, 0.62rem);
  font-weight: 300;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #4a4a4a;
  opacity: 0;
}

.curtain-go .curtain-location {
  animation: curtain-fade-in 0.9s ease 2.3s forwards;
}

@keyframes curtain-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .curtain-logo {
    opacity: 1;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .curtain-go .curtain-logo { animation: none; opacity: 1; }
  .curtain-go .curtain-location { animation-delay: 0.2s; }
}

/* --- Hero logo image --- */
.hero-logo-img {
  width: clamp(220px, 35vw, 440px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.6));
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */

/* Page exit — fade out when navigating away (JS adds .page-exit).
   No fade-in animation on body: that would create an opacity stacking
   context making the curtain transparent during the animation. */
body.page-exit {
  animation: page-exit 0.25s ease forwards;
}

@keyframes page-exit {
  to { opacity: 0; transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  body.page-exit { animation: none; opacity: 0; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BLUR SCROLL — elements unblur as they enter the viewport
   and re-blur as they scroll out. Handled by initBlurScroll()
   in main.js via IntersectionObserver.
   ============================================================ */

.blur-scroll {
  transition: filter 0.45s ease;
  will-change: filter;
}

/* ============================================================
   HERO NAME (two-part: script + sub)
   ============================================================ */
.hero-name-script {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 1.05;
  color: var(--accent-bright);
  font-weight: 400;
}

.hero-name-sub {
  display: block;
  font-size: clamp(0.85rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: -4px;
}

/* ============================================================
   HYMNAL — LYRICS BUTTON
   ============================================================ */
.lyrics-btn {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  vertical-align: middle;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.lyrics-btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent-bright);
}

/* Hash-anchor offset so fixed nav doesn't cover the target section */
section[id] {
  scroll-margin-top: var(--nav-height, 72px);
}

/* Hamburger icon bars — markup uses bare <span>; give them shape
   (the earlier rules only targeted .hamburger-line). */
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
