/* ==================================================
   VARIABLES
================================================== */

:root{

    --color-primario:#123A63;
    --color-secundario:#2B6E8A;
    --color-acento:#5FA8D3;

    --color-fondo:#FFFFFF;
    --color-fondo-claro:#F7F9FB;

    --color-texto:#2F3A45;
    --color-texto-suave:#6B7280;

    --fuente-titulos:"Montserrat", sans-serif;
    --fuente-texto:"Source Sans 3", sans-serif;

    --ancho-maximo:1280px;

}


/* ==================================================
   RESET
================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{

    width:100%;
    max-width:100%;

    overflow-x:hidden;

}

html{
    scroll-behavior:smooth;
}

body{

    font-family:var(--fuente-texto);

    color:var(--color-texto);

    background:var(--color-fondo);

    line-height:1.6;

}

img{

    max-width:100%;
    display:block;

}

a{

    text-decoration:none;
    color:inherit;

}

button{
    font-family:inherit;
}

.container{

    width:90%;
    max-width:var(--ancho-maximo);

    margin:0 auto;

}


/* ==================================================
   TIPOGRAFÍA
================================================== */

h1,
h2,
h3,
h4{

    font-family:var(--fuente-titulos);

    color:var(--color-primario);

    line-height:1.2;

}

h1{
    font-weight:700;
}

h2{
    font-size:2.8rem;
    margin-bottom:25px;
}

h3{
    font-size:1.35rem;
}

p{

    font-size:1.05rem;

    color:var(--color-texto);

}

.section-subtitle{

    display:block;

    font-family:var(--fuente-titulos);

    font-size:.85rem;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    color:var(--color-secundario);

}


/* ==================================================
   BOTONES
================================================== */

.btn{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    gap:10px;

    padding:14px 30px;

    border-radius:50px;

    background:var(--color-secundario);

    color:white;

    font-family:var(--fuente-titulos);

    font-size:.9rem;

    font-weight:600;

    transition:all .3s ease;

}

.btn:hover{

    background:var(--color-primario);

    transform:translateY(-3px);

    box-shadow:0 10px 25px rgba(18,58,99,.2);

}

.btn span{

    transition:transform .3s ease;

}

.btn:hover span{

    transform:translateX(5px);

}

.btn-outline{

    background:transparent;

    color:var(--color-secundario);

    border:1px solid var(--color-secundario);

}

.btn-outline:hover{

    background:var(--color-secundario);

    color:white;

}


/* ==================================================
   HEADER
================================================== */

.header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    height:95px;

    z-index:1000;

    transition:.35s ease;

}

.header::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        to bottom,
        rgba(0,0,0,.45),
        rgba(0,0,0,.15),
        transparent
    );

    z-index:-1;

    transition:.35s;

}

.header.scrolled{

    background:rgba(255,255,255,.96);

    backdrop-filter:blur(14px);

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.header.scrolled::before{

    opacity:0;

}

.header-container{

    height:95px;

    display:flex;

    align-items:center;

}

.logo{

    flex:0 0 18%;

    display:flex;

    align-items:center;

    margin-top:22px;

}

.logo img{

    height:95px;

    width:auto;

    display:block;

}

.main-nav{

    flex:1;

    display:flex;

    justify-content:center;

    margin-top:3px;

}

.nav-menu{

    display:flex;

    list-style:none;

    gap:42px;

    margin:0;

    padding:0;

}

.nav-menu a{

    color:white;

    text-decoration:none;

    font-family:var(--fuente-titulos);

    font-size:.95rem;

    font-weight:600;

    transition:.3s;

}

.nav-menu a:hover{

    color:#D7F2FF;

}

.header-actions{

    display:flex;

    align-items:center;

    gap:28px;

}

.header-actions a{

    color:white;

    text-decoration:none;

    font-family:var(--fuente-titulos);

    font-size:.92rem;

    transition:.3s;

    display:flex;

    align-items:center;

    gap:8px;

}

.header-actions a:hover{

    color:#D7F2FF;

}

.header-actions i{

    font-size:.85rem;

    opacity:.9;

}

.language-selector{

    display:flex;

    gap:8px;

    align-items:center;

}

.language-selector span{

    color:rgba(255,255,255,.5);

}

.header.scrolled .nav-menu a,
.header.scrolled .header-actions a{

    color:var(--color-primario);

}

.header.scrolled .language-selector span{

    color:#B5BBC2;

}

.current{

    position:relative;

}

.current::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:100%;

    height:2px;

    background:white;

    border-radius:50px;

}

