/* ============================================================
   MAXXESS INSIGHTS - BASE
   Font, brand tokens, shared button, shared page hero.

   Brand
     Green        #8bc041
     Deep green   #7aab38
     Dark blue    #2b4d78
     Black        #272726
     Grey         #6b7280

   Type scale per brief
     Hero            32pt   = 43px   Bree Regular
     Headings        23.5pt = 31px   Bree Regular
     Subheadings     14pt   = 19px
     Body            14pt   = 19px
     Body in blocks  12pt   = 16px
     Buttons         9.6pt  = 13px
   ============================================================ */

@font-face {
    font-family: 'Bree Regular';
    src: url('https://maxxess.co.za/wp-content/uploads/2026/05/Bree-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.mx-insights,
.mx-article,
.mx-page-hero {
    --mx-green: #8bc041;
    --mx-green-dark: #7aab38;
    --mx-blue-dark: #2b4d78;
    --mx-black: #272726;
    --mx-grey: #6b7280;
    --mx-body: #4b5563;
    --mx-line: #e5e7eb;
    --mx-light: #f5f6f7;
    --mx-head: 'Bree Regular', 'Bree Serif', Georgia, serif;
    --mx-text: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    font-family: var(--mx-text);
    box-sizing: border-box;
}

.mx-insights *,
.mx-insights *::before,
.mx-insights *::after,
.mx-article *,
.mx-article *::before,
.mx-article *::after,
.mx-page-hero *,
.mx-page-hero *::before,
.mx-page-hero *::after { box-sizing: border-box; }


/* ---------- SHARED BUTTON ---------- */

.mx-insights .mx-insights__btn,
.mx-article .mx-insights__btn {
    display: inline-block;
    font-family: var(--mx-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff !important;
    background: var(--mx-green);
    padding: 15px 38px;
    border: none;
    border-radius: 0;
    text-decoration: none !important;
    line-height: 1.2;
    transition: background 220ms ease, transform 220ms ease;
}
.mx-insights .mx-insights__btn:hover,
.mx-article .mx-insights__btn:hover {
    background: var(--mx-green-dark);
    transform: translateY(-2px);
}


/* ---------- SHARED PAGE HERO ---------- */
/* Breaks out of the Elementor column to run full width, and
   carries the same V notch used on the legal pages. */

.mx-page-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--mx-black);
    background-size: cover;
    background-position: center;
    padding: 120px 24px 115px 24px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
    margin-bottom: 70px;
}

.mx-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(39,39,38,0.80) 0%, rgba(39,39,38,0.92) 100%);
}

.mx-page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.mx-page-hero .mx-page-hero__eyebrow {
    font-family: var(--mx-text);
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mx-green);
    margin: 0 0 14px 0;
    line-height: 1.3;
}

.mx-page-hero .mx-page-hero__heading,
.mx-page-hero h1.mx-page-hero__heading {
    font-family: var(--mx-head) !important;
    font-size: 43px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em;
    line-height: 1.15 !important;
    color: #ffffff !important;
    margin: 0 0 20px 0 !important;
    text-transform: uppercase;
}

.mx-page-hero .mx-page-hero__sub {
    font-family: var(--mx-text);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0;
    max-width: 620px;
}

@media (max-width: 900px) {
    .mx-page-hero {
        padding: 95px 24px 95px 24px;
        clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%);
        margin-bottom: 55px;
    }
    .mx-page-hero .mx-page-hero__heading,
    .mx-page-hero h1.mx-page-hero__heading { font-size: 34px !important; }
    .mx-page-hero .mx-page-hero__eyebrow,
    .mx-page-hero .mx-page-hero__sub { font-size: 16px; }
}

@media (max-width: 560px) {
    .mx-page-hero { padding: 75px 16px 80px 16px; }
    .mx-page-hero .mx-page-hero__heading,
    .mx-page-hero h1.mx-page-hero__heading { font-size: 28px !important; }
}
