/* Kosan Crisplant — Custom Styles */

/* Base typography refinements */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #faf6f3;
}

/* Selection color */
::selection {
  background-color: #8c2e3e;
  color: #fff8f7;
}

/* Smooth image rendering */
img {
  -webkit-font-smoothing: antialiased;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #8c2e3e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Navbar scroll state */
.nav-scrolled {
  background-color: rgba(250, 246, 243, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(140, 46, 62, 0.08);
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf6f3;
}
::-webkit-scrollbar-thumb {
  background: #c4576a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8c2e3e;
}

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

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

/* High contrast mode support */
@media (forced-colors: active) {
  .bg-burgundy-700 {
    background-color: ButtonText;
  }
  .text-burgundy-700 {
    color: ButtonText;
  }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure all text meets contrast requirements */
.text-charcoal { color: #2c2724; }
.text-stone { color: #5c5550; }
.text-taupe { color: #8a7e76; }
.text-burgundy-700 { color: #8c2e3e; }
.text-burgundy-800 { color: #742632; }
.text-burgundy-600 { color: #a83d50; }
.text-burgundy-300 { color: #f4d0d9; }
.text-burgundy-200 { color: #faf0f2; }
.text-cream { color: #fff8f7; }

.bg-burgundy-700 { background-color: #8c2e3e; }
.bg-burgundy-800 { background-color: #742632; }
.bg-burgundy-900 { background-color: #62212b; }
.bg-burgundy-100 { background-color: #fce7eb; }
.bg-burgundy-50 { background-color: #fdf0f2; }
.bg-warm { background-color: #f5f0eb; }
.bg-cream { background-color: #faf6f3; }
.bg-charcoal { background-color: #2c2724; }
