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

body {
  overflow-x: hidden;
}

::selection {
  background-color: #C8A45C;
  color: #050D1A;
}

/* Scroll Reveal Animations - Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero Animations */
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  h1 .hero-title-line {
    display: block;
    overflow: hidden;
  }

  h1 .hero-title-line span {
    display: block;
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  h1 .hero-title-line:nth-child(1) span { animation-delay: 0.1s; }
  h1 .hero-title-line:nth-child(2) span { animation-delay: 0.25s; }
  h1 .hero-title-line:nth-child(3) span { animation-delay: 0.4s; }
  h1 .hero-title-line:nth-child(4) span { animation-delay: 0.55s; }
}

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

/* Navbar Scroll State */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(5, 22, 40, 0.06);
}

#navbar.scrolled .nav-link {
  color: rgba(5, 22, 40, 0.7);
}

#navbar.scrolled .menu-line {
  background-color: #050D1A;
}

/* Mobile Menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Service Card Hover */
.service-card {
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth focus outlines */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #B8944E;
}

/* Utility */
.text-balance {
  text-wrap: balance;
}

/* Print styles */
@media print {
  #navbar, #mobile-menu, .reveal {
    display: block !important;
    opacity: 1 !important;
  }
}
