/* =============================================
   NICOLE LAKE REALTOR — CUSTOM STYLES
   Premium Dark Luxury | Teal + Slate Grey
   ============================================= */

/* --- Base / Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f1f5f9;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0f766e;
}

/* --- Hero Animations (above the fold — always visible) --- */
.hero-anim {
  opacity: 1;
  transform: translateY(0);
  animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }

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

/* --- Scroll Reveal (below the fold only) --- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* --- Navbar --- */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#nav.scrolled {
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(20, 184, 166, 0.08), 0 4px 30px rgba(0, 0, 0, 0.3);
}

#nav.scrolled #nav-inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* --- Mobile menu --- */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
}

/* --- Select dropdown styling --- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select option {
  background: #0f172a;
  color: #f1f5f9;
}

/* --- Input autofill override --- */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #020617 inset !important;
  -webkit-text-fill-color: #f1f5f9 !important;
}

/* --- Focus visible --- */
:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

/* --- Button ripple on click --- */
button:active,
a:active {
  transform: scale(0.98);
}

/* --- Smooth image loading --- */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* --- Print --- */
@media print {
  #nav, #mobileMenu, button, .reveal-up, .reveal-left, .reveal-right {
    display: none !important;
  }
  body {
    background: #fff;
    color: #1e293b;
  }
}
