/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FAF7F2; }
::-webkit-scrollbar-thumb { background: #D9C3AB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #B8614A; }

/* ===== NAV ===== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #B8614A;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== MOBILE MENU ===== */
.mobile-link { font-size: 14px; letter-spacing: 0.2em; }
.menu-line { transition: all 0.3s ease; }

/* ===== HERO ANIMATIONS ===== */
.hero-sub { animation: slideUp 0.8s ease forwards; animation-delay: 0.2s; }
.hero-title { animation: slideUp 0.8s ease forwards; animation-delay: 0.4s; }
.hero-desc { animation: slideUp 0.8s ease forwards; animation-delay: 0.6s; }
.hero-cta { animation: fadeIn 0.8s ease forwards; animation-delay: 0.8s; }

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL INDICATOR ===== */
@keyframes scrollDot {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.scroll-dot { animation: scrollDot 1.5s ease-in-out infinite; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== SERVICE CARDS ===== */
.service-card { transition: background-color 0.5s ease; }

/* ===== GALLERY ===== */
.gallery-item { aspect-ratio: 1; }
.gallery-item:first-child { aspect-ratio: 1; }

/* ===== PROCESS STEPS ===== */
.process-step { transition: transform 0.3s ease; }
.process-step:hover { transform: translateY(-4px); }

/* ===== FORM ===== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%238A8276' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
  .mobile-menu-open { overflow: hidden; }
  #mobile-menu.active { opacity: 1; pointer-events: all; }
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

/* Mobile menu line animation */
body.menu-open #mobile-toggle .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.menu-open #mobile-toggle .menu-line:nth-child(2) {
  opacity: 0;
}
body.menu-open #mobile-toggle .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.5rem;
}
