/* US Freight Master — site enhancements (keeps brand blues) */
:root {
  --brand-primary: #1037B6;
  --brand-secondary: #004080;
  --brand-accent: #5BA3E0;
  --brand-highlight: #7EB8F0;
}

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

.min-h-\[70vh\] { min-height: 70vh; }
.h-11 { height: 2.75rem; }
.max-w-\[85vw\] { max-width: 85vw; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops, transparent));
}
.from-black\/55 {
  --tw-gradient-from: rgba(0, 0, 0, 0.55);
  --tw-gradient-to: transparent;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-black\/45 {
  --tw-gradient-to: transparent;
  --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.45), var(--tw-gradient-to);
}
.to-black\/65 {
  --tw-gradient-to: rgba(0, 0, 0, 0.65);
}
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-1 { row-gap: 0.25rem; }
.flex-wrap { flex-wrap: wrap; }

@media (min-width: 640px) {
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:gap-4 { gap: 1rem; }
}

@media (min-width: 768px) {
  .md\:h-12 { height: 3rem; }
  .md\:min-h-\[80vh\] { min-height: 80vh; }
  .md\:h-\[80vh\] { height: 80vh; }
  .md\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .md\:pb-8 { padding-bottom: 2rem; }
  .md\:mb-6 { margin-bottom: 1.5rem; }
  .md\:mb-10 { margin-bottom: 2.5rem; }
  .md\:mt-16 { margin-top: 4rem; }
  .md\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .md\:block { display: block; }
  .md\:opacity-0 { opacity: 0; }
  .md\:group-hover\:opacity-100:is(:where(.group):hover *) { opacity: 1; }
}

html {
  scroll-behavior: smooth;
}

body.overflow-hidden {
  overflow: hidden;
}

/* Sidebar / mobile overlays above FAB, side rails, and chat widgets */
.site-overlay {
  z-index: 2147483000 !important;
  position: fixed;
  inset: 0;
}

.site-drawer {
  z-index: 2147483001 !important;
  position: fixed;
}

/* Sticky header spacer avoids layout jump when header becomes fixed */
body.header-is-fixed {
  padding-top: var(--header-offset, 0px);
}

/* Hero rotating keyword highlight */
.hero-keyword {
  color: var(--brand-highlight);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  transition: opacity 0.35s ease;
}

/* Desktop side action rails (parity with live site) */
.side-rail {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  transform: translateY(-50%);
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .side-rail {
    display: flex;
  }
}

.side-rail a,
.side-rail button {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--brand-secondary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1.25rem 0.65rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: -2px 2px 12px rgba(0, 64, 128, 0.25);
  transition: background-color 0.2s ease, padding 0.2s ease;
}

.side-rail a:hover,
.side-rail button:hover {
  background: var(--brand-primary);
  padding-inline: 0.85rem;
}

.side-rail form {
  margin: 0;
}

/* Service card overlay polish */
.service-card {
  position: relative;
}

.service-card img {
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.service-card .service-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(16, 55, 182, 0.95), transparent);
}

