/* =========================================================
   PAGINA ECHIPA IFL
   ========================================================= */

.ifl-team-page {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: var(--ifl-text);
    background: var(--ifl-white);
    font-family: "Montserrat", Arial, sans-serif;
}

.ifl-team-page *,
.ifl-team-page *::before,
.ifl-team-page *::after {
    box-sizing: border-box;
}

.ifl-team-container {
    width: min(
        calc(
            100% -
            var(--site-gutter, 24px) -
            var(--site-gutter, 24px)
        ),
        var(--site-max-width, 1600px)
    );
    margin-inline: auto;
}

/* =========================================================
   ELEMENTE COMUNE
   ========================================================= */

.ifl-team-kicker,
.ifl-team-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ifl-green-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.ifl-team-kicker::before,
.ifl-team-section-label::before {
    content: "";
    width: 30px;
    height: 2px;
    flex: 0 0 30px;
    background: var(--ifl-green);
    border-radius: 999px;
}

/* =========================================================
   HERO
   ========================================================= */

.ifl-team-hero {
    position: relative;
    padding:
        clamp(55px, 5.5vw, 105px)
        0
        clamp(65px, 6vw, 115px);
    background:
        radial-gradient(
            circle at 93% 7%,
            rgba(102, 189, 90, 0.13),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            var(--ifl-white),
            rgba(34, 51, 81, 0.035)
        );
}

.ifl-team-hero-heading {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: clamp(38px, 4vw, 65px);
}

.ifl-team-hero-heading h1 {
    margin: 14px 0 0;
    color: var(--ifl-navy);
    font-size: clamp(44px, 4.8vw, 82px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -2.8px;
}

.ifl-team-hero-heading h1 span {
    display: block;
    color: var(--ifl-green);
}

.ifl-team-hero-heading > p {
    max-width: 730px;
    margin: 23px 0 0;
    color: rgba(38, 50, 71, 0.7);
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 500;
    line-height: 1.85;
}

.ifl-team-hero-card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(430px, 0.95fr);
    overflow: hidden;
}

.ifl-team-hero-content {
    padding: clamp(38px, 4.5vw, 75px);
}

.ifl-team-hero-content h2 {
    margin: 16px 0 0;
    color: var(--ifl-navy);
    font-size: clamp(31px, 3vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.4px;
}

.ifl-team-hero-content h2 span {
    display: block;
    color: var(--ifl-green);
}

.ifl-team-hero-content > p {
    margin: 20px 0 0;
    color: rgba(38, 50, 71, 0.68);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.85;
}

/* Statistici */

.ifl-team-highlights {
    display: grid;
    gap: 13px;
    margin-top: 30px;
}

.ifl-team-highlight {
    display: grid;
    grid-template-columns: minmax(105px, 145px) 1fr;
    padding: 16px 18px;
    align-items: center;
    gap: 16px;
    background: rgba(34, 51, 81, 0.035);
    border: 1px solid rgba(34, 51, 81, 0.055);
    border-radius: 12px;
}

.ifl-team-highlight strong {
    color: var(--ifl-green-dark);
    font-size: clamp(21px, 1.7vw, 29px);
    font-weight: 800;
    line-height: 1.1;
}

.ifl-team-highlight span {
    color: rgba(38, 50, 71, 0.72);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.55;
}

.ifl-team-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 31px;
}

.ifl-team-primary-button,
.ifl-team-secondary-button {
    display: inline-flex;
    min-height: 51px;
    padding: 0 21px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.ifl-team-primary-button {
    color: var(--ifl-white);
    background: var(--ifl-navy);
    border: 1px solid var(--ifl-navy);
    box-shadow: 0 13px 26px rgba(34, 51, 81, 0.17);
}

.ifl-team-primary-button svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.ifl-team-secondary-button {
    color: var(--ifl-navy);
    background: var(--ifl-white);
    border: 1px solid rgba(34, 51, 81, 0.17);
}

.ifl-team-primary-button:hover {
    color: var(--ifl-white);
    background: var(--ifl-green-dark);
    border-color: var(--ifl-green-dark);
    transform: translateY(-2px);
}

.ifl-team-secondary-button:hover {
    color: var(--ifl-green-dark);
    border-color: var(--ifl-green);
    transform: translateY(-2px);
}

/* Imagine */

.ifl-team-hero-media {
    position: relative;
    min-height: 100%;
}

.ifl-team-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 560px;
    overflow: hidden;
}

