/* ===== Custom Styles for Preserve At Black Hammock ===== */

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

body {
  overflow-x: hidden;
}

::selection {
  background-color: #f0a8b0;
  color: #4a0e16;
}

/* --- Navbar --- */
.nav-header {
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-header.scrolled .nav-link {
  color: #374151;
}

.nav-header.scrolled .font-display {
  color: #721522;
}

.nav-header.scrolled .font-body {
  color: #a12030;
}

/* --- Hero --- */
.hero {
  background-color: #1a0a0e;
}

.hero-bg {
  will-change: transform;
}

.hero-img {
  will-change: transform;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(74, 14, 22, 0.82) 0%,
    rgba(114, 21, 34, 0.68) 50%,
    rgba(161, 32, 48, 0.55) 100%
  );
}

/* --- Buttons --- */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  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-primary:hover::after {
  opacity: 1;
}

/* --- Service Cards --- */
.service-card {
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }

  .hero-img {
    animation: none;
  }
}

/* --- Mobile Menu --- */
.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #a12030;
  transition: width 0.2s ease;
}

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

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

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

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

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

/* --- Focus Styles --- */
*:focus-visible {
  outline: 2px solid #a12030;
  outline-offset: 2px;
}

/* --- Form Select Arrow --- */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- Print Styles --- */
@media print {
  .nav-header, .hero-scroll, button {
    display: none;
  }
}
