/* ============================================
   Artifacts — Custom Styles
   Classic & Elegant | Teal + Slate Grey
   ============================================ */

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

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(42, 84, 88, 0.2);
  color: inherit;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #3d7072;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a5458;
}

/* --- Navigation --- */
.nav-logo-text {
  transition: color 0.4s ease;
}

.nav-link {
  position: relative;
}

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

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

.nav-cta {
  box-shadow: 0 0 0 0 rgba(201, 169, 110, 0);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav-cta:hover {
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
}

/* --- Hero --- */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 26, 30, 0.7) 0%,
    rgba(10, 26, 30, 0.55) 50%,
    rgba(10, 26, 30, 0.8) 100%
  );
}

/* --- Feature Cards --- */
.feature-card {
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 63, 67, 0.08);
}

/* --- Collection Cards --- */
.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(10, 26, 30, 0.2);
}

/* --- Reveal Animations (Progressive Enhancement) --- */
/* Default state: visible for accessibility and no-JS */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced state: animated on scroll (applied by JS) */
@media (prefers-reduced-motion: no-preference) {
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

  /* Staggered delays handled via inline style transition-delay */
}

/* --- Button Hover Effects --- */
.btn-elegant {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-elegant::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-elegant:hover::before {
  opacity: 1;
}

/* --- Mobile Menu --- */
.mobile-menu-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

/* --- Input Focus Styles --- */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 84, 88, 0.15);
}

/* --- Map Grayscale Transition --- */
iframe.grayscale {
  filter: grayscale(30%);
  transition: filter 0.7s ease;
}

iframe.grayscale:hover {
  filter: grayscale(0%);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .feature-card {
    padding: 1.5rem 1rem;
  }

  .collection-card {
    border-radius: 0.75rem;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }
}

/* --- Print Styles --- */
@media print {
  nav, #contact, .reveal {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
