/*
|--------------------------------------------------------------------------
| CGEI Website: Main Stylesheet
|--------------------------------------------------------------------------
*/

:root {
    --ceig-blue: #001d50;
    --ceig-deep-blue: #00163e;
    --ceig-navy: #001235;
    --ceig-orange: #ff7900;
    --ceig-white: #ffffff;
    --ceig-black: #111111;
    --ceig-light-grey: #e7e7e7;

    --content-width: 1600px;
    --page-spacing: 20px;

    --body-font-size: 14px;
    --small-font-size: 12px;
    --navigation-font-size: 11px;
    --maximum-heading-size: 16px;

    --border-radius: 11px;
}

/*
|--------------------------------------------------------------------------
| Basic reset
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--ceig-white);
    color: var(--ceig-black);
    font-family: Georgia, "Times New Roman", serif;
    font-size: var(--body-font-size);
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-size: var(--maximum-heading-size);
}

h3 {
    font-size: 15px;
}

/*
|--------------------------------------------------------------------------
| Accessibility
|--------------------------------------------------------------------------
*/

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: 4px;
    background: var(--ceig-orange);
    color: var(--ceig-white);
}

.skip-link:focus {
    top: 20px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ceig-orange);
    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: var(--ceig-white);
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--content-width);
    min-height: 132px;
    margin: 0 auto;
    padding: 6px var(--page-spacing);
}

.site-logo {
    display: flex;
    flex: 0 0 185px;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 2px;
    overflow: visible;
}

.site-logo img {
    width: 160px;
    max-width: none;
    height: auto;
    max-height: 110px;
    object-fit: contain;
}

.primary-navigation {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    margin-left: 24px;
}

.navigation-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation-item {
    flex: 0 0 auto;
}

.navigation-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: #001b76;
    font-size: var(--navigation-font-size);
    font-weight: 700;
    white-space: nowrap;
}

.navigation-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: transparent;
    content: "";
}

.navigation-link:hover,
.navigation-link:focus-visible {
    color: var(--ceig-blue);
}

.navigation-link:hover::after,
.navigation-link:focus-visible::after {
    background: var(--ceig-orange);
}

.navigation-link.is-active {
    color: var(--ceig-blue);
    font-weight: 700;
}

.navigation-link.is-active::after {
    background: var(--ceig-orange);
}

.social-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    min-height: 30px;
    margin-top: 5px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.social-link img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--ceig-blue);
}

/*
|--------------------------------------------------------------------------
| Hero banner
|--------------------------------------------------------------------------
*/

.hero-banner {
    display: grid;
    grid-template-columns: minmax(440px, 36%) 4px minmax(0, 1fr);
    width: calc(100% - 40px);
    max-width: calc(var(--content-width) - 40px);
    min-height: 244px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e2e2e2;
    border-radius: var(--border-radius);
    background: #ffffff;
}

.hero-text-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 36px;
    background: #ffffff;
    color: #111111;
}

.hero-title {
    margin: 0 0 12px;
    color: #111111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.1px;
    white-space: nowrap;
}

.hero-subtitle {
    margin: 0 0 12px;
    color: #111111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.hero-description {
    max-width: 410px;
    margin: 0;
    color: #111111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.55;
}

.hero-divider {
    align-self: stretch;
    width: 3px;
    height: calc(100% - 34px);
    margin: 17px 0;
    background: var(--ceig-orange);
}

.hero-image-panel {
    min-width: 0;
    min-height: 244px;
    overflow: hidden;
    background: var(--ceig-deep-blue);
}

.hero-image-panel img {
    width: 100%;
    height: 100%;
    min-height: 244px;
    object-fit: cover;
    object-position: center;
}

/*
|--------------------------------------------------------------------------
| Main content
|--------------------------------------------------------------------------
*/

#main-content {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| The CGEI Lens
|--------------------------------------------------------------------------
*/

.ceig-lens-section {
    width: calc(100% - 40px);
    max-width: calc(var(--content-width) - 40px);
    margin: 0 auto;
    padding: 9px 35px 10px;
    background: var(--ceig-white);
}

.ceig-lens-heading {
    margin: 0 0 5px;
    color: var(--ceig-blue);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.ceig-lens-image {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 4px;
}

.ceig-lens-image img {
    width: min(660px, 68%);
    max-height: 210px;
    object-fit: contain;
}

.ceig-lens-content {
    width: 100%;
    margin: 0;
}

.ceig-lens-content p {
    width: 100%;
    margin: 0;
    color: var(--ceig-black);
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
    text-justify: inter-word;
}

/*
|--------------------------------------------------------------------------
| Principal service cards
|--------------------------------------------------------------------------
*/

.principal-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: calc(100% - 40px);
    max-width: calc(var(--content-width) - 40px);
    margin: 0 auto 13px;
}

.service-card {
    position: relative;
    display: flex;
    min-height: 170px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background:
        linear-gradient(
            120deg,
            #001947 0%,
            #00245e 55%,
            #00163e 100%
        );
    color: var(--ceig-white);
}

.service-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 16px 23px 14px;
}

.service-card h2 {
    width: 100%;
    margin: 0 0 8px;
    color: var(--ceig-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.service-card p {
    max-width: 290px;
    margin: 0;
    color: var(--ceig-white);
    font-size: 13px;
    line-height: 1.45;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    color: var(--ceig-orange);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 31px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.service-card-link:hover,
.service-card-link:focus-visible {
    transform: translateX(4px);
}

.service-card-with-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 145px;
}

.service-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px 10px 0;
}

.service-card-image img {
    width: 120px;
    max-height: 150px;
    object-fit: contain;
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.site-footer {
    width: 100%;
    background:
        linear-gradient(
            110deg,
            #00163e 0%,
            #002354 54%,
            #001235 100%
        );
    color: var(--ceig-white);
}

.footer-container {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(190px, 0.85fr)
        4px
        minmax(540px, 2.25fr);
    gap: 42px;
    width: 100%;
    max-width: var(--content-width);
    min-height: 190px;
    margin: 0 auto;
    padding: 18px 27px;
}

.footer-section {
    min-width: 0;
}

.footer-heading {
    margin: 0 0 5px;
    color: var(--ceig-white);
    font-size: 13px;
    font-weight: 700;
}

.footer-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-link-list li {
    margin: 0;
    line-height: 1.35;
}

.footer-link {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    color: var(--ceig-white);
    font-size: 10px;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--ceig-orange);
}

.footer-link.is-active {
    color: var(--ceig-orange);
    font-weight: 700;
}

.footer-link.is-active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--ceig-orange);
    content: "";
}

.footer-divider {
    align-self: center;
    width: 3px;
    height: 135px;
    background: var(--ceig-orange);
}

.footer-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-logo-wrapper {
    display: flex;
    flex: 0 0 155px;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 2px;
    overflow: visible;
}

.footer-logo-wrapper img {
    width: 132px;
    max-width: none;
    height: auto;
    max-height: 116px;
    object-fit: contain;
}

.footer-organisation-name {
    margin: 0;
    color: var(--ceig-white);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.footer-copyright {
    margin: 5px 0 0 185px;
    color: var(--ceig-white);
    font-size: 12px;
    line-height: 1.35;
}