/* ===== CUSTOM STYLES ===== */

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

/* Selection color */
::selection {
  background: #ff7a61;
  color: white;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
/* Default: all content visible — JS only adds animation classes */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(30px);
  }
  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ===== NAV SCROLL STATE ===== */
#siteNav.scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e5e8;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-link:last-child {
  border-bottom: none;
}
.mobile-link:hover {
  color: #f0523a;
}

/* ===== CARD HOVER ===== */
.reveal-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reveal-card:hover {
  transform: translateY(-4px);
}

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

/* ===== HERO SCROLL INDICATOR ===== */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.animate-bounce {
  animation: bounce 1.5s infinite;
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobileMenu {
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== NAV ACTIVE LINK ===== */
nav a.active {
  color: #f0523a;
}

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

/* ===== PRINT ===== */
@media print {
  #siteNav, .reveal-up, .reveal-left, .reveal-right, #mobileMenu {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
