/* ============================================
   Tejas Appliance Repair — Custom Styles
   ============================================ */

/* Base Reset & Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-serif {
  color: #0f172a !important;
}

#navbar.scrolled .text-teal-700 {
  color: #0d9488 !important;
}

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

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-link:last-of-type {
  border-bottom: none;
}

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

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ============================================
   Brand Cards
   ============================================ */
.brand-card {
  transition: all 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
}

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

.reveal.hidden-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal.hidden-reveal {
    opacity: 1;
    transform: translateY(0);
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .service-card:hover {
    transform: none;
  }
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}

/* ============================================
   Utility
   ============================================ */
@media (min-width: 1024px) {
  .service-card {
    transition: transform 0.5s ease, background-color 0.5s ease;
  }
}
