/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Header on scroll */
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

.site-header.is-scrolled .nav-inner {
  height: 99px;
}

.site-header.is-scrolled .logo-img {
  height: 75px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  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; }

/* Trust ticker */
.trust-ticker {
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}

.trust-track {
  display: flex;
  width: max-content;
  animation: ticker 35s linear infinite;
  gap: 48px;
}

.trust-track span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-dot {
  color: var(--red);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Full-width home video (below trust ticker) */
.home-video-banner {
  position: relative;
  width: 100%;
  min-height: 0;
  background: var(--charcoal);
  overflow: visible;
}

.home-video-banner .home-video {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Hero polish */
.hero-full {
  position: relative;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(204, 0, 0, 0.15);
  border-radius: 4px;
  pointer-events: none;
}

.hero-image {
  transition: transform 0.6s ease;
}

.hero-visual:hover .hero-image {
  transform: scale(1.03);
}

.stats-infographic .stat-card {
  transition: background 0.2s ease;
}

.stats-infographic .stat-card:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* Service cards — richer hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Advantage stack */
.advantage-item {
  transition: background 0.2s ease;
}

.advantage-item:hover {
  background: var(--off-white);
}

.business-process-item {
  transition: background 0.2s ease;
}

.business-process-item:hover {
  background: var(--off-white);
}

.business-timeline-step,
.business-cap-card,
.business-doc-card,
.business-facility-feature {
  transition: background 0.2s ease, border-color 0.2s ease;
}

.business-timeline-step:hover,
.business-cap-card:hover,
.business-doc-card:hover,
.business-facility-feature:hover {
  background: var(--off-white);
}

.facility-storage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.business-doc-tag {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.business-doc-tag:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

/* FAQ smooth accordion */
.faq-answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding: 0 0 20px;
}

.faq-question {
  transition: color 0.2s ease;
}

.faq-item.open .faq-question {
  color: var(--red);
}

.faq-toggle {
  transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

/* Buttons — arrow slide */
.btn-arrow::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn:hover.btn-arrow::after {
  transform: translateX(4px);
}

/* Product search */
.product-search-wrap {
  max-width: 480px;
  margin: 0 auto 24px;
  position: relative;
}

.product-search {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--grey-border);
  border-radius: 999px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-search:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.product-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* Process steps — interactive */
.step-card {
  transition: transform 0.2s ease;
  cursor: default;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-card:hover .step-num {
  background: var(--red-dark);
  transform: scale(1.08);
}

.step-num {
  transition: all 0.2s ease;
}

/* Page hero subtle accent */
.page-hero {
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(204, 0, 0, 0.04), transparent 70%);
  pointer-events: none;
}

/* Toast */
.toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--charcoal);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--red);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  max-width: 360px;
  opacity: 0;
  transform: translateX(24px);
  animation: toastIn 0.35s ease forwards;
  pointer-events: auto;
}

.toast.success { border-left-color: #2ecc71; }
.toast.error { border-left-color: var(--red); }

@keyframes toastIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--grey-border);
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.floating-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 24px rgba(204, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-cta-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.floating-cta-btn.secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--grey-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.floating-cta-btn.secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Mobile menu animation */
@media (max-width: 768px) {
  .nav-links {
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
  }

  .back-to-top {
    bottom: 80px;
    left: 16px;
  }

  .toast-root {
    left: 16px;
    right: 16px;
    bottom: 80px;
  }

  .toast {
    max-width: none;
  }
}

/* Form loading */
.btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
  position: relative;
}

.btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Cert badges pulse */
.cert-box,
.cert-logo {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert-box:hover,
.cert-logo:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* CTA dark pattern */
.cta-dark {
  position: relative;
  overflow: hidden;
}

.cta-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(204, 0, 0, 0.12), transparent 50%);
  pointer-events: none;
}

.cta-dark > * {
  position: relative;
}

/* Table empty state */
.table-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
