/* Custom styles layered on top of Tailwind CDN */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #1f2937;
  background: #fff;
}

/* Header transition */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
  background: transparent;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}
.site-header .nav-link { color: #fff; }
.site-header.scrolled .nav-link,
.site-header.solid .nav-link { color: #374151; }
.site-header .nav-link:hover { color: #facc15; }
.site-header.scrolled .nav-link:hover,
.site-header.solid .nav-link:hover { color: #15803d; }

.logo-circle {
  width: 56px; height: 56px;
  border-radius: 9999px;
  border: 2px solid #fff;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
}
.site-header.scrolled .logo-circle,
.site-header.solid .logo-circle { border-color: #15803d; background: #fff; }

/* Hero slider */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease-in-out;
  z-index: 0;
}
.hero-slide.active { opacity: 1; z-index: 10; }
.hero-slide .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide .overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
}
.hero-slide .content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; text-align: center; padding: 0 1rem;
}
.hero-slide h2 {
  text-shadow: 2px 2px 8px rgba(0,0,0,.5);
}
.hero-slide p {
  text-shadow: 1px 1px 4px rgba(0,0,0,.5);
}

/* Section title underline */
.section-rule {
  width: 5rem; height: 4px;
  background: #facc15;
  border-radius: 9999px;
  margin: 0 auto 3rem;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* Gallery card hover */
.g-card { position: relative; overflow: hidden; border-radius: 1rem; aspect-ratio: 4 / 3; background: #f3f4f6; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: box-shadow .3s; }
.g-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.g-card:hover img { transform: scale(1.1); }
.g-card .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 60%); opacity: 0; transition: opacity .3s; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 1rem; color: #fff; font-size: .8rem; font-weight: 600; }
.g-card:hover .veil { opacity: 1; }
.g-card .zoom { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.2); border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; backdrop-filter: blur(8px); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.95); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: .75rem; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next { position: absolute; color: rgba(255,255,255,.7); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 9999px; padding: .75rem; cursor: pointer; transition: color .2s, background .2s; }
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { color: #fff; background: rgba(255,255,255,.15); }
.lightbox .lb-close { top: 1.5rem; right: 1.5rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .9rem; text-align: center; }

/* Stat counter */
.stat-value { font-size: 3rem; font-weight: 800; color: #15803d; line-height: 1; }

/* Admin */
.admin-input { width: 100%; padding: .5rem .75rem; border: 1px solid #d1d5db; border-radius: .5rem; font-size: .875rem; }
.admin-input:focus { outline: none; border-color: #15803d; box-shadow: 0 0 0 3px rgba(21,128,61,.15); }
.admin-btn { padding: .5rem .9rem; border-radius: .5rem; font-weight: 600; font-size: .875rem; cursor: pointer; transition: background .2s, transform .15s; }
.admin-btn:active { transform: translateY(1px); }
.admin-btn-primary { background: #15803d; color: #fff; }
.admin-btn-primary:hover { background: #166534; }
.admin-btn-secondary { background: #f3f4f6; color: #374151; }
.admin-btn-secondary:hover { background: #e5e7eb; }
.admin-btn-danger { background: #fee2e2; color: #b91c1c; }
.admin-btn-danger:hover { background: #fecaca; }
.admin-btn-warning { background: #fef3c7; color: #b45309; }
.admin-btn-warning:hover { background: #fde68a; }
.admin-card { background: #fff; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1rem; }
.admin-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: .375rem; background: #f3f4f6; }
.admin-row { display: flex; gap: .75rem; align-items: center; padding: .5rem; border: 1px solid #f3f4f6; border-radius: .5rem; background: #fafafa; }
.admin-row + .admin-row { margin-top: .5rem; }
