/* ══════════════════════════════════════════
   FIRST HAITIAN FREE CHURCH — BASE STYLES
   Shared across all pages
══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ── TOKENS ── */
:root {
  --cream:    #FDFAF5;
  --warm:     #FFF8EE;
  --warm2:    #FEF3E2;
  --warm3:    #FDEBD0;
  --orange:   #DF6620;
  --crimson:  #DF2020;
  --gold:     #C9922A;
  --gold2:    #E8B84B;
  --brown:    #2C1A0E;
  --brown2:   #4A2E18;
  --brown3:   #7A5230;
  --muted:    #8C6E54;
  --muted2:   #B8967A;
  --border:   rgba(201,146,42,0.18);
  --border2:  rgba(201,146,42,0.30);
  --shadow:   rgba(44,26,14,0.10);
  --orange-glow: rgba(223,102,32,0.15);
  --serif:    'Playfair Display', Georgia, serif;
  --elegant:  'Cormorant Garamond', Georgia, serif;
  --sans:     'Inter', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--brown);
  overflow-x: hidden;
  line-height: 1.7;
}
body.maintenance-banner-active {
  --maint-banner-height: 46px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--warm); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ── NAV ── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(253,250,245,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#site-nav.scrolled {
  box-shadow: 0 4px 32px rgba(44,26,14,0.08);
}
body.maintenance-banner-active #site-nav {
  top: var(--maint-banner-height);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  object-fit: cover;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--brown);
  max-width: 160px;
}
.nav-logo-text strong { color: var(--orange); font-weight: 700; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.25s;
  border-radius: 2px;
  transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brown); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-give {
  padding: 10px 22px;
  border-radius: 30px;
  background: var(--orange);
  color: #fff !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-give:hover { background: var(--crimson); transform: translateY(-1px); }
.nav-give::after { display: none !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--brown); border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 900px) {
  #site-nav { padding: 0 20px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(253,250,245,0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  body.maintenance-banner-active .nav-links {
    top: calc(72px + var(--maint-banner-height));
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 0.9rem; width: 100%; }
  .hamburger { display: flex; }
}

/* ── MAINTENANCE BANNER ── */
#fhfc-maint-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  min-height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #c0392b 0%, #96281b 50%, #c0392b 100%);
  border-bottom: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 3px 18px rgba(0,0,0,0.26);
}
#fhfc-maint-banner-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: fhfcMaintScroll 82s linear infinite;
  will-change: transform;
}
#fhfc-maint-banner-track:hover {
  animation-play-state: paused;
}
@keyframes fhfcMaintScroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
.fhfc-maint-msg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 80px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.fhfc-maint-icon {
  flex-shrink: 0;
  font-size: 1rem;
}
.fhfc-maint-sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.fhfc-maint-lang-ht {
  color: rgba(255,255,255,0.84);
  font-style: italic;
}
.fhfc-maint-time {
  color: #ffd0cb;
  font-weight: 700;
}
#fhfc-maint-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 4px 10px;
  transition: background 0.2s ease;
}
#fhfc-maint-close:hover {
  background: rgba(255,255,255,0.26);
}
@media (prefers-reduced-motion: reduce) {
  #fhfc-maint-banner-track {
    animation: none;
    padding-inline: 16px 88px;
  }
}
@media (max-width: 900px) {
  #fhfc-maint-banner {
    min-height: 58px;
    align-items: center;
  }
  body.maintenance-banner-active {
    --maint-banner-height: 58px;
  }
  #fhfc-maint-banner-track {
    display: flex;
    width: auto;
    padding-right: 0;
    white-space: nowrap;
    animation: fhfcMaintScroll 118s linear infinite;
  }
  .fhfc-maint-msg {
    display: inline-flex;
    font-size: 0.74rem;
    line-height: 1.35;
    padding-right: 112px;
  }
  .fhfc-maint-icon {
    font-size: 0.9rem;
  }
  .fhfc-maint-sep {
    margin: 0 18px;
  }
  #fhfc-maint-close {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 0.68rem;
    padding: 4px 8px;
  }
}

/* ── ORNAMENTAL DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  justify-content: center;
}
.divider-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border2));
}
.divider-line.rev {
  background: linear-gradient(to left, transparent, var(--border2));
}
.divider-cross {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

/* ── SECTION COMMONS ── */
.section-wrap {
  padding: 96px 24px;
  position: relative;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1.5px;
  background: var(--orange);
  border-radius: 2px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 14px;
}
.section-title em {
  font-style: italic;
  color: var(--orange);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.85;
  margin-bottom: 56px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 30px;
  background: var(--orange);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 4px 18px rgba(223,102,32,0.28);
}
.btn-primary:hover {
  background: var(--crimson);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(223,102,32,0.38);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 30px;
  background: transparent;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--orange);
  cursor: pointer;
  transition: all 0.22s;
}
.btn-outline:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 30px;
  background: transparent;
  color: var(--brown);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--border2);
  cursor: pointer;
  transition: all 0.22s;
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ── GLASS CARD ── */
.glass-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s;
  box-shadow: 0 4px 24px var(--shadow);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 12px 48px rgba(44,26,14,0.13);
}

/* ── PHOTO PLACEHOLDER ── */
.photo-slot {
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--warm3) 0%, var(--warm2) 100%);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted2);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}
.photo-slot .photo-icon { font-size: 2.4rem; opacity: 0.5; }
.photo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }

/* ── FOOTER ── */
#site-footer {
  background: var(--brown);
  color: rgba(253,250,245,0.85);
  padding: 64px 24px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(253,250,245,0.10);
}
.footer-brand img {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(201,146,42,0.5);
  margin-bottom: 14px;
  object-fit: cover;
}
.footer-brand h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(253,250,245,0.6);
  line-height: 1.8;
  max-width: 260px;
}
.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(253,250,245,0.6);
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(253,250,245,0.4);
}
.footer-bottom a { color: var(--gold2); }
.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.staff-access-link {
  color: rgba(253,250,245,0.5) !important;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.staff-access-link:hover {
  color: var(--gold2) !important;
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── SCROLL TO TOP ── */
#scroll-top {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(223,102,32,0.35);
  opacity: 0;
  transform: translateY(14px);
  transition: all 0.3s;
  z-index: 200;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { transform: translateY(-3px) scale(1.08); background: var(--crimson); }

/* ── SHARED NAV JS SNIPPET ── */
/* (Inline in each page) */

/* ── FOOTER SOCIAL ICONS ── */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.social-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(253,250,245,0.08);
  border: 1px solid rgba(253,250,245,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253,250,245,0.55);
  transition: all 0.22s;
  flex-shrink: 0;
}
.social-icon svg {
  width: 18px; height: 18px;
  display: block;
}
.social-icon:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(223,102,32,0.35);
}
