/* ── RESET & BASE ─────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand-navy: #1C477E;
    /* #1d4780 ≈ rgb(0.114, 0.278, 0.494) */
    --brand-dark: #112040;
    /* CTA background rgb(0.067, 0.125, 0.247) */
    --brand-light-bg: #F1F7FF;
    /* page bg rgb(0.945, 0.969, 1) */
    --brand-teal: #063231;
    /* body text rgb(0.024, 0.196, 0.192) */
    --linkedin-blue: #4B9ED9;
    /* rgb(0.294, 0.620, 0.851) */
    --white: #ffffff;
    --overlay-blue: rgba(29, 71, 126, 0.60);
    --card-radius: 8px;
    --transition: 0.30s ease;
}

/* ── HERO / HEADER ────────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    /* Grayscale to match the -1 saturation filter in Figma */
    filter: saturate(0.1) brightness(0.95);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(29, 71, 126, 0.45);
}

/* ── MAIN CONTENT ─────────────────────────────────────────────── */
.content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 120px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* ── INTRO BLOCK ──────────────────────────────────────────────── */
.intro {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1200px;
}

.intro__title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.375;
    letter-spacing: -0.96px;
    color: var(--brand-navy);
}

.intro__body {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: var(--brand-teal);
    max-width: 1200px;
}

/* ── TEAM GRID ────────────────────────────────────────────────── */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 0px;
    /* additional inner padding from Figma */
}

.team-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ── TEAM CARD ────────────────────────────────────────────────── */
.card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    aspect-ratio: 416 / 588;
    cursor: pointer;
    background: #ccc;
}

/* Photo layer */
.card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0);
    transition: filter var(--transition), transform 0.4s ease;
}

/* Default overlay (always visible at bottom) */
.card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 191px;
    background: var(--overlay-blue);
    /*padding: 24px;*/
    padding: 19px 0px 0px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    transition: opacity var(--transition);
}

.card__name {
    font-family: 'Poppins', sans-serif;
    /*font-size: 32px;*/
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

.card__role {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--white);
}

.card__country {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--white);
}

/* LinkedIn badge (top-left, visible by default in Figma "default" variant) */
.card__linkedin-wrap {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 57px;
    height: 57px;
    background: var(--linkedin-blue);
    border-radius: 7.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--transition), transform var(--transition);
    text-decoration: none;
}

.card__linkedin-wrap svg {
    width: 25px;
    height: 24px;
    fill: var(--white);
}

/* ── HOVER STATE (mirrors the Figma DISSOLVE ON_HOVER variant) ── */
.card:hover .card__photo {
    filter: saturate(1);
    transform: scale(1.04);
}

.card:hover .card__info {
    background: rgba(29, 71, 126, 0.80);
}

.card:hover .card__linkedin-wrap {
    opacity: 1;
    transform: scale(1.1);
}

/* Focus styles for accessibility */
.card:focus-visible {
    outline: 3px solid var(--linkedin-blue);
    outline-offset: 2px;
}

/* ── CTA SECTION ──────────────────────────────────────────────── */
.cta-section {
    position: relative;
    background: var(--brand-dark);
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 372px;
}

.cta-section__waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
}

/* SVG wave decoration mimicking the "ondas" image from Figma */
.cta-section__waves::before,
.cta-section__waves::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .25);
}

.cta-section__waves::before {
    width: 800px;
    height: 800px;
    right: -200px;
    bottom: -300px;
    box-shadow: 0 0 0 60px rgba(255, 255, 255, .04), 0 0 0 120px rgba(255, 255, 255, .03), 0 0 0 200px rgba(255, 255, 255, .02);
}

.cta-section__waves::after {
    width: 700px;
    height: 700px;
    left: -350px;
    top: -350px;
    box-shadow: 0 0 0 50px rgba(255, 255, 255, .04), 0 0 0 110px rgba(255, 255, 255, .03);
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    text-align: center;
    max-width: 856px;
}

.cta-content__texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-content__title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--white);
}

.cta-content__sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .75);
    max-width: 600px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #11203F;
    background: #4B9ED9;
    border: none;
    border-radius: 8px;
    padding: 14px 36px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.cta-btn:hover {
    background: #e8f0ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
    background: var(--brand-dark);
    padding: 80px;
}

.footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__logo-mark {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--white);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__links a {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__divider {
    height: 1px;
    background: rgba(255, 255, 255, .12);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
}

/* ── MOBILE NAV MENU ──────────────────────────────────────────── */
.nav__mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px;
}

.nav__mobile-menu.is-open {
    display: flex;
}

.nav__mobile-menu a {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--brand-navy);
    text-decoration: none;
}

.nav__mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--brand-navy);
}

/* ── SCROLL REVEAL ────────────────────────────────────────────── */
/*.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}*/

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .content {
        padding: 60px 60px;
    }

    .team-grid {
        padding: 0 20px;
    }

    .intro__title {
        font-size: 40px;
    }

    .card__name {
        font-size: 26px;
    }

    .card__role {
        font-size: 20px;
    }

    .card__country {
        font-size: 17px;
    }
}

@media (max-width: 900px) {
    .content {
        padding: 48px 32px;
        gap: 48px;
    }

    .team-grid {
        padding: 0;
    }

    .team-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .intro__title {
        font-size: 34px;
        letter-spacing: -0.5px;
    }

    .intro__body {
        font-size: 16px;
        line-height: 26px;
    }

    .cta-section {
        padding: 80px 40px;
    }

    .cta-content__title {
        font-size: 28px;
    }

    .footer {
        padding: 60px 32px;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 0 20px;
        height: 72px;
    }

    .nav__links {
        display: none;
    }

    .nav__hamburger {
        display: block;
    }

    .hero {
        height: 280px;
    }

    .content {
        padding: 40px 20px;
        gap: 40px;
    }

    .intro__title {
        font-size: 26px;
        letter-spacing: -0.3px;
        line-height: 1.3;
    }

    .intro__body {
        font-size: 15px;
        line-height: 24px;
    }

    .team-grid {
        padding: 0;
        gap: 16px;
    }

    .team-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        aspect-ratio: 3 / 2.8;
    }

    .card__name {
        font-size: 22px;
    }

    .card__role {
        font-size: 16px;
    }

    .card__country {
        font-size: 14px;
    }

    .card__info {
        height: 160px;
        padding: 18px;
    }

    .cta-section {
        padding: 64px 24px;
    }

    .cta-content__title {
        font-size: 22px;
    }

    .cta-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .footer {
        padding: 48px 24px;
    }

    .footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .footer__links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 400px) {
    .card__name {
        font-size: 18px;
    }

    .card__role {
        font-size: 14px;
    }

    .card__country {
        font-size: 13px;
    }
}