/* =========================================
   Cutt Throat Construction — Custom Styles
   ========================================= */

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

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

body {
  overflow-x: hidden;
}

::selection {
  background: #99f6e4;
  color: #134e4a;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile menu open state */
.mobile-menu-open #mobile-menu {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-menu-open body {
  overflow: hidden;
}

.mobile-menu-open #bar1 {
  transform: translateY(4px) rotate(45deg);
}
.mobile-menu-open #bar2 {
  opacity: 0;
}
.mobile-menu-open #bar3 {
  transform: translateY(-4px) rotate(-45deg);
}

/* Service cards: subtile line accent on hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: #14b8a6;
  transition: height 0.3s ease;
}

.service-card:hover::before {
  height: 100%;
}

/* Fade-in animations (progressive enhancement) */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.hidden-init {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in.hidden-init {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Nav scroll state */
.nav-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px #5eead4;
}

/* Smooth image loading */
img {
  display: block;
  max-width: 100%;
}

/* Print styles */
@media print {
  nav, #contact-form, #menu-toggle {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
