/* ----------------------------------------------------------------
   AFR Conference — site styles (replaces the shared Polo theme)
   Brand palette: GBC colour guidelines
-----------------------------------------------------------------*/
:root {
    /* primary */
    --brand-navy: #1f3364;
    --brand-green: #128e45;
    --brand-teal: #1a625a;          /* left end of the primary gradient */
    --brand-gradient: linear-gradient(90deg, var(--brand-teal), var(--brand-green));
    /* secondary */
    --brand-sky: #29abe2;
    --brand-yellow: #f3d32b;
    --brand-grey: #4e4e4f;
    /* tints */
    --tint-grey: #f4f5f8;
    --tint-yellow: #fcf4ca;
    --tint-green: #dbeee3;
    --tint-cream: #fefae6;
    --tint-sky: #eaf7fc;            /* brand sky blue at ~10% */
}

/* ---------- Base ---------- */
body {
    font-family: "Lexend", Arial, sans-serif;
    color: var(--brand-grey);
    background: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Lexend", Arial, sans-serif;
    color: var(--brand-navy);
}

h5 {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
}

a {
    color: var(--brand-green);
}

a:hover,
a:focus {
    color: var(--brand-navy);
}

::selection {
    background: var(--brand-green);
    color: #fff;
}

section {
    padding: 60px 0;
}

.background-grey {
    background: var(--tint-grey);
}

/* Section headings */
.heading-text.heading-section h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    width: 100%;
}

.heading-text.heading-section h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--brand-yellow);
    margin-top: 10px;
}

.heading-text.heading-section.text-center h2::after,
.text-center .heading-text.heading-section h2::after {
    margin-left: auto;
    margin-right: auto;
}

.heading-text.heading-section {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background-color: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-sky) !important;
    border-color: var(--brand-sky) !important;
    color: var(--brand-navy) !important;
}

/* ---------- Header ---------- */
#header {
    position: relative;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 10px rgba(31, 51, 100, 0.08);
}

/* Thin brand strip across the top of the header */
#header::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-teal) 50%, var(--brand-green) 100%);
}

#header .header-inner > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

#header .header-inner > .container > .d-md-none {
    flex-basis: 100%;
}

/* Logos: energy left, AFR centre, CII right; stacked and centred on phones */
#logo.logo-row {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

#logo.logo-row > a,
#logo.logo-row > span {
    display: flex;
    align-items: center;
}

#logo.logo-row img {
    display: block;
    width: auto;
    max-width: 100%;
}

#logo .logo-left { justify-self: start; }
#logo .logo-center { justify-self: center; }
#logo .logo-right { justify-self: end; }

#logo .logo-left img { height: 62px; }
#logo .logo-center img { height: 72px; }
#logo .logo-right img { height: 55px; }  /* the file is 176x55: full size, don't go larger */

@media (max-width: 767.98px) {
    #header .header-inner > .container {
        position: relative;
    }

    #logo.logo-row {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 6px;
        padding: 0 44px;  /* keeps the centred logos clear of the menu button */
    }

    #logo .logo-left,
    #logo .logo-center,
    #logo .logo-right {
        justify-self: center;
    }

    #logo .logo-left img { height: 40px; }
    #logo .logo-center img { height: 48px; }
    #logo .logo-right img { height: 36px; }

    #mainMenu-trigger {
        position: absolute;
        top: 10px;
        right: 15px;
    }
}

/* Mobile menu trigger */
#mainMenu-trigger {
    display: none;
}

@media (max-width: 767.98px) {
    #mainMenu-trigger {
        display: block;
    }
}

#mainMenu-trigger .lines-button {
    display: block;
    width: 34px;
    padding: 10px 0;
    cursor: pointer;
}

#mainMenu-trigger .lines,
#mainMenu-trigger .lines::before,
#mainMenu-trigger .lines::after {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--brand-navy);
    border-radius: 2px;
    transition: transform 0.25s ease, background 0.25s ease;
    position: relative;
}

#mainMenu-trigger .lines::before,
#mainMenu-trigger .lines::after {
    content: "";
    position: absolute;
    left: 0;
}

#mainMenu-trigger .lines::before { top: -8px; }
#mainMenu-trigger .lines::after { top: 8px; }

.menu-open #mainMenu-trigger .lines { background: transparent; }
.menu-open #mainMenu-trigger .lines::before { transform: translateY(8px) rotate(45deg); }
.menu-open #mainMenu-trigger .lines::after { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
#mainMenu {
    display: none;
}

.menu-open #mainMenu {
    display: block;
}

#mainMenu .container {
    padding: 0;
}

#mainMenu nav ul {
    list-style: none;
    margin: 10px 0 5px;
    padding: 0;
}

#mainMenu nav ul li a {
    display: block;
    padding: 10px 4px;
    color: var(--brand-navy);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--tint-grey);
}

#mainMenu nav ul li a:hover {
    color: var(--brand-green);
}

#mainMenu nav ul li:last-child a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 24px;
    border-bottom: 0;
}

/* ---------- Focus areas ---------- */
/* Same pale sky gradient as the gallery, so the inline green background, white text
   and white-filtered icons in focusareainc.php are overridden to navy here */
#focusareas {
    background: linear-gradient(180deg, var(--tint-sky) 0%, #f3fafd 100%) !important;
}

#focusareas h2 span,
#focusareas p.text-white {
    color: var(--brand-navy) !important;
}

#focusareas img.white-icon {
    filter: brightness(0) opacity(0.85);
}

