/* Motion + mobile polish */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-form-container.reveal-on-scroll {
  transition-delay: 0.12s;
}

.about-years-callout.has-fill-bar {
  position: relative;
  overflow: hidden;
}

.about-years-callout.has-fill-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #c41e1e, #e63535);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-years-callout.has-fill-bar.is-filled::after {
  width: 100%;
}

.about-years-number,
.about-stat--years .about-stat-number {
  font-variant-numeric: tabular-nums;
}

.header.scrolled {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 0.65rem 0;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.mobile-toggle .line {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #0f172a;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(86vw, 340px);
  height: 100vh;
  background: #fff;
  z-index: 1200;
  transform: none !important;
  transition: right 0.3s ease;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.16);
  overflow-y: auto;
  padding: 1rem 1.25rem 2rem;
}

.mobile-menu.active {
  right: 0;
  transform: none !important;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.mobile-menu-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: #0f172a;
  width: 44px;
  height: 44px;
}

.mobile-menu-list,
.mobile-menu .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-list a,
.mobile-menu .menu a {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid #eef2f7;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.mobile-actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none !important;
  }

  .header-actions .header-phone,
  .header-actions .btn {
    display: none;
  }

  .header-container {
    gap: 0.75rem;
  }

  .hero {
    padding: 6.25rem 0 2.5rem !important;
  }

  .hero-content {
    text-align: left;
    max-width: 100%;
  }

  .hero-badges {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 3.1rem !important;
  }

  .hero-form-container {
    padding: 1.35rem;
  }

  .section {
    padding: 3.5rem 0 !important;
  }

  .section-title {
    font-size: 2.6rem !important;
  }

  .about-content {
    text-align: left;
  }

  .about-badge,
  .about-years-callout {
    justify-content: flex-start;
  }

  .testimonial-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .testimonial-card {
    padding: 1.6rem !important;
  }

  .cta-title {
    font-size: 2.5rem !important;
    line-height: 1.05;
  }

  .cta-text {
    font-size: 1.05rem !important;
    margin-bottom: 1.75rem;
  }

  .contact-info-content,
  .contact-form {
    padding: 1.35rem !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .brand-logo .logo-text {
    font-size: 2.05rem !important;
  }

  .brand-logo .logo-tagline {
    font-size: 0.54rem !important;
    letter-spacing: 0.13em !important;
  }

  .hero-title {
    font-size: 2.55rem !important;
  }

  .hero-title-lead {
    font-size: 0.5em !important;
  }

  .hero-years {
    font-size: 1.08em !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }

  .btn-lg,
  .hero-content .btn {
    width: 100%;
    justify-content: center;
  }

  .about-years-number {
    font-size: 3.4rem !important;
  }

  .footer-phone-line a {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .hero-badges {
    gap: 0.45rem;
  }

  .hero-badge,
  .hero-years-kicker {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.7rem !important;
  }

  .section-title {
    font-size: 2.2rem !important;
  }

  .cta-title {
    font-size: 2.15rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .about-years-callout.has-fill-bar::after {
    transition: none !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .about-years-callout.has-fill-bar::after {
    width: 100% !important;
  }
}
