/* ============================================================
   The ERP Group — page-specific refinements
   Layered OVER modern.css (the shared sibling design system).
   Keeps the blue/Inter family for continuity, but sharpens the
   parent brand: asymmetric textured hero, two differentiated
   brand panels (each with its own accent), no repetition.
   ============================================================ */

:root {
    /* Per-brand accents, used sparingly over the shared navy/blue base */
    --bliss: #1f9e8a;        /* food / process / chemical — fresh */
    --bliss-dark: #15776a;
    --marpacs: #c0822f;      /* metals / stockholding — brass/steel-warm */
    --marpacs-dark: #97631f;
    --paper: #fbfcfe;
}

/* Tighter, more confident headline treatment (still Inter) */
.erp-overline {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

/* ============================================================
   Hero — asymmetric, blueprint texture, monogram watermark
   ============================================================ */

.erp-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 140% at 78% -10%, #1c6aa0 0%, #11355a 45%, #0b2440 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* fine blueprint dot-grid */
.erp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.15));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.15));
    pointer-events: none;
}

/* oversized faint monogram, bleeding off the right edge */
.erp-hero::after {
    content: "ERP";
    position: absolute;
    right: -2%;
    bottom: -18%;
    font-weight: 800;
    font-size: clamp(12rem, 30vw, 30rem);
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    user-select: none;
}

.erp-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
    padding: 104px 0 112px;
}

.erp-hero__copy { max-width: 620px; }

.erp-hero__copy .erp-overline {
    color: #8fc6ee;
    margin-bottom: 22px;
}

.erp-hero h1 {
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin: 0 0 22px;
}
.erp-hero h1 em {
    font-style: normal;
    color: var(--brand);
}

.erp-lede {
    font-size: 1.18rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    max-width: 540px;
    margin: 0 0 32px;
}

/* small "index card" on the hero right — a quiet table of contents */
.erp-index {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(2px);
    padding: 10px;
}
.erp-index a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    transition: background .18s ease;
}
.erp-index a + a { border-top: 1px solid rgba(255, 255, 255, 0.10); }
.erp-index a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.erp-index__num {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
}
.erp-index__name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.erp-index--bliss .erp-index__name { color: #6fe0cd; }
.erp-index--marpacs .erp-index__name { color: #f0bd72; }
.erp-index__by { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.55); font-weight: 400; }
.erp-index__arrow { margin-left: auto; opacity: 0.5; transition: transform .18s ease, opacity .18s ease; }
.erp-index a:hover .erp-index__arrow { transform: translateX(4px); opacity: 1; }

/* ============================================================
   Solutions — two differentiated brand panels
   ============================================================ */

.erp-solutions { padding: 96px 0; background: var(--paper); }

.erp-section-head { max-width: 640px; margin: 0 0 44px; }
.erp-section-head .erp-overline { margin-bottom: 12px; }
.erp-section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    letter-spacing: -0.025em;
    margin: 0;
}

.erp-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.erp-panel {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 38px 36px 34px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.erp-panel::before {                 /* top accent rule */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent, var(--brand));
}
.erp-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.erp-panel--bliss { --accent: var(--bliss); --accent-dark: var(--bliss-dark); }
.erp-panel--marpacs { --accent: var(--marpacs); --accent-dark: var(--marpacs-dark); }

.erp-panel__index {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: var(--accent);
}
.erp-panel__name {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 6px 0 2px;
}
.erp-panel__by {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0 0 18px;
}
.erp-panel__by strong { color: var(--ink); font-weight: 600; }
.erp-panel__line {
    font-size: 1.12rem;
    line-height: 1.55;
    color: var(--ink);
    margin: 0 0 22px;
    max-width: 30ch;
}

.erp-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.erp-tags li {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-soft);
    transition: border-color .18s ease, color .18s ease;
}
.erp-panel:hover .erp-tags li {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    color: var(--accent-dark);
}

.erp-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--accent-dark);
}
.erp-panel__cta .arrow { transition: transform .18s ease; }
.erp-panel__cta:hover { color: var(--accent-dark); }
.erp-panel__cta:hover .arrow { transform: translateX(5px); }

/* ============================================================
   Closing strip — the strapline, no brand re-listing
   ============================================================ */

.erp-closing {
    background: linear-gradient(135deg, #0b2440, #1c6aa0);
    color: #fff;
    padding: 84px 0;
    text-align: center;
}
.erp-closing__quote {
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    max-width: 18ch;
    margin: 0 auto 18px;
    color: #fff;
}
.erp-closing__sub {
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================================
   Load-in motion (single orchestrated reveal)
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
    .erp-reveal { opacity: 0; transform: translateY(16px); animation: erpRise .7s cubic-bezier(.2,.7,.2,1) forwards; }
    .erp-reveal:nth-child(1) { animation-delay: .05s; }
    .erp-reveal:nth-child(2) { animation-delay: .14s; }
    .erp-reveal:nth-child(3) { animation-delay: .23s; }
    .erp-reveal:nth-child(4) { animation-delay: .32s; }
    .erp-hero__index-wrap { opacity: 0; transform: translateY(16px); animation: erpRise .7s cubic-bezier(.2,.7,.2,1) .4s forwards; }
    @keyframes erpRise { to { opacity: 1; transform: none; } }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
    .erp-hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 72px 0 80px; }
    .erp-panels { grid-template-columns: 1fr; }
    .erp-solutions { padding: 64px 0; }
}
