/* Custom styles for Baisen Machinery website */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
}

.font-heading {
  font-family: 'Anton', Impact, sans-serif;
  letter-spacing: 0.02em;
}

/* Logo placeholder animation hint */
#logo-placeholder {
  transition: all 0.3s ease;
}
#logo-placeholder:hover {
  border-color: #16529c;
  background: rgba(22, 82, 156, 0.15);
}

/* Nav active state */
.nav-link.active {
  color: #16529c;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Header shadow on scroll */
header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Smooth image hover */
img {
  max-width: 100%;
  height: auto;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 82, 156, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 400px;
}

/* Floating buttons */
.fixed a {
  transition: transform 0.2s ease;
}
.fixed a:hover {
  transform: scale(1.08);
}

/* Product card */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .font-heading {
    letter-spacing: 0;
  }
}