.ifl-team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ifl-team-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(27, 42, 68, 0.17)
        );
    pointer-events: none;
}

.ifl-team-image-accent {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 42%;
    height: 6px;
    background: var(--ifl-green);
}

.ifl-team-floating-card {
    position: absolute;
    right: 25px;
    bottom: 25px;
    z-index: 3;
    display: flex;
    max-width: 285px;
    padding: 17px 19px;
    align-items: center;
    gap: 13px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(34, 51, 81, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(20, 37, 62, 0.17);
    backdrop-filter: blur(10px);
}

.ifl-team-floating-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    color: var(--ifl-white);
    background: var(--ifl-green);
    border-radius: 12px;
}

.ifl-team-floating-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.ifl-team-floating-card strong,
.ifl-team-floating-card span {
    display: block;
}

.ifl-team-floating-card strong {
    color: var(--ifl-navy);
    font-size: 12px;
    font-weight: 800;
}

.ifl-team-floating-card div > span {
    margin-top: 3px;
    color: rgba(38, 50, 71, 0.6);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.5;
}

/* =========================================================
   BANDĂ
   ========================================================= */

.ifl-team-statement {
    padding: 0 0 clamp(60px, 6vw, 105px);
    background: var(--ifl-white);
}

.ifl-team-statement-inner {
    padding: clamp(30px, 3.5vw, 52px);
    text-align: center;
    color: var(--ifl-white);
    background:
        linear-gradient(
            135deg,
            var(--ifl-navy-dark),
            var(--ifl-navy)
        );
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(34, 51, 81, 0.17);
}

