* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1c1917; background: #fff; overflow-x: hidden; }
h1, h2, h3, .heading { font-family: 'Playfair Display', serif; }

/* Preloader */
#preloader { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-ring { width: 40px; height: 40px; border: 3px solid #e7e5e4; border-top-color: #1c1917; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll progress */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, #1c1917, #78716c); z-index: 9999; transition: width 0.1s linear; }

/* Fade-in */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.4s; }

/* Nav link underline */
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px; background: #292524; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

/* Gallery */
.gallery-img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease; }
.gallery-item:hover .gallery-img { transform: scale(1.07); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%); opacity: 0; transition: opacity 0.4s ease; display: flex; align-items: flex-end; padding: 12px; }
.gallery-overlay span { color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 0.5px; }

/* Filter buttons */
.filter-btn { transition: all 0.3s ease; }
.filter-btn.active { background: #1c1917; color: #fff; border-color: #1c1917; }

/* Gallery item transition for filtering */
.gallery-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.gallery-item.filtered-out { opacity: 0; transform: scale(0.9); pointer-events: none; position: absolute; }

/* Hero animated gradient */
.hero-bg { background: linear-gradient(-45deg, #fafaf9, #f5f5f4, #e7e5e4, #fafaf9); background-size: 400% 400%; animation: gradientShift 12s ease infinite; }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Lightbox */
#lightbox { display: flex; opacity: 1; transition: opacity 0.3s ease; }
#lightbox.lb-closed { opacity: 0; pointer-events: none; }
.lb-img { transition: transform 0.3s ease, opacity 0.3s ease; }

/* Review card */
.review-card { position: relative; }
.review-card::before { content: '\201C'; position: absolute; top: 8px; left: 16px; font-size: 48px; font-family: 'Playfair Display', serif; color: #d6d3d1; line-height: 1; }

/* Back to top */
#back-to-top { transition: opacity 0.3s ease, transform 0.3s ease; }
#back-to-top.hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
#back-to-top.visible { opacity: 1; transform: translateY(0); }

/* FAQ accordion */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-answer.open { max-height: 200px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Floating CTA */
.floating-cta { animation: floatPulse 3s ease-in-out infinite; }
@keyframes floatPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Mobile hamburger */
.hamburger-line { transition: all 0.3s ease; }

@media (max-width: 640px) {
  .gallery-img { height: 180px; }
}

/* Hide scrollbar in lightbox */
body.lb-open { overflow: hidden; }
