/* ============================================
   LUTZ PETROLEUM — Custom Styles
   ============================================ */

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

/* --- Navbar --- */
#navbar {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* --- Mobile Menu --- */
.mobile-link {
  display: block;
}

/* --- Hero --- */
.hero-section {
  position: relative;
}

/* --- Card Hover Effects --- */
.group:hover .card-image {
  transform: scale(1.05);
}

/* --- Smooth transitions --- */
a, button {
  transition: all 0.2s ease;
}

/* --- Selection --- */
::selection {
  background-color: rgba(123, 45, 59, 0.15);
  color: #4a1822;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #b5a498;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-bounce {
    animation: none;
  }
}

/* --- AOS Override for Reduced Motion --- */
@media (prefers-reduced-motion: no-preference) {
  [data-aos] {
    will-change: transform, opacity;
  }
}

/* --- Mobile Menu Animation --- */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Button Ripple --- */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* --- Image Placeholder Fallback --- */
img {
  background: linear-gradient(135deg, #faf0e8 0%, #f5e0cc 100%);
}

/* --- Print Styles --- */
@media print {
  #navbar,
  #mobile-menu,
  .animate-bounce {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .bg-burgundy-900,
  .bg-burgundy-700,
  .bg-blush-500 {
    background: #7B2D3B !important;
    color: #fff !important;
  }
}

/* --- High Contrast Mode --- */
@media (prefers-contrast: high) {
  .bg-burgundy-900 {
    background: #000 !important;
  }

  .text-cream-200 {
    color: #fff !important;
  }

  .text-warmgray-600 {
    color: #333 !important;
  }
}

/* --- Tablet --- */
@media (max-width: 767px) {
  .font-display {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

/* --- Utility --- */
.no-underline-hover:hover {
  text-decoration: none;
}

/* --- Focus Ring for Interactive Elements --- */
button,
a {
  &:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
  }
}
