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

::selection { background: rgba(212, 168, 67, 0.3); color: #f0d68a; }

/* ── Navbar scroll state ── */
.nav-scrolled #nav {
  background: rgba(3, 8, 16, 0.85) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.08);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

/* ── Mobile menu ── */
.mobile-link { transition: opacity 0.3s, transform 0.3s; }
#mobileMenu.open { transform: translateX(0) !important; }
#mobileMenu.close { transform: translateX(100%) !important; }

/* ── Service card shimmer on hover ── */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(212,168,67,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.service-card { position: relative; overflow: hidden; }
.service-card:hover::before { opacity: 1; }

/* ── Gold accent line animation ── */
@keyframes goldPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
.gold-accent { animation: goldPulse 4s ease-in-out infinite; }

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

/* Fallback: if JS is disabled, all content is visible */
.no-js .reveal { opacity: 1; transform: none; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #030810; }
::-webkit-scrollbar-thumb { background: rgba(212, 168, 67, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 168, 67, 0.45); }

/* ── Form select arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a843' stroke-width='2.5' 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 14px center;
  padding-right: 40px;
}

/* ── Button loading state ── */
.btn-loading #btnText,
.btn-loading #btnArrow { display: none; }
.btn-loading #btnSpinner { display: block !important; }

/* ── Mobile menu line animation ── */
.menu-open .menu-line:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
.menu-open .menu-line:nth-child(2) { opacity: 0; }
.menu-open .menu-line:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); width: 5px; }
