/* === Custom Styles for Benchmark Realty === */

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

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

body {
  overflow-x: hidden;
}

/* === Navigation === */
#nav {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

#nav.scrolled {
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}

/* === Mobile Menu === */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#menu-btn.active #bar1 {
  transform: translateY(7px) rotate(45deg);
}

#menu-btn.active #bar2 {
  opacity: 0;
}

#menu-btn.active #bar3 {
  transform: translateY(-7px) rotate(-45deg);
  width: 1.25rem;
}

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #D4A84B;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 80%;
}

/* === 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 preference */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .group img {
    transition: none;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: #D4A84B;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C49A3C;
}

/* === Selection === */
::selection {
  background: rgba(27, 67, 50, 0.15);
  color: #1B4332;
}

/* === Focus Styles === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #D4A84B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Smooth image loading === */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* === Form transitions === */
input, textarea {
  transition: border-color 0.3s ease;
}

/* === Card hover effects === */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* === Print styles === */
@media print {
  #nav, #mobile-menu, .reveal {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