#focusareas p {
    font-size: 0.85rem;
}

/* ---------- Banner (hero) ---------- */
/* The hero fills exactly one screen below the header (--header-h is measured in afr.js).
   The inline 100vh heights in inspsliderinc.php are overridden here. */
section.d-flex[style*="100vh"] {
    --hero-h: calc(100vh - var(--header-h, 90px));
    height: var(--hero-h) !important;
    min-height: 460px;
    padding: 0;
    align-items: stretch !important;
    /* pale green, not the dark gradient: client found the hero too dark (2026-10-07) */
    background-color: var(--tint-green) !important;
}

@supports (height: 100svh) {
    section.d-flex[style*="100vh"] {
        --hero-h: calc(100svh - var(--header-h, 90px));
    }
}

section.d-flex[style*="100vh"] > .container-fluid {
    width: 100%;
    display: flex;
    flex-direction: column;
}

section.d-flex[style*="100vh"] > .container-fluid > .row {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
}

/* Left image: fills its half, with a light brand-yellow tint (client asked for less dark, 2026-10-07) */
section.d-flex[style*="100vh"] .col-md-6[style*="100vh"] {
    height: auto !important;
    align-self: stretch;
    position: relative;
    overflow: hidden;
}

section.d-flex[style*="100vh"] .col-md-6[style*="100vh"] > div {
    filter: saturate(0.9) brightness(1.04);
}

section.d-flex[style*="100vh"] .col-md-6[style*="100vh"]::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(243, 211, 43, 0.05);
}

/* Right block: centred navy text on the pale green (beats the inline white) */
section.d-flex[style*="100vh"] .col-md-6.p-5 {
    height: auto !important;
    align-self: stretch;
}

section.d-flex[style*="100vh"] .col-md-6.p-5 b,
section.d-flex[style*="100vh"] .col-md-6.p-5 h2,
section.d-flex[style*="100vh"] .col-md-6.p-5 h4 {
    color: var(--brand-navy) !important;
}

/* Phone: stack, text block at natural size, image takes whatever height is left */
@media (max-width: 767.98px) {
    section.d-flex[style*="100vh"] {
        min-height: 400px;
    }

    section.d-flex[style*="100vh"] > .container-fluid > .row {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    section.d-flex[style*="100vh"] .col-md-6[style*="100vh"] {
        flex: 1 1 auto;
        min-height: 110px;
    }

    section.d-flex[style*="100vh"] .col-md-6.p-5 {
        flex: 0 0 auto;
        padding: 1.25rem 1rem 1.5rem !important;
    }

    section.d-flex[style*="100vh"] .col-md-6.p-5 h2 {
        font-size: 1.45rem;
        margin-bottom: 0.4rem;
    }

    section.d-flex[style*="100vh"] .col-md-6.p-5 h4 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    section.d-flex[style*="100vh"] .btn-banner {
        padding: 9px 0;
        font-size: 0.85rem;
    }

    section.d-flex[style*="100vh"] .btn-register {
        margin-top: 0.75rem !important;
    }
}

.btn-banner {
    border: 1px solid rgba(31, 51, 100, 0.18);
}

/* ---------- Gallery ---------- */
#gallery.background-grey {
    background: linear-gradient(180deg, var(--tint-sky) 0%, #f3fafd 100%);
}

/* the gallery markup nests a .row directly inside a .row */
#gallery [data-lightbox="gallery"] {
    flex: 0 0 100%;
    margin-left: 0;
    margin-right: 0;
}

#gallery .col-lg-4 {
    margin-bottom: 30px;
}

.grid-item-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.grid-image {
    position: relative;
}

.grid-image img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.85) contrast(0.95);
    transition: transform 0.4s ease;
}

/* Light navy tint over the thumbnails (lightbox shows the untinted original) */
.grid-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(31, 51, 100, 0.14);
}

.grid-description {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 51, 100, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item-wrap:hover .grid-description { opacity: 1; }
.grid-item-wrap:hover .grid-image img { transform: scale(1.05); }

.grid-description a {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.grid-description a::before {
    content: "+";
    width: 48px;
    height: 48px;
    line-height: 46px;
    text-align: center;
    border-radius: 50%;
    background: var(--brand-yellow);
    color: var(--brand-navy);
    font-size: 28px;
    font-weight: 600;
}

/* Lightbox */
.afr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(17, 26, 51, 0.92);
}

.afr-lightbox.open { display: flex; }

.afr-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
}

.afr-lightbox button {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

.afr-lightbox button:hover { background: var(--brand-green); }
.afr-lightbox .lb-close { top: 16px; right: 16px; }
.afr-lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.afr-lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
#footer .widget {
    padding: 20px 0 10px;
}

#footer .widget-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--brand-yellow);
}

#footer .widget h5 {
    color: #fff;
    font-size: 1rem;
}

#footer .widget a {
    color: #fff;
    text-decoration: underline;
}

#footer .widget a:hover {
    color: var(--brand-yellow);
}

#footer .copyright-text {
    font-size: 0.85rem;
    padding: 6px 0;
}

/* ---------- Scroll to top ---------- */
#scrollTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, background 0.3s ease;
}

#scrollTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollTop:hover {
    background: var(--brand-green);
    color: #fff;
}

/* ---------- Entrance animations (data-animate) ---------- */
.js [data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-animate="zoomIn"] { transform: scale(0.9); }
.js [data-animate="fadeIn"] { transform: none; }

.js [data-animate].animated {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
