/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }

/* ── Navbar ── */
#nav { background: transparent; }
#nav.scrolled { background: rgba(253,251,247,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(212,184,122,0.15); }

/* ── Buttons ── */
.cta-btn { position: relative; overflow: hidden; }
.cta-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; }
.cta-btn:hover::after { opacity: 1; }

/* ── Floating Cards ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-delay {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.floating-card { animation: float 4s ease-in-out infinite; }
.animate-float-delay { animation-delay: 1.5s; }

/* ── Scroll Reveal ── */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ── Service Cards ── */
.service-card { perspective: 1000px; }
.service-card > div { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.service-card:hover > div { transform: translateY(-4px); }

/* ── Mobile Menu ── */
#mobileMenu { animation: slideDown 0.3s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Gallery ── */
.gallery-item { overflow: hidden; border-radius: 1rem; }
.gallery-item img { transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* ── Form ── */
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(192,96,58,0.15); }

/* ── Custom Selection ── */
::selection { background: rgba(192,96,58,0.2); color: #562617; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAF5EC; }
::-webkit-scrollbar-thumb { background: #D4B87A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C0603A; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .scroll-reveal { opacity: 1; transform: none; }
  .floating-card { animation: none; }
}
