/*
Theme Name: AEMG Group
Theme URI: https://aemg.edu.au
Author: AEMG Group
Description: Corporate AEMG Group homepage theme for local review and staging.
Version: 2.0.0
Text Domain: aemg-group
*/

:root {
    --aemg-ink: #0b2340;
    --aemg-ink-soft: #234363;
    --aemg-blue: #006eb6;
    --aemg-teal: #00a5a5;
    --aemg-orange: #f58220;
    --aemg-paper: #f5f7f7;
    --aemg-mist: #e6f3f5;
    --aemg-line: rgba(11, 35, 64, 0.14);
    --aemg-white: #ffffff;
    --aemg-shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--aemg-ink);
    background: var(--aemg-paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aemg-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.aemg-site-header {
    position: relative;
    z-index: 20;
    color: var(--aemg-white);
    background: var(--aemg-ink);
}

.aemg-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 88px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.aemg-wordmark {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: 156px;
    text-decoration: none;
}

.aemg-logo-image {
    display: block;
    width: 100%;
    height: auto;
}

.aemg-site-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.aemg-site-nav__list a {
    position: relative;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.aemg-site-nav__list a:not(.aemg-nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    background: var(--aemg-orange);
    content: "";
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 180ms ease;
}

.aemg-site-nav__list a:not(.aemg-nav-cta):hover::after,
.aemg-site-nav__list a:not(.aemg-nav-cta):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.aemg-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 17px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: var(--aemg-white) !important;
    background: rgba(255, 255, 255, 0.08);
}

.aemg-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--aemg-white);
    background: transparent;
    cursor: pointer;
}

.aemg-nav-toggle__line {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.aemg-page {
    overflow: hidden;
}

.aemg-hero {
    position: relative;
    min-height: 602px;
    overflow: hidden;
    color: var(--aemg-white);
    background:
        radial-gradient(circle at 85% 19%, rgba(0, 165, 165, 0.28), transparent 22rem),
        radial-gradient(circle at 11% 88%, rgba(0, 110, 182, 0.28), transparent 25rem),
        var(--aemg-ink);
    isolation: isolate;
}

.aemg-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.14;
    background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    mask-image: linear-gradient(90deg, black 0%, transparent 82%);
    pointer-events: none;
}

.aemg-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
    align-items: center;
    gap: 44px;
    min-height: 602px;
    padding: 68px 0 84px;
}

.aemg-eyebrow,
.aemg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 25px;
    color: #89e0da;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.aemg-eyebrow::before,
.aemg-kicker::before {
    width: 31px;
    height: 2px;
    background: var(--aemg-orange);
    content: "";
}

.aemg-hero h1 {
    max-width: 590px;
    margin: 0;
    color: var(--aemg-white);
    letter-spacing: -0.07em;
    font-size: clamp(48px, 6.4vw, 88px);
    font-weight: 790;
    line-height: 0.93;
}

.aemg-hero h1 em {
    color: var(--aemg-orange);
    font-style: normal;
}

.aemg-hero-copy {
    max-width: 454px;
    margin: 27px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    line-height: 1.65;
}

.aemg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.aemg-primary,
.aemg-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 47px;
    padding: 0 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.aemg-primary {
    color: var(--aemg-white);
    background: var(--aemg-orange);
}

.aemg-secondary {
    color: var(--aemg-white);
    border: 1px solid rgba(255, 255, 255, 0.27);
    background: transparent;
}

.aemg-primary:hover,
.aemg-primary:focus-visible,
.aemg-secondary:hover,
.aemg-secondary:focus-visible {
    transform: translateY(-2px);
}

.aemg-network {
    position: relative;
    min-height: 442px;
    isolation: isolate;
}

.aemg-network::before,
.aemg-network::after {
    position: absolute;
    border: 1px solid rgba(115, 222, 217, 0.3);
    border-radius: 50%;
    content: "";
    transform: rotate(-19deg);
}

.aemg-network::before {
    top: 6%;
    left: 8%;
    width: 84%;
    height: 63%;
}

.aemg-network::after {
    top: 21%;
    left: 16%;
    width: 67%;
    height: 58%;
    border-color: rgba(245, 130, 32, 0.34);
    transform: rotate(29deg);
}

.aemg-network-line {
    position: absolute;
    top: 50%;
    left: 14%;
    width: 72%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    content: "";
    transform: rotate(-21deg);
    transform-origin: center;
}

.aemg-network-line:nth-child(2) {
    transform: rotate(27deg);
}

.aemg-network-line:nth-child(3) {
    transform: rotate(78deg);
}

