/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ── Floating Cards ── */
@media (prefers-reduced-motion: no-preference) {
  .float-slow {
    animation: floatSlow 6s ease-in-out infinite;
  }
  .float-delayed {
    animation: floatSlow 6s ease-in-out 3s infinite;
  }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Navbar ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #1B4332;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile Menu ── */
.mobile-link {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ── Service Cards ── */
.service-card {
  opacity: 1;
}

/* ── Custom Select ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%231B4332' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── Selection ── */
::selection {
  background: #1B4332;
  color: #F9FAF7;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid #1B4332;
  outline-offset: 2px;
}

/* ── Smooth scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #F9FAF7;
}
::-webkit-scrollbar-thumb {
  background: #1B4332;
  border-radius: 3px;
}
