/* ============================================
   SANCTUARY DIGITAL — Main Stylesheet
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Color Palette */
  --midnight:      #0b1120;
  --navy:          #121d35;
  --navy-mid:      #1a2b4a;
  --navy-light:    #243860;
  --gold:          #c49a3c;
  --gold-light:    #d4af5a;
  --gold-pale:     #e8d5a8;
  --gold-glow:     rgba(196, 154, 60, 0.15);
  --cream:         #f8f4ec;
  --warm-white:    #fdfbf7;
  --parchment:     #f2ece0;
  --text-primary:  #1a1a2e;
  --text-body:     #3d3d56;
  --text-secondary:#6b6b88;
  --text-muted:    #9a9ab4;
  --border:        #e2ddd2;
  --border-light:  #eee9df;

  /* Badge Colors */
  --badge-church:  var(--gold);
  --badge-green:   #2d8a68;
  --badge-purple:  #6d4aae;
  --badge-amber:   #d35400;
  --badge-pink:    #e84393;
  --badge-blue:    #2b7de9;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

  /* Sizing */
  --container-max: 1200px;
  --container-wide: 1400px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-med: 400ms;
  --duration-slow: 700ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--warm-white);
  overflow-x: hidden;
}

/* Skip-to-content link (visible only on keyboard focus) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Global focus-visible styles for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) ease;
}

ul { list-style: none; }

::selection {
  background: var(--gold);
  color: var(--warm-white);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

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

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--warm-white);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 154, 60, 0.35);
}

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

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-light {
  background: var(--warm-white);
  color: var(--navy);
  font-weight: 700;
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.55rem 1.2rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 var(--space-lg);
  transition: all var(--duration-med) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 154, 60, 0.1);
}

.nav-container {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--warm-white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-logo em {
  font-weight: 400;
  font-style: normal;
  font-size: 0.7em;
  opacity: 0.55;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 24px;
  height: 30px;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
}

.nav-links a:hover {
  color: var(--warm-white);
  background: rgba(255,255,255,0.06);
}

.nav-signin {
  border: 1px solid rgba(196, 154, 60, 0.4) !important;
  color: var(--gold) !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius-sm) !important;
}

.nav-signin:hover {
  background: rgba(196, 154, 60, 0.08) !important;
  border-color: var(--gold) !important;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--warm-white) !important;
  padding: 0.5rem 1.4rem !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-white);
  border-radius: 2px;
  transition: all var(--duration-fast) ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--midnight);
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-3xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Arch shape — a subtle pointed arch silhouette */
.hero-arch {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 460px;
  height: 640px;
  transform: translate(-50%, -52%);
  border: 1px solid rgba(196, 154, 60, 0.08);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  opacity: 1;
}

.hero-arch::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(196, 154, 60, 0.05);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
}

/* Warm golden glow */
.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(196, 154, 60, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  color: var(--warm-white);
  margin-bottom: var(--space-lg);
  line-height: 1.08;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero-title-accent {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
  font-size: 0.82em;
  margin-top: 0.15em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 0.25rem;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1; transform: scaleY(1.3); }
}

/* ============================================
   ABOUT / FEATURES
   ============================================ */
.about {
  padding: var(--space-4xl) 0;
  background: var(--warm-white);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  transition: all var(--duration-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-med) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
  border-color: var(--gold-pale);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   TEMPLATE GALLERY
   ============================================ */
.templates {
  padding: var(--space-4xl) 0;
  background: var(--cream);
  position: relative;
}

.templates::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--warm-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.filter-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.filter-btn.active {
  background: var(--navy);
  color: var(--warm-white);
  border-color: var(--navy);
}

/* Template Grid */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

/* Template Card */
.template-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--duration-med) var(--ease-out);
  position: relative;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(26, 26, 46, 0.1),
    0 0 0 1px var(--gold-pale);
}

.template-card.hidden {
  display: none;
}

/* Card Image / Placeholder */
.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform var(--duration-slow) var(--ease-out);
}

.template-card:hover .card-image-placeholder {
  transform: scale(1.04);
}

/* Placeholder mockup wireframe */
.placeholder-mockup {
  width: 85%;
  height: 80%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.35;
}

.mock-nav {
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  width: 100%;
}

.mock-hero-block {
  height: 40%;
  background: var(--accent);
  border-radius: 4px;
  opacity: 0.5;
}

.mock-hero-block.tall { height: 55%; }
.mock-hero-block.wide { height: 35%; }

.mock-cols {
  display: flex;
  gap: 6px;
  flex: 1;
}

.mock-cols.four .mock-col { flex: 1; }

.mock-col {
  flex: 1;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.35;
}

.mock-col.tall { min-height: 60px; }
.mock-col.wide { flex: 2; }

.mock-text-block {
  height: 20%;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.2;
}

/* Live iframe preview */
.card-preview {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}

.card-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 900px;
  border: none;
  pointer-events: none;
  transform-origin: top left;
  transform: scale(var(--preview-scale, 0.29));
  display: block;
}

.template-card:hover .card-preview {
  opacity: 0.92;
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--badge-church);
  color: white;
  border-radius: 100px;
  z-index: 2;
}

.badge-green { background: var(--badge-green); }
.badge-purple { background: var(--badge-purple); }
.badge-amber { background: var(--badge-amber); }
.badge-pink { background: var(--badge-pink); }
.badge-blue { background: var(--badge-blue); }

