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

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f7f7f7;
}
::-webkit-scrollbar-thumb {
  background: #d1d1d1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Selection */
::selection {
  background: #E8564F;
  color: white;
}

/* Mobile Menu Animations */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Menu Button States */
.menu-btn.active .menu-line.top-1.5 {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn.active .menu-line.middle {
  opacity: 0;
  transform: scaleX(0);
}
.menu-btn.active .menu-line.bottom-1.5 {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.5rem;
}

/* Service Card Hover */
.service-card {
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.service-card:hover {
  box-shadow: 0 20px 60px rgba(232, 86, 79, 0.08);
}

/* Navbar Scroll State */
#navbar.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* Scroll Reveal Base - content always visible */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Image Hover */
.overflow-hidden img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Input Focus */
input:focus, textarea:focus {
  border-color: #E8564F !important;
  box-shadow: 0 0 0 3px rgba(232, 86, 79, 0.1);
}

/* Smooth anchor offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
  
  #hero h1 {
    font-size: 2.75rem;
  }
  
  .service-card {
    padding: 1.5rem !important;
  }
}

/* Print styles */
@media print {
  #navbar, #mobile-menu, .reveal {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
