:root {
  --radius: 0.75rem;

  /* Royal purple + gold — matched to the Pastor Joy brand */
  --background: #722F37;
  --foreground: oklch(0.96 0.02 95);

  --card: oklch(0.21 0.08 305);
  --card-foreground: oklch(0.96 0.02 95);

  --primary: oklch(0.81 0.13 88);          /* gold */
  --primary-foreground: oklch(0.18 0.07 305);

  --secondary: oklch(0.40 0.18 305);       /* royal purple */
  --secondary-foreground: oklch(0.96 0.02 95);

  --muted: oklch(0.26 0.06 305);
  --muted-foreground: oklch(0.83 0.04 95);

  --accent: oklch(0.81 0.13 88);
  --accent-foreground: oklch(0.18 0.07 305);

  --burgundy: oklch(0.40 0.18 305);        /* royal purple (legacy name) */
  --burgundy-deep: oklch(0.25 0.12 305);
  --gold: oklch(0.81 0.13 88);
  --gold-soft: oklch(0.91 0.08 92);

  --border: oklch(0.81 0.13 88 / 0.25);
  --input: oklch(0.81 0.13 88 / 0.18);
  --ring: oklch(0.81 0.13 88);

  --destructive: oklch(0.58 0.22 27);
  --destructive-foreground: oklch(0.98 0 0);
  --popover: var(--card);
  --popover-foreground: var(--card-foreground);

  --font-display: "Spectral", "Playfair Display", Georgia, serif;
  --font-script: "Allura", "Great Vibes", cursive;
  --font-body: "Inter", system-ui, sans-serif;

  --gradient-royal: radial-gradient(ellipse at top, oklch(0.34 0.16 305) 0%, oklch(0.14 0.06 305) 70%);
  --gradient-gold: linear-gradient(135deg, oklch(0.91 0.08 92), oklch(0.74 0.14 82), oklch(0.91 0.08 92));
  --shadow-royal: 0 30px 80px -20px oklch(0 0 0 / 0.6), 0 0 0 1px oklch(0.81 0.13 88 / 0.2);
  --shadow-gold-glow: 0 0 40px oklch(0.81 0.13 88 / 0.35);
}

* {
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--background);
  color: var(--foreground);
}

body {
  font-family: var(--font-body);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, #722f37, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, #4c1a20, transparent 70%),
    linear-gradient(180deg, #4a0b12, #4b161c);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.font-script { font-family: var(--font-script); }
.font-display { font-family: var(--font-display); }

.text-gold-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

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

@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.animate-shimmer { animation: shimmer 3s ease-in-out infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.9s ease-out both; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.animate-shake { animation: shake 0.5s; }

/* ===== NEW: SCROLL-TRIGGERED REVEAL ANIMATIONS ===== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 600ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 700ms; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(9) { transition-delay: 800ms; opacity: 1; transform: translateY(0); }

/* ===== NEW: HERO SLIDESHOW ===== */

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid oklch(0.81 0.13 88 / 0.3);
  box-shadow: var(--shadow-royal);
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out, transform 8s ease-out;
  transform: scale(1.08);
}

.hero-slideshow .slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-slideshow .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.16 0.07 305 / 0.95) 0%,
    oklch(0.16 0.07 305 / 0.5) 40%,
    oklch(0.16 0.07 305 / 0.1) 70%,
    transparent 100%
  );
}

.hero-slideshow .slide-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-slideshow .slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.81 0.13 88 / 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slideshow .slide-dot.active {
  background: var(--gold);
  box-shadow: 0 0 12px oklch(0.81 0.13 88 / 0.6);
  transform: scale(1.3);
}

/* ===== NEW: FEATURED PORTRAIT SHOWCASE ===== */

.portrait-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .portrait-showcase {
    flex-direction: row;
    gap: 3rem;
  }
}

.portrait-showcase .portrait-frame {
  position: relative;
  flex-shrink: 0;
}

.portrait-showcase .portrait-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 1.25rem;
  background: var(--gradient-gold);
  opacity: 0.5;
  filter: blur(16px);
  animation: pulse-glow 4s ease-in-out infinite;
}

.portrait-showcase .portrait-frame img {
  position: relative;
  width: 280px;
  height: 370px;
  object-fit: cover;
  object-position: top center;
  border-radius: 1rem;
  border: 2px solid oklch(0.81 0.13 88 / 0.4);
  box-shadow: var(--shadow-royal);
}

@media (min-width: 640px) {
  .portrait-showcase .portrait-frame img {
    width: 320px;
    height: 420px;
  }
}

/* ===== NEW: MASONRY-STYLE GALLERY ===== */

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.gallery-masonry .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid oklch(0.81 0.13 88 / 0.25);
  box-shadow: var(--shadow-royal);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

