/* ===== CUSTOM STYLES FOR B'YOND STRANDS ===== */

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

/* Ensure all links look like links, not buttons */
a {
  text-decoration: none;
}

/* ===== NAVBAR SCROLL BEHAVIOR ===== */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#site-header.scrolled {
  background-color: rgba(2, 46, 34, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

/* Nav links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.2s ease;
}

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

/* Mobile link */
.mobile-link {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.25rem;
}

/* ===== SERVICE CARDS ===== */
.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 CARDS ===== */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(6, 78, 59, 0.1);
}

/* ===== 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; }
}

/* ===== GALLERY HOVER ===== */
.gallery-item {
  cursor: pointer;
}

/* ===== FORM STYLES ===== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ===== SELECTION ===== */
::selection {
  background-color: rgba(5, 150, 105, 0.2);
  color: #022c22;
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobile-menu.open {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MOBILE MENU BUTTON ANIMATION ===== */
#menu-btn[aria-expanded="true"] #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn[aria-expanded="true"] #bar2 {
  opacity: 0;
}

#menu-btn[aria-expanded="true"] #bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 5px;
}
