/* ============================================
   Goosepond Pool — Custom Styles
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #e5a832;
  color: #0f1724;
}

/* ============================================
   Navigation
   ============================================ */
#nav {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26, 37, 54, 0.06);
}

.nav-text {
  transition: color 0.4s ease;
}

#nav.scrolled .nav-text {
  color: #0f1724;
}

.nav-link {
  position: relative;
}

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

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

#nav.scrolled .nav-link {
  color: #283448;
}

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

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

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 1;
}

#mobile-menu .mobile-link {
  opacity: 0;
}

#mobile-menu .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger */
#menu-btn.active .menu-line-top {
  top: 11px;
  transform: translateX(-50%) rotate(45deg);
}

#menu-btn.active .menu-line-mid {
  opacity: 0;
}

#menu-btn.active .menu-line-bot {
  top: 11px;
  transform: translateX(-50%) rotate(-45deg);
  width: 1.5rem;
}

/* ============================================
   Hero
   ============================================ */
.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-desc {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  transition: background-color 0.4s ease, transform 0.3s ease;
}

.service-card:hover {
  background-color: #f8fafc;
}

.service-card:hover svg {
  transform: scale(1.05);
}

.service-card svg {
  transition: transform 0.4s ease, color 0.4s ease;
}

/* ============================================
   Scroll Reveal (below fold only)
   ============================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Form
   ============================================ */
select option {
  background: #0f1724;
  color: #fff;
}

/* ============================================
   Utilities
   ============================================ */
@media (max-width: 767px) {
  .font-serif {
    word-break: break-word;
  }
}
