/* ========================================
   FUNCTION DETAIL PAGE
======================================== */

.function-detail-page {
    background: #ffffff;
}

.function-detail-main {
    overflow: hidden;
    background: #ffffff;
}

.function-detail-container {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
}


/* ========================================
   HERO
======================================== */

.function-detail-hero {
    padding: 165px 0 45px;
    background: #ffffff;
}

.function-detail-hero-copy {
    margin-bottom: 42px;

    opacity: 0;
    transform: translateY(32px);

    transition:
        opacity 0.7s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

body.function-page-loaded .function-detail-hero-copy {
    opacity: 1;
    transform: translateY(0);
}


.function-detail-hero h1 {
    margin: 0;
    color: #0A1022;
    font-family:  Arial, sans-serif !important;
    font-size: clamp(48px, 5vw, 54px);
    font-weight: 300 !important;
    line-height: 1;
    letter-spacing: -2.8px;
}


.function-detail-image-wrap {
    width: 100%;

    aspect-ratio: 2.25 / 1;

    overflow: hidden;

    background: #e9eeee;

    border-radius: 12px;

    box-shadow:
        0 25px 60px rgba(10, 16, 34, 0.1);

    opacity: 0;

    transform:
        translateY(35px) scale(0.99);

    transition:
        opacity 0.8s ease 0.12s,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

body.function-page-loaded .function-detail-image-wrap {
    opacity: 1;

    transform:
        translateY(0) scale(1);
}

.function-detail-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.function-detail-image-wrap:hover .function-detail-image {
    transform: scale(1.025);
}


/* ========================================
   CONTENT LAYOUT
======================================== */

.function-detail-content-section {
    padding: 72px 0 110px;

    background: #ffffff;
}

.function-detail-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 285px;

    gap: 85px;

    align-items: start;
}

.function-detail-content {
    min-width: 0;
}


/* ========================================
   CONTENT SECTIONS
======================================== */

.function-copy-section {
    position: relative;

    padding: 42px 0;

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.function-copy-section.is-visible {
    opacity: 1;

    transform: translateY(0);
}

.function-copy-section:first-child {
    padding-top: 0;
}

.function-copy-section:last-child {
    border-bottom: 0;
}


/* ========================================
   INTRO
======================================== */

.function-copy-intro h2 {
    max-width: 650px;

    margin: 0 0 25px;

    color: #0A1022;

    font-family:
        "Graphik Trial",
        Arial,
        sans-serif;

    font-size: clamp(34px, 3.2vw, 46px);

    font-weight: 400;

    line-height: 1.08;

    letter-spacing: -1px;
}


/* ========================================
   HEADINGS
======================================== */

.function-copy-section h3 {
    margin: 0 0 17px;

    color: #0A1022;

    font-family:
        "Graphik Trial",
        Arial,
        sans-serif;

    font-size: 25px;

    font-weight: 400;

    line-height: 1.18;

    letter-spacing: -0.7px;
}


/* ========================================
   PARAGRAPHS
======================================== */

.function-copy-section p {
    max-width: 690px;

    margin: 0 0 17px;

    color: #4B5563;

    font-family:
        "Graphik Trial",
        Arial,
        sans-serif;

    font-size: 15px;

    font-weight: 400;

    line-height: 1.5;
}

.function-copy-section p:last-child {
    margin-bottom: 0;
}


/* ========================================
   ROLE LIST
======================================== */

.function-role-list {
    width: 100%;

    max-width: 690px;

    margin-top: 28px;

    padding: 26px 28px;

    background: #f7f9f9;

    border:
        1px solid rgba(10, 16, 34, 0.1);

    border-radius: 10px;
}

.function-role-list-label {
    display: block;

    margin-bottom: 18px;

    color: #006064;

    font-family:
        "Graphik Trial",
        Arial,
        sans-serif;

    font-size: 11px;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}

.function-role-list ul {
    margin: 0;

    padding: 0;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0 28px;

    list-style: none;
}

.function-role-list li {
    position: relative;

    min-height: 48px;

    padding: 13px 10px 13px 22px;

    display: flex;

    align-items: center;

    color: #4B5563;

    border-bottom:
        1px solid rgba(10, 16, 34, 0.09);

    font-family:
        "Graphik Trial",
        Arial,
        sans-serif;

    font-size: 16px;

    font-weight: 400;

    line-height: 1.45;
}

.function-role-list li::before {
    content: "";

    position: absolute;

    left: 0;

    width: 6px;
    height: 6px;

    border:
        1.5px solid #006064;

    border-radius: 50%;
}

.function-role-list li:nth-last-child(-n + 2) {
    border-bottom: 0;
}


/* ========================================
   LEADERSHIP QUALITIES
======================================== */

.leadership-section {
    margin-top: 0;
}

.leadership-section h3 {
    margin-bottom: 24px;
}

.leadership-quality-list {
    margin: 0;

    padding-left: 22px;
}

.leadership-quality-list li {
    margin: 0 0 18px;

    padding-left: 4px;

    color: #4B5563;

    font-family:
        "Graphik Trial",
        Arial,
        sans-serif;

    font-size: 15px;

    font-weight: 400;

    line-height: 1.5;
}

.leadership-quality-list li strong {
    color: #0A1022;

    font-weight: 600;
}

.leadership-quality-list li span {
    color: #4B5563;
}


/* ========================================
   CONTACT CARD
======================================== */

.function-contact-column {
    position: relative;
}

.function-contact-card {
    position: sticky;

    top: 115px;

    padding: 31px 28px;

    overflow: hidden;

    background:
        radial-gradient(circle at 90% 10%,
            rgba(120, 190, 185, 0.2),
            transparent 38%),
        linear-gradient(145deg,
            #06494c,
            #00575a);

    border-radius: 12px;

    box-shadow:
        0 24px 55px rgba(0, 65, 68, 0.18);
}

.function-contact-label {
    display: block;

    margin-bottom: 18px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.9px;

    text-transform: uppercase;
}

.function-contact-card h2 {
    margin: 0 0 10px;

    color: #ffffff;

    font-family:
        "Graphik Trial",
        Arial,
        sans-serif;

    font-size: 24px;

    font-weight: 300;

    line-height: 1.22;
}

.function-contact-divider {
    width: 100%;

    height: 1px;

    margin: 24px 0;

    background:
        rgba(255, 255, 255, 0.16);
}

.function-contact-phone {
    display: flex;

    align-items: center;

    gap: 14px;
}

.function-contact-icon {
    width: 38px;

    height: 38px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    border:
        1px solid rgba(255, 255, 255, 0.35);

    border-radius: 50%;
}

.function-contact-phone div {
    display: grid;

    gap: 4px;
}

.function-contact-phone div span {
    color:
        rgba(255, 255, 255, 0.58);

    font-size: 10px;
}

.function-contact-phone a {
    color: #ffffff;

    font-size: 16px;

    text-decoration: none;
}

.function-contact-button {
    width: 100%;

    padding: 12px 15px;

    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    color: #ffffff;

    border:
        1px solid rgba(255, 255, 255, 0.5);

    border-radius: 100px;

    font-size: 13px;

    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.function-contact-button:hover {
    color: #00575a;

    background: #ffffff;

    transform: translateY(-3px);
}


/* ========================================
   NEXT FUNCTION
======================================== */

.function-next-section {
    padding: 0 0 110px;

    background: #ffffff;
}

.function-next-link {
    width: 100%;

    padding: 32px 0;

    display: grid;

    grid-template-columns:
        150px minmax(0, 1fr) auto;

    gap: 30px;

    align-items: center;

    color: #0A1022;

    text-decoration: none;

    border-top:
        1px solid rgba(10, 16, 34, 0.12);

    border-bottom:
        1px solid rgba(10, 16, 34, 0.12);

    transition:
        padding-left 0.35s ease,
        color 0.3s ease;
}

.function-next-link:hover {
    padding-left: 12px;

    color: #006064;
}

.function-next-link>span {
    color: #4B5563;

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}

.function-next-link strong {
    font-size: 28px;

    font-weight: 400;

    letter-spacing: -0.8px;
}

.function-next-link i {
    width: 42px;

    height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(0, 96, 100, 0.25);

    border-radius: 50%;

    font-style: normal;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 991px) {

    .function-detail-container {
        width: calc(100% - 48px);
    }

    .function-detail-hero {
        padding: 135px 0 40px;
    }

    .function-detail-layout {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .function-contact-card {
        position: relative;

        top: auto;

        max-width: 480px;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .function-detail-container {
        width: calc(100% - 32px);
    }

    .function-detail-hero {
        padding: 110px 0 30px;
    }

    .function-detail-hero-copy {
        margin-bottom: 30px;
    }

    .function-detail-hero h1 {
        font-size: 42px;

        line-height: 1.03;

        letter-spacing: -1.7px;

        font-weight: 300 !important;
    }

    .function-detail-image-wrap {
        aspect-ratio: 1.25 / 1;

        border-radius: 10px;
    }

    .function-detail-content-section {
        padding: 10px 0 50px;
    }

    .function-detail-layout {
        gap: 20px;
    }

    .function-copy-section {
        padding: 34px 0;
    }

    .function-copy-intro h2 {
        font-size: 33px;

        line-height: 1.08;
    }

    .function-copy-section h3 {
        font-size: 23px;
    }

    .function-copy-section p {
        font-size: 18px;
    }


    /* ROLE LIST */

    .function-role-list {
        max-width: 100%;

        margin-top: 24px;

        padding: 22px 20px;
    }

    .function-role-list ul {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .function-role-list li {
        min-height: 46px;

        padding-top: 12px;

        padding-bottom: 12px;
    }

    .function-role-list li:nth-last-child(-n + 2) {
        border-bottom:
            1px solid rgba(10, 16, 34, 0.09);
    }

    .function-role-list li:last-child {
        border-bottom: 0;
    }


    /* LEADERSHIP */

    .leadership-section {
        margin-top: 0;
    }

    .leadership-quality-list {
        padding-left: 22px;
    }

    .leadership-quality-list li {
        font-size: 16px;

        margin-bottom: 15px;
    }


    /* CONTACT */

    .function-contact-column {
        display: none !important;
    }

    .function-contact-card {
        max-width: none;

        padding: 28px 23px;
    }


    /* NEXT */

    .function-next-section {
        padding-bottom: 50px;
    }

    .function-next-link {
        padding: 25px 0;

        grid-template-columns:
            1fr auto;

        gap: 15px;
    }

    .function-next-link>span {
        grid-column: 1 / -1;
    }

    .function-next-link strong {
        font-size: 23px;
    }
}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 430px) {

    .function-detail-container {
        width: calc(100% - 24px);
    }

    .function-detail-hero h1 {
        font-size: 38px;

        font-weight: 300 !important;
    }

    .function-copy-intro h2 {
        font-size: 30px;
    }
}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

    .function-detail-hero-copy,
    .function-detail-image-wrap,
    .function-copy-section {
        opacity: 1 !important;

        transform: none !important;

        transition: none !important;
    }
}

