/* ===========================
   WAREHOUSE-ARTICLE.CSS
   Layout for warehouse/distribution article pages.
   Uses .article-hero instead of .hero and has
   a different sidebar and TOC style.
   Loads after page-common.css.
   =========================== */

/* ───────────────────────────
   WAREHOUSE HERO
   ─────────────────────────── */
.article-hero {
  background:
    linear-gradient(105deg, rgba(7,27,51,.97), rgba(7,27,51,.88), rgba(15,63,112,.65)),
    radial-gradient(circle at 75% 35%, rgba(245,130,32,.38), transparent 30%);
  color: var(--white);
  padding: 80px 0 72px;
}

.article-hero-inner { max-width: 860px; }

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cat-tag {
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 4px;
}

.cat-breadcrumb { font-size: 13px; color: rgba(255,255,255,.55); }
.cat-breadcrumb a { color: rgba(255,255,255,.7); }
.cat-breadcrumb a:hover { color: var(--orange); }

.article-hero h1 {
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -1.5px;
}

.article-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.65); }
.meta-item strong { color: rgba(255,255,255,.88); font-weight: 700; }

/* ───────────────────────────
   ARTICLE LAYOUT
   ─────────────────────────── */
.article-layout {
  padding: 70px 0 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.article-body { min-width: 0; }

.article-body h2 {
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
  margin: 48px 0 16px;
  letter-spacing: -.5px;
  padding-top: 8px;
  border-top: 3px solid var(--orange);
  display: inline-block;
}

.article-body h2:first-child { margin-top: 0; }

.article-body p { font-size: 18px; line-height: 1.8; color: #3a454f; margin: 0 0 20px; }

.article-body ul { list-style: none; padding: 0; margin: 0 0 24px; }

.article-body ul li {
  font-size: 17px;
  line-height: 1.7;
  color: #3a454f;
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.article-body ul li:last-child { border-bottom: none; }

.article-body ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 900;
}

/* ───────────────────────────
   PULL QUOTE
   ─────────────────────────── */
.pull-quote {
  background: var(--soft);
  border-left: 5px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 28px 32px;
  margin: 36px 0;
}

.pull-quote p {
  font-size: 20px !important;
  font-weight: 800;
  color: var(--navy) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  font-style: italic;
}

/* ───────────────────────────
   INLINE CTA
   ─────────────────────────── */
.article-cta-inline {
  background: linear-gradient(105deg, var(--navy), var(--blue));
  border-radius: 14px;
  padding: 36px;
  margin: 48px 0;
  color: var(--white);
}

.article-cta-inline h3 { font-size: 22px; margin: 0 0 12px; }
.article-cta-inline p  { font-size: 16px; color: rgba(255,255,255,.8); margin: 0 0 22px; line-height: 1.65; }

/* ───────────────────────────
   SIDEBAR (warehouse variant)
   ─────────────────────────── */
.article-sidebar { position: sticky; top: 100px; }

.sidebar-card h3 {
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  margin: 0 0 18px;
}

.sidebar-card p { font-size: 15px; color: var(--gray); margin: 0 0 18px; line-height: 1.65; }
.sidebar-card .btn { display: block; text-align: center; font-size: 14px; }

/* ───────────────────────────
   TOC LIST (warehouse variant)
   ─────────────────────────── */
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { padding: 0; border-bottom: none; }
.toc-list li::before { display: none; }

.toc-list a {
  display: block;
  font-size: 14px;
  color: var(--gray);
  font-weight: 700;
  padding: 9px 0 9px 14px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.toc-list li:last-child a { border-bottom: none; }
.toc-list a:hover { color: var(--navy); border-left-color: var(--orange); }

/* ───────────────────────────
   RELATED ARTICLES (warehouse variant)
   ─────────────────────────── */
.related-article { padding: 12px 0; border-bottom: 1px solid var(--border); }
.related-article:last-child { border-bottom: none; padding-bottom: 0; }

.related-article a {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  display: block;
  margin-bottom: 4px;
}

.related-article a:hover { color: var(--orange); }
.related-article span { font-size: 12px; color: var(--gray); }

/* ───────────────────────────
   SIDEBAR ASSESS (warehouse CTA)
   ─────────────────────────── */
.sidebar-assess {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 14px;
  padding: 28px;
  color: var(--white);
}

.sidebar-assess h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--white);
  border-bottom: none;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
}

.sidebar-assess p  { font-size: 14px; color: rgba(255,255,255,.75); margin: 0 0 18px; line-height: 1.65; }
.sidebar-assess .btn { display: block; text-align: center; font-size: 14px; }

/* ───────────────────────────
   RESPONSIVE
   ─────────────────────────── */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 680px) {
  .article-hero h1 { font-size: 28px; letter-spacing: -.5px; }
  .article-body h2 { font-size: 22px; }
  .article-body p  { font-size: 16px; }
}
