/* Custom styles for Tereparo */

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

/* Header scroll state */
#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#header.scrolled .nav-link {
  color: #35373d;
}

#header.scrolled .nav-link:hover {
  color: #E07A5F;
}

#header.scrolled .font-serif {
  color: #1e2024;
}

/* Nav link active state */
.nav-link.active {
  color: #E07A5F !important;
}

/* Service card hover effect */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E07A5F, #F0A18A);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

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

/* Fade-in animation */
.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);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f6f6f7;
}

::-webkit-scrollbar-thumb {
  background: #c4c6ca;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a4aa;
}

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

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #E07A5F;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Form select styling */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c7f87' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Subtle gradient text for hero accent words */
.text-coral-400 {
  background: linear-gradient(135deg, #f6c4b6, #E07A5F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