.aemg-core {
    position: absolute;
    top: 43%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    color: var(--aemg-white);
    background: rgba(9, 40, 66, 0.94);
    box-shadow: 0 0 0 17px rgba(0, 165, 165, 0.08), 0 0 80px rgba(0, 165, 165, 0.28);
    text-align: center;
    transform: translate(-50%, -50%);
}

.aemg-core strong {
    display: block;
    letter-spacing: -0.05em;
    font-size: 25px;
}

.aemg-core span {
    display: block;
    margin-top: 4px;
    color: #83d8d3;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 8px;
    font-weight: 800;
}

.aemg-node {
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 4px;
    min-width: 134px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: var(--aemg-white);
    background: rgba(13, 47, 75, 0.9);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
}

.aemg-node::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aemg-orange);
    content: "";
}

.aemg-node strong {
    letter-spacing: -0.02em;
    font-size: 14px;
}

.aemg-node small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.35;
}

.aemg-node-aife {
    top: 9%;
    left: 0;
}

.aemg-node-cloud {
    top: 4%;
    right: 1%;
}

.aemg-node-health {
    right: 3%;
    bottom: 4%;
}

.aemg-scroll-note {
    position: absolute;
    bottom: 25px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 9px;
    font-weight: 800;
    transform: translateX(-50%);
}

.aemg-scroll-note::after {
    color: var(--aemg-orange);
    content: "↓";
    font-size: 17px;
}

.aemg-engines {
    padding: 104px 0 114px;
    background: var(--aemg-paper);
}

.aemg-section-top {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 60px;
    align-items: end;
    padding-bottom: 55px;
    border-bottom: 1px solid var(--aemg-line);
}

.aemg-kicker {
    margin-bottom: 16px;
    color: var(--aemg-orange);
}

.aemg-section-top h2,
.aemg-advantage h2,
.aemg-organisation h2 {
    margin: 0;
    letter-spacing: -0.06em;
    line-height: 0.98;
    font-size: clamp(35px, 4vw, 57px);
    font-weight: 790;
}

.aemg-section-intro {
    max-width: 520px;
    margin: 0;
    color: var(--aemg-ink-soft);
    font-size: 16px;
    line-height: 1.7;
}

.aemg-engine-list {
    margin-top: 7px;
}

.aemg-engine-row {
    display: grid;
    grid-template-columns: 10px minmax(130px, 0.7fr) minmax(0, 1.3fr) 30px;
    gap: 28px;
    align-items: center;
    padding: 29px 0;
    border-bottom: 1px solid var(--aemg-line);
    text-decoration: none;
}

.aemg-engine-bar {
    align-self: stretch;
    min-height: 67px;
    border-radius: 2px;
    background: var(--aemg-blue);
}

.aemg-engine-row:nth-child(2) .aemg-engine-bar {
    background: var(--aemg-teal);
}

.aemg-engine-row:nth-child(3) .aemg-engine-bar {
    background: var(--aemg-orange);
}

.aemg-engine-name {
    margin: 0;
    letter-spacing: -0.045em;
    font-size: 25px;
    font-weight: 780;
}

.aemg-engine-type {
    display: block;
    max-width: 245px;
    margin-top: 6px;
    color: var(--aemg-ink-soft);
    font-size: 12px;
    line-height: 1.45;
}

.aemg-engine-detail {
    margin: 0;
    color: #537087;
    font-size: 13px;
    line-height: 1.6;
}

.aemg-engine-detail span {
    display: block;
}

.aemg-engine-detail span::before {
    margin-right: 8px;
    color: var(--aemg-orange);
    content: "•";
}

.aemg-engine-arrow {
    color: var(--aemg-ink);
    text-align: right;
    font-size: 23px;
    transition: transform 180ms ease;
}

.aemg-engine-row:hover .aemg-engine-arrow,
.aemg-engine-row:focus-visible .aemg-engine-arrow {
    transform: translateX(5px);
}

.aemg-advantage {
    position: relative;
    overflow: hidden;
    padding: 102px 0;
    color: var(--aemg-white);
    background: var(--aemg-blue);
}

.aemg-advantage::before {
    position: absolute;
    top: -170px;
    right: -100px;
    width: 530px;
    height: 530px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.05), 0 0 0 92px rgba(255, 255, 255, 0.04);
    content: "";
}

.aemg-advantage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.aemg-advantage h2 {
    position: relative;
}

.aemg-advantage h2 span {
    color: #9ae2dd;
}

.aemg-advantage-copy {
    position: relative;
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
    line-height: 1.7;
}

.aemg-value-line {
    display: block;
    margin-top: 23px;
    color: var(--aemg-white);
    letter-spacing: 0.02em;
    font-size: 13px;
    font-weight: 700;
}

