/* ============================================
   A&S Manufacturing — Custom Styles
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

::selection {
  background: color-mix(in srgb, #B85635 80%, white);
  color: white;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDFBF8;
}
::-webkit-scrollbar-thumb {
  background: #D4B56E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B85635;
}

/* --- Navigation --- */
.nav-link {
  position: relative;
}

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

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

.nav-link::after {
  transition: width 0.3s ease;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(253, 251, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(42, 36, 32, 0.08);
}

/* --- Hero Animations --- */
.hero-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-headline {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-ctas {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Section Labels --- */
.section-label {
  display: block;
}

.section-title {
  position: relative;
}

.section-desc {
  position: relative;
}

/* --- Service Cards --- */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

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

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* --- Process Steps --- */
.process-step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step:nth-child(1) { transition-delay: 0.05s; }
.process-step:nth-child(2) { transition-delay: 0.15s; }
.process-step:nth-child(3) { transition-delay: 0.25s; }
.process-step:nth-child(4) { transition-delay: 0.35s; }

/* --- About Image --- */
.about-image-wrapper {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image-wrapper.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Menu --- */
.mobile-nav-link {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-open .mobile-nav-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.mobile-menu-open .mobile-nav-link:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.mobile-menu-open .mobile-nav-link:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

/* --- Form Select Arrow --- */
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='%236B625C' stroke-width='2.5' 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;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.75rem;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .hero-headline {
    font-size: 4.5rem;
  }
}

/* --- Print styles --- */
@media print {
  nav, #contact, .hero-ctas, button {
    display: none !important;
  }
  body {
    color: #2A2420;
    background: white;
  }
}
