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

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

body {
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #FDF6EE;
}

::selection {
  background: #c85a3c;
  color: white;
}

/* === NAV === */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(61, 43, 31, 0.08);
}

.nav-link {
  position: relative;
}

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

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

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

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

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 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; }

/* Hamburger */
.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: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero-img-wrap {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-img-wrap:hover {
  transform: scale(1.02);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #c85a3c;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #b5452d;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(200, 90, 60, 0.3);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #3D2B1F;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 2px solid rgba(61, 43, 31, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: #c85a3c;
  color: #c85a3c;
  transform: translateY(-2px);
}

/* CTA buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #c85a3c;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-cta-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* === SERVICE CARDS === */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === ABOUT === */
.about-img-wrap {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-img-wrap:hover {
  transform: scale(1.01);
}

/* === WHY CARDS === */
.why-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.why-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === INPUTS === */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(61, 43, 31, 0.15);
  border-radius: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #3D2B1F;
  background: #FAF3EB;
  transition: all 0.3s ease;
  outline: none;
}

.input-field::placeholder {
  color: rgba(61, 43, 31, 0.35);
}

.input-field:focus {
  border-color: #c85a3c;
  background: white;
  box-shadow: 0 0 0 4px rgba(200, 90, 60, 0.1);
}

/* === SCROLL DOT === */
.scroll-dot {
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 0; }
  50% { top: calc(100% - 12px); }
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .font-frauc.text-5xl { font-size: 2.75rem; }
  .font-frauc.text-4xl { font-size: 2.25rem; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
