/* ===== Base & Typography ===== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(232, 115, 90, 0.3);
  color: #fff;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 149, 108, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 149, 108, 0.5);
}

/* ===== Navigation ===== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #C8956C, #E8A87C);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Nav scroll state */
nav.scrolled {
  background: rgba(13, 13, 13, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #C8956C;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 80%;
}

#mobileMenu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

#mobileMenu.closed {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hamburger animation */
.menu-line.active:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-line.active:nth-child(2) {
  opacity: 0;
}
.menu-line.active:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.4rem !important;
}

/* ===== Hero ===== */
@keyframes scrollDot {
  0% { transform: translateY(-16px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(48px); opacity: 0; }
}

.animate-scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

/* ===== Gallery ===== */
.gallery-item {
  cursor: pointer;
}

/* ===== Testimonials ===== */
.testimonial-card {
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: rgba(200, 149, 108, 0.08);
  pointer-events: none;
}

/* ===== Form ===== */
select option {
  background: #1A1A1A;
  color: #fff;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Stagger children ===== */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .font-serif.text-5xl { font-size: 2.5rem; }
  .font-serif.text-6xl { font-size: 2.75rem; }
}
