/* =============================================================
   BriskCoders — ERP page
   Every rule is prefixed .erp- so nothing here can reach another
   page. Colours, type and spacing come from css/styles.css.
   ============================================================= */
.bg-cream { background: var(--cream); }
.erp-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin: 0 0 clamp(30px, 4vw, 48px); }
.erp-head .lead { max-width: 56ch; }

/* ===== 1. Banner ============================================== */
.erp-banner {
  position: relative; overflow: hidden;
  padding: clamp(34px, 5vw, 58px) var(--gutter) clamp(48px, 6vw, 78px);
  background: linear-gradient(180deg, #FFFBF4 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.erp-banner-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); align-items: center; }
.erp-banner-l { flex: 1.15 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.erp-banner h1 {
  margin: 0; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(32px, 4.6vw, 60px); line-height: 1.07; letter-spacing: -0.035em; max-width: 15ch;
}
.erp-banner h1 em { font-style: normal; color: var(--link); }
.erp-banner .lead { max-width: 52ch; }
.erp-banner .actions { margin-top: 4px; }

/* Scattered tools on the left, one system on the right */
.erp-swap { flex: 1 1 380px; min-width: 0; display: flex; align-items: stretch; gap: clamp(10px, 1.6vw, 18px); }
.erp-side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.erp-side-label { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.erp-scatter { position: relative; flex: 1; min-height: 212px; border: 1px dashed var(--line); border-radius: 20px; background: var(--cream); padding: 12px; }
.erp-bit {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 14px -10px rgba(80, 35, 0, .6); color: var(--ink-2);
}
.erp-bit .ic { width: 14px; height: 14px; color: var(--ink-3); }
.erp-bit:nth-child(1) { top: 14px;  left: 10px;  transform: rotate(-5deg); }
.erp-bit:nth-child(2) { top: 58px;  right: 8px;  transform: rotate(4deg); }
.erp-bit:nth-child(3) { top: 104px; left: 18px;  transform: rotate(2deg); }
.erp-bit:nth-child(4) { bottom: 44px; right: 14px; transform: rotate(-3deg); }
.erp-bit:nth-child(5) { bottom: 10px; left: 26px; transform: rotate(5deg); }

.erp-arrow { flex: none; align-self: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.erp-arrow .ic { width: 18px; height: 18px; color: var(--ink); }
.erp-one { flex: 1; min-height: 212px; border-radius: 20px; background: var(--ink); color: var(--white); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.erp-one-top { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--dark-line); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); }
.erp-one-top .ic { width: 15px; height: 15px; }
.erp-one-row { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #DADADA; }
.erp-one-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }
.erp-one-bar { margin-top: auto; height: 34px; border-radius: 10px; background: linear-gradient(90deg, var(--orange), var(--amber)); }
@media (max-width: 520px) {
  .erp-swap { flex-direction: column; }
  .erp-arrow { transform: rotate(90deg); }
  .erp-scatter, .erp-one { min-height: 190px; }
}

/* ===== 2. Module mosaic ======================================= */
.erp-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.3vw, 16px); }
@media (max-width: 1020px) { .erp-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .erp-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .erp-mosaic { grid-template-columns: 1fr; } }

.erp-mod {
  display: flex; flex-direction: column; gap: 9px; border-radius: 20px;
  padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); background: var(--white);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.erp-mod:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -40px rgba(80, 35, 0, .6); }
/* Every third tile is filled, so the grid reads as a mosaic
   rather than a plain card row. */
.erp-mod:nth-child(3n+2) { background: var(--cream); }
.erp-mod:nth-child(6n+4) { background: var(--ink); border-color: var(--ink); color: var(--white); }
.erp-mod:nth-child(6n+4) p { color: #CFCFCF; }
.erp-mod:nth-child(6n+4) .erp-mod-ic { background: rgba(255, 255, 255, .1); color: var(--orange); }
.erp-mod-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--peach); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.erp-mod-ic .ic { width: 21px; height: 21px; }
.erp-mod h3 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.erp-mod p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

.erp-note { margin: clamp(18px, 2.4vw, 26px) 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.erp-note b { font-weight: 700; color: var(--ink); }

/* ===== 3. Rollout rail ======================================== */
.erp-rail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); padding-top: 42px; }
/* the line the numbered nodes sit on */
.erp-rail::before {
  /* starts and stops at the first and last node, not the grid edge */
  content: ""; position: absolute; top: 19px; left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
}
.erp-phase { position: relative; display: flex; flex-direction: column; gap: 10px; }
.erp-node {
  position: absolute; top: -42px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--orange); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.erp-phase:first-child .erp-node { background: var(--orange); }
.erp-phase-card { flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; gap: 8px; }
.erp-phase-card h3 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.erp-phase-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.erp-when { margin-top: auto; padding-top: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--link); }
@media (max-width: 900px) {
  .erp-rail { grid-template-columns: 1fr; gap: 14px; padding-top: 0; padding-left: 54px; }
  .erp-rail::before { top: 10px; bottom: 10px; left: 19px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 10px, transparent 10px 18px); }
  .erp-node { top: 18px; left: -54px; transform: none; }
}

/* ===== 4. Contact ============================================= */
.erp-contact { position: relative; overflow: hidden; background: var(--cream); padding: var(--sec-pad) var(--gutter); border-top: 1px solid var(--line); }
.erp-contact-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); align-items: flex-start; }
.erp-contact-l { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.erp-contact-l h2 { max-width: 16ch; }
.erp-contact-l h2 span { color: var(--link); }
.erp-contact-l > p { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.erp-reach { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.erp-reach a { display: inline-flex; align-items: center; gap: 11px; font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; color: var(--ink); text-decoration: none; width: fit-content; max-width: 100%; word-break: break-word; }
.erp-reach a .ic { width: 20px; height: 20px; flex: none; color: var(--link); }
.erp-reach a:hover { color: var(--link); }
.erp-reach small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.erp-contact .form-card { flex: 1 1 400px; min-width: 0; }
