/* =========================================
   VARIABLES
========================================= */

:root {
    --primary-blue: #004b87;
    --sky-blue: #00a3e0;
    --dark-navy: #142036;
    --black: #050505;
    --white: #ffffff;
    --light-grey: #f3f5f8;
    --medium-grey: #657080;
    --text-colour: #303846;

    --content-width: 1180px;
    --header-height: 104px;
}


/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text-colour);
    background-color: var(--white);
    line-height: 1.7;
}

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

a {
    color: inherit;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: var(--header-height);
    background-color: var(--black);

    border-top: 3px solid var(--sky-blue);
}

.header-container {
    width: min(100% - 48px, 1400px);
    min-height: var(--header-height);

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    width: 190px;
    height: auto;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: clamp(22px, 3vw, 48px);
}

.main-navigation a {
    position: relative;

    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;

    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.035em;

    padding: 12px 0;
}

.main-navigation a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 4px;

    width: 0;
    height: 3px;

    background-color: var(--sky-blue);

    transition: width 180ms ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus-visible::after {
    width: 100%;
}


/* =========================================
   HERO PHOTO
========================================= */

.hero {
    width: 100%;
    background-color: var(--dark-navy);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;

    /*
       The entire image remains visible and expands
       dynamically according to the browser width.
    */
    object-fit: contain;
}


/* Optional version for a cinematic crop

.hero-image {
    width: 100%;
    height: clamp(420px, 62vw, 850px);
    object-fit: cover;
    object-position: center top;
}

*/


/* =========================================
   GENERAL SECTIONS
========================================= */

.content-section,
.contact-section {
    padding: clamp(70px, 9vw, 120px) 24px;
}

.section-container {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.section-label {
    margin: 0 0 8px;

    color: var(--sky-blue);

    font-size: 0.9rem;
    font-weight: 800;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;

    color: var(--dark-navy);

    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.1;

    letter-spacing: -0.035em;
}

.title-line {
    width: 75px;
    height: 5px;

    margin: 24px 0 38px;

    background: linear-gradient(
        90deg,
        var(--primary-blue),
        var(--sky-blue)
    );
}

.section-introduction {
    max-width: 760px;
    margin: 0 0 42px;

    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--medium-grey);
}


/* =========================================
   BIOGRAPHY
========================================= */

.biography-section {
    background-color: var(--white);
}

.biography-text {
    max-width: 900px;

    font-size: 1.08rem;
    line-height: 1.85;
}

.biography-text p {
    margin-top: 0;
    margin-bottom: 1.45rem;
}

.biography-text p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--dark-navy);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 18px;

    color: var(--primary-blue);
    text-decoration: none;

    font-weight: 700;
}

.text-link span {
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

.text-link:hover {
    text-decoration: underline;
}


/* =========================================
   SURVEY
========================================= */

.survey-section {
    background-color: var(--light-grey);
}

.survey-wrapper {
    width: 100%;

    background-color: var(--white);

    border-radius: 14px;
    overflow: hidden;

    box-shadow:
        0 18px 50px rgba(20, 32, 54, 0.12);
}

.survey-wrapper iframe {
    display: block;

    width: 100%;
    min-height: 900px;

    border: 0;
}

.coming-soon {
    max-width: 800px;
    margin: 40px auto;
    padding: 60px 40px;

    text-align: center;

    background: #ffffff;
    border: 2px dashed #00A3E0;
    border-radius: 12px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.coming-soon h3 {
    margin-top: 0;
    margin-bottom: 20px;

    color: #004B87;
    font-size: 2rem;
}

.coming-soon p {
    margin-bottom: 18px;

    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* =========================================
   CONTACT
========================================= */

.contact-section {
    background-color: var(--white);
}

.contact-list {
    max-width: 850px;

    display: grid;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;

    gap: 22px;

    padding: 22px 24px;

    color: var(--dark-navy);
    text-decoration: none;

    background-color: var(--light-grey);

    border-left: 5px solid transparent;
    border-radius: 8px;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.contact-item:hover,
.contact-item:focus-visible {
    transform: translateX(6px);

    border-left-color: var(--sky-blue);
    background-color: #eaf6fc;
}

.contact-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background-color: var(--primary-blue);

    border-radius: 50%;

    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}

.email-icon {
    font-size: 1.3rem;
}

.website-icon {
    font-size: 1.5rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
}

.contact-title {
    color: var(--dark-navy);

    font-size: 1rem;
    font-weight: 800;
}

.contact-detail {
    color: var(--primary-blue);

    font-size: clamp(0.92rem, 2vw, 1.12rem);

    overflow-wrap: anywhere;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 32px 24px;

    color: var(--white);
    background-color: var(--black);
}

.footer-container {
    width: min(100%, var(--content-width));
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 24px;
}

.footer-container p {
    margin: 0;
}

.footer-container a {
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 700;
}

.footer-container a:hover {
    text-decoration: underline;
}


/* =========================================
   KEYBOARD ACCESSIBILITY
========================================= */

a:focus-visible {
    outline: 3px solid var(--sky-blue);
    outline-offset: 5px;
}


/* =========================================
   TABLETS
========================================= */

@media (max-width: 850px) {

    :root {
        --header-height: auto;
    }

    html {
        scroll-padding-top: 150px;
    }

    .header-container {
        width: min(100% - 32px, 1400px);

        padding: 18px 0;

        flex-direction: column;
        align-items: center;

        gap: 12px;
    }

    .site-logo {
        width: 165px;
    }

    .main-navigation {
        width: 100%;

        justify-content: center;
        flex-wrap: wrap;

        gap: 8px 28px;
    }

    .main-navigation a {
        font-size: 0.83rem;
    }

    .content-section,
    .contact-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .survey-wrapper iframe {
        min-height: 1050px;
    }

}


/* =========================================
   MOBILE PHONES
========================================= */

@media (max-width: 550px) {

    html {
        scroll-padding-top: 170px;
    }

    .site-header {
        position: relative;
    }

    .header-container {
        width: min(100% - 24px, 1400px);
    }

    .site-logo {
        width: 150px;
    }

    .main-navigation {
        gap: 4px 18px;
    }

    .main-navigation a {
        font-size: 0.74rem;
        letter-spacing: 0.02em;
    }

    .content-section,
    .contact-section {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    h1,
    h2 {
        font-size: 2.25rem;
    }

    .biography-text {
        font-size: 1rem;
        line-height: 1.75;
    }

    .biography-text p:first-child {
        font-size: 1.08rem;
    }

    .contact-item {
        align-items: flex-start;

        padding: 18px;
        gap: 16px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;

        font-size: 1.35rem;
    }

    .survey-wrapper {
        border-radius: 8px;
    }

    .survey-wrapper iframe {
        min-height: 1200px;
    }

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

}