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

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(201, 168, 76, 0.3);
  color: #f5ede8;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a0a0e;
}
::-webkit-scrollbar-thumb {
  background: #6b1d2a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c9a84c;
}

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(26, 10, 14, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(107, 29, 42, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-link {
  position: relative;
  padding-left: 0;
}
.mobile-link::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: #c9a84c;
  transition: width 0.3s ease;
}
.mobile-link:hover::before {
  width: 8px;
}

/* ===== Hero ===== */
@keyframes scroll-indicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}
.animate-scroll-indicator {
  animation: scroll-indicator 2s ease-in-out infinite;
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(107, 29, 42, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.service-card:hover::before {
  opacity: 1;
}

/* ===== Gallery ===== */
.gallery-item {
  position: relative;
}

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

/* ===== Back to Top ===== */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===== 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='%23c9a84c' 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;
  appearance: none;
  -webkit-appearance: none;
}

/* ===== Focus Visible ===== */
*:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 640px) {
  h1 {
    letter-spacing: -0.02em;
  }
}
