/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: #1A1412;
  color: #E8D5BE;
  font-family: 'Montserrat', system-ui, sans-serif;
  overflow-x: hidden;
}

::selection {
  background: #B86B4A;
  color: #FAF3EB;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(26, 20, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C9A84C;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #C9A84C !important;
}

/* ── Mobile Menu ── */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menuToggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 6px;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Hero Animations ── */
.hero-subtitle {
  animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-title {
  animation: slideUp 0.8s ease forwards 0.4s;
}

.hero-desc {
  animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-cta {
  animation: slideUp 0.8s ease forwards 0.7s;
}

.hero-divider {
  animation: slideUp 0.8s ease forwards 0.8s;
}

.hero-image {
  animation: fadeInRight 1s ease forwards 0.5s;
  opacity: 0;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Scroll Indicator ── */
@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

.scroll-dot {
  animation: scrollDot 1.5s ease-out infinite;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184, 107, 74, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.5);
}

/* ── Gallery ── */
.gallery-item {
  position: relative;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 20, 18, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ── Form ── */
select option {
  background: #231C18;
  color: #E8D5BE;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(201, 168, 76, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1A1412;
}

::-webkit-scrollbar-thumb {
  background: #2A2019;
  border-radius: 4px;
}

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

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

  .hero-title span {
    display: inline;
  }

  .hero-image .w-\[500px\] {
    height: 400px !important;
  }

  .floating-badge {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    display: inline-block;
    margin-top: 1rem;
  }
}

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