/* ===== Custom Styles for 34 Park Wilton ===== */

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

/* Custom selection color */
::selection {
  background: rgba(123, 45, 59, 0.15);
  color: #7B2D3B;
}

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

#navbar.scrolled {
  background: rgba(254, 252, 251, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(123, 45, 59, 0.06), 0 4px 20px rgba(123, 45, 59, 0.04);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #7B2D3B, #c72d58);
  transition: width 0.3s ease;
}

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

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

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Room Cards ===== */
.room-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.room-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.room-card:nth-child(2) { transition-delay: 0.1s; }
.room-card:nth-child(3) { transition-delay: 0.2s; }

/* ===== Experience Cards ===== */
.group {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.group.visible {
  opacity: 1;
  transform: translateY(0);
}

.group:nth-child(2) { transition-delay: 0.1s; }
.group:nth-child(3) { transition-delay: 0.2s; }
.group:nth-child(4) { transition-delay: 0.3s; }

/* ===== Gallery Images ===== */
.grid > div {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.grid > div.visible {
  opacity: 1;
  transform: scale(1);
}

.grid > div:nth-child(1) { transition-delay: 0.05s; }
.grid > div:nth-child(2) { transition-delay: 0.1s; }
.grid > div:nth-child(3) { transition-delay: 0.15s; }
.grid > div:nth-child(4) { transition-delay: 0.2s; }

/* ===== Input focus glow ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(199, 45, 88, 0.08);
}

/* ===== Subtle gradient text utility ===== */
.text-gradient-burgundy {
  background: linear-gradient(135deg, #7B2D3B 0%, #c72d58 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Ambient glow on scroll sections ===== */
section {
  position: relative;
}

/* ===== Accessibility ===== */
@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;
  }
}

/* ===== Print ===== */
@media print {
  #navbar,
  #mobile-menu,
  .room-card,
  .group,
  .grid > div {
    opacity: 1 !important;
    transform: none !important;
  }
}