/* Card Hover Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
  z-index: 1;
}

.template-card:hover .card-overlay {
  opacity: 1;
}

/* Card Body */
.card-body {
  padding: var(--space-lg);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-lg);
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  background: var(--parchment);
  color: var(--text-secondary);
  border-radius: 100px;
  border: 1px solid var(--border-light);
}

.card-actions {
  display: flex;
  gap: 0.6rem;
}

.card-actions .btn {
  flex: 1;
  text-align: center;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  padding: var(--space-4xl) 0;
  background: var(--warm-white);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-lg);
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.process-connector {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin-top: 2rem;
  flex-shrink: 0;
  position: relative;
}

.process-connector::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 154, 60, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.testimonials .section-eyebrow { color: var(--gold); }
.testimonials .section-title   { color: var(--warm-white); }
.testimonials .section-title em { color: var(--gold-light); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--duration-med) var(--ease-out);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(196, 154, 60, 0.2);
  transform: translateY(-4px);
}

.quote-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: var(--space-md);
}

.testimonial-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

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

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

.author-info strong {
  display: block;
  color: var(--warm-white);
  font-size: 0.9rem;
}

.author-info span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--space-4xl) 0;
  background: var(--warm-white);
}

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

.contact-info .section-title {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.contact-info .section-eyebrow {
  text-align: left;
}

.contact-info > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-body);
  font-size: 0.95rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--midnight);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
}

.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  padding: 0.3rem 0;
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--duration-fast) ease;
}

.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(196, 154, 60, 0.08);
}

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

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Stagger children */
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.template-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.template-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.template-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.template-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.template-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.template-grid .reveal:nth-child(7) { transition-delay: 0.48s; }
.template-grid .reveal:nth-child(8) { transition-delay: 0.56s; }

.testimonial-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.testimonial-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

.process-steps .reveal:nth-child(odd):nth-child(3) { transition-delay: 0.15s; }
.process-steps .reveal:nth-child(odd):nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   CHURCH TOOLS & APPS SECTION
   ============================================ */

.tools-section {
  padding: var(--space-4xl) 0;
  background: var(--parchment);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.tool-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--duration-med) var(--ease-out);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--gold-pale);
}

.tool-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  color: var(--gold);
}

.tool-icon svg {
  width: 100%;
  height: 100%;
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tool-card-demo-link {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  transition: opacity var(--duration-fast) ease;
}

.tool-card-demo-link:hover {
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tools-cta {
  text-align: center;
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing {
  padding: var(--space-4xl) 0;
  background: var(--warm-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: start;
}

.pricing-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--duration-med) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pricing-featured {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(196, 154, 60, 0.15);
  transform: scale(1.03);
}

.pricing-featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: white;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-lg);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-body);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding-left: 1.6rem;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold-pale);
  border-radius: 50%;
}

.pricing-features li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 9px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.pricing-note a {
  color: var(--gold);
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

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

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .pricing-featured {
    transform: scale(1.02);
  }

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

  .testimonial-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

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

  .process-steps {
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
  }

  .process-step {
    max-width: 460px;
    text-align: left;
    display: flex;
    gap: var(--space-lg);
    padding: 0;
  }

  .step-number {
    flex-shrink: 0;
  }

  .process-connector {
    width: 1px;
    height: 40px;
    margin: 0;
  }

  .process-connector::after {
    right: -3px;
    top: auto;
    bottom: -3px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-4xl: 5rem;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.25rem;
    padding: var(--space-xl);
    transition: right var(--duration-med) var(--ease-out);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: rgba(255,255,255,0.7);
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: var(--space-md);
    text-align: center;
  }

  /* Mobile overlay */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }

  /* Hero */
  .hero {
    padding-bottom: var(--space-2xl);
    min-height: 90vh;
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .hero-arch {
    width: 300px;
    height: 420px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Grid adjustments */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto var(--space-xl);
  }

  .pricing-featured {
    transform: none;
    order: -1;
  }

  .pricing-featured:hover {
    transform: translateY(-4px);
  }

  .template-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid .testimonial-card:last-child {
    max-width: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .filter-bar {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    padding: 0 var(--space-sm);
    max-width: 100%;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
    min-height: 40px;
    white-space: nowrap;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .filter-bar {
    gap: 0.35rem;
    padding: 0 0.5rem;
  }

  .filter-btn {
    font-size: 0.72rem;
    padding: 0.4rem 0.7rem;
    min-height: 36px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Pricing sub-section headings & lifetime variant ─────────────────────── */
.pricing-sub-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: var(--space-3xl) 0 var(--space-xs);
}
.pricing-sub-heading:first-of-type {
  margin-top: var(--space-md);
}
.pricing-sub-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

/* Lifetime hosting — single centered featured card */
.pricing-lifetime-wrap {
  max-width: 680px;
  margin: 0 auto var(--space-xl);
}
.pricing-lifetime { text-align: center; }
.pricing-lifetime .pricing-header { padding-bottom: var(--space-xl); }
.pricing-lifetime .pricing-features.pricing-features-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--space-xl);
  text-align: left;
  max-width: 520px;
  margin: 0 auto var(--space-xl);
}
.pricing-lifetime .pricing-features.pricing-features-2col li {
  border-bottom: 1px solid var(--border-light);
}
@media (max-width: 600px) {
  .pricing-lifetime .pricing-features.pricing-features-2col { grid-template-columns: 1fr; max-width: 320px; }
}
.pricing-lifetime .btn { display: inline-block; padding-left: var(--space-2xl); padding-right: var(--space-2xl); }

/* Tighten gap between consecutive pricing-grids */
.pricing-grid + .pricing-sub-heading { margin-top: var(--space-3xl); }
