/* Upper Room DFW - Shared custom styles (works alongside Tailwind CDN) */

:root {
  --primary: #0369a1;
  --sky-deep: #0c4a6e;
  --sky-medium: #0284c7;
  --sky-baby: #38bdf8;
  --sky-light: #e0f2fe;
  --accent: #0369a1;
}

.tail-container {
  font-family: 'Inter', system_ui, -apple-system, sans-serif;
}

.heading-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

.nav-link {
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #0284c7;
}

/* Login dropdown — click/touch toggle (supplements hover) */
.login-dropdown.login-open > .absolute {
  display: block !important;
  pointer-events: auto;
  z-index: 60;
}
.login-dropdown > a[role="button"],
.login-dropdown > button.login-dropdown-btn {
  cursor: pointer;
}

.church-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.church-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.filter-chip {
  transition: all 0.15s ease;
}
.filter-chip.active {
  background-color: #0369a1;
  color: white;
  border-color: #0369a1;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.sky-gradient {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
}
.faith-gradient {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
}
.sky-btn {
  background: #0369a1;
  color: white;
  transition: all 0.2s;
}
.sky-btn:hover {
  background: #0284c7;
  transform: translateY(-1px);
}
.btn-primary {
  background: #0369a1;
  color: #fff;
}
.btn-primary:hover {
  background: #0284c7;
}

.local-badge {
  background: #fefce8;
  color: #854d0e;
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* Leaflet map tweaks for nice look */
#directory-map {
  border-radius: 1.5rem;
}
.map-tiles {
  filter: saturate(0.9) contrast(0.95);
}

/* Schema and SEO friendly */
.church-detail h1 {
  font-size: 2.25rem;
  line-height: 1.05;
}

/* Hero Slider Styles — fixed height/overflow so slides never block page clicks */
#hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) {
  #hero-slider {
    min-height: 620px;
  }
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1s ease-in-out, visibility 0s linear 1s;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transition: opacity 1s ease-in-out, visibility 0s;
}
.hero-dot {
  transition: all 0.2s;
}
.hero-dot.active {
  opacity: 1;
  background: #38bdf8;
  transform: scale(1.2);
}