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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #C0623C;
  color: #FDF8F0;
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(44, 36, 32, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

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

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

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

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

.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

#menuBtn.active .menu-line:nth-child(3) {
  width: 6;
  margin-right: 0;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO SHAPES ========== */
.hero-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192, 98, 60, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 165, 106, 0.15) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  border-radius: 50%;
  animation: float-slow 6s ease-in-out infinite reverse;
}

.shape-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(192, 98, 60, 0.06);
  top: 25%;
  right: 3%;
  border-radius: 24px;
  transform: rotate(45deg);
  animation: float-slow 7s ease-in-out infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(212, 165, 106, 0.1);
  top: 40%;
  left: 2%;
  animation: float-slow 9s ease-in-out infinite reverse;
}

.shape-dots {
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(192, 98, 60, 0.2) 1px, transparent 1px);
  background-size: 12px 12px;
  top: 15%;
  left: 45%;
  border-radius: 50%;
  animation: float-slow 5s ease-in-out infinite;
}

/* ========== CTA SHAPES ========== */
.cta-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192, 98, 60, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  animation: float-slow 10s ease-in-out infinite;
}

.shape-rect-2 {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  bottom: -50px;
  left: 10%;
  border-radius: 40px;
  transform: rotate(30deg);
  animation: float-slow 8s ease-in-out infinite reverse;
}

/* ========== ANIMATIONS ========== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon {
  transition: transform 0.5s ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 36, 32, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: inherit;
}

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

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  font-style: italic;
  color: rgba(192, 98, 60, 0.06);
  line-height: 1;
  pointer-events: none;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .shape-circle-1 {
    width: 300px;
    height: 300px;
  }

  .shape-circle-2 {
    width: 150px;
    height: 150px;
  }

  .shape-rect-1 {
    width: 60px;
    height: 60px;
  }

  .shape-triangle {
    border-left-width: 30px;
    border-right-width: 30px;
    border-bottom-width: 52px;
  }

  .shape-dots {
    width: 40px;
    height: 40px;
    background-size: 8px 8px;
  }
}
