/* ============================================================
   TEZ ERP — TEZ Inventory Module Stylesheet
   Swiss Editorial Typography: -0.055em Tracking, 0.95 Leading
   ============================================================ */

.inventoryPage {
  --stock: #f4ff3d;
  --stockOrange: #ff6a2a;
  --stockInk: #020617;
  --stockPale: #eef0e7;
  color: var(--stockInk);
  background: #ffffff;
  font-family: var(--font-body, 'Inter', sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ 1. HERO SECTION ============ */
.inventoryHero {
  background:
    radial-gradient(circle at 88% 8%, rgba(216, 154, 36, .25), transparent 28%),
    radial-gradient(circle at 56% 90%, rgba(8, 127, 120, .16), transparent 34%),
    #f7f5ef;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.25fr);
  align-items: center;
  gap: clamp(36px, 4.5vw, 64px);
  min-height: 0;
  padding: clamp(46px, 5vw, 72px) clamp(36px, 5vw, 76px);
  display: grid;
  position: relative;
  overflow: hidden;
}

.inventoryCopy > span,
.inventoryStatement > span,
.inventoryCoreHead > span,
.inventoryFlow > div > span,
.inventoryValuation > div > span,
.inventoryStory > span,
.inventoryFinal > span {
  letter-spacing: 0.2em;
  color: #c74613;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  display: block;
}

.inventoryHero h1 {
  margin: 18px 0 20px;
  color: var(--stockInk);
}

.inventoryHero h1 em {
  color: #d64b15;
  font-style: normal;
}

.inventoryCopy > p {
  color: #52615b;
  max-width: 640px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  font-weight: 400;
  margin: 0;
}

.inventoryActions {
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
}

.btn-inventory-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stockInk);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14.5px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-inventory-primary:hover {
  background: #182e26;
  transform: translateY(-2px);
}

.btn-inventory-link {
  color: var(--stockInk) !important;
  font-size: 14.5px;
  font-weight: 600;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ledger-line, rgba(16, 36, 62, .13));
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.btn-inventory-link:hover {
  border-color: #d64b15;
  background: #ffffff;
  color: #d64b15 !important;
  transform: translateY(-2px);
}

/* ============ LIVE STOCK DASHBOARD IMAGE ============ */
.inventoryHeroArt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.inventoryHeroArt img {
  width: 100%;
  max-width: 660px;
  height: auto;
  border-radius: 14px;
  box-shadow: 13px 15px 0 rgba(16, 36, 62, .1), 0 20px 45px rgba(16, 36, 62, .18);
  transform: rotate(1deg);
}

/* ============ 2. PROOF PILLARS STRIP ============ */
.inventoryProof {
  background: var(--stockOrange);
  color: #ffffff;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 6vw;
  display: grid;
}

.inventoryProof span {
  text-align: center;
  letter-spacing: 0.1em;
  border-right: 1px solid #ff9a6e;
  padding: 28px 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.inventoryProof span:last-child {
  border-right: none;
}

/* ============ 3. EDITORIAL STATEMENT ============ */
.inventoryStatement {
  background: #ffffff;
  padding: 130px 8vw;
  text-align: center;
}

.inventoryStatement h2 {
  font-family: var(--font-display, 'Inter', sans-serif);
  letter-spacing: -0.055em;
  margin: 24px auto;
  font-size: clamp(48px, 6vw, 90px);
  line-height: 0.95;
  font-weight: 400;
  color: var(--stockInk);
  max-width: 1100px;
}

.inventoryStatement p {
  color: #52615b;
  max-width: 800px;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
  margin: 0 auto;
}

/* ============ 4. ITEM-LEVEL CONTROL GRID ============ */
.inventoryCore {
  background: var(--stockPale);
  padding: 110px 6vw 125px;
}

.inventoryCoreHead {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 65px;
}

.inventoryCoreHead h2 {
  font-family: var(--font-display, 'Inter', sans-serif);
  letter-spacing: -0.055em;
  margin: 0;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 0.95;
  font-weight: 400;
  color: var(--stockInk);
  text-align: center;
}

.inventoryCoreGrid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  display: grid;
}

.inventoryCoreGrid article {
  background: #ffffff;
  border: 1px solid #c8cec8;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 350px;
  padding: 36px;
  transition: all 0.25s ease;
  display: flex;
}

.inventoryCoreGrid article:nth-child(2),
.inventoryCoreGrid article:nth-child(4),
.inventoryCoreGrid article:nth-child(6) {
  background: #fff4ed;
}

.inventoryCoreGrid article:hover {
  background: var(--stock);
  transform: translateY(-6px);
}

.inventoryCoreGrid small {
  color: #d64b15;
  font-weight: 600;
  font-size: 11px;
}

.inventoryCoreGrid h3 {
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 600;
  color: var(--stockInk);
}

.inventoryCoreGrid p {
  color: #596861;
  line-height: 1.6;
  font-size: 14.5px;
  font-weight: 400;
  margin: 0;
}

.inventoryCoreGrid article > b {
  letter-spacing: 0.14em;
  margin-top: 20px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--stockInk);
}

/* ============ 5. CONNECTED MOVEMENT RAIL ============ */
.inventoryFlow {
  background: #0b1713;
  color: #ffffff;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 9vw;
  padding: 120px 7vw;
  display: grid;
  align-items: start;
}

