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

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

/* Focus styles */
*:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background-color: #f0abbb;
  color: #561e28;
}

/* ===== NAVBAR ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

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

/* Navbar scroll state */
.nav.scrolled {
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default state for reveal elements (no JS) */
.reveal {
  transform: translateY(24px);
  opacity: 0;
}

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

/* Staggered delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  img, .group:hover img {
    transform: none;
    transition: none;
  }

  button, a {
    transition: none;
  }
}

/* ===== SELECT STYLING ===== */
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='%239c7a68' stroke-width='2.5' 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;
  appearance: none;
  -webkit-appearance: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

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

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

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 767px) {
  h1 {
    font-size: 2.75rem !important;
  }

  h2 {
    font-size: 2.25rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  h1 {
    font-size: 4rem !important;
  }

  h2 {
    font-size: 3rem !important;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 4.5rem !important;
  }
}
