/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* === NAVBAR === */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

/* === MOBILE MENU === */
#mobileMenu.open { opacity: 1 !important; pointer-events: all !important; }
.mobile-link { transition: opacity 0.3s, transform 0.3s; }
#mobileMenu.open .mobile-link { opacity: 1; transform: translateY(0); }
#mobileMenu .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu .mobile-link:nth-child(5) { transition-delay: 0.25s; }

.menu-line { transition: all 0.3s ease; }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); width: 1.25rem; }

/* === SERVICE CARDS === */
.service-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
.service-card.revealed { opacity: 1; transform: translateY(0); }
.service-card:not(.revealed) { opacity: 0; transform: translateY(30px); }

/* === GALLERY === */
.gallery-item { cursor: pointer; }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item { position: relative; }

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}
.testimonial-card.revealed { opacity: 1; transform: translateY(0); }
.testimonial-card:not(.revealed) { opacity: 0; transform: translateY(30px); }

/* === SCROLL REVEAL (below fold only) === */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-up:nth-child(2) { transition-delay: 0.1s; }
  .reveal-up:nth-child(3) { transition-delay: 0.2s; }
  .reveal-up:nth-child(4) { transition-delay: 0.3s; }
  .reveal-up:nth-child(5) { transition-delay: 0.4s; }
  .reveal-up:nth-child(6) { transition-delay: 0.5s; }
}

/* === SECTION HEADERS === */
.section-label {
  opacity: 1;
}

/* === SMOOTH HOVER FOR ALL INTERACTIVE === */
a, button { transition: all 0.3s ease; }

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAF3EB; }
::-webkit-scrollbar-thumb { background: #D4875C; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B56345; }

/* === FORM INPUT FOCUS === */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 123, 92, 0.15);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .font-serif { line-height: 1.15; }
}
