/* Ongwediva Facilities Management System — custom styles beyond Tailwind utilities */

:root {
  --color-terracotta: #C1621F;
  --color-gold: #E8A93B;
  --color-clay: #8B3A1E;
  --color-sand: #F4E9DC;
  --color-teal: #1F6F5C;
  --color-charcoal: #1C1B1A;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.font-display {
  font-family: 'Poppins', 'Inter', ui-sans-serif, sans-serif;
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(28, 27, 26, 0.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28, 27, 26, 0.18);
}
.dark .glass-card {
  background: rgba(28, 27, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Hero full-bleed with gradient overlay for legible text */
.hero-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,27,26,.55) 0%, rgba(28,27,26,.35) 40%, rgba(28,27,26,.75) 100%);
}
.hero-bg > * { position: relative; z-index: 1; }

/* Scroll-reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Status pulse dot */
.status-dot {
  width: 8px; height: 8px; border-radius: 999px; display: inline-block;
}

/* Leaflet marker cluster color tweaks to match theme */
.marker-cluster-small div { background-color: rgba(232, 169, 59, 0.7); }
.marker-cluster-small { background-color: rgba(232, 169, 59, 0.4); }
.marker-cluster-medium div { background-color: rgba(193, 98, 31, 0.7); }
.marker-cluster-medium { background-color: rgba(193, 98, 31, 0.4); }
.marker-cluster-large div { background-color: rgba(139, 58, 30, 0.7); }
.marker-cluster-large { background-color: rgba(139, 58, 30, 0.4); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-terracotta); border-radius: 999px; }

.animate-count { font-variant-numeric: tabular-nums; }