.gallery-masonry .gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.5),
              0 0 30px oklch(0.81 0.13 88 / 0.2);
  z-index: 5;
}

.gallery-masonry .gallery-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-masonry .gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-masonry .gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.16 0.07 305 / 0.8) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-masonry .gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Tall items span two rows */
.gallery-masonry .gallery-item.tall {
  grid-row: span 2;
}

.gallery-masonry .gallery-item.tall img {
  aspect-ratio: 3/7;
}

/* Wide items span two cols on larger screens */
@media (min-width: 640px) {
  .gallery-masonry .gallery-item.wide {
    grid-column: span 2;
  }
  .gallery-masonry .gallery-item.wide img {
    aspect-ratio: 16/9;
  }
}

/* ===== NEW: GOLDEN PULSE GLOW ===== */

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; filter: blur(16px); }
  50% { opacity: 0.7; filter: blur(24px); }
}

/* ===== NEW: GOLDEN LINE ANIMATION ===== */

.divider-gold-animated {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  position: relative;
  overflow: hidden;
}

.divider-gold-animated::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -100%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: sweep-line 3s ease-in-out infinite;
}

@keyframes sweep-line {
  0% { left: -60%; }
  100% { left: 100%; }
}

/* ===== NEW: PARALLAX FLOATING DECORATIONS ===== */

.floating-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(2deg); }
  75% { transform: translateY(10px) rotate(-2deg); }
}

.float-slow {
  animation: float-slow 10s ease-in-out infinite;
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

.float-medium {
  animation: float-medium 7s ease-in-out infinite;
}

/* ===== NEW: COUNTDOWN / QUOTE BADGE ===== */

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid oklch(0.81 0.13 88 / 0.4);
  background: oklch(0.21 0.08 305 / 0.8);
  backdrop-filter: blur(12px);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 20px oklch(0.81 0.13 88 / 0.15);
}

.countdown-badge .countdown-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-soft);
}

/* ===== NEW: IMAGE LIGHTBOX ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0 0 0 / 0.9);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 1rem;
  border: 2px solid oklch(0.81 0.13 88 / 0.3);
  box-shadow: 0 40px 100px oklch(0 0 0 / 0.6);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: 1px solid oklch(0.81 0.13 88 / 0.4);
  border-radius: 50%;
  background: oklch(0.21 0.08 305 / 0.8);
  color: var(--gold);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
  background: oklch(0.30 0.10 305 / 0.9);
  transform: rotate(90deg);
}

/* ===== NEW: SECTION SEPARATOR ORNAMENT ===== */

.ornament-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.ornament-separator::before,
.ornament-separator::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament-separator::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament-separator .ornament-icon {
  color: var(--gold);
  font-size: 1.25rem;
  animation: shimmer 3s ease-in-out infinite;
}

/* ===== NEW: ANIMATED BORDER CARD ===== */

.card-glow {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, oklch(0.81 0.13 88 / 0.5), transparent 40%, transparent 60%, oklch(0.81 0.13 88 / 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-border 6s linear infinite;
}

@keyframes rotate-border {
  0% { background: linear-gradient(0deg, oklch(0.81 0.13 88 / 0.5), transparent 40%, transparent 60%, oklch(0.81 0.13 88 / 0.5)); }
  25% { background: linear-gradient(90deg, oklch(0.81 0.13 88 / 0.5), transparent 40%, transparent 60%, oklch(0.81 0.13 88 / 0.5)); }
  50% { background: linear-gradient(180deg, oklch(0.81 0.13 88 / 0.5), transparent 40%, transparent 60%, oklch(0.81 0.13 88 / 0.5)); }
  75% { background: linear-gradient(270deg, oklch(0.81 0.13 88 / 0.5), transparent 40%, transparent 60%, oklch(0.81 0.13 88 / 0.5)); }
  100% { background: linear-gradient(360deg, oklch(0.81 0.13 88 / 0.5), transparent 40%, transparent 60%, oklch(0.81 0.13 88 / 0.5)); }
}

/* ===== NEW: QUOTE SECTION ===== */

.quote-section {
  position: relative;
  padding: 3rem 2rem;
  text-align: center;
}

.quote-section .quote-mark {
  font-family: var(--font-script);
  font-size: 6rem;
  line-height: 1;
  color: oklch(0.81 0.13 88 / 0.2);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.quote-section blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-soft);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .quote-section blockquote {
    font-size: 1.5rem;
  }
}

/* ===== NEW: HERO TEXT CONTENT OVERLAY ===== */

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2.5rem;
  z-index: 5;
  text-align: center;
}

/* ===== GOLDEN PARTICLE BG ===== */

@keyframes drift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-80vh) translateX(30px); opacity: 0; }
}

.golden-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  animation: drift linear infinite;
  pointer-events: none;
}
