/* =========================================================
   US Warehousing and Logistics — uswalt.com
   Modern responsive stylesheet (single file, no dependencies)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --c-primary: #1f4e9d;        /* brand blue */
  --c-primary-dark: #163b78;
  --c-primary-light: #e8eef9;
  --c-accent: #f5a623;         /* brand gold */
  --c-accent-dark: #d68910;
  --c-section-title: #a8423c;  /* legacy section title */
  --c-text: #1f2937;
  --c-text-muted: #5b6470;
  --c-border: #e3e7ee;
  --c-bg: #ffffff;
  --c-bg-soft: #f7f9fc;
  --c-bg-alt: #eef2f8;
  --c-success: #2f7a4d;

  --maxw: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(15, 27, 50, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 27, 50, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 27, 50, 0.12);
  --t-fast: 150ms ease;
  --t-base: 220ms ease;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { color: var(--c-text); line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 2.5vw + 1rem, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 1.4vw + 1rem, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  /* Tighter vertical rhythm — was clamp(48px, 7vw, 96px), wasted ~190px between
     adjacent sections at desktop. Now ~2 line-heights of breathing room. */
  padding: clamp(20px, 3vw, 32px) 0;
}
.section-soft { background: var(--c-bg-soft); }
.section-alt { background: var(--c-bg-alt); }
.section-title { text-align: center; margin-bottom: 1.4rem; }
.section-title h2 { color: var(--c-primary); margin-bottom: 0.4rem; }
.section-title p { color: var(--c-text-muted); max-width: 640px; margin: 0 auto; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--c-primary); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--c-primary-dark); }
.brand-logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-weight: 500; color: var(--c-text-muted); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  width: 42px; height: 42px; padding: 0; cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--c-primary-light); }
.nav-toggle .bar {
  display: block; width: 20px; height: 2px; background: var(--c-text); margin: 4px auto;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 4px; align-items: center;
}
.site-nav a {
  display: inline-block; padding: 8px 14px;
  color: var(--c-text); font-weight: 500; font-size: 0.96rem;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
.site-nav a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.site-nav a[aria-current="page"] { color: var(--c-primary); background: var(--c-primary-light); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height var(--t-base);
  }
  .site-nav[data-open="true"] { max-height: 480px; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px; gap: 2px; }
  .site-nav a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(245,166,35,0.18), transparent 60%),
    linear-gradient(135deg, #1f4e9d 0%, #163b78 60%, #0f2a59 100%);
  color: #fff;
  /* Tighter — was clamp(64px, 10vw, 140px) top, clamp(80px, 12vw, 160px) bottom.
     Cut roughly in half so the title sits closer to the nav. */
  padding: clamp(32px, 5vw, 60px) 0 clamp(56px, 8vw, 96px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--c-bg));
}
/* H1 + lede go full container width — they now extend to match the home-hero image edges below. */
.hero h1 { color: #fff; margin-bottom: 0.6em; }
.hero .lede { font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem); color: rgba(255,255,255,0.88); }
/* Buttons centered horizontally below the lede paragraph. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; justify-content: center; }
/* Four stat cells spread across the full hero width — first aligns to the left edge of the image,
   last aligns to the right edge. Wider gap so they don't crowd at the start. */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 3rem; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.hero-stat { text-align: left; }
.hero-stat strong { display: block; font-size: 2rem; color: var(--c-accent); font-weight: 700; line-height: 1.1; }
.hero-stat span { color: rgba(255,255,255,0.78); font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn-primary { background: var(--c-accent); color: #1a1a1a; }
.btn-primary:hover { background: var(--c-accent-dark); color: #1a1a1a; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-light); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3dae8; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--c-primary-light); color: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { color: var(--c-primary); margin-bottom: 0.4em; }
.card p { color: var(--c-text-muted); margin-bottom: 1em; flex-grow: 1; }
.card .more {
  font-weight: 600; color: var(--c-primary); font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.card .more::after { content: "→"; transition: transform var(--t-fast); }
.card:hover .more::after { transform: translateX(3px); }

/* ---------- Listing cards (Cases / News) ---------- */
.listing-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.listing-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.listing-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--c-primary-light), #fff);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-primary); font-weight: 600;
  overflow: hidden;
}
.listing-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-base);
}
.listing-card:hover .thumb img { transform: scale(1.04); }
/* When a listing-card thumb contains only an icon (no image), collapse the
   16:9 area to just a small banner — don't waste a huge gradient on a tiny SVG. */
