/* Fixed cinematic backdrop with translucent content bands. */
html {
  background: #f8f6f2;
}

body.homepage {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.homepage .site-header {
  justify-content: flex-start;
  gap: clamp(28px, 6vw, 92px);
  border-bottom-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 250, 247, 0.16) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.homepage .site-header > .site-brand {
  display: none;
}

.homepage .site-header nav {
  gap: clamp(24px, 3vw, 44px);
}

.homepage .site-header nav a {
  color: #3f4b51;
  font-size: 17px;
}

.homepage .header-actions {
  margin-left: auto;
}

.homepage .header-actions .login-link,
.homepage .header-actions .staff-link {
  padding: 10px 17px;
  font-size: 15px;
  font-weight: 650;
}

.home-video-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 22%, rgba(255, 221, 176, .9), transparent 42%),
    radial-gradient(ellipse at 82% 72%, rgba(174, 211, 215, .82), transparent 45%),
    linear-gradient(130deg, #f8eee3, #e7ecec 72%, #f4f0eb);
  background-size: 160% 160%;
}

.home-video-backdrop--fallback {
  background-position: 0% 50%, 100% 50%, 50% 50%;
  animation: home-backdrop-drift 24s ease-in-out infinite alternate;
}

.home-video-backdrop--fallback .home-video-backdrop__media {
  opacity: .12;
}

@keyframes home-backdrop-drift {
  0% { background-position: 0% 40%, 100% 60%, 0% 50%; }
  100% { background-position: 100% 60%, 0% 40%, 100% 50%; }
}

.home-video-backdrop__media,
.home-video-backdrop__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-video-backdrop__media {
  object-fit: cover;
  object-position: center 48%;
  opacity: 0.98;
}

.home-video-backdrop__veil {
  background: linear-gradient(
    115deg,
    rgba(255, 250, 244, 0.28) 0%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 246, 235, 0.26) 100%
  );
}

.quote-hero {
  background: linear-gradient(
    115deg,
    rgba(255, 250, 244, 0.08),
    rgba(255, 255, 255, 0.08) 54%,
    rgba(255, 246, 235, 0.08)
  ) !important;
}

.quote-hero:before {
  display: none !important;
}

/* Let the fixed video show between sections without sacrificing readable cards. */
.tool-directory-preview,
.services,
.about,
.solutions,
.site-faq {
  background: rgba(255, 255, 255, 0.88) !important;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.service-card,
.service-card.highlight {
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 14px;
}

.service-card.highlight {
  color: inherit !important;
}

.service-card.highlight p,
.service-card.highlight a {
  color: inherit;
}

.service-card.highlight .service-icon {
  color: #d17d13;
}

.tool-directory-preview .tool-entry {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.service-card.highlight {
  background: transparent !important;
  border-color: transparent !important;
  color: inherit !important;
  border-radius: 14px;
}

.amazon-entry-band {
  background: rgba(255, 255, 255, 0.88) !important;
}

.customer-service-band {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.88) !important;
  background-image: none !important;
}

.customer-service-band::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url("./assets/customer-service-logistics-bg.jpg") center 47% / cover no-repeat;
  content: "";
  opacity: 0.88;
  pointer-events: none;
}

.customer-service-band > * {
  position: relative;
  z-index: 1;
}

.faq-list details {
  background: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.homepage .site-footer {
  background: rgba(255, 255, 255, 0.88) !important;
  font-size: 12px;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.homepage .site-footer .footer-brand strong {
  font-size: 14px;
}

.homepage .site-footer .footer-brand small {
  font-size: 8px;
}

.homepage .floating-support-actions {
  flex-direction: column;
  background: rgba(255, 255, 255, 0.18);
}

.homepage .floating-support-actions button {
  background: rgba(255, 255, 255, 0.18);
}

html.has-scroll-reveal main > section[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease var(--reveal-delay, 0ms),
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.has-scroll-reveal main > section[data-scroll-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.freight-quote {
  overflow: hidden;
  border-radius: 22px;
  margin-top: 132px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 64px rgba(39, 45, 49, 0.15);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.quote-service-tabs {
  background: rgba(255, 255, 255, 0.88);
}

.quote-service-tab:not(.active) {
  background: rgba(255, 255, 255, 0.18);
}

.quote-service-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.56);
}

.platform-picker {
  border: 0;
  background: transparent;
  color: #59656d;
}

.platform-picker select {
  border: 1px solid rgba(86, 99, 107, 0.28);
  background: rgba(255, 255, 255, 0.35);
}

.freight-quote-form {
  border-radius: 0 0 22px 22px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.freight-quote-form .quote-field label { top: -22px; color: #68737b; background: transparent; line-height: 16px; }
.freight-quote-form .quote-field label span { color: #68737b; }
.freight-quote-form .quote-field input::placeholder { color: #68737b; opacity: 1; }
.freight-quote-form .quote-field select { color: #56636b; }
.quote-form-footer { color: #56636b; }
.freight-quote-form .quote-field input,
.freight-quote-form .quote-field select {
  border: 1px solid rgba(86, 99, 107, 0.28);
  background: rgba(255, 255, 255, 0.35);
}
.freight-quote-form .quote-field input:focus-visible,
.freight-quote-form .quote-field select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  box-shadow: none;
}

/* Simplify the hero and let the enlarged brand lead directly into the quote form. */
.hero-brand {
  opacity: 0.94;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.hero-brand img {
  width: 288px;
  height: 210px;
  object-fit: cover;
  object-position: center top;
  transform: translateY(0);
  /* The SVG artwork has more transparent padding on its left than right.
     Compensate so the visible colored strokes have equal side-character gaps. */
  margin-right: 16.8px;
}

.hero-brand .hero-brand-side {
  display: block;
  width: auto;
  margin: 0;
  font-size: 140px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(30px);
}

.hero-brand .hero-brand-side--left { color: #003399; }
.hero-brand .hero-brand-side--right { color: #ff9900; }

.hero-brand small {
  margin-top: 2px;
  transform: translateY(0);
}

.quote-hero .hero-kicker,
.quote-hero-lead {
  display: none;
}

.quote-hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.freight-quote {
  margin-top: 132px;
}

@media (max-width: 720px) {
  .home-video-backdrop__media {
    object-position: 56% center;
    opacity: 0.88;
  }

  .home-video-backdrop__veil {
    background: rgba(255, 250, 244, 0.42);
  }

  .quote-hero {
    background: rgba(255, 250, 244, 0.08) !important;
  }

  .homepage .site-header {
    gap: 12px;
    background: rgba(255, 250, 247, 0.16) !important;
  }

  .homepage .site-header nav {
    gap: 20px;
  }

  .homepage .site-header nav a {
    font-size: 15px;
  }

  .hero-brand img {
    width: 208px;
    height: 154px;
    object-fit: cover;
    object-position: center top;
    transform: translateY(0);
    margin-right: 12.1px;
  }

  .hero-brand {
    gap: 8px;
  }

  .hero-brand .hero-brand-side {
    font-size: clamp(64px, 18vw, 112px);
    transform: translateY(22px);
  }

  .hero-brand small {
    transform: translateY(0);
  }

  .freight-quote {
    margin-top: 132px;
  }

  .freight-quote-form {
    border-radius: 0 0 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.has-scroll-reveal main > section[data-scroll-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-video-backdrop__media {
    display: none;
  }

  .home-video-backdrop {
    background:
      radial-gradient(circle at 72% 18%, rgba(255, 235, 209, 0.92), transparent 42%),
      linear-gradient(130deg, #f8eee3, #e7ecec 72%, #f4f0eb);
    animation: none;
  }
}
