/* ===== Vision Generation — Brand System ===== */
:root {
  /* Brand */
  --vg-purple-900: #1F0F3D;
  --vg-purple-800: #2A1656;
  --vg-purple-700: #3D1E6D;   /* primary */
  --vg-purple-600: #5A2FA0;
  --vg-purple-500: #7C4ED1;
  --vg-purple-100: #EFE7FB;
  --vg-purple-50:  #F7F2FE;

  --vg-gold-700:   #9B7A2E;
  --vg-gold-600:   #C8A04A;   /* accent */
  --vg-gold-500:   #D9B768;
  --vg-gold-200:   #F2E2B0;
  --vg-gold-100:   #FAF1D6;

  --vg-ink:        #1A0F2E;
  --vg-ink-soft:   #3A2E55;
  --vg-mute:       #6F6585;
  --vg-line:       #E7E1D5;
  --vg-cream:      #FAF6EE;
  --vg-cream-2:    #F3ECDD;
  --vg-white:      #FFFFFF;

  --vg-grad: linear-gradient(135deg, #3D1E6D 0%, #5A2FA0 55%, #C8A04A 130%);
  --vg-grad-soft: linear-gradient(135deg, #F7F2FE 0%, #FAF1D6 100%);

  --shadow-sm: 0 2px 6px rgba(31,15,61,0.06), 0 1px 2px rgba(31,15,61,0.04);
  --shadow-md: 0 12px 30px -10px rgba(31,15,61,0.18), 0 4px 10px -4px rgba(31,15,61,0.08);
  --shadow-lg: 0 30px 60px -20px rgba(31,15,61,0.30), 0 10px 24px -10px rgba(31,15,61,0.12);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --container: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--vg-ink);
  background: var(--vg-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--vg-ink);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 84px); line-height: 0.98; }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
h4 { font-size: 20px; line-height: 1.25; }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

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

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  body { font-size: 16px; }
}

.section {
  padding: 96px 0;
}
.section-tight { padding: 64px 0; }
.section-dark {
  background: var(--vg-purple-900);
  color: #F0E7FF;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-cream { background: var(--vg-cream-2); }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
}

/* ===== Eyebrow ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vg-gold-700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--vg-gold-600);
}
.section-dark .eyebrow { color: var(--vg-gold-500); }
.section-dark .eyebrow::before { background: var(--vg-gold-500); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--vg-grad);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(61,30,109,0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(61,30,109,0.65), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-gold {
  background: var(--vg-gold-600);
  color: var(--vg-purple-900);
  box-shadow: 0 8px 20px -8px rgba(155,122,46,0.5);
}
.btn-gold:hover {
  background: var(--vg-gold-500);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--vg-purple-700);
  border-color: var(--vg-purple-700);
}
.btn-outline:hover {
  background: var(--vg-purple-700);
  color: #fff;
}
.btn-outline-gold {
  background: transparent;
  color: var(--vg-gold-600);
  border-color: var(--vg-gold-600);
}
.btn-outline-gold:hover {
  background: var(--vg-gold-600);
  color: var(--vg-purple-900);
}
.btn-ghost {
  background: transparent;
  color: var(--vg-ink);
}
.btn-ghost:hover { color: var(--vg-purple-700); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 20px 36px; font-size: 16px; }

/* ===== Card ===== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--vg-line);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--vg-gold-200);
}

/* ===== Image placeholder ===== */
.img-ph {
  position: relative;
  background: linear-gradient(135deg, var(--vg-purple-100) 0%, var(--vg-gold-100) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vg-purple-700);
}
.img-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 14px,
    rgba(61,30,109,0.06) 14px,
    rgba(61,30,109,0.06) 28px
  );
}
.img-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 50%);
  pointer-events: none;
}
.img-ph .ph-label {
  position: relative;
  z-index: 2;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vg-purple-700);
  padding: 6px 12px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  border: 1px solid rgba(61,30,109,0.15);
  text-align: center;
}
.img-ph.dark { background: linear-gradient(135deg, var(--vg-purple-800) 0%, var(--vg-purple-700) 60%, var(--vg-gold-700) 130%); }
.img-ph.dark::before {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 14px,
    rgba(255,255,255,0.06) 14px,
    rgba(255,255,255,0.06) 28px
  );
}
.img-ph.dark .ph-label {
  background: rgba(0,0,0,0.35);
  color: #F2E2B0;
  border-color: rgba(242,226,176,0.3);
}

/* ===== Tag / pill ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--vg-purple-50);
  color: var(--vg-purple-700);
  border: 1px solid var(--vg-purple-100);
}
.tag-gold {
  background: var(--vg-gold-100);
  color: var(--vg-gold-700);
  border-color: var(--vg-gold-200);
}

/* ===== Form ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--vg-ink-soft);
  letter-spacing: 0.01em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--vg-line);
  background: #fff;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--vg-purple-700);
  box-shadow: 0 0 0 4px var(--vg-purple-50);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ===== Divider with gold dot ===== */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gold-rule::before, .gold-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vg-gold-600);
  opacity: 0.4;
}
.gold-rule .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--vg-gold-600);
}

/* ===== Marquee (One Church Multiple Locations) ===== */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  padding-right: 64px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-2 { animation: fadeUp .6s ease .1s both; }
.fade-up-3 { animation: fadeUp .6s ease .2s both; }
.fade-up-4 { animation: fadeUp .6s ease .3s both; }

@keyframes shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== Scrollbar trim ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--vg-cream); }
::-webkit-scrollbar-thumb { background: var(--vg-purple-100); border-radius: 999px; border: 2px solid var(--vg-cream); }
::-webkit-scrollbar-thumb:hover { background: var(--vg-purple-500); }

/* ===== Utility ===== */
.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); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.text-center { text-align: center; }
.muted { color: var(--vg-mute); }
.serif { font-family: var(--font-display); }

.lead {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--vg-ink-soft);
  line-height: 1.5;
}

/* Hero specific */
.hero-headline { padding-bottom: 0.12em; overflow: visible; }
.hero-headline em {
  font-style: italic;
  background: linear-gradient(135deg, var(--vg-gold-600), var(--vg-gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0.05em 0.2em 0.12em 0.05em;
  margin-right: -0.1em;
  line-height: 1.1;
  overflow: visible;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,246,238,0.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(31,15,61,0.06);
}
.site-header.is-dark {
  background: rgba(31,15,61,0.85);
  border-bottom-color: rgba(255,255,255,0.08);
  color: #fff;
}

/* Page transitions */
.page-enter {
  animation: fadeUp .4s ease both;
}
