/* Custom styles for Impression Management Professionals */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5ed;
}
::-webkit-scrollbar-thumb {
  background: #d4b47e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c4724e;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(253, 250, 246, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(74, 53, 40, 0.08);
}

/* Service card hover lift */
.service-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(196, 114, 78, 0.1);
}

/* Process step hover */
.process-step:hover .w-20 {
  transform: scale(1.08);
  transition: transform 0.3s ease;
}

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero text gradient animation */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Selection color */
::selection {
  background: #f7c4a8;
  color: #623325;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #c4724e;
  outline-offset: 2px;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23c4724e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Nav link underline on hover */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #c4724e;
  border-radius: 1px;
  transition: width 0.2s ease, left 0.2s ease;
}
.nav-link:hover::after {
  width: calc(100% - 1.5rem);
  left: 0.75rem;
}

/* Process step connector line animation */
.process-step .absolute {
  background: linear-gradient(90deg, #f7c4a8, transparent);
}
