/* ===== CUSTOM STYLES FOR A PORTER HAVEN ===== */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: #050d0a;
  color: #faf5eb;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050d0a;
}
::-webkit-scrollbar-thumb {
  background: #0a2418;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* Selection */
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: #faf5eb;
}

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

#navbar.scrolled {
  background: rgba(5, 13, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

/* ===== HERO ===== */
@keyframes scroll-down {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

.animate-scroll-down {
  animation: scroll-down 1.5s ease-in-out infinite;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4a853, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  position: relative;
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  line-height: 1;
  color: rgba(212, 168, 83, 0.06);
  pointer-events: none;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  position: relative;
}

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

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

/* ===== FORM STYLES ===== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

select option {
  background: #0a2418;
  color: #faf5eb;
}

/* ===== GOLD ACCENT ANIMATIONS ===== */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-shimmer {
  background: linear-gradient(90deg, #d4a853, #e8c47b, #d4a853);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ===== SUBTLE PULSE FOR DECORATIVE ELEMENTS ===== */
@keyframes soft-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-soft-pulse {
  animation: soft-pulse 3s ease-in-out infinite;
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.15;
  }
}

@media (min-width: 1024px) {
  .service-card:hover {
    transform: translateY(-4px);
  }

  .testimonial-card:hover {
    transform: translateY(-2px);
  }
}
