/*
Theme Name: NEBVMC 2026
Theme URI: https://nebvmc.org
Author: NEBVMC
Description: New England Buddhist Vihara and Meditation Center
Version: 1.3
Text Domain: nebvmc
*/

/* ============================================================
   NEBVMC custom styles — pairs with Tailwind CDN
   Keep minimal. Prefer Tailwind classes in HTML.
   ============================================================ */

/* --- Respect motion preferences --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- Selection color --- */
::selection {
  background: #F39340;
  color: #402C10;
}

/* --- Smooth scroll for anchor links --- */
html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }

/* Serif small caps cadence for eyebrow labels */
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }

/* ============================================================
   Navigation
   ============================================================ */
.nav-link {
  display: inline-flex; align-items: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  color: #1C1917;
  border-radius: 999px;
  transition: all 150ms ease;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(245, 237, 221, 0.7); color: #7C2D12; }
.nav-link-active { color: #7C2D12; font-weight: 500; }

.nav-link-m {
  display: block; padding: 0.75rem 0.5rem;
  font-size: 1rem;
  border-radius: 8px;
  color: #1C1917;
  transition: background 150ms ease;
}
.nav-link-m:hover { background: #F5EDDD; }

/* ============================================================
   Program cards
   ============================================================ */
.program-card {
  background: #FFFBF3;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 250ms ease, box-shadow 250ms ease;
  border: 1px solid rgba(234, 217, 182, 0.5);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -25px rgba(124, 45, 18, 0.25);
}
.program-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
}
.program-icon svg { width: 1.75rem; height: 1.75rem; }
.program-link {
  color: #B35804;
  font-weight: 500;
  transition: color 150ms ease;
}
.program-link:hover { color: #8A4407; }

/* ============================================================
   Event cards
   ============================================================ */
.event-card {
  background: #FFFBF3;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(234, 217, 182, 0.5);
  transition: transform 250ms ease, box-shadow 250ms ease;
  display: flex; flex-direction: column;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -25px rgba(124, 45, 18, 0.25);
}
.event-img {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
}
.event-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.event-card:hover .event-img img { transform: scale(1.04); }
.event-date {
  position: absolute; top: 1rem; left: 1rem;
  display: flex; flex-direction: column; align-items: center;
  background: #FFFBF3;
  color: #7C2D12;
  border-radius: 0.75rem;
  padding: 0.5rem 0.9rem;
  min-width: 3.5rem;
  box-shadow: 0 10px 25px -12px rgba(0,0,0,0.3);
}
.event-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Forms
   ============================================================ */
.amount-pill {
  padding: 1rem 0.75rem;
  border-radius: 1rem;
  border: 2px solid #EAD9B6;
  background: #FFFBF3;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: #7C2D12;
  cursor: pointer;
  transition: all 150ms ease;
  text-align: center;
}
.amount-pill:hover {
  border-color: #D97706;
  background: #FEF7ED;
}
.amount-pill.is-selected {
  border-color: #D97706;
  background: #D97706;
  color: white;
  box-shadow: 0 12px 30px -14px rgba(217, 119, 6, 0.6);
}
.amount-pill .pill-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.input-soft {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #EAD9B6;
  background: #FFFBF3;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input-soft:focus {
  outline: none;
  border-color: #D97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

.radio-card {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #EAD9B6;
  background: #FFFBF3;
  cursor: pointer;
  transition: all 150ms ease;
}
.radio-card:hover { border-color: #CCA156; background: #FEF7ED; }
.radio-card.is-selected {
  border-color: #D97706;
  background: #FEF7ED;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

/* ============================================================
   Toggle (monthly / one-time)
   ============================================================ */
.toggle-group {
  display: inline-flex;
  padding: 4px;
  background: #F5EDDD;
  border-radius: 999px;
}
.toggle-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  color: #7D5623;
  transition: all 150ms ease;
  cursor: pointer;
}
.toggle-btn.is-active {
  background: #FFFBF3;
  color: #7C2D12;
  box-shadow: 0 4px 12px -6px rgba(124, 45, 18, 0.2);
}

/* ============================================================
   Decorative divider
   ============================================================ */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem;
  color: #CCA156;
  margin: 1rem auto;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1; max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, #CCA156, transparent);
}
.ornament svg { width: 1.5rem; height: 1.5rem; }

/* ============================================================
   Campaign progress (larger)
   ============================================================ */
.progress-track {
  position: relative;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, #F39340 0%, #E5761D 50%, #D97706 100%);
  border-radius: 999px;
  transition: width 1400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-fill::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   Focus styles — accessibility
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #F39340;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  header, footer, #site-nav { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* Single-file prototype additions */
.route-section[hidden] { display: none !important; }

/* Faster reveal transition for the prototype (snappier per-element pop-in) */
.route-section .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease-out, transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.route-section .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .route-section .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
[data-filter].is-active { background: #E5761D; color: white; border-color: #E5761D; }
details[open] summary svg { transform: rotate(180deg); }
details summary svg { transition: transform 200ms ease; }
@keyframes bounce-slow { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
.animate-bounce-slow { animation: bounce-slow 2.5s ease-in-out infinite; }
.gallery-card { aspect-ratio: 4/3; border-radius: 1rem; overflow: hidden; border: 1px solid #EAD9B6; transition: transform 250ms ease, box-shadow 250ms ease; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -25px rgba(124, 45, 18, 0.25); }