/* Custom styles for Tom Plumb Home & Repair */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(253, 248, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(107, 58, 107, 0.08);
  padding-top: 0;
  padding-bottom: 0;
}

#navbar.scrolled .nav-text {
  color: #6B3A6B;
}

#navbar.scrolled .nav-link {
  color: #6B3A6B;
}

/* 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);
  }
}

/* Mobile menu active state */
#mobile-menu.active {
  display: block;
}

#mobile-menu.hidden {
  display: none;
}

/* Bar animation */
.bar {
  transition: all 0.3s ease;
}

#mobile-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

#mobile-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Service card hover glow */
.service-card:hover {
  box-shadow: 0 20px 60px rgba(107, 58, 107, 0.1);
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered service card animation */
.service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Input focus ring */
input:focus,
select:focus,
textarea:focus {
  border-color: #B87AB8 !important;
  box-shadow: 0 0 0 3px rgba(184, 122, 184, 0.15) !important;
}

/* Subtle gradient text for hero */
.text-amber-300 {
  background: linear-gradient(135deg, #FFEC82, #E8A838);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile link hover */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #E8A838;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

/* Testimonial card hover */
.bg-plum-700\/60:hover {
  border-color: rgba(184, 122, 184, 0.5);
  box-shadow: 0 20px 60px rgba(107, 58, 107, 0.2);
}