.ifl-team-statement-inner > span {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ifl-team-statement-inner h2 {
    margin: 0;
    color: var(--ifl-white);
    font-size: clamp(25px, 2.8vw, 47px);
    font-weight: 800;
    line-height: 1.15;
}

.ifl-team-statement-inner h2 strong {
    color: var(--ifl-green);
}

/* =========================================================
   TEHNOLOGIE ȘI VALORI
   ========================================================= */

.ifl-team-technology {
    padding:
        clamp(70px, 7vw, 125px)
        0;
    background: rgba(34, 51, 81, 0.04);
}

.ifl-team-technology-wrapper {
    display: grid;
    grid-template-columns:
        minmax(320px, 0.8fr)
        minmax(520px, 1.2fr);
    align-items: center;
    gap: clamp(45px, 7vw, 115px);
}

.ifl-team-technology-content h2 {
    margin: 16px 0 0;
    color: var(--ifl-navy);
    font-size: clamp(34px, 3.5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.ifl-team-technology-content h2 span {
    display: block;
    color: var(--ifl-green);
}

.ifl-team-technology-content > p {
    max-width: 650px;
    margin: 19px 0 0;
    color: rgba(38, 50, 71, 0.7);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.85;
}

.ifl-team-technology-content blockquote {
    position: relative;
    margin: 28px 0 0;
    padding: 20px 22px 20px 26px;
    color: var(--ifl-navy);
    background: var(--ifl-white);
    border-left: 4px solid var(--ifl-green);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 12px 28px rgba(34, 51, 81, 0.07);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
}

.ifl-team-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.ifl-team-value-card {
    position: relative;
    min-height: 220px;
    padding: 27px;
    background: var(--ifl-white);
    border: 1px solid rgba(34, 51, 81, 0.08);
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(34, 51, 81, 0.06);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.ifl-team-value-card:hover {
    border-color: rgba(102, 189, 90, 0.38);
    box-shadow: 0 21px 44px rgba(34, 51, 81, 0.11);
    transform: translateY(-5px);
}

.ifl-team-value-number {
    position: absolute;
    top: 22px;
    right: 22px;
    color: rgba(34, 51, 81, 0.22);
    font-size: 11px;
    font-weight: 800;
}

.ifl-team-value-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 21px;
    place-items: center;
    color: var(--ifl-green-dark);
    background: rgba(102, 189, 90, 0.1);
    border: 1px solid rgba(102, 189, 90, 0.2);
    border-radius: 13px;
}

.ifl-team-value-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.ifl-team-value-card h3 {
    margin: 0;
    color: var(--ifl-navy);
    font-size: 18px;
    font-weight: 800;
}

.ifl-team-value-card p {
    margin: 11px 0 0;
    color: rgba(38, 50, 71, 0.65);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
}

/* =========================================================
   CTA
   ========================================================= */

.ifl-team-cta {
    padding:
        clamp(65px, 6vw, 105px)
        0
        clamp(75px, 7vw, 125px);
    background: var(--ifl-white);
}

.ifl-team-cta-inner {
    display: flex;
    padding: clamp(34px, 4vw, 64px);
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: var(--ifl-white);
    background:
        linear-gradient(
            135deg,
            var(--ifl-navy-dark),
            var(--ifl-navy)
        );
    border-radius: 24px;
    box-shadow: 0 24px 58px rgba(34, 51, 81, 0.19);
}

.ifl-team-cta-inner > div > span {
    display: block;
    margin-bottom: 8px;
    color: var(--ifl-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.ifl-team-cta-inner h2 {
    max-width: 850px;
    margin: 0;
    color: var(--ifl-white);
    font-size: clamp(27px, 3vw, 48px);
    font-weight: 800;
    line-height: 1.15;
}

.ifl-team-cta-inner h2 strong {
    color: var(--ifl-green);
}

.ifl-team-cta-inner > a {
    display: inline-flex;
    min-width: 230px;
    min-height: 54px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--ifl-white);
    background: var(--ifl-green-dark);
    border-radius: 11px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.ifl-team-cta-inner > a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ifl-team-cta-inner > a:hover {
    color: var(--ifl-white);
    box-shadow: 0 16px 30px rgba(102, 189, 90, 0.27);
    transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .ifl-team-hero-card {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(390px, 0.9fr);
    }

    .ifl-team-technology-wrapper {
        grid-template-columns:
            minmax(280px, 0.75fr)
            minmax(450px, 1.25fr);
        gap: 45px;
    }
}

@media (max-width: 900px) {
    .ifl-team-hero-card,
    .ifl-team-technology-wrapper {
        grid-template-columns: 1fr;
    }

    .ifl-team-image-wrapper {
        min-height: 480px;
    }

    .ifl-team-hero-media {
        order: -1;
    }

    .ifl-team-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .ifl-team-container {
        width: calc(100% - 30px);
    }

    .ifl-team-hero {
        padding: 46px 0 65px;
    }

    .ifl-team-hero-heading h1 {
        font-size: clamp(39px, 11vw, 52px);
        letter-spacing: -1.8px;
    }

    .ifl-team-hero-card {
        border-radius: 19px;
    }

    .ifl-team-hero-content {
        padding: 30px 22px;
    }

    .ifl-team-image-wrapper {
        min-height: 330px;
    }

    .ifl-team-floating-card {
        position: static;
        max-width: none;
        margin: 13px;
    }

    .ifl-team-highlight {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .ifl-team-hero-actions {
        flex-direction: column;
    }

    .ifl-team-primary-button,
    .ifl-team-secondary-button {
        width: 100%;
    }

    .ifl-team-values-grid {
        grid-template-columns: 1fr;
    }

    .ifl-team-value-card {
        min-height: auto;
    }

    .ifl-team-cta-inner > a {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ifl-team-page *,
    .ifl-team-page *::before,
    .ifl-team-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}