/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 162, 39, 0.3);
  color: #faf9f6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #071108;
}
::-webkit-scrollbar-thumb {
  background: #1f4520;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2d5e2d;
}

/* ===== REVEAL ANIMATIONS (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.4s; }
}

/* Ensure content is visible without JS */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(7, 17, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.1);
}

/* ===== SERVICE CARDS ===== */
.service-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 162, 39, 0.15);
}

/* ===== GALLERY HOVER ===== */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* ===== FORM STYLES ===== */
select option {
  background: #163317;
  color: #faf9f6;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

/* ===== MOBILE MENU TRANSITIONS ===== */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* ===== BUTTON RIPPLE EFFECT ===== */
button, a {
  position: relative;
  overflow: hidden;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