.header.scrolled .current::after{

    background:var(--color-secundario);

}

.mobile-extra{

    display:none;

}

.menu-toggle{

    display:none;

}


/* =========================
   HERO
========================= */

.projectes-hero{
    min-height:65vh;
    background-image:
        linear-gradient(
            rgba(8,34,56,.55),
            rgba(8,34,56,.55)
        ),
        url("../images/projectes/hero.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    display:flex;
    align-items:center;
}

.projectes-hero-overlay{
    width:100%;
    padding:100px 0 70px;
}

.projectes-hero-content{
    max-width:1000px;
}

.projectes-hero .section-subtitle{
    color:#BEE8F6;
}

.projectes-hero h1{
    color:white;
    font-size:3.8rem;
    line-height:1.1;
    margin:20px 0;
}

.projectes-hero p{
    max-width:650px;
    color:white;
    font-size:1.15rem;
    line-height:1.8;
}

/* ==================================================
   INTRO
================================================== */

.projectes-intro{

    padding:100px 0 90px;

    background:white;

    text-align:center;

}

.projectes-intro .container{

    max-width:850px;

}

.projectes-intro h2{

    margin:20px 0 30px;

}

.projectes-intro p{

    font-size:1.15rem;

    line-height:1.85;

    margin-bottom:18px;

}

.projectes-intro p:last-child{

    margin-bottom:0;

}


/* ==================================================
   TÍTULOS DE SECCIÓN
================================================== */

.section-heading{

    max-width:800px;

    margin:0 auto 65px;

    text-align:center;

}

.section-heading h2{

    margin:20px 0;

}

.section-heading p{

    font-size:1.1rem;

    line-height:1.8;

}


/* ==================================================
   PROJECTES ACTUALS
================================================== */

.projects-current{

    padding:110px 0;

    background:var(--color-fondo-claro);

}


/* ==================================================
   PROJECTE DESTACAT
================================================== */

.project-feature{

    display:grid;

    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:80px;

    margin-bottom:110px;

}

.project-feature:last-child{

    margin-bottom:0;

}

.project-reverse .project-image{

    order:2;

}

.project-reverse .project-content{

    order:1;

}


/* ==================================================
   IMATGES PROJECTES
================================================== */

.project-image{

    position:relative;

    height:560px;

    overflow:hidden;

    border-radius:24px;

    box-shadow:0 20px 45px rgba(0,0,0,.10);

}

.project-image img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:transform .7s ease;

}

.project-image:hover img{

    transform:scale(1.05);

}


/* ==================================================
   ESTAT PROJECTE
================================================== */

.project-status{

    position:absolute;

    top:25px;

    left:25px;

    display:inline-flex;

    align-items:center;

    padding:8px 16px;

    border-radius:30px;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(8px);

    color:var(--color-secundario);

    font-family:var(--fuente-titulos);

    font-size:.72rem;

    font-weight:700;

    letter-spacing:1.2px;

    text-transform:uppercase;

    box-shadow:0 8px 20px rgba(0,0,0,.12);

}

.project-status.finished{

    color:var(--color-primario);

}


/* ==================================================
   CONTENIDO PROJECTE
================================================== */

.project-content{

    max-width:570px;

}

.project-category{

    display:inline-block;

    margin-bottom:15px;

    font-family:var(--fuente-titulos);

    font-size:.78rem;

    font-weight:700;

    letter-spacing:1.8px;

    text-transform:uppercase;

    color:var(--color-secundario);

}

