/* ==========================================================
   Crystalium Čišćenje – Custom CSS
   (Tailwind handles most utilities; this file adds
    hero background, location badges, and polish)
   ========================================================== */

/* ---------- Hero gradient background ---------- */
.hero-bg {
  background: linear-gradient(
    145deg,
    #0c4a6e 0%,
    #0369a1 45%,
    #0284c7 75%,
    #0369a1 100%
  );
  position: relative;
  overflow: hidden;
}

/* Subtle animated wave / shimmer overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(56,189,248,0.12) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative floating circle */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* ---------- Honeypot (anti-spam) ---------- */
/* Visually hidden but NOT display:none – bots still fill it */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Location badges ---------- */
.location-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background-color: #eff6ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.location-badge:hover {
  background-color: #0369a1;
  color: #fff;
  border-color: #0369a1;
}

.location-badge-more {
  background-color: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.location-badge-more:hover {
  background-color: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

/* ---------- Smooth scroll offset (fixed nav) ---------- */
html {
  scroll-padding-top: 4.5rem;
}

/* ---------- Feature card entrance animation ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: fadeUp 0.5s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.10s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.20s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .feature-card {
    animation: none;
  }
  .animate-bounce,
  .animate-pulse {
    animation: none;
  }
}

/* ---------- Form focus polish ---------- */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
}

/* ---------- Navbar scroll shadow ---------- */
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- Custom scrollbar (Webkit) ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ---------- Google Maps iframe fix ---------- */
iframe {
  display: block;
}

/* ---------- Print: hide nav, hero CTA ---------- */
@media print {
  #navbar,
  #hero .flex.flex-col,
  #hero .flex.flex-wrap {
    display: none;
  }
}
