/* ============================================
   HENS ON THE HUNT — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

/* Selection Color */
::selection {
  background: #c8a44e;
  color: #0a1628;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade-in for hero elements (above the fold — no JS needed) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* Scroll reveal (progressive enhancement — content is visible by default) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }

  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(32px);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
#mobileMenu {
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
  max-height: 400px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

font-serif {
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */

a {
  text-decoration: none;
}

/* ============================================
   FORM STYLES
   ============================================ */

input:focus,
textarea:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   GALLERY HOVER EFFECTS
   ============================================ */

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a1628;
}

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

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

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
  .font-serif {
    word-break: keep-all;
  }
}

@media (min-width: 768px) {
  /* Subtle parallax-like effect on hero */
  #top {
    will-change: transform;
  }
}

/* ============================================
   FOCUS VISIBLE (Accessibility)
   ============================================ */

:focus-visible {
  outline: 2px solid #c8a44e;
  outline-offset: 4px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