.aemg-value-line b {
    color: var(--aemg-orange);
}

.aemg-organisation {
    padding: 110px 0 118px;
    background: var(--aemg-mist);
}

.aemg-organisation-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 74px;
    align-items: center;
}

.aemg-organisation-copy {
    max-width: 480px;
    margin: 24px 0 0;
    color: var(--aemg-ink-soft);
    font-size: 16px;
    line-height: 1.72;
}

.aemg-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.aemg-stat {
    min-height: 160px;
    padding: 22px 18px;
    border: 1px solid rgba(0, 110, 182, 0.2);
    background: rgba(255, 255, 255, 0.58);
}

.aemg-stat strong {
    display: block;
    color: var(--aemg-blue);
    letter-spacing: -0.06em;
    font-size: 30px;
}

.aemg-stat span {
    display: block;
    margin-top: 42px;
    color: var(--aemg-ink-soft);
    font-size: 11px;
    line-height: 1.35;
}

.aemg-footer {
    padding: 39px 0 42px;
    color: rgba(255, 255, 255, 0.62);
    background: var(--aemg-ink);
}

.aemg-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.aemg-footer .aemg-wordmark {
    width: 135px;
}

.aemg-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 11px;
}

.aemg-footer-links a {
    text-decoration: none;
}

.aemg-footer-links a:hover,
.aemg-footer-links a:focus-visible {
    color: var(--aemg-orange);
}

.aemg-footer-note {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

:focus-visible {
    outline: 3px solid rgba(245, 130, 32, 0.6);
    outline-offset: 4px;
}

@media (max-width: 820px) {
    .aemg-shell {
        width: min(100% - 36px, 660px);
    }

    .aemg-nav-toggle {
        display: block;
    }

    .aemg-site-nav {
        position: absolute;
        top: 100%;
        right: 18px;
        left: 18px;
        display: none;
        padding: 8px 20px 18px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-top: 0;
        background: var(--aemg-ink);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    }

    .aemg-site-nav.is-open {
        display: block;
    }

    .aemg-site-nav__list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .aemg-site-nav__list li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .aemg-site-nav__list a {
        display: block;
        padding: 14px 0;
        color: var(--aemg-white);
        font-size: 13px;
    }

    .aemg-site-nav__list a::after {
        display: none;
    }

    .aemg-nav-cta {
        padding: 14px 0;
        border: 0;
        background: transparent;
    }

    .aemg-hero {
        min-height: 0;
    }

    .aemg-hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        min-height: 0;
        padding: 68px 0 110px;
    }

    .aemg-network {
        min-height: 355px;
    }

    .aemg-section-top,
    .aemg-advantage-grid,
    .aemg-organisation-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .aemg-section-top {
        padding-bottom: 35px;
    }

    .aemg-engines {
        padding: 74px 0 85px;
    }

    .aemg-advantage,
    .aemg-organisation {
        padding: 76px 0;
    }
}

@media (max-width: 520px) {
    .aemg-shell {
        width: calc(100% - 30px);
    }

    .aemg-nav-wrap {
        min-height: 72px;
    }

    .aemg-wordmark {
        width: 126px;
    }

    .aemg-nav-cta {
        padding: 14px 0;
        font-size: 13px;
    }

    .aemg-hero-grid {
        padding-top: 53px;
    }

    .aemg-hero h1 {
        font-size: 54px;
    }

    .aemg-hero-copy {
        font-size: 15px;
    }

    .aemg-network {
        min-height: 285px;
        margin-bottom: -28px;
        transform: scale(0.88);
        transform-origin: top center;
    }

    .aemg-core {
        width: 116px;
        height: 116px;
    }

    .aemg-core strong {
        font-size: 20px;
    }

    .aemg-node {
        min-width: 115px;
        padding: 10px 11px;
    }

    .aemg-node strong {
        font-size: 12px;
    }

    .aemg-node small {
        font-size: 8px;
    }

    .aemg-engine-row {
        grid-template-columns: 7px minmax(0, 1fr) 22px;
        gap: 14px;
        padding: 23px 0;
    }

    .aemg-engine-detail {
        grid-column: 2 / 4;
        margin-top: -7px;
        font-size: 12px;
    }

    .aemg-engine-name {
        font-size: 21px;
    }

    .aemg-engine-type {
        font-size: 11px;
    }

    .aemg-engine-bar {
        min-height: 56px;
    }

    .aemg-stat-grid {
        grid-template-columns: 1fr;
    }

    .aemg-stat {
        min-height: 0;
        padding: 16px;
    }

    .aemg-stat span {
        margin-top: 12px;
    }

    .aemg-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .aemg-footer-links {
        gap: 13px 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