.project-content h3{

    font-size:2.5rem;

    line-height:1.2;

    margin-bottom:25px;

}

.project-content > p{

    font-size:1.08rem;

    line-height:1.85;

    margin-bottom:20px;

}


/* ==================================================
   COL·LABORACIÓ
================================================== */

.project-collaboration{

    display:block;

    margin-top:-12px;

    margin-bottom:25px;

    font-family:var(--fuente-titulos);

    font-size:.9rem;

    font-weight:600;

    color:var(--color-acento);

}


/* ==================================================
   DADES DEL PROJECTE
================================================== */

.project-data{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:15px;

    margin-top:35px;

    padding-top:30px;

    border-top:1px solid #DCE7EC;

}

.data-item{

    display:flex;

    align-items:flex-start;

    gap:10px;

}

.data-item > i{

    width:38px;
    height:38px;

    flex-shrink:0;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#EAF5F9;

    color:var(--color-secundario);

    font-size:.9rem;

}

.data-item div{

    display:flex;

    flex-direction:column;

    gap:2px;

}

.data-item span{

    font-size:.7rem;

    font-family:var(--fuente-titulos);

    font-weight:600;

    letter-spacing:.8px;

    text-transform:uppercase;

    color:#8A969E;

}

.data-item strong{

    font-family:var(--fuente-titulos);

    font-size:.78rem;

    line-height:1.35;

    color:var(--color-primario);

}


/* ==================================================
   BLOQUE FILOSOFÍA
================================================== */

.projectes-philosophy{

    background-image:
        linear-gradient(
            rgba(8,34,56,.72),
            rgba(8,34,56,.72)
        ),
        url("../images/projectes/conservacio.jpg");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    background-attachment:fixed;

}

.projectes-philosophy-overlay{

    padding:120px 0;

    text-align:center;

}

.projectes-philosophy .container{

    max-width:850px;

}

.projectes-philosophy .section-subtitle{

    color:#BEE8F6;

}

.projectes-philosophy h2{

    color:white;

    font-size:3rem;

    margin:20px 0 25px;

}

.projectes-philosophy p{

    max-width:720px;

    margin:0 auto;

    color:white;

    font-size:1.15rem;

    line-height:1.85;

}


/* ==================================================
   PROJECTES FINALITZATS
================================================== */

.projects-finished{

    padding:110px 0;

    background:white;

}

.project-finished-card{

    margin-bottom:0;

}

.project-placeholder{

    padding:18px 20px;

    border-left:3px solid var(--color-acento);

    background:#F4F9FB;

    color:var(--color-texto-suave) !important;

    font-size:.98rem !important;

    line-height:1.7 !important;

}


/* ==================================================
   CTA FINAL
================================================== */

.projectes-final{

    padding:100px 0;

    background:var(--color-fondo-claro);

    text-align:center;

}

.projectes-final .container{

    max-width:850px;

}

.projectes-final h2{

    font-size:2.7rem;

    margin:20px 0 25px;

}

.projectes-final p{

    max-width:700px;

    margin:0 auto 35px;

    font-size:1.1rem;

    line-height:1.8;

}

.final-buttons{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

}


/* ==================================================
   FOOTER
================================================== */

.footer{

    position:relative;

    overflow:hidden;

    background:var(--color-primario);

}

.footer::before{

    content:"";

    position:absolute;

    inset:0;

    background-image:url("../images/footer/tiburon.jpg");

    background-size:cover;

    background-position:center center;

    background-repeat:no-repeat;

    opacity:1;

    z-index:0;

}

.footer::after{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(18,58,99,.78);

    z-index:1;

}

.footer-container{

    position:relative;

    z-index:2;

    width:90%;

    max-width:var(--ancho-maximo);

    margin:0 auto;

    padding:70px 0 60px;

    display:grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr
        1.2fr;

    gap:50px;

}

