/*
Theme Name: WSI Modern
Theme URI: https://warehousesys.com/
Author: Warehouse Systems
Description: Modern custom WordPress theme for Warehouse Systems Inc. Built to replace the legacy Matrix theme while keeping editable WordPress pages.
Version: 1.0.0
Text Domain: wsi-modern
*/

:root {
  --wsi-ink: #17202a;
  --wsi-muted: #5f6b76;
  --wsi-line: #d9e0e6;
  --wsi-panel: #f5f7f9;
  --wsi-orange: #f16739;
  --wsi-blue: #0f6686;
  --wsi-dark: #263540;
  --wsi-max: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--wsi-ink);
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.topbar { background: var(--wsi-dark); color: #eef5f8; font-size: 14px; }
.topbar__inner,
.site-header__inner,
.site-main__inner,
.site-footer__inner {
  width: min(var(--wsi-max), calc(100% - 48px));
  margin: 0 auto;
}
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--wsi-line); }
.site-header__inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-logo img { width: 260px; max-width: 100%; height: auto; max-height: none; object-fit: contain; display: block; border: 0; }
.main-navigation { position: relative; z-index: 1; background: transparent; }
.menu-toggle { display: none; border: 1px solid var(--wsi-line); background: #fff; border-radius: 6px; padding: 10px 12px; font-weight: 700; }
.primary-menu,
.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; }
.primary-menu li { position: relative; }
.primary-menu a { display: block; padding: 13px 9px; border-radius: 6px; white-space: nowrap; }
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a { background: #eef3f6; color: var(--wsi-blue); }
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 235px;
  background: #fff;
  border: 1px solid var(--wsi-line);
  box-shadow: 0 18px 38px rgba(20,30,40,.16);
  padding: 8px;
}
.primary-menu li:hover > .sub-menu { display: grid; gap: 2px; }
.primary-menu .sub-menu a { padding: 8px 10px; }
.hero,
.page-hero {
  color: #fff;
  background: linear-gradient(90deg, rgba(13,38,51,.9), rgba(13,38,51,.45)), var(--hero-image) center/cover no-repeat;
}
.hero { min-height: 560px; display: flex; align-items: center; }
.page-hero { padding: 96px 0; }
.hero__inner,
.page-hero__inner {
  width: min(var(--wsi-max), calc(100% - 48px));
  margin: 0 auto;
}
.eyebrow { color: var(--wsi-orange); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.04; margin: 12px 0 18px; max-width: 900px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.hero p,
.page-hero p { max-width: 780px; font-size: 20px; color: #eef5f8; }
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--wsi-orange);
  color: #fff;
  font-weight: 800;
}
.site-main { padding: 72px 0; }
.entry-content { font-size: 17px; }
.entry-content p,
.entry-content li { color: #3f4a53; }
.entry-content h2,
.entry-content h3 { color: var(--wsi-ink); margin-top: 26px; }
.entry-content h3 { color: var(--wsi-blue); font-size: 22px; }
.entry-content ul { padding-left: 22px; }
.entry-content .wp-block-columns { gap: 24px; }
.entry-content img { border-radius: 8px; border: 1px solid var(--wsi-line); }
.wsi-section { padding: 28px 0; }
.wsi-section:first-child { padding-top: 0; }
.wsi-kicker { color: var(--wsi-orange); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 8px; }
.wsi-lead { color: var(--wsi-muted); font-size: 20px; max-width: 900px; }
.wsi-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 26px; }
.wsi-card { border: 1px solid var(--wsi-line); border-radius: 8px; overflow: hidden; background: #fff; }
.wsi-card img { width: 100%; height: 210px; object-fit: cover; border: 0; border-radius: 0; }
.wsi-card__body { padding: 22px; }
.wsi-card h3 { margin-top: 0; color: var(--wsi-blue); }
.wsi-card a { color: var(--wsi-orange); font-weight: 800; }
.wsi-band { background: var(--wsi-panel); margin: 40px 0; padding: 56px 24px; border-radius: 8px; }
.wsi-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; align-items: center; }
.wsi-split img { width: 100%; min-height: 320px; object-fit: cover; }
.wsi-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 26px; }
.wsi-stat { background: #fff; border: 1px solid var(--wsi-line); border-radius: 8px; padding: 18px; }
.wsi-stat strong { display: block; color: var(--wsi-blue); font-size: 24px; line-height: 1.1; }
.wsi-stat span { display: block; margin-top: 6px; color: var(--wsi-muted); font-weight: 700; }
.wsi-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; counter-reset: service-step; }
.wsi-process article { position: relative; border: 1px solid var(--wsi-line); border-radius: 8px; background: #fff; padding: 24px; }
.wsi-process article::before { counter-increment: service-step; content: counter(service-step, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; background: var(--wsi-blue); color: #fff; font-weight: 800; margin-bottom: 16px; }
.wsi-process h3 { margin-top: 0; color: var(--wsi-blue); }
.wsi-process ul { padding-left: 20px; }
.wsi-service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 0; list-style: none; }
.wsi-service-list li { border-left: 4px solid var(--wsi-orange); background: #fff; padding: 14px 16px; color: var(--wsi-dark); font-weight: 700; }
.wsi-media-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: stretch; margin-top: 24px; }
.wsi-media-row img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.cta { background: var(--wsi-blue); color: #fff; padding: 48px 0; }
.cta__inner { width: min(var(--wsi-max), calc(100% - 48px)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta h2 { margin: 0; font-size: 28px; }
.site-footer { background: #111920; color: #cbd5dc; padding: 38px 0 24px; }
.site-footer a { color: #fff; }
.site-footer small { display: block; color: #9ba7af; border-top: 1px solid #2d3943; padding-top: 16px; margin-top: 20px; }
.contact-card {
  border: 1px solid var(--wsi-line);
  border-radius: 8px;
  padding: 22px;
  background: var(--wsi-panel);
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-menu {
    display: none;
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--wsi-line);
    padding: 12px 24px;
    flex-direction: column;
    align-items: stretch;
  }
  .primary-menu.is-open { display: flex; }
  .primary-menu .sub-menu { position: static; display: grid; border: 0; box-shadow: none; padding-left: 20px; }
}
@media (max-width: 560px) {
  .topbar__inner,
  .site-header__inner,
  .site-main__inner,
  .site-footer__inner,
  .hero__inner,
  .page-hero__inner,
  .cta__inner { width: min(100% - 36px, var(--wsi-max)); }
  .site-logo img { width: 225px; }
  .site-main { padding: 52px 0; }
  .wsi-split { grid-template-columns: 1fr; }
  .wsi-media-row { grid-template-columns: 1fr; }
}
