/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body, 'Jost', sans-serif); color: var(--text, #2a2a2a); background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* === FALLBACK TOKENS (overridden by inline :root from settings) === */
:root {
  --gold:         #8b6914;
  --gold-light:   #c9a227;
  --gold-pale:    rgba(139,105,20,0.12);
  --hero-dark:    #1a0e00;
  --hero-mid:     #2d1a00;
  --bg-light:     #f8f5f0;
  --text:         #2a2a2a;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
  --fs-base:      16px;
  --fs-hero:      4.5rem;
  --fs-section:   2.8rem;
  --fw-heading:   300;
  --fw-body:      400;
  --dark:         #1a1a1a;
  --muted:        #6b6b6b;
  --radius:       8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
}

/* === NAVBAR === */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 2rem; background: transparent; transition: background 0.3s, box-shadow 0.3s; }
.navbar.scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 1px 16px rgba(0,0,0,0.08); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: #fff; transition: color 0.3s; }
.navbar.scrolled .nav-logo { color: var(--dark); }
.logo-cross { font-size: 1rem; color: var(--gold-light); }
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-links a { padding: 6px 11px; border-radius: 4px; font-size: 0.83rem; font-weight: 400; letter-spacing: 0.02em; color: rgba(255,255,255,0.9); transition: color 0.2s; }
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--gold-light); }
.nav-donate { background: var(--gold) !important; color: #fff !important; border-radius: 4px; padding: 6px 14px !important; }
.nav-donate:hover { opacity: 0.85; }
.lang-switch a { font-size: 0.76rem !important; font-weight: 500 !important; opacity: 0.8; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: background 0.3s; border-radius: 2px; }
.navbar.scrolled .hamburger span { background: var(--dark); }

/* === HERO === */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, var(--hero-dark) 0%, var(--hero-mid) 50%, #1a1a2e 100%); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(ellipse at 30% 40%, rgba(139,105,20,0.22) 0%, transparent 60%), radial-gradient(ellipse at 70% 60%, rgba(201,162,39,0.1) 0%, transparent 50%); }
.hero-overlay { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a227' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; max-width: 820px; animation: fadeUp 1s ease both; }
.hero-eyebrow { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.5rem; }
.hero-title { font-family: var(--font-heading); color: #fff; line-height: 1.12; margin-bottom: 1.2rem; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.75); font-weight: 300; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 28px; border-radius: 4px; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; transition: all 0.2s; cursor: pointer; border: none; display: inline-block; font-family: var(--font-body); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--gold-pale); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-gold { background: var(--gold-light, #c9a227); color: #fff; white-space: nowrap; }
.btn-gold:hover { filter: brightness(1.1); }
.btn-full { width: 100%; text-align: center; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); }
.scroll-indicator { width: 2px; height: 60px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5)); margin: 0 auto; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

/* === SECTIONS === */
.section { padding: 5rem 2rem; }
.bg-light { background: var(--bg-light); }
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 720px; margin: 0 auto; }
.section-label { font-size: 0.73rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 0.8rem; }
.section-label.centered { text-align: center; }
.section-heading { font-family: var(--font-heading); color: var(--dark); line-height: 1.2; margin-bottom: 1rem; }
.section-heading.centered { text-align: center; }
.section-heading.light { color: #fff; }
.about-divider { width: 48px; height: 2px; background: var(--gold); margin-bottom: 2rem; }
.about-divider.center { margin: 0 auto 2.5rem; }
.about-divider.light { background: rgba(255,255,255,0.35); }
.section-sub-text { text-align: center; color: var(--muted); margin-bottom: 2rem; line-height: 1.75; }
.section-sub-text.light { color: rgba(255,255,255,0.8); }
.empty-msg { text-align: center; color: var(--muted); padding: 3rem 0; font-style: italic; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-body { color: var(--muted); line-height: 1.85; font-size: 1.05rem; }
.purpose-card { background: var(--dark); color: #fff; padding: 2.5rem; border-radius: var(--radius); border-left: 4px solid var(--gold); }
.purpose-icon { font-size: 2rem; margin-bottom: 1rem; color: var(--gold-light, #c9a227); }
.purpose-card h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; }
.purpose-card p { color: rgba(255,255,255,0.75); line-height: 1.75; }

/* === WEEKLY ACTIVITIES === */
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.activity-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-top: 3px solid var(--gold); transition: transform 0.2s, box-shadow 0.2s; }
.activity-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.activity-day { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.activity-time { font-size: 0.84rem; color: var(--muted); margin: 0.3rem 0 0.8rem; }
.activity-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; }
.activity-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.8rem; }
.activity-location { font-size: 0.82rem; color: var(--gold); }

/* === SPECIAL ACTIVITIES === */
.special-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.special-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.special-card:hover { transform: translateY(-4px); }
.special-img-wrap { height: 200px; overflow: hidden; }
.special-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.special-body { padding: 1.5rem; }
.special-date { font-size: 0.8rem; color: var(--gold); font-weight: 500; margin-bottom: 0.5rem; }
.special-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.5rem; }
.special-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* === GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: #eee; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); color: #fff; padding: 1rem 0.75rem 0.5rem; font-size: 0.82rem; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-caption { opacity: 1; }

/* === LIGHTBOX === */
.lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; flex-direction: column; padding: 2rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox p { color: rgba(255,255,255,0.7); margin-top: 1rem; font-size: 0.9rem; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; opacity: 0.8; }

/* === LOCATION === */
.location-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.info-icon { font-size: 1.3rem; min-width: 2rem; }
.info-row strong { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.2rem; }
.info-row p, .info-row a { color: var(--muted); line-height: 1.5; }
.info-row a:hover { color: var(--gold); }
.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.social-btn { padding: 6px 16px; border-radius: 4px; font-size: 0.82rem; background: var(--bg-light); color: var(--text); border: 1px solid #ddd; transition: all 0.2s; }
.social-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* === CONTACT === */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em; color: var(--muted); }
.form-group input, .form-group textarea { padding: 10px 14px; border: 1px solid #ddd; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; color: var(--text); transition: border-color 0.2s; background: #fff; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-success { background: #e8f5e8; color: #2d7a2d; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.form-error { background: #fdecea; color: #b71c1c; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }

/* === DONATE === */
.section-donate { background: linear-gradient(135deg, var(--hero-dark) 0%, var(--hero-mid) 100%); }
.section-donate .section-label { color: var(--gold-light, #c9a227); }
.label-light { color: rgba(255,255,255,0.8) !important; }
.donate-form .form-group label { color: rgba(255,255,255,0.8); }
.donate-form input { background: rgba(255,255,255,0.1) !important; border: 1px solid rgba(255,255,255,0.2) !important; color: #fff !important; }
.donate-form input::placeholder { color: rgba(255,255,255,0.4); }
.donate-form input:focus { border-color: var(--gold-light, #c9a227) !important; }
.input-row { display: flex; gap: 0.75rem; align-items: stretch; }
.input-phone { flex: 1; }
#donate-success { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.2); }
#donate-error { background: rgba(255,80,80,0.15); color: #ffaaaa; border: 1px solid rgba(255,80,80,0.3); }

/* === FOOTER === */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 2.5rem 2rem; text-align: center; }
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 0.5rem; }
.footer-name { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; }
.footer-tagline { font-size: 0.85rem; margin-bottom: 1rem; font-style: italic; }
.footer-copy { font-size: 0.78rem; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .location-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; background: rgba(255,255,255,0.98); flex-direction: column; padding: 1.5rem; gap: 0.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; padding: 10px 16px !important; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .hero-btns { flex-direction: column; align-items: center; }
  .section { padding: 3.5rem 1.5rem; }
}

/* === ADMIN FIXED BUTTON === */
.admin-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 500;
  padding: 7px 16px; border-radius: 6px;
  background: rgba(20,20,20,0.80); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75); font-family: var(--font-body, sans-serif);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.admin-fab:hover { background: rgba(30,30,30,0.95); color: #fff; border-color: rgba(255,255,255,0.35); }

/* === ADMIN MODAL === */
.admin-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.admin-modal-box {
  background: #fff; border-radius: 14px; padding: 2.5rem 2rem;
  width: 100%; max-width: 360px; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: modalPop 0.2s ease;
}
@keyframes modalPop { from{opacity:0;transform:scale(0.93)} to{opacity:1;transform:scale(1)} }
.admin-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 1.2rem;
  color: #999; cursor: pointer; line-height: 1;
}
.admin-modal-close:hover { color: #333; }
.admin-modal-logo { font-size: 2rem; text-align: center; color: var(--gold); margin-bottom: 0.4rem; }
.admin-modal-title { font-family: var(--font-heading, Georgia, serif); font-size: 1.4rem; font-weight: 400; text-align: center; color: #1a1a1a; margin-bottom: 1.5rem; }
.admin-modal-error { background: #fdecea; color: #b71c1c; padding: 9px 14px; border-radius: 6px; font-size: 0.85rem; margin-bottom: 1rem; text-align: center; }
.admin-modal-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1rem; }
.admin-modal-field label { font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; color: #666; }
.admin-modal-field input { padding: 10px 13px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem; font-family: inherit; color: #1a1a1a; transition: border-color 0.2s; }
.admin-modal-field input:focus { outline: none; border-color: var(--gold); }
.admin-modal-btn { width: 100%; padding: 12px; background: var(--gold); color: #fff; border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 500; cursor: pointer; font-family: inherit; margin-top: 0.4rem; transition: filter 0.2s; }
.admin-modal-btn:hover { filter: brightness(1.12); }

/* === ADMIN FOOTER BUTTON === */
.admin-fab-footer {
  display: inline-block; margin-top: 1.2rem;
  padding: 6px 18px; border-radius: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body, sans-serif);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
}
.admin-fab-footer:hover { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.35); }

/* Remove old fixed FAB if still present */
.admin-fab { display: none !important; }
