/* ═══════════════════════════════════════════════
   RECLAIM CHURCH OF GOD — Custom Styles
   Sacred Modern aesthetic: deep darks, warm gold light
   ═══════════════════════════════════════════════ */

/* ── Grain Texture ── */
.hero-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Hero light effects ── */
.hero-light {
  background: radial-gradient(circle, rgba(201, 168, 76, 0.25) 0%, transparent 70%);
  transform: translate(20%, -30%);
}
.hero-light-2 {
  background: radial-gradient(circle, rgba(22, 42, 70, 0.8) 0%, transparent 70%);
  transform: translate(-20%, 30%);
}

/* ── Header states ── */
#site-header {
  background: transparent;
}
#site-header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}
#site-header.scrolled .header-logo-text {
  color: white;
}

/* ── Nav links ── */
.nav-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a84c;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #c9a84c;
}
.nav-link:hover::after {
  width: 100%;
}
#site-header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.7);
}
#site-header.scrolled .nav-link:hover {
  color: #c9a84c;
}

/* ── Hamburger states ── */
#site-header.scrolled .hamburger-line {
  background-color: white;
}
.menu-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.menu-open .hamburger-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Scroll-triggered reveals ── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-up {
  transform: translateY(40px);
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Scroll pulse animation ── */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; height: 2rem; }
  50% { opacity: 1; height: 3rem; }
}
.scroll-pulse {
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Gallery hover state ── */
.gallery-item:hover {
  z-index: 10;
}

/* ── Service card glow on hover ── */
.service-card > div:hover {
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.08), inset 0 1px 0 rgba(201, 168, 76, 0.2);
}

/* ── Smooth scrolling ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ── Selection color ── */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: inherit;
}

/* ── Focus styles for accessibility ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* ── Mobile adjustments ── */
@media (max-width: 640px) {
  .gallery-item .aspect-square {
    aspect-ratio: 1;
  }
}

/* ── Map container fix for iOS ── */
iframe {
  max-width: 100%;
}
