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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #E8A838;
  color: #1A0E18;
}

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

#navbar.scrolled {
  background: rgba(26, 14, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E8A838;
  transition: width 0.25s ease;
}

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

/* ===== REVEAL ANIMATIONS (progressive enhancement) ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hidden by default for JS-enhanced reveals */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CARD TILT ===== */
.card-tilt {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card-tilt:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A0E18;
}
::-webkit-scrollbar-thumb {
  background: #6B2F5B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8B5298;
}

/* ===== FORM STYLES ===== */
select option {
  background: #3F1E37;
  color: #fff;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
}

/* ===== MAP INVERT FIX ===== */
iframe[title*="Google Maps"] {
  border-radius: 1rem;
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }

  h2 {
    font-size: 2rem !important;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  h1 {
    font-size: 3.5rem !important;
  }
}
