/* ============================================================
   TEZ ERP — TEZ Orders & Fulfilment Module Stylesheet
   Swiss Editorial Typography: -0.055em Tracking, 0.95 Leading
   ============================================================ */

.ordersPage {
  --order: #0568ff;
  --orderRed: #087f78;
  --orderInk: #10243e;
  --orderBlue: #0568ff;
  color: var(--orderInk);
  background: #e9edf0;
  font-family: var(--font-body, 'Inter', sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ 1. HERO SECTION ============ */
.ordersHero {
  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(380px, 1.4fr);
  align-items: center;
  gap: clamp(36px, 4.5vw, 64px);
  min-height: 0;
  padding: clamp(48px, 5.2vw, 76px) clamp(36px, 4.5vw, 68px);
  display: grid;
  position: relative;
  overflow: hidden;
}

.ordersCopy > span,
.ordersStatement > span,
.orderFlowHead > span,
.ordersCoreHead > span,
.ordersException > div > span,
.ordersFinal > span {
  letter-spacing: 0.18em;
  color: #087f78;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
}

.ordersHero h1 {
  margin: 18px 0 20px;
  color: var(--orderInk);
}

.ordersHero h1 em {
  color: #0568ff;
  font-style: normal;
}

.ordersCopy > p {
  color: #4c5c69;
  max-width: 600px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  font-weight: 400;
  margin: 0;
}

.ordersCopy > p.ordersSubtext {
  margin-top: 12px;
  color: #5d6e7e;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
}

.ordersActions {
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
}

.btn-orders-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orderInk);
  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-orders-primary:hover {
  background: #0568ff;
  transform: translateY(-2px);
}

.btn-orders-link {
  color: var(--orderInk) !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-orders-link:hover {
  border-color: #0568ff;
  background: #ffffff;
  color: #0568ff !important;
  transform: translateY(-2px);
}

/* ============ ORDER MANAGEMENT SCREENSHOT ============ */
.orderBoard {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid rgba(16, 36, 62, .18);
  box-shadow: 14px 18px 0 rgba(16, 36, 62, .065), 0 20px 48px rgba(16, 36, 62, .08);
  border-radius: 14px;
  overflow: hidden;
  transform: rotate(1deg);
}

.orderBoard img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ 2. PROOF PILLARS STRIP ============ */
.ordersProof {
  background: var(--orderInk);
  color: #ffffff;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 6vw;
  display: grid;
}

.ordersProof span {
  text-align: center;
  letter-spacing: 0.1em;
  border-right: 1px solid rgba(255, 255, 255, .1);
  padding: 28px 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.ordersProof span:last-child {
  border-right: none;
}

/* ============ 3. EDITORIAL STATEMENT ============ */
.ordersStatement {
  background: #ffffff;
  padding: 130px 8vw;
  text-align: center;
}

.ordersStatement 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(--orderInk);
  max-width: 1100px;
}

.ordersStatement p {
  color: #56616a;
  max-width: 800px;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
  margin: 0 auto;
}

/* ============ 4. THE COMPLETE ORDER JOURNEY ============ */
.orderFlow {
  background: var(--orderInk);
  color: #ffffff;
  padding: 110px 6vw 125px;
}

.orderFlowHead {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 65px;
}

.orderFlowHead > span {
  color: var(--order);
}

.orderFlowHead 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: #ffffff;
  text-align: center;
}

.orderFlowRail {
  border-top: 1px solid #41505a;
  border-left: 1px solid #41505a;
  grid-template-columns: repeat(5, 1fr);
  display: grid;
}

.orderFlowRail article {
  border-bottom: 1px solid #41505a;
  border-right: 1px solid #41505a;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 350px;
  padding: 28px;
  transition: all 0.25s ease;
  display: flex;
  background: transparent;
}

.orderFlowRail article:hover {
  background: var(--order);
  color: var(--orderInk);
  transform: translateY(-6px);
}

.orderFlowRail small {
  color: var(--order);
  font-weight: 600;
  font-size: 11px;
}

.orderFlowRail article:hover small {
  color: #784c00;
}

.orderFlowRail h3 {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.orderFlowRail article:hover h3 {
  color: var(--orderInk);
}

.orderFlowRail p {
  color: #b5c0c6;
  line-height: 1.6;
  font-size: 14.5px;
  font-weight: 400;
  margin: 0;
}

.orderFlowRail article:hover p {
  color: #354047;
}

/* ============ 5. CONTROL BEHIND THE CUSTOMER EXPERIENCE GRID ============ */
.ordersCore {
  background: #e8f0ff;
  padding: 115px 6vw 125px;
}

.ordersCoreHead {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 65px;
}

.ordersCoreHead 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(--orderInk);
  text-align: center;
}

.ordersCoreGrid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  display: grid;
}

.ordersCoreGrid article {
  background: #ffffff;
  border: 1px solid #c0cce0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 350px;
  padding: 36px;
  transition: all 0.25s ease;
  display: flex;
}

