/* ========== Base ========== */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Offset scroll targets for sticky nav */
section[id] {
  scroll-margin-top: 5rem;
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out both;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out both;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* ========== Nav active link indicator ========== */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C9A84C;
  transition: width 0.3s ease;
}

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

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F8F6F1;
}

::-webkit-scrollbar-thumb {
  background: #0D1B2A;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1B2A4A;
}

/* ========== Selection ========== */
::selection {
  background: #C9A84C;
  color: #0D1B2A;
}

/* ========== Table ========== */
table {
  border-collapse: collapse;
}

/* ========== Form focus ring ========== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(26, 111, 160, 0.15);
}

/* ========== Responsive helpers ========== */
@media (max-width: 640px) {
  .font-heading {
    letter-spacing: -0.01em;
  }
}
