
/* BASE */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: #222;
}

/* CAPÇALERA */

.site-header {
    width: 100%;
    background: #fff;
    position: relative;
    z-index: 100;
}

.header-inner {
    width: 100%;
    min-height: 95px;
    padding: 12px 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* LOGOTIP */

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.brand-symbol {
    width: 50px;
    height: auto;
}

.brand-name {
    width: 155px;
    height: auto;
}

/* NAVEGACIÓ */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(20px, 3vw, 65px);
}

.main-navigation a {
    font-size: clamp(13px, 0.9vw, 18px);
    letter-spacing: 0.060em;
    font-weight: 300;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
    transition: color .2s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: #25b99c;
}

/* IDIOMES */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* BOTÓ MÒBIL */

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: #222;
}

/* RESPONSIVE */

@media (max-width: 1250px) {

     .header-inner {
        min-height: 75px;
        padding: 12px 24px;
    }

    .brand-symbol {
        width: 40px;
    }

    .brand-name {
        width: 145px;
    }



    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 28px 24px;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        box-shadow: 0 12px 20px rgba(0,0,0,.07);
    }

    .main-navigation.is-open {
        display: flex;
    }

   .main-navigation a {
    font-size: clamp(13px, 0.9vw, 18px);
    font-weight: 300;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
    transition: color .2s ease;
}
}

@media (max-width: 480px) {

    .header-inner {
        min-height: 70px;
        padding: 10px 16px;
    }

    .brand {
        gap: 8px;
    }

    .brand-symbol {
        width: 34px;
    }

    .brand-name {
        width: 120px;
    }
}

/* ESTRUCTURA GENERAL DE LA WEB */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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