*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #fce7eb;
  color: #6b182c;
}

/* NAV */
#nav.scrolled {
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(138, 128, 120, 0.1);
}

#nav.scrolled .text-burgundy-700,
#nav.scrolled .text-burgundy-600,
#nav.scrolled .text-burgundy-400 {
  color: #b02a4a;
}

/* MOBILE MENU */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

.menu-line {
  display: block;
  width: 20px;
  height: 1px;
  background: #2a2522;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.menu-btn.active .menu-line:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.menu-btn.active .menu-line:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* HERO ANIMATIONS */
.hero-subtitle {
  animation: fadeUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-title {
  animation: fadeUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-desc {
  animation: fadeUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-cta {
  animation: fadeUp 0.8s ease 0.8s forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SCROLL LINE */
.scroll-line {
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -12px; opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* SERVICE ITEMS */
.service-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(138, 128, 120, 0.15);
  transition: padding-left 0.3s ease;
}

.service-item:first-child {
  padding-top: 0;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:hover {
  padding-left: 12px;
}

/* GALLERY */
.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* FORM */
select option {
  background: #fefcf8;
  color: #2a2522;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #fefcf8;
}

::-webkit-scrollbar-thumb {
  background: #d4a0b8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b02a4a;
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem !important;
  }

  .hero-title span {
    display: inline;
  }

  .service-item:hover {
    padding-left: 0;
  }

  .gallery-item {
    border-radius: 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 3.5rem !important;
  }
}
