/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F3;
}
::-webkit-scrollbar-thumb {
  background: #D4AA70;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C1694F;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #C1694F 0%, #A8523A 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #A8523A 0%, #8B412E 100%);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(193, 105, 79, 0.05);
}

/* Tags */
.badge-tag {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #FBF3F0 0%, #F5E0D8 100%);
  color: #C1694F;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
}

/* Navigation */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(253, 248, 243, 0.95);
  backdrop-blur-md;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* 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-ctas {
  animation: slideUp 0.8s ease forwards 0.8s;
}

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

.hero-img-wrap {
  animation: fadeIn 1s ease forwards 0.6s;
  opacity: 0;
}

.hero-img-wrap:nth-child(2) {
  animation-delay: 0.8s;
}

.hero-badge {
  animation: float 3s ease-in-out infinite;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  transition: all 0.3s ease;
}

/* Image hover effects */
.hero-img-wrap {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #E8C8A0, transparent);
}

/* Form styles */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
  background: #ECBFA8;
  color: #5C2F25;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }

  #hero {
    padding-top: 80px;
  }

  .hero-img-wrap {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .hero-badge {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    max-width: 100%;
  }

  .hero-stats {
    gap: 1.5rem;
  }
}
