@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 18px 40px rgba(15, 23, 42, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.06), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #f8fafc 100%);
  color: #0f172a;
}

body.is-ready .page-fade {
  animation: pageFade 0.5s ease both;
}

.glass {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
}

.rounded-premium {
  border-radius: var(--radius);
}

.shadow-premium {
  box-shadow: var(--shadow-soft);
}

.shadow-premium-hover {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.shadow-premium-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-slow {
  animation: float 11s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideUp 0.45s ease both;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease both;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: shimmer 1.35s infinite;
}

.sticky-header {
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.sticky-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(226, 232, 240, 0.95);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #14b8a6, #2563eb);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  transform: scaleX(1);
}

.ripple {
  position: absolute;
  border-radius: 9999px;
  transform: scale(0);
  animation: ripple 600ms linear;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.input-glass {
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.header-drop {
  transform-origin: top;
  transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
}

.header-drop.is-hidden {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
}

.search-overlay {
  max-height: min(70vh, 760px);
  overflow: auto;
}

.focus-ring:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.22);
  outline-offset: 2px;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .rounded-premium {
    border-radius: 16px;
  }

  .shadow-premium,
  .shadow-premium-hover:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }

  .header-drop {
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  }

  .search-overlay {
    max-height: calc(100vh - 7rem);
  }

  #searchResultsPanel > div {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #whatsappFab {
    height: 3.25rem;
    width: 3.25rem;
    right: 0.9rem;
    bottom: 0.9rem;
    font-size: 0.75rem;
  }

  #scrollTopBtn {
    height: 2.75rem;
    width: 2.75rem;
    left: 0.9rem;
    bottom: 0.9rem;
  }
}
