/* =============================================
   RINA PATTAR — REAL ESTATE, SHORT HILLS
   Custom styles & animations
   ============================================= */

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 164, 94, 0.2);
  color: #0A1F3F;
}

/* ---------- Navigation ---------- */
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8A45E;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #C8A45E;
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- Gold line accent ---------- */
.gold-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C8A45E, transparent);
  margin: 0 auto;
}

/* ---------- Mobile menu ---------- */
.mobile-link {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Hero image ---------- */
header img {
  will-change: transform;
}

/* ---------- Select 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'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
}

/* ---------- Form focus ---------- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ---------- Subtle image hover ---------- */
section img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0A1F3F;
}

::-webkit-scrollbar-thumb {
  background: rgba(200, 164, 94, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 164, 94, 0.6);
}
