/* Custom styles replacing the Base44/React runtime behaviour:
   header scroll state, mobile menu, scroll reveals, gallery lightbox. */

/* ---- Header states ---- */
.site-header { background: transparent; }
.site-header .nav-link { color: #F9F7F2; }
.site-header .nav-link:hover { color: #B38B67; }
.site-header .nav-link.nav-active { color: #B38B67; }
.site-header .nav-cta { background: #F9F7F2; color: #1A2421; }
.site-header .nav-cta:hover { background: #B38B67; color: #F9F7F2; }
.site-header .nav-toggle { color: #F9F7F2; }

/* Pages without a dark hero behind the header need dark nav text from the start */
.site-header.on-light .nav-link { color: #1A2421; }
.site-header.on-light .nav-link:hover,
.site-header.on-light .nav-link.nav-active { color: #B38B67; }
.site-header.on-light .nav-cta { background: #1A2421; color: #F9F7F2; }
.site-header.on-light .nav-cta:hover { background: #B38B67; }
.site-header.on-light .nav-toggle { color: #1A2421; }

.site-header.scrolled {
  background: rgba(249, 247, 242, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.site-header.scrolled .nav-link { color: #1A2421; }
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.nav-active { color: #B38B67; }
.site-header.scrolled .nav-cta { background: #1A2421; color: #F9F7F2; }
.site-header.scrolled .nav-cta:hover { background: #B38B67; }
.site-header.scrolled .nav-toggle { color: #1A2421; }

/* ---- Mobile menu ---- */
.mobile-menu { max-height: 0; opacity: 0; transition: max-height 0.4s ease, opacity 0.4s ease; }
.site-header.menu-open .mobile-menu { max-height: 640px; opacity: 1; }

/* ---- Scroll reveal (Intersection Observer adds .in) ---- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Scroll-cue chevron bounce ---- */
.bounce-y { animation: bounce-y 1.6s ease-in-out infinite; }
@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---- Native select (replaces Radix combobox) ---- */
.site-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A2421' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* ---- Gallery lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; }
.lightbox img { max-height: 75vh; width: auto; object-fit: contain; }
.lightbox .lightbox-caption { margin-top: 1rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); text-align: center; }
.lightbox button { color: rgba(255, 255, 255, 0.6); transition: color 0.2s; background: none; border: 0; cursor: pointer; }
.lightbox button:hover { color: #fff; }
.lightbox .lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.8); z-index: 10; }
.lightbox .lightbox-prev { position: absolute; left: 1rem; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; }
.lightbox .lightbox-next { position: absolute; right: 1rem; width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) {
  .lightbox .lightbox-prev { left: 2rem; }
  .lightbox .lightbox-next { right: 2rem; }
}
body.lightbox-open { overflow: hidden; }
