/* ============================================
   ReMaximize McCormick - Custom Styles
   ============================================ */

/* CSS Custom Properties */
:root {
  --color-forest-dark: #1C3A2A;
  --color-forest: #2F5D42;
  --color-forest-light: #3D7A52;
  --color-cream: #FDFCF8;
  --color-warm: #D4A574;
  --color-warm-light: #E8C9A0;
  --color-stone: #F5F4F0;
  --color-text: #1C3A2A;
  --color-text-muted: rgba(28, 58, 42, 0.7);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Lato', system-ui, sans-serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-forest);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-forest-dark);
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--color-forest);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--color-forest);
  color: var(--color-cream);
}

/* Image Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Smooth Transitions */
a, button, input, textarea, select {
  transition: all 0.2s ease-in-out;
}

/* Input Focus States */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 93, 66, 0.2);
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  a {
    text-decoration: none;
    color: black !important;
  }
}
