/* ===== Custom Styles for Him & Her + ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base font smoothing */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background-color: rgba(42, 92, 42, 0.15);
  color: #1a381a;
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: always visible (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animated state — applied via JS only */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-hidden {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Prefers-reduced-motion: disable animations entirely */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-hidden {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}

/* ===== Navbar States ===== */
#navbar.scrolled {
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(42, 92, 42, 0.08);
}

#navbar.scrolled .menu-line {
  background-color: #1a381a;
}

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

/* ===== Hero Scroll Indicator ===== */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Image Hover Effects ===== */
.gallery-item:hover img {
  transform: scale(1.03);
}

/* ===== Menu Item Hover ===== */
#menu li {
  transition: all 0.3s ease;
}

#menu li:hover {
  transform: translateX(4px);
}

#menu li:hover .font-serif {
  color: #3d7a3d;
}

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

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

::-webkit-scrollbar-thumb {
  background: #d9d4c8;
  border-radius: 3px;
}

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

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #2a5c2a;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ===== Mobile Menu Lines Animation ===== */
.menu-toggle-active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

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

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

/* ===== Vertical text for scroll indicator ===== */
.writing-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ===== Subtle line animations ===== */
@keyframes lineExpand {
  from { width: 0; }
  to { width: 2rem; }
}

/* ===== Button ripple effect ===== */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ===== Print styles ===== */
@media print {
  #navbar,
  .reveal,
  #hero {
    opacity: 1 !important;
    transform: none !important;
  }
}
