/* =========================================================
   YIRP ERP — MARKETED IN PARTNERSHIP WITH MANERGY
   Corporate website styles
   Palette and type system follow manergy.co.za:
   ink #131516 · teal #00e6b2 / #11abb0 · cyan #00c9ff
   orange #f46036 · plum #493657 · Manrope headings · Roboto body
   ========================================================= */

:root {
    --ink: #131516;
    --ink-2: #1a1e1f;
    --ink-3: #242a2b;

    --teal: #00e6b2;
    --teal-2: #11abb0;
    --teal-cyan: #00c9ff;
    --link: #0a7d78;

    --orange: #f46036;
    --plum: #493657;

    /* YIRP gold - accent colour carried over from the live ERP pages */
    --gold: #f0b40a;
    --gold-dark: #d99d00;
    --gold-soft: rgba(240, 180, 10, 0.16);

    --paper: #f4f7f6;
    --white: #ffffff;
    --text: #20282a;
    --muted: #5b6768;
    --border: #dde5e3;

    --grad: linear-gradient(135deg, var(--teal), var(--teal-cyan));

    --shadow-sm: 0 2px 10px rgba(19, 21, 22, 0.05);
    --shadow-md: 0 16px 36px rgba(19, 21, 22, 0.10);

    --font-body: "Roboto", "Segoe UI", Arial, sans-serif;
    --font-head: "Manrope", "Segoe UI", Arial, sans-serif;

    /* Legacy token names kept so older inline edits still resolve. */
    --yirp-blue: #0d6f6c;
    --yirp-blue-dark: var(--ink);
    --yirp-blue-light: var(--teal-2);
    --yirp-gold: var(--gold);
    --yirp-gold-dark: var(--gold-dark);
    --yirp-white: var(--white);
    --yirp-bg: var(--paper);
    --yirp-text: var(--text);
    --yirp-muted: var(--muted);
    --yirp-border: var(--border);
}

/* =========================================================
   GLOBAL
   ========================================================= */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--ink);
    letter-spacing: -0.01em;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

::selection {
    background: rgba(0, 230, 178, 0.32);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 88% -12%, rgba(0, 230, 178, 0.17), transparent 62%),
        radial-gradient(720px 400px at -12% 112%, rgba(0, 201, 255, 0.10), transparent 58%),
        var(--ink);
    border: 1px solid rgba(0, 230, 178, 0.16);
    border-bottom: 4px solid var(--gold);
    border-radius: 22px;
    padding: 64px 56px;
    margin-bottom: 52px;
    color: var(--white);
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(640px 420px at 72% 28%, #000 0%, transparent 76%);
    mask-image: radial-gradient(640px 420px at 72% 28%, #000 0%, transparent 76%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 18px 0;
}

.hero h2 {
    color: var(--white);
    font-family: var(--font-head);
}

.hero p {
    color: rgba(236, 245, 243, 0.84);
    font-size: 18px;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.72;
}

/* Small uppercase kicker used at the top of many page heroes. */
.hero:not(.hero-split) > div:first-child[style*="letter-spacing"] {
    color: var(--teal);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid rgba(0, 230, 178, 0.30);
    border-radius: 999px;
    color: #9ff0dc;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(0, 230, 178, 0.06);
}

/* Home split hero: copy + illustrative product panel */
.hero-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 52px;
    align-items: center;
    text-align: left;
    padding: 64px 60px;
}

.hero-split p {
    margin: 0;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--teal);
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.mock {
    background: linear-gradient(160deg, #1d2324 0%, #15191a 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 18px 18px 14px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.mock-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.mock-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #333c3d;
}

.mock-bar span:first-child {
    background: var(--orange);
}

.mock-bar span:nth-child(2) {
    background: var(--plum);
}

.mock-bar span:last-child {
    background: var(--teal-2);
}

.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.mock-title {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93a0a0;
}

.mock-chip {
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal);
    border: 1px solid rgba(0, 230, 178, 0.35);
    border-radius: 999px;
    padding: 3px 10px;
}

.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 118px;
    margin: 16px 0 8px;
}

.mock-chart i {
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, rgba(0, 230, 178, 0.92), rgba(0, 201, 255, 0.42));
}

.mock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12.5px;
    color: #aab6b6;
}

.mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.mock-dot.ok {
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(0, 230, 178, 0.12);
}

.mock-foot {
    margin-top: 10px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d797a;
    text-align: right;
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-title {
    color: var(--ink);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0 0 10px 0;
}

.section-header h2 {
    color: var(--ink);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin: 0 0 6px 0;
}

.section-subtitle {
    color: var(--muted);
    font-size: 16px;
    max-width: 840px;
    margin-bottom: 30px;
}

/* Gold rule under section headings, matching the live YIRP pages. */
.gold-line {
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: var(--gold);
    margin: 14px 0 24px 0;
}

.brand-accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
    position: relative;
    background: var(--white);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(240, 180, 10, 0.55);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.card p {
    color: var(--muted);
    font-size: 14.5px;
    margin: 0;
}

/* =========================================================
   INDUSTRY CARDS
   ========================================================= */

.industry-card {
    position: relative;
    background: var(--white);
    padding: 26px 26px 26px 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.industry-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold);
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.industry-card h3 {
    color: var(--ink);
    font-size: 17.5px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.industry-card p {
    font-size: 14.5px;
    margin: 0;
}

/* =========================================================
   FEATURE / CAPABILITY CARDS
   ========================================================= */

.feature-card {
    position: relative;
    background: var(--white);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.feature-card p {
    font-size: 14.5px;
    margin: 0;
}

/* =========================================================
   INFORMATION / HIGHLIGHT BOX
   ========================================================= */

.info-box {
    position: relative;
    background:
        radial-gradient(520px 260px at 92% -20%, rgba(0, 230, 178, 0.14), transparent 62%),
        var(--ink);
    border: 1px solid rgba(0, 230, 178, 0.18);
    border-left: 4px solid var(--gold);
    padding: 30px 32px;
    margin: 26px 0;
    border-radius: 16px;
    overflow: hidden;
}

.info-box h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.info-box p {
    color: rgba(232, 242, 240, 0.78);
    margin: 0;
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 320px at 50% -24%, rgba(0, 230, 178, 0.20), transparent 62%),
        var(--ink);
    border: 1px solid rgba(0, 230, 178, 0.20);
    border-top: 4px solid var(--gold);
    border-radius: 22px;
    padding: 56px 40px;
    text-align: center;
    margin: 56px 0 30px 0;
}

.cta h2 {
    color: var(--white);
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.cta p {
    color: rgba(232, 242, 240, 0.80);
    max-width: 720px;
    margin: 0 auto 26px auto;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.yirp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease,
        background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.yirp-button-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #17130a;
    box-shadow: 0 10px 24px rgba(240, 180, 10, 0.28);
}

.yirp-button-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #17130a;
}

.yirp-button-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.yirp-button-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-top: 70px;
    padding: 28px 32px;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 3px solid var(--gold);
    border-radius: 18px;
    color: #8b9899;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer a {
    color: var(--teal);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: var(--gold);
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5f6c6c;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
    .hero-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 42px 24px;
        border-radius: 18px;
        margin-bottom: 38px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 16.5px;
    }

    .hero-split {
        padding: 40px 22px;
    }

    .cta {
        padding: 42px 24px;
    }

    .cta h2 {
        font-size: 24px;
    }
}