.listing-card .thumb:not(:has(img)) {
  aspect-ratio: auto;
  padding: 22px 0 14px;
  background: linear-gradient(180deg, var(--c-primary-light) 0%, #fff 100%);
}
.listing-card .thumb svg {
  width: 36px; height: 36px;
  opacity: 0.7;
}
.listing-card .body { padding: 22px 24px; flex-grow: 1; display: flex; flex-direction: column; }
.listing-card .meta { font-size: 0.82rem; color: var(--c-text-muted); margin-bottom: 8px; letter-spacing: 0.02em; text-transform: uppercase; }
.listing-card h3 { color: var(--c-primary); }
.listing-card p { color: var(--c-text-muted); flex-grow: 1; }
.listing-card .more { font-weight: 600; color: var(--c-primary); align-self: flex-start; margin-top: 12px; }
.listing-card .more::after { content: " →"; }

/* ---------- Article (detail page) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff; padding: 36px 0 32px;
}
.page-header h1 { color: #fff; margin: 0; }
.page-header .crumbs { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin-bottom: 12px; }
.page-header .crumbs a { color: #fff; opacity: 0.85; }
.page-header .crumbs a:hover { opacity: 1; }
.article {
  max-width: 760px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0;
}
.article p { color: var(--c-text); line-height: 1.75; }
.article h2 { color: var(--c-primary); margin-top: 1.8em; }
.article h3 { color: var(--c-primary); margin-top: 1.4em; }
.article ul, .article ol { padding-left: 22px; line-height: 1.75; }
.article ul li, .article ol li { margin-bottom: 0.4em; }
.article .tag { display: inline-block; background: var(--c-primary-light); color: var(--c-primary); font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.4em; }
.article-back { margin-top: 3rem; }

/* ---------- Two-column feature ---------- */
.feature {
  display: grid; gap: 36px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature.alt { direction: rtl; }
.feature.alt > * { direction: ltr; }
.feature h2 { color: var(--c-primary); }
.feature ul { padding-left: 20px; line-height: 1.7; }
.feature .visual {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary-light), #fff);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border);
}
.feature .visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid; gap: 24px; padding: 48px;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.stats .stat strong { display: block; font-size: 2rem; color: var(--c-accent); line-height: 1.1; font-weight: 700; }
.stats .stat span { color: rgba(255,255,255,0.85); }

/* ---------- Warehouse split ---------- */
.warehouse-split { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .warehouse-split { grid-template-columns: 1fr 1fr; } }
.warehouse-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.warehouse-card .head {
  padding: 22px 28px; background: var(--c-primary); color: #fff;
  display: flex; align-items: center; gap: 12px;
}
.warehouse-card .head h3 { color: #fff; margin: 0; }
.warehouse-card .head .pin { width: 28px; height: 28px; }
.warehouse-card .body { padding: 28px; }
.warehouse-card ul { padding-left: 18px; }

/* ---------- Contact panel ---------- */
.contact-panel {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm);
}
@media (min-width: 880px) { .contact-panel { grid-template-columns: 1.1fr 1fr; } }
.contact-info dt { font-size: 0.78rem; font-weight: 600; color: var(--c-text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1.2em; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 4px 0 0; font-size: 1.05rem; }
.contact-info dd a { font-weight: 600; }
.contact-map {
  background: var(--c-primary-light); border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 320px;
  color: var(--c-primary);
  display: flex;
}
.contact-map iframe {
  width: 100%; height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}
.contact-map svg { width: 56px; height: 56px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff; padding: clamp(28px, 4vw, 48px) 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 0.5em; }
.cta-strip p { color: rgba(255,255,255,0.86); max-width: 600px; margin: 0 auto 1.5em; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f2a59; color: rgba(255,255,255,0.82);
  padding: 56px 0 24px; margin-top: 0;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  margin-bottom: 36px;
}
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-logo { width: 32px; height: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 6px; }
.site-footer ul li a { color: rgba(255,255,255,0.78); }
.site-footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px; margin-top: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
}

/* ---------- Utilities ---------- */
.text-muted { color: var(--c-text-muted); }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--c-text-muted); }

/* ---------- Locations / region cards ---------- */
.warehouse-split-3 { grid-template-columns: 1fr; }
@media (min-width: 880px)  { .warehouse-split-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .warehouse-split-3 { grid-template-columns: repeat(3, 1fr); } }

.region-block {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 32px;
  overflow: hidden;
}
.region-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.region-head .pin { width: 26px; height: 26px; color: var(--c-primary); }
.region-head h3 {
  margin: 0; color: var(--c-primary);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.region-count {
  font-size: 0.78rem; font-weight: 600;
  color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.region-block .warehouse-image {
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  aspect-ratio: 16 / 5;
  max-height: 280px;
}
.region-blurb {
  color: var(--c-text);
  margin-bottom: 22px;
}
.city-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .city-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .city-grid { grid-template-columns: repeat(4, 1fr); } }
.city-card {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.city-card h4 {
  margin: 0 0 6px;
  color: var(--c-primary);
  font-size: 1.05rem;
}
.city-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--c-text-muted);
}

/* ---------- Photographic imagery ---------- */
/* Article-level hero (used by services / cases / news detail pages and About) */
.hero-image-wrap {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.hero-image {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  background: var(--c-bg-alt);
}

/* Home-page hero photo, sits between the hero text block and the services grid */
.home-hero-image-wrap {
  max-width: var(--maxw);
  margin: -56px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.home-hero-image {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  background: var(--c-bg-alt);
}
@media (max-width: 600px) {
  .home-hero-image-wrap { margin-top: -24px; }
  .home-hero-image { aspect-ratio: 4 / 3; }
}

/* Inside the LA / NJ / GA warehouse cards on home + warehouses pages */
.warehouse-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--c-bg-alt);
}

/* Print-friendly */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-strip { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
