/* ============================================
   Travis Bodlak Trucking — Custom Styles
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background-color: #831f1e;
  color: #fefdfc;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #9c2625;
}

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

#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(74, 14, 13, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
  animation: slideDown 0.3s ease forwards;
}

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

#mobileMenu.hidden {
  display: none;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    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);
  }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #a8a29e;
}

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

/* ============================================
   Card Hover Transforms
   ============================================ */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
  .font-serif {
    word-spacing: -0.02em;
  }
}

@media (min-width: 768px) {
  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  #navbar,
  #mobileMenu,
  #contactForm,
  button {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  a {
    color: black !important;
    text-decoration: underline !important;
  }
}
