/* ============================================
   Holman Floor Company — Custom Styles
   ============================================ */

/* --- Base / Reset --- */
*, *::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: rgba(192, 90, 58, 0.2);
  color: #2B140F;
}

/* --- Floating shapes --- */
.shape-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.float-slower {
  animation: float-slow 12s ease-in-out infinite reverse;
}

.float-medium {
  animation: float-medium 6s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* --- Nav --- */
#main-nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#main-nav.scrolled {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(43, 20, 15, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* --- Service Cards --- */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(43, 20, 15, 0.15) !important;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Mobile Menu --- */
.mobile-link {
  position: relative;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
  color: #C05A3A;
  padding-left: 8px;
}

/* --- Form --- */
select option {
  background: #FDFBF7;
  color: #3A2816;
}

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

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

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

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

/* --- Mobile responsive --- */
@media (max-width: 768px) {
  .float-slow, .float-slower, .float-medium {
    display: none;
  }
}