.footer-brand{

    display:flex;

    flex-direction:column;

    align-items:flex-start;

}

.footer-logo{

    display:block;

    margin-bottom:18px;

}

.footer-logo img{

    width:127px;

    height:auto;

}

.footer-brand > p{

    color:white;

    font-family:var(--fuente-titulos);

    font-size:1.15rem;

    margin-bottom:25px;

}

.footer-social{

    display:flex;

    gap:12px;

}

.footer-social a{

    width:42px;
    height:42px;

    display:flex;

    align-items:center;
    justify-content:center;

    border:1px solid rgba(255,255,255,.3);

    border-radius:50%;

    color:white;

    transition:.3s;

}

.footer-social a:hover{

    background:white;

    color:var(--color-primario);

    transform:translateY(-3px);

}

.footer-column h3{

    color:white;

    font-size:1rem;

    margin-bottom:22px;

}

.footer-column ul{

    list-style:none;

}

.footer-column li{

    margin-bottom:11px;

}

.footer-column a{

    color:rgba(255,255,255,.75);

    font-size:.95rem;

    transition:.3s;

}

.footer-column a:hover{

    color:white;

    padding-left:4px;

}

.footer-contact li{

    display:flex;

    align-items:flex-start;

    gap:10px;

}

.footer-contact i{

    width:18px;

    margin-top:5px;

    color:#BEE8F6;

}

.footer-contact span{

    color:rgba(255,255,255,.75);

    font-size:.95rem;

}

.footer-bottom{

    position:relative;

    z-index:2;

    width:90%;

    max-width:var(--ancho-maximo);

    margin:0 auto;

    padding:20px 0 25px;

    border-top:1px solid rgba(255,255,255,.15);

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

}

.footer-bottom p{

    color:rgba(255,255,255,.55);

    font-size:.8rem;

}

.footer-legal{

    display:flex;

    align-items:center;

    gap:20px;

}

.footer-legal a{

    color:rgba(255,255,255,.55);

    font-size:.8rem;

    transition:.3s;

}

.footer-legal a:hover{

    color:white;

}


/* ==================================================
   RESPONSIVE
================================================== */


/* ==================================================
   TABLET
================================================== */

@media (max-width:1100px){

    /* HEADER */

    .nav-menu{

        gap:22px;

    }

    .nav-menu a{

        font-size:.85rem;

    }

    .header-actions{

        gap:15px;

    }

    .header-actions a{

        font-size:.82rem;

    }

    .logo{

        flex:0 0 15%;

    }


    /* HERO */

    .projectes-hero{

        min-height:65vh;

        background-position:center center;

    }

    .projectes-hero-overlay{

        padding:100px 20px 70px;

    }

    .projectes-hero h1{

        font-size:3.2rem;

    }

    .projectes-hero p{

        max-width:650px;

        font-size:1.1rem;

        line-height:1.8;

    }


    /* INTRO */

    .projectes-intro{

        padding:90px 0 80px;

    }

    .projectes-intro h2{

        font-size:2.3rem;

    }


    /* SECTION HEADINGS */

    .section-heading{

        margin-bottom:50px;

    }

    .section-heading h2{

        font-size:2.3rem;

    }


    /* PROJECTES */

    .projects-current,
    .projects-finished{

        padding:90px 0;

    }

    .project-feature{

        gap:50px;

        margin-bottom:90px;

    }

    .project-image{

        height:500px;

    }

    .project-content h3{

        font-size:2.3rem;

    }

    .project-content > p{

        font-size:1.05rem;

        line-height:1.8;

    }

    .project-data{

        gap:12px;

    }

    .data-item{

        gap:8px;

    }

    .data-item strong{

        font-size:.75rem;

    }


    /* PHILOSOPHY */

    .projectes-philosophy-overlay{

        padding:100px 20px;

    }

    .projectes-philosophy h2{

        font-size:2.6rem;

    }

    .projectes-philosophy p{

        font-size:1.1rem;

    }


    /* CTA */

    .projectes-final{

        padding:90px 0;

    }

    .projectes-final h2{

        font-size:2.5rem;

    }


    /* FOOTER */

    .footer-container{

        gap:35px;

    }

}