.ordersCoreGrid article:nth-child(2),
.ordersCoreGrid article:nth-child(4),
.ordersCoreGrid article:nth-child(6) {
  background: #fff5dc;
}

.ordersCoreGrid article:hover {
  background: var(--order);
  transform: translateY(-5px);
}

.ordersCoreGrid small {
  color: #0568ff;
  font-weight: 600;
  font-size: 11px;
}

.ordersCoreGrid h3 {
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 600;
  color: var(--orderInk);
}

.ordersCoreGrid p {
  color: #5b6671;
  line-height: 1.6;
  font-size: 14.5px;
  font-weight: 400;
  margin: 0;
}

.ordersCoreGrid article > b {
  letter-spacing: 0.13em;
  margin-top: 24px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--orderInk);
}

/* ============ 6. MANAGE BY EXCEPTION ============ */
.ordersException {
  background: #fff4e6;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8vw;
  padding: 120px 7vw;
  display: grid;
  align-items: start;
}

.ordersException 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: var(--orderInk);
  margin-top: 18px;
}

.ordersException > div > p {
  color: #5d666c;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  margin: 18px 0 0;
}

.exceptionList {
  border-top: 1px solid #ccbba7;
}

.exceptionList article {
  border-bottom: 1px solid #ccbba7;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 22px 0;
  display: grid;
}

.exceptionList small {
  color: #0568ff;
  font-weight: 600;
  font-size: 12px;
}

.exceptionList b {
  font-size: 18px;
  font-weight: 600;
  color: var(--orderInk);
}

.exceptionList span {
  letter-spacing: 0.12em;
  color: #087f78;
  font-size: 9.5px;
  font-weight: 700;
}

/* ============ 7. KEY OPERATIONAL OUTCOMES ============ */
.ordersOutcome {
  background: var(--order);
  color: var(--orderInk);
  grid-template-columns: repeat(4, 1fr);
  padding: 0 6vw;
  display: grid;
}

.ordersOutcome div {
  border-right: 1px solid #cc8c00;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 40px 28px;
  display: flex;
}

.ordersOutcome div:last-child {
  border-right: none;
}

.ordersOutcome b {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ordersOutcome span {
  font-size: 13px;
  font-weight: 500;
  color: #3b2c00;
}

/* ============ 8. CLOSING FINAL BAND ============ */
.ordersFinal {
  text-align: center;
  background:
    radial-gradient(circle at 18% 22%, rgba(5, 104, 255, .1), transparent 34%),
    radial-gradient(circle at 84% 70%, rgba(216, 154, 36, .18), transparent 38%),
    linear-gradient(120deg, #e9f2f8 0%, #f6f7e8 100%);
  padding: 135px 7vw;
}

.ordersFinal > span {
  letter-spacing: 0.2em;
  color: #0568ff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  display: block;
}

.ordersFinal 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: var(--orderInk);
}

.btn-orders-final {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orderInk);
  color: #ffffff !important;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(16, 23, 29, 0.25);
  transition: all 0.2s ease;
}

.btn-orders-final:hover {
  background: #0568ff;
  box-shadow: 0 6px 22px rgba(5, 104, 255, 0.35);
}

/* ============ RESPONSIVE MEDIA QUERIES ============ */
@media (max-width: 1050px) {
  .orderFlowRail {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .ordersHero,
  .ordersException {
    grid-template-columns: 1fr;
  }

  .ordersCoreGrid,
  .ordersProof,
  .ordersOutcome {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .ordersHero {
    padding: 65px 20px;
    min-height: auto;
  }

  .ordersHero h1 {
    font-size: 46px;
  }

  .ordersActions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-orders-primary,
  .btn-orders-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .orderBoard {
    box-shadow: 8px 10px 0 rgba(16, 36, 62, .07);
    margin-top: 30px;
  }

  .ordersProof,
  .orderFlowRail,
  .ordersCoreGrid,
  .ordersOutcome {
    grid-template-columns: 1fr;
  }

  .ordersProof,
  .ordersOutcome {
    padding: 0 20px;
  }

  .ordersProof span,
  .ordersOutcome span {
    border-right: none !important;
    border-bottom: 1px solid #ff8a79;
    padding: 20px 16px;
    text-align: center;
    display: block;
  }

  .ordersProof span:last-child,
  .ordersOutcome span:last-child {
    border-bottom: none;
  }

  .ordersStatement,
  .orderFlow,
  .ordersCore,
  .ordersException,
  .ordersFinal {
    padding: 65px 20px;
  }

  .orderFlowRail article,
  .ordersCoreGrid article {
    min-height: 260px;
  }

  .exceptionList article {
    grid-template-columns: 1fr auto;
  }

  .ordersStatement h2,
  .ordersFinal h2 {
    font-size: 46px;
  }
}
