/* ===== Custom Styles for Coastal Window Care ===== */

/* --- Navbar --- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(91, 44, 111, 0.08);
}

.nav-text {
  color: #1d0d24;
}

#navbar:not(.scrolled) .nav-text {
  color: #ffffff;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
}

#navbar.scrolled .nav-link {
  color: #5B2C6F;
}

#navbar.scrolled .nav-link:hover {
  color: #1d0d24;
}

/* --- Mobile Menu --- */
.menu-line {
  transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  width: 24px;
  margin-left: 0;
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav-link {
  font-family: 'Playfair Display', Georgia, serif;
}

/* --- Service Cards --- */
.service-card {
  border: 1px solid rgba(91, 44, 111, 0.08);
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(91, 44, 111, 0.15);
}

/* --- Form Select --- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B2C6F' stroke-width='2' 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: 3rem;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s 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; }
}

/* --- Smooth anchor offset for fixed nav --- */
section[id] {
  scroll-margin-top: 80px;
}

/* --- Selection color --- */
::selection {
  background: rgba(91, 44, 111, 0.2);
  color: #1d0d24;
}

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

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

::-webkit-scrollbar-thumb {
  background: #bb9cc8;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9e72ad;
}