.inventoryFlow h2 {
  font-family: var(--font-display, 'Inter', sans-serif);
  letter-spacing: -0.055em;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.95;
  font-weight: 400;
  color: #ffffff;
  margin-top: 18px;
}

.inventoryFlow > div > p {
  color: #aebdb6;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  margin: 18px 0 0;
}

.inventoryFlow ol {
  border-top: 1px solid #3b4c44;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inventoryFlow li {
  border-bottom: 1px solid #3b4c44;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 20px;
  padding: 26px 0;
  display: grid;
  align-items: start;
}

.inventoryFlow li small {
  color: var(--stock);
  font-size: 12px;
  font-weight: 600;
}

.inventoryFlow li b {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.inventoryFlow li span {
  color: #adbbb5;
  line-height: 1.55;
  font-size: 14px;
  font-weight: 400;
}

/* ============ 6. VALUATION METHODS ============ */
.inventoryValuation {
  background: #fff1e8;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 8vw;
  padding: 120px 7vw;
  display: grid;
  align-items: start;
}

.inventoryValuation h2 {
  font-family: var(--font-display, 'Inter', sans-serif);
  letter-spacing: -0.055em;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.95;
  font-weight: 400;
  color: var(--stockInk);
  margin-top: 18px;
}

.inventoryValuation p {
  color: #596761;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  margin: 18px 0 0;
}

.valuationStack {
  border-top: 1px solid #cbbcb2;
}

.valuationStack article {
  border-bottom: 1px solid #cbbcb2;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 22px 0;
  display: grid;
}

.valuationStack small {
  color: #d64b15;
  font-weight: 600;
  font-size: 12px;
}

.valuationStack b {
  font-size: 18px;
  font-weight: 600;
  color: var(--stockInk);
}

.valuationStack span {
  letter-spacing: 0.13em;
  color: #c74613;
  font-size: 9.5px;
  font-weight: 700;
}

/* ============ 7. REAL-WORLD QUOTE (EXACT SWISS 1:1 REPLICATION) ============ */
.inventoryStory {
  background: var(--stock);
  color: var(--stockInk);
  padding: 120px 8vw;
}

.inventoryStory > span {
  color: #536000;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  display: block;
}

.inventoryStory blockquote {
  font-family: var(--font-display, 'Inter', sans-serif);
  letter-spacing: -0.055em;
  max-width: 1100px;
  margin: 30px 0;
  font-size: clamp(44px, 5.5vw, 68px);
  line-height: 0.95;
  font-weight: 400;
  color: var(--stockInk);
}

.quote-break {
  display: block;
}

.inventoryStory p {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #2e3a00;
  margin: 0;
}

/* ============ 8. CLOSING FINAL BAND ============ */
.inventoryFinal {
  text-align: center;
  color: #ffffff;
  background: linear-gradient(140deg, #0b1713, #17372b);
  padding: 135px 7vw;
}

.inventoryFinal > span {
  color: var(--stock);
}

.inventoryFinal h2 {
  font-family: var(--font-display, 'Inter', sans-serif);
  letter-spacing: -0.055em;
  max-width: 1100px;
  margin: 26px auto 38px;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.95;
  font-weight: 400;
  color: #ffffff;
}

.btn-inventory-final {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stock);
  color: #0b1713 !important;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(244, 255, 61, 0.25);
  transition: all 0.2s ease;
}

.btn-inventory-final:hover {
  background: #e2ee2a;
  box-shadow: 0 6px 22px rgba(244, 255, 61, 0.35);
}

/* ============ RESPONSIVE MEDIA QUERIES ============ */
@media (max-width: 900px) {
  .quote-break {
    display: inline;
  }

  .inventoryHero,
  .inventoryFlow,
  .inventoryValuation {
    grid-template-columns: 1fr;
  }

  .inventoryCoreGrid,
  .inventoryProof {
    grid-template-columns: 1fr 1fr;
  }

  .inventoryHeroArt img {
    transform: rotate(1deg);
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  .inventoryHero {
    padding: 65px 20px;
    min-height: auto;
  }

  .inventoryHero h1 {
    font-size: 46px;
  }

  .inventoryActions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-inventory-primary,
  .btn-inventory-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .inventoryHeroArt {
    padding: 10px 0;
  }

  .inventoryHeroArt img {
    transform: none;
    max-width: 100%;
  }

  .inventoryProof,
  .inventoryCoreGrid {
    grid-template-columns: 1fr;
  }

  .inventoryProof {
    padding: 0 20px;
  }

  .inventoryProof span {
    border-right: none !important;
    border-bottom: 1px solid #ff9a6e;
    padding: 20px 16px;
    text-align: center;
    display: block;
  }

  .inventoryProof span:last-child {
    border-bottom: none;
  }

  .inventoryStatement,
  .inventoryCore,
  .inventoryFlow,
  .inventoryValuation,
  .inventoryStory,
  .inventoryFinal {
    padding: 65px 20px;
  }

  .inventoryCoreGrid article {
    min-height: 270px;
  }

  .inventoryFlow li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .valuationStack article {
    grid-template-columns: 1fr auto;
  }

  .accountingStatement h2,
  .inventoryFinal h2 {
    font-size: 46px;
  }

  .inventoryStory blockquote {
    font-size: 36px;
  }
}
