/*==================================================
# FRONT PAGE
==================================================*/

:root {
    --mgr-brand: #5B84A6;
}

.portfolio-home {
    width: 100%;
}


/*==================================================
# HERO
==================================================*/

.hero-frontpage {
    position: relative;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;
    min-height: 350px;

    box-sizing: border-box;

    overflow: hidden;
}

.hero-frontpage::before,
.hero-frontpage::after {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;

    width: 50%;

    z-index: 0;
}

.hero-frontpage::before {
    left: 0;
    background: var(--mgr-light);
}

.hero-frontpage::after {
    right: 0;
    background: var(--mgr-dark);
}


/*--------------------------------------------------
# HERO MÒBIL
--------------------------------------------------*/

.hero-frontpage-mobil {
    display: none;

    position: relative;

    width: 100%;
    min-height: 240px;

    box-sizing: border-box;

    background: var(--mgr-light);

    overflow: hidden;
}


/*--------------------------------------------------
# LOGO
--------------------------------------------------*/

.hero-frontpage__logo {
    position: absolute;
    inset: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    box-sizing: border-box;

    padding: 60px 20px 0px 20px;

    z-index: 10;
}

.hero-frontpage__logo img {
    display: block;

    width: min(500px, 70%);
    max-width: 100%;

    height: auto;
}


/*==================================================
# SPLIT LAYOUT
==================================================*/

.portfolio-split {
    position: relative;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    min-height: 100vh;
}

.portfolio-half {
    display: flex;
    justify-content: center;

    padding: 0px 0px 20px 0px;

    box-sizing: border-box;
}

.portfolio-half--web {
    background: var(--mgr-light);
    color: #111;
}

.portfolio-half--design {
    background: var(--mgr-dark);
    color: #fff;
}


/*==================================================
# INNER
==================================================*/

.portfolio-inner {
    width: 100%;
    max-width: 1400px;

    padding: 40px;

    box-sizing: border-box;
}


/*==================================================
# SECTION
==================================================*/

.portfolio-section {
    display: flex;
    flex-direction: column;
}


/*==================================================
# HEADER
==================================================*/

.portfolio-section-header {
    display: flex;
    flex-direction: column;

    margin-bottom: 60px;
}


/*--------------------------------------------------
# ETIQUETA
--------------------------------------------------*/

.portfolio-title-box {
    display: flex;

    align-items: center;
    justify-content: center;

    align-self: flex-end;

    width: 100%;
    min-height: 60px;

    padding: 0 30px;

    box-sizing: border-box;

    background: var(--mgr-dark);
    color: var(--mgr-light);

    border-radius: 999px 0 0 999px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.portfolio-title-box--right {
    align-self: flex-start;

    background: var(--mgr-light);
    color: var(--mgr-dark);

    border-radius: 0 999px 999px 0;
}


/*--------------------------------------------------
# TÍTOL
--------------------------------------------------*/

.portfolio-section-title {
    margin: 0;

    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;

    text-align: center;
}


/*--------------------------------------------------
# DESCRIPCIÓ
--------------------------------------------------*/

.portfolio-section-description-web,
.portfolio-section-description-disseny {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;

    line-height: 1.8;

    text-align: center;
}

.portfolio-description-items,
.portfolio-description-disseny-items {
    display: inline-flex;
    align-items: center;

    padding: 10px 14px;

    border-radius: 10px;

    font-size: 1rem;
    line-height: 1.2;
}

.portfolio-description-items {
    background-color: var(--mgr-dark);
    color: var(--mgr-light);
    font-weight: 500;
}

.portfolio-description-disseny-items {
    background-color: var(--mgr-light);
    color: var(--mgr-dark);
    font-weight: 500;
}


/*==================================================
# GRID
==================================================*/

.portfolio-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;
}


/*==================================================
# FOOTER
==================================================*/

.portfolio-section-footer {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.portfolio-more-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 6px 12px;

    background-color: var(--mgr-brand);

    border: 1px solid var(--mgr-brand);
    border-radius: 999px;

    color: var(--mgr-light);

    text-decoration: none;

    font-weight: 600;

    transition:
        background-color .3s ease,
        color .3s ease;
}

.portfolio-more-link:hover {
    background-color: transparent;
    color: var(--mgr-brand);
}


