/* ============================================
   1833 Building — Custom Styles
   Classic & Elegant | Midnight Blue + Mint
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

::selection {
  background-color: #4a9a68;
  color: #ffffff;
}

/* ---- Header Scroll State ---- */
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 33, 51, 0.08);
}

#site-header.scrolled .nav-link {
  color: #1e3f5f;
}

#site-header.scrolled .nav-link:hover {
  color: #4a9a68;
}

#site-header.scrolled .font-serif {
  color: #0f2133;
}

#site-header.scrolled .font-sans {
  color: #5079ac;
}

#site-header.scrolled .menu-line {
  background-color: #0f2133;
}

#site-header.scrolled .mobile-nav-link {
  color: #0f2133;
}

/* ---- Navigation Links ---- */
.nav-link {
  position: relative;
}

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

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

/* ---- Scroll Indicator Animation ---- */
@keyframes scrollIndicator {
  0% {
    transform: translateY(-16px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ---- Service Cards ---- */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ---- Property Cards ---- */
.property-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.property-card:hover {
  transform: translateY(-6px);
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10, 22, 33, 0.08);
}

/* ---- Mobile Menu ---- */
.mobile-nav-link {
  position: relative;
}

/* ---- Scroll Reveal Animations ---- */
/* Default state: visible (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    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: none;
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7c9bc0;
}

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

/* ---- Select Arrow ---- */
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%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---- Utility ---- */
@media (max-width: 767px) {
  .font-serif {
    word-spacing: -0.02em;
  }
}