/* Step cards need relative for absolute step numbers */
.step-card {
  position: relative;
  overflow: hidden;
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.trust-item {
  text-align: center;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item strong {
  display: block;
  font-size: 1.125rem;
  color: #fff;
}

.trust-item span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Social icon buttons */
.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: var(--brand-primary);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Mobile FAB: keep clear of hero copy + Tawk widget */
.fab-stack {
  bottom: 6.5rem;
  right: 1rem;
}

@media (min-width: 768px) {
  .fab-stack {
    bottom: 6.5rem;
    right: 2rem;
  }
}

/* Soften fixed backgrounds on small screens (perf + iOS) */
@media (max-width: 1023px) {
  .bg-fixed {
    background-attachment: scroll !important;
  }
}

/* Reduce motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-keyword,
  .service-card img,
  .side-rail a,
  .side-rail button,
  .social-icon,
  .stat-counter {
    transition: none !important;
  }

  .animate-bounce,
  .animate-ping,
  .animate-pulse,
  .animate-truck-bounce,
  .animate-car-suspension,
  .animate-spin-wheel,
  .animate-road-slide {
    animation: none !important;
  }
}

/* Animated Auto Carrier Truck & Highway */
@keyframes truck-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes car-suspension {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(1.5px);
  }
}

@keyframes spin-wheel {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

.animate-truck-bounce {
  animation: truck-bounce 1.4s ease-in-out infinite;
}

.animate-car-suspension {
  animation: car-suspension 1.2s ease-in-out infinite;
}

.animate-spin-wheel {
  animation: spin-wheel 0.6s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.animate-road-slide {
  animation: road-slide 0.8s linear infinite;
}

/* Trust counter tabular numbers to avoid layout jitter during count-up */
.stat-counter {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Footer trust / payment badges — equal size boxes */
.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-badge,
.footer-badge--wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
  flex: 0 0 120px !important;
}

.footer-badge img,
.footer-badge a,
.footer-badge object,
.footer-badge embed,
.footer-badge iframe,
.footer-badge table,
.footer-badge td,
.footer-badge span {
  max-height: 40px !important;
  max-width: 100% !important;
  height: 40px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  border: 0 !important;
}

.footer-badge a {
  height: 40px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.footer-badge a img,
.footer-badge--wide img {
  height: 40px !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 40px !important;
  object-fit: contain !important;
}

.footer-badge table {
  width: auto !important;
  height: 40px !important;
  border-collapse: collapse;
}

.footer-badge table img {
  height: 40px !important;
  width: auto !important;
}

/* Site-wide Button Standardization: proper gap, line-height, and alignment */
button,
[role="button"] {
  cursor: pointer;
}

button,
a.inline-flex,
a.flex {
  -webkit-font-smoothing: antialiased;
}

/* Ensure button icons never shrink and stay optically centered */
button svg,
a svg {
  flex-shrink: 0;
}
/* Multi-step Quote Navigation Buttons */
#prevBtn,
#nextBtn {
  height: 3rem !important;
  min-height: 3rem !important;
  min-width: 8.5rem;
  box-sizing: border-box;
}

#prevBtn:not([style*="display: none"]) {
  display: inline-flex !important;
}

/* Google Places Autocomplete Dropdown Styling */
.pac-container {
  z-index: 99999 !important;
  border-radius: 0.75rem !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
  font-family: var(--font-sans, system-ui, sans-serif) !important;
  margin-top: 6px !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
  padding: 4px 0 !important;
}
.pac-item {
  padding: 9px 14px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #334155 !important;
  cursor: pointer !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.pac-item:first-child {
  border-top: none !important;
}
.pac-item:hover,
.pac-item-selected {
  background-color: #eff6ff !important;
  color: #1037B6 !important;
}
.pac-item-query {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  padding-right: 4px !important;
}
.pac-icon {
  margin-top: 0 !important;
  flex-shrink: 0 !important;
}
.pac-matched {
  font-weight: 700 !important;
  color: #1037B6 !important;
}

/* ==========================================================================
   Page Content Safe Margins — Prevent Overlapping Floating Buttons
   Excluded: Header, Page Banners, Hero Section, Footer
   Applied to: All main content containers across all pages
   Ensures content is attractively proportioned ("little small") and completely
   clears the floating Call FAB, Tawk.to widget, and Scroll-to-top button.
   ========================================================================== */

/* Container Side Margins: 50px each side (decreasing margin as requested) */
.container:not(header *):not(#hero-section *):not(.hero-section *):not(.page-banner *) {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(20px, 5vw, 50px) !important;
  padding-right: clamp(20px, 5vw, 50px) !important;
  box-sizing: border-box !important;
}

/* Small Tablets / Large Phones (>= 640px): 50px each side */
@media (min-width: 640px) {
  .container:not(header *):not(#hero-section *):not(.hero-section *):not(.page-banner *) {
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
}

/* Tablets (>= 768px): 50px each side */
@media (min-width: 768px) {
  .container:not(header *):not(#hero-section *):not(.hero-section *):not(.page-banner *) {
    max-width: 100% !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
}

/* Laptops / Desktops (>= 1024px): 50px each side */
@media (min-width: 1024px) {
  .container:not(header *):not(#hero-section *):not(.hero-section *):not(.page-banner *) {
    max-width: 100% !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
}

/* Standard Screens & Laptops (>= 1280px): 50px each side */
@media (min-width: 1280px) {
  .container:not(header *):not(#hero-section *):not(.hero-section *):not(.page-banner *) {
    max-width: 1320px !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
}

/* Wide Screens (>= 1536px): 50px each side */
@media (min-width: 1536px) {
  .container:not(header *):not(#hero-section *):not(.hero-section *):not(.page-banner *) {
    max-width: 1440px !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
}

/* Mobile-friendly Form Inputs (prevents iOS Safari auto-zoom on focus) */
@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  .select2-container--default .select2-selection--single {
    font-size: 16px !important;
  }
}