/*==================================================
# DIVISOR
==================================================*/

.portfolio-split::after {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 2px;
    height: 100%;

    transform: translateX(-50%);

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(91, 132, 166, .35),
        transparent
    );
}


/*==================================================
# TABLET GRAN
==================================================*/

@media (max-width: 1200px) {

    /*--------------------------------------------------
    # HERO
    --------------------------------------------------*/

    .hero-frontpage {
        min-height: 420px;
    }

    .hero-frontpage__logo {
        padding: 50px 30px;
    }

    .hero-frontpage__logo img {
        width: min(460px, 75%);
    }


    /*--------------------------------------------------
    # INNER
    --------------------------------------------------*/

    .portfolio-inner {
        width: 100%;
        max-width: none;

        padding: 30px;
    }
}


/*==================================================
# TABLET
==================================================*/

@media (max-width: 1024px) {

    /*--------------------------------------------------
    # HERO
    --------------------------------------------------*/

    .hero-frontpage {
        min-height: 380px;
    }

    .hero-frontpage__logo {
        padding: 45px 30px;
    }

    .hero-frontpage__logo img {
        width: min(420px, 78%);
    }


    /*--------------------------------------------------
    # SPLIT
    --------------------------------------------------*/

    .portfolio-split {
        grid-template-columns: 1fr;
    }

    .portfolio-split::after {
        display: none;
    }

    .portfolio-half {
        padding: 70px 0;
    }


    /*--------------------------------------------------
    # TITLE
    --------------------------------------------------*/

    .portfolio-title-box {
        margin-left: 0;
    }

    .portfolio-title-box--right {
        margin-right: 0;
    }

    .portfolio-section-title {
        font-size: 1.5rem;
    }


    /*--------------------------------------------------
    # DESCRIPTION
    --------------------------------------------------*/

    .portfolio-half--design .portfolio-section-description {
        margin-left: 0;

        text-align: center;
    }


    /*--------------------------------------------------
    # FOOTER
    --------------------------------------------------*/

}


/*==================================================
# MOBILE
==================================================*/

@media (max-width: 768px) {

    /*--------------------------------------------------
    # HERO DESKTOP
    --------------------------------------------------*/

    .hero-frontpage {
        display: none;
    }


    /*--------------------------------------------------
    # HERO MOBILE
    --------------------------------------------------*/

    .hero-frontpage-mobil {
        display: flex;

        min-height: 240px;

        padding: 0 20px;
    }

    .hero-frontpage-mobil .hero-frontpage__logo {
        padding: 60px 20px 20px 20px;
    }

    .hero-frontpage-mobil .hero-frontpage__logo img {
        width: min(360px, 85%);
        max-width: 100%;
    }


    /*--------------------------------------------------
    # SPLIT
    --------------------------------------------------*/

    .portfolio-half {
        padding: 0px;
    }


    /*--------------------------------------------------
    # INNER
    --------------------------------------------------*/

    .portfolio-inner {
        width: 100%;

        padding: 15px;
    }


    /*--------------------------------------------------
    # HEADER
    --------------------------------------------------*/

    .portfolio-section-header {
        margin-bottom: 40px;
    }


    /*--------------------------------------------------
    # TITLE
    --------------------------------------------------*/

    .portfolio-title-box {
        width: 100%;

        min-height: 60px;

        margin: 0;

        padding: 10px;

        border-radius: 18px;

        justify-content: center;
    }

    .portfolio-title-box--right {
        border-radius: 18px;
        margin-top: 20px;
    }

    .portfolio-section-title {
        font-size: 1.2rem;
    }


    /*--------------------------------------------------
    # DESCRIPTION
    --------------------------------------------------*/

    .portfolio-section-description-web,
    .portfolio-section-description-disseny {
        gap: 8px;

        margin-top: 20px;
    }

    .portfolio-description-items,
    .portfolio-description-disseny-items {
        padding: 5px 10px;

        font-size: .9rem;
    }


    /*--------------------------------------------------
    # GRID
    --------------------------------------------------*/

    .portfolio-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    /*--------------------------------------------------
    # FOOTER
    --------------------------------------------------*/

    .portfolio-section-footer {
        margin-top: 30px;
        margin-bottom: 20px;
    }
}


/*==================================================
# MOBILE PETIT
==================================================*/