/* ==================================================
   MÒBIL
================================================== */

@media (max-width:768px){

    html,
    body{

        width:100%;

        max-width:100%;

        overflow-x:hidden;

    }


    /* ==================================================
       HEADER
    ================================================== */

    .header{

        height:80px;

    }

    .header-container{

        width:100%;

        height:80px;

        display:flex;

        align-items:center;

        justify-content:space-between;

        padding:0 20px;

    }

    .logo{

        flex:0 0 auto;

    }

    .logo img{

        height:70px;

        margin-top:8px;

    }

    .menu-toggle{

        display:block;

        margin-left:auto;

        padding:8px;

        background:transparent;

        border:none;

        color:var(--color-primario);

        font-size:1.6rem;

        cursor:pointer;

        position:relative;

        z-index:1100;

    }

    .main-nav{

        display:none;

    }

    .main-nav.mobile-open{

        display:block;

        position:absolute;

        top:80px;

        left:0;

        width:100%;

        padding:25px 0 30px;

        background:rgba(18,58,99,.97);

        backdrop-filter:blur(12px);

        box-shadow:0 15px 30px rgba(0,0,0,.15);

        z-index:1000;

    }

    .main-nav.mobile-open .nav-menu{

        display:flex;

        flex-direction:column;

        align-items:center;

        justify-content:center;

        gap:20px;

        list-style:none;

        margin:0;

        padding:0;

    }

    .main-nav.mobile-open .nav-menu > li:not(.mobile-extra) a{

        color:white;

        text-decoration:none;

        font-family:var(--fuente-titulos);

        font-size:1rem;

        font-weight:600;

    }

    .main-nav.mobile-open .mobile-extra{

        display:flex;

    }

    .main-nav.mobile-open .mobile-extra a{

        display:flex;

        align-items:center;

        justify-content:center;

        gap:8px;

        color:white;

        text-decoration:none;

        font-family:var(--fuente-titulos);

        font-size:1rem;

        font-weight:600;

    }

    .main-nav.mobile-open .mobile-extra:first-of-type{

        margin-top:8px;

        padding-top:20px;

        border-top:1px solid rgba(255,255,255,.18);

        width:150px;

        justify-content:center;

    }

    .main-nav.mobile-open .mobile-extra i{

        font-size:.9rem;

    }

    .main-nav.mobile-open .mobile-language{

        display:flex;

        align-items:center;

        justify-content:center;

        gap:8px;

        margin-top:2px;

    }

    .main-nav.mobile-open .mobile-language span{

        color:rgba(255,255,255,.45);

    }

    .header-actions{

        display:none;

    }


    /* ==================================================
       HERO
    ================================================== */

    .projectes-hero{

        min-height:65svh;

        background-position:center center;

    }

    .projectes-hero-overlay{

        padding:100px 20px 70px;

    }

    .projectes-hero-content{

        width:100%;

    }

    .projectes-hero h1{

        font-size:2.5rem;

        line-height:1.1;

        margin:20px 0;

    }

    .projectes-hero p{

        max-width:100%;

        font-size:1.05rem;

        line-height:1.7;

    }


    /* ==================================================
       INTRO
    ================================================== */

    .projectes-intro{

        padding:70px 0 60px;

    }

    .projectes-intro .container{

        width:90%;

    }

    .projectes-intro h2{

        font-size:2rem;

        line-height:1.2;

        margin-bottom:20px;

    }

    .projectes-intro p{

        font-size:1.05rem;

        line-height:1.75;

    }


    /* ==================================================
       SECTION HEADINGS
    ================================================== */

    .section-heading{

        width:100%;

        margin-bottom:40px;

    }

    .section-heading h2{

        font-size:2rem;

        line-height:1.2;

        margin:15px 0;

    }

    .section-heading p{

        font-size:1.05rem;

        line-height:1.7;

    }


    /* ==================================================
       PROJECTES
    ================================================== */

    .projects-current,
    .projects-finished{

        padding:70px 0;

    }

    .project-feature,
    .project-feature.project-reverse{

        grid-template-columns:1fr;

        gap:40px;

        margin-bottom:70px;

    }

    .project-reverse .project-image,
    .project-reverse .project-content{

        order:initial;

    }

    .project-image{

        width:100%;

        height:330px;

        border-radius:18px;

    }

    .project-status{

        top:18px;

        left:18px;

        padding:7px 13px;

        font-size:.68rem;

    }

    .project-content{

        max-width:100%;

    }

    .project-category{

        margin-bottom:12px;

        font-size:.72rem;

    }

    .project-content h3{

        font-size:2rem;

        line-height:1.2;

        margin-bottom:20px;

    }

    .project-content > p{

        font-size:1.05rem;

        line-height:1.75;

    }


    /* ==================================================
       DATOS PROJECTE
    ================================================== */

    .project-data{

        grid-template-columns:1fr;

        gap:12px;

        margin-top:28px;

        padding-top:25px;

    }

    .data-item{

        align-items:center;

        gap:12px;

    }

    .data-item > i{

        width:36px;
        height:36px;

        flex-shrink:0;

    }

    .data-item strong{

        font-size:.8rem;

    }


    /* ==================================================
       COL·LABORACIÓ
    ================================================== */

    .project-collaboration{

        margin-top:-8px;

        margin-bottom:20px;

        font-size:.82rem;

        line-height:1.5;

    }

    .project-placeholder{

        padding:16px 18px;

        font-size:.95rem !important;

        line-height:1.65 !important;

    }


    /* ==================================================
       PHILOSOPHY
    ================================================== */

    .projectes-philosophy{

        background-attachment:scroll;

        background-position:center center;

    }

    .projectes-philosophy-overlay{

        padding:80px 20px;

    }

    .projectes-philosophy .container{

        width:90%;

    }

    .projectes-philosophy h2{

        font-size:2.2rem;

        line-height:1.2;

        margin-bottom:20px;

    }

    .projectes-philosophy p{

        font-size:1.05rem;

        line-height:1.7;

    }


    /* ==================================================
       CTA FINAL
    ================================================== */

    .projectes-final{

        padding:80px 0;

    }

    .projectes-final .container{

        width:90%;

    }

    .projectes-final h2{

        font-size:2.2rem;

        line-height:1.2;

        margin-bottom:20px;

    }

    .projectes-final p{

        font-size:1.05rem;

        line-height:1.7;

    }

    .final-buttons{

        flex-direction:column;

        gap:12px;

    }

    .final-buttons .btn{

        width:100%;

    }


    /* ==================================================
       FOOTER
    ================================================== */

    .footer::before{

        background-image:url("../images/footer/tiburon-vertical.jpg");

        background-size:cover;

        background-position:center center;

        opacity:1;

    }

    .footer::after{

        background:rgba(18,58,99,.82);

    }

    .footer-container{

        display:grid;

        grid-template-columns:1fr;

        gap:45px;

        padding:60px 0 50px;

        text-align:center;

    }

    .footer-brand{

        align-items:center;

    }

    .footer-column{

        text-align:center;

    }

    .footer-contact ul{

        display:inline-block;

        text-align:left;

    }

    .footer-bottom{

        flex-direction:column;

        text-align:center;

        gap:15px;

    }

    .footer-legal{

        flex-wrap:wrap;

        justify-content:center;

        gap:15px;

    }

}

/* Enllaç a la informació del projecte */

.project-placeholder .project-link {
    color: var(--color-primario);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.project-placeholder .project-link:hover {
    color: var(--color-secundario);
}

.project-placeholder .project-link:focus-visible {
    outline: 2px solid var(--color-primario);
    outline-offset: 3px;
    border-radius: 2px;
}