/* ============================================
   Money Creek Ranch — Custom Styles
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A1410;
}
::-webkit-scrollbar-thumb {
  background: #3D3225;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C9A84C;
}

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #F5EDE3;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(26, 20, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

/* ============================================
   Hero
   ============================================ */
#hero {
  position: relative;
}

/* ============================================
   Reveal animations (progressive enhancement)
   Only applied when JS is enabled and user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Always visible fallback */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Buttons
   ============================================ */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Images
   ============================================ */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Forms
   ============================================ */
input, textarea, select {
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  .font-display {
    word-break: keep-all;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet adjustments */
}

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