/* =============================================
   Remington Point — Custom Styles
   ============================================= */

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

body {
  background-color: #FDFCF8;
  color: #143226;
  font-family: 'Lora', Georgia, serif;
}

::selection {
  background-color: #C9A84C;
  color: #0d2119;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal[data-delay="100ms"]  { transition-delay: 100ms; }
  .reveal[data-delay="200ms"]  { transition-delay: 200ms; }
  .reveal[data-delay="300ms"]  { transition-delay: 300ms; }
  .reveal[data-delay="400ms"]  { transition-delay: 400ms; }
}

/* --- Navbar --- */
#navbar {
  background: transparent;
  color: #FDFCF8;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
  background: rgba(13, 33, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.15);
  color: #FDFCF8;
}

/* --- Buttons --- */
.btn-gold {
  background: linear-gradient(135deg, #D4AF59 0%, #C9A84C 50%, #B8943F 100%);
  color: #0d2119;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
  text-decoration: none;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
  background: linear-gradient(135deg, #E0BE6A 0%, #D4AF59 50%, #C9A84C 100%);
  color: #0d2119;
}

.btn-outline-light {
  background: transparent;
  color: #FDFCF8;
  border: 1px solid rgba(253, 252, 248, 0.4);
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline-light:hover {
  background: rgba(253, 252, 248, 0.1);
  border-color: rgba(253, 252, 248, 0.7);
  color: #FDFCF8;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: #1B4332;
  border: 1px solid #1B4332;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline-dark:hover {
  background: #1B4332;
  color: #FDFCF8;
  transform: translateY(-2px);
}

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

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.5rem;
}

.mobile-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  text-decoration: none;
}

/* --- Smooth anchor offset for fixed nav --- */
section[id], #top {
  scroll-margin-top: 80px;
}

/* --- Image lazy loading fallback --- */
img[loading="lazy"] {
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}
img[loading="lazy"] {
  opacity: 0;
}

/* --- Focus styles --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 3px;
  border-radius: 2px;
}

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