/* ----- GOOGLE FONTS ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Averia+Serif+Libre:wght@300;400;700&display=swap');

/* -------------------------------- */
/* -----------   GLOBAL   --------- */
/* -------------------------------- */

body {
    margin-left: 38px; 
    margin-right: 38px;
    margin-top: 30px; 
    background-color: #F3EEE4;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.3px;
}
p {
    font-family: "Averia Serif Libre", serif;
    font-size: 40pt;
    letter-spacing: -3pt;
}
p, h1, a {
    color: #323232;
}
h1 {
    font-family: "Inter", sans-serif;
    font-weight: bold;
    font-size: 100pt;   /* pots ajustar */
    letter-spacing: -10pt;
    margin-top: 80px;  /* separació respecte la imatge */
    margin-bottom: 10px;
}
h1 + p {
    font-size: 20pt;
    font-family: "Averia Serif Libre", serif;
    letter-spacing: -2pt;
    margin-bottom: 20px;
}

html {
    scroll-behavior: smooth;
}


/* ----- NAV ----- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0; 
    padding: 38px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1000;
}

/* Logo */
nav img {
    width: 50px;
    height: auto;
}

/* Contenidor del menú */
#menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: right;
}

/* Enllaços del menú */
#menu a {
    text-decoration: none;
    color:#49341D;
    font-size: 17pt;
    font-family: "Inter", sans-serif;
    font-weight: bold;
    letter-spacing: -1pt;
}
/* ---------- NAV HOVER ---------- */

/* Enllaços del menú */
#menu a:hover {
    color: #323232;
}

/* Imatge sol_orange */
nav img {
    transition: filter 0.3s ease, transform 0.3s ease;
}

nav img:hover {
    filter: brightness(40%); /* Enfosquiment soft */
}

/* ---------- NAV RESPONSIVE ---------- */

/* Pantalles mitjanes */
@media (max-width: 900px) {

    #menu {
        gap: 4px;
    }

    #menu a {
        font-size: 13pt;
        letter-spacing: -0.5pt;
    }

    nav img {
        width: 40px;
    }

    nav {
        padding: 25px;
    }
}

/* Pantalles petites: menú en LÍNIA */
@media (max-width: 600px) {

    #menu {
        flex-direction: row;
        gap: 12px;
        text-align: right;
    }

    #menu a {
        font-size: 12pt;
        letter-spacing: -0.5pt;
    }

    nav img {
        width: 35px;
    }

    nav {
        padding: 20px;
    }
}


/* ----- FOOTER ----- */

footer {
    background-color: #49341D;
    padding: 40px 50px;
    margin-top: 120px;
    margin-bottom: 0%;


    /* forma semicircular */
    border-top-left-radius: 25vw;
    border-top-right-radius: 25vw;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #F3EEE4;
}

/* logo */
.footer-logo {
    width: 180px;     /* ajusta si cal */
    height: auto;
    align-self: flex-end;

}

/* columna del contacte */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* cada línia del contacte (icona + text) */
.footer-contact .item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact img {
    width: 18px;
    height: auto;
}

/* text */
.footer-contact span {
    font-family: "Inter", sans-serif;
    font-size: 12pt;
    letter-spacing: -1pt;
    color: #F3EEE4;
}

/* llicència a la dreta del tot */
.footer-license {
    align-self: flex-end;
}

.footer-license p {
    font-family: "Inter", sans-serif;
    font-size: 10pt;
    opacity: 0.8;
    margin: 0;
    color: #F3EEE4;
    letter-spacing: 0;
}

/* ---------- FOOTER RESPONSIVE ---------- */

/* Ajust general per pantalles mitjanes */
@media (max-width: 1100px) {
    footer {
        padding: 35px 40px;
        border-top-left-radius: 30vw;
        border-top-right-radius: 30vw;
    }

    .footer-logo {
        width: 150px;
    }

    .footer-contact span {
        font-size: 11pt;
    }

    .footer-contact img {
        width: 16px;
    }

    .footer-license p {
        font-size: 9pt;
    }
}

/* Pantalles petites: COLUMNA */
@media (max-width: 750px) {

    footer {
        flex-direction: column;
        align-items: center;  
        text-align: center;
        row-gap: 30px;
        padding: 40px 30px;
        border-top-left-radius: 40vw;
        border-top-right-radius: 40vw;
    }

    .footer-logo {
        width: 130px;
        align-self: center;
    }

    .footer-contact {
        gap: 14px;
    }

    .footer-contact .item {
        justify-content: center;
    }

    .footer-contact img {
        width: 18px;
    }

    .footer-contact span {
        font-size: 12pt;
    }

    .footer-license {
        align-self: center;
        margin-top: 10px;
    }

    .footer-license p {
        font-size: 10pt;
        line-height: 1.4;
    }
}



/* ----------------- */
/* ----- INICI ----- */
/* ----------------- */

/* Imatge principal */
img[alt="sundra_orange"] {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 50px;       
}
.hey_sundra{
    margin-top: 380px;
}

/* ---------- INICI RESPONSIVE ---------- */

/* Pantalles mitjanes */
@media (max-width: 1100px) {
    .hey_sundra {
        margin-top: 500px;
    }

    img[alt="sundra_orange"] {
        width: 90%;
        margin-top: 30px;
    }
}


/* -------------------------------- */
/* ----------- THIS IS ME --------- */
/* -------------------------------- */

.text1 {
    display: flex;
    justify-content: space-between;   /* separa el text i el bloc dret */
    align-items: flex-end;            /* alineació a la línia base */
    margin-top: 100px;
}

.text1 p {
    font-size: 30pt;
    margin-bottom: 0;
    line-height: 1.1;
}

/* Contenidor del botó + imatge */
.boton_img {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

/* Link LET'S TALK */
.boton_img a {
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 18pt;
    letter-spacing: -1pt;
    color: #9CA231;

    /* 🔥 transició suau */
    transition: color 0.3s ease;
}

.boton_img a:hover {
    color: #49341D;
}

/* Imatge */
.boton_img img {
    width: 400px;   
    height: auto;
    display: block;
}


/* Pantalles petites (mòbils) */
@media (max-width: 750px) {
    .hey_sundra {
        margin-top: 600px;
    }

    img[alt="sundra_orange"] {
        width: 100%;
        margin-top: 20px;
    }
}

/* ------- THIS IS ME RESPONSIVE ------- */
/* mijana */
@media (max-width: 1100px) {

    h1 {
        font-size: 70pt;          
        letter-spacing: -6pt;
    }

    .text1 p {
        font-size: 22pt;
        letter-spacing: -2pt;
        }

    .boton_img a {
        font-size: 16pt;
    }

    .boton_img img {
        width: 280px;              
    }
}

/* petita */

@media (max-width: 750px) {

    h1 {
        font-size: 45pt;
        letter-spacing: -4pt;
    }

    .text1 {
        display: flex;
        justify-content: space-between;  
        align-items: flex-end;
        flex-direction: row; 
        gap: 0;
        width: 100%;
    }

    .text1 p {
        font-size: 15pt;
        letter-spacing: -1pt;
        flex: 1;               
    }

    /* el botó independent */
    .boton_img {
        display: flex;
        flex-direction: column; 
        align-items: flex-end;  
        gap: 15px;
        width: auto;
    }

    .boton_img a {
        font-size: 16pt;
        white-space: nowrap;   
    }

    .boton_img img {
        width: 250px;
        margin-top: 10px;
        align-self: flex-end;     
    }
}







/* ---------------------------- */
/* --------- PROJECTS --------- */
/* ---------------------------- */

/* ------- DESKTOP LAYOUT ------- */

.composicion {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
        "text_esq sol text_dreta"
        ". sol projects";
    align-items: center;
    gap: 50px;
    width: 100%;
    margin-top: 80px;
}

.sundra_welcome img {
    width: 40vw;
    max-width: 500px;
    height: auto;
    display: block;
    margin-top: 80px;
}

.comillas img {
    width: 80%;
    max-width: 1100px;
    height: auto;
    display: block;
    margin: 120px auto 180px auto;
}

/* Assignació d’àrees */
.text_esq1 { grid-area: text_esq; }
.text_dreta1 { grid-area: text_dreta; }
.sol { grid-area: sol; justify-self: center; }
.text_projects { grid-area: projects; justify-self: end; }

/* Text */
.text_esq p, 
.text_dreta p {
    font-size: 18pt;
    letter-spacing: -1pt;
}

.text_dreta p { text-align: right; }

/* Link projects */
.text_projects a {
    font-size: 18pt;
    text-decoration: none;
    transition: color .3s ease;
    font-family: "Inter", sans-serif;
    letter-spacing: -1pt;
    color: #9CA231;
    font-weight: 600;
}

.text_projects a:hover {
    color: #49341D;
}

/* Imatge sol — Desktop */
.composicion img.sol {
    width: 600px;
}



/* ------- TABLET ------- */

@media (max-width: 1024px) {

    .composicion {
        grid-template-columns: 1fr auto 1fr;
        gap: 40px;
    }

    .text_esq,
    .text_dreta {
        gap: 60px;
        text-align: left;
    }

    /* Sol més petit a tablet */
    .composicion img.sol {
        width: 380px;
    }

    .text_esq p,
    .text_dreta p {
        font-size: 17pt;
    }
}



/* ------- MOVIL ------- */


@media (max-width: 700px) {

    .composicion {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "text_esq1   text_dreta1"
            "sol         sol"
            "text_esq2   projects";
        row-gap: 40px;
        column-gap: 20px;
        align-items: start;
    }

    /* Assignació mòbil */
    .text_esq1 { grid-area: text_esq1; text-align: left; }
    .text_dreta1 { grid-area: text_dreta1; text-align: right; }
    .text_esq2 { grid-area: text_esq2; text-align: left; }

    .text_projects {
        grid-area: projects;
        text-align: right;
    }

    /* Sol mòbil */
    .composicion img.sol {
        grid-area: sol;
        width: 55%;
        max-width: 260px;
        margin: 0 auto;
    }

    /* Text més petit */
    .text_esq p,
    .text_dreta1 p,
    .text_esq2 p {
        font-size: 12pt;
        line-height: 1.3;
    }

    .text_projects a {
        font-size: 14pt;
    }
}





/* ---------------------------- */
/* --------- PROJECTS --------- */
/* ---------------------------- */


/* ---- SEARCH + FILTERS (projects) ---- */
.search_filters {
    width: 100%;
    margin-left: 0%;
    margin-bottom: 40px;
    display: flex;
    gap: 16px;
    box-sizing: border-box;
    justify-content: space-between;   /* barra a l'esquerra, filters a la dreta */

}

/* Caixa de cerca (ocupa l'espai restant, a l'esquerra) */
.search_box {
    flex: 1 1 auto;               /* ocupa l'espai disponible */
    max-width: 700px;             /* limita amplada si cal */
}

.search_box input {
    width: 100%;
    padding: 10px 14px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    background-color: #F3EEE4;    /* mateix color de fons de la web */
    border: 3px solid #49341D;    /* bord marró */
    border-radius: 20px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.search_box input:focus {
    border-color: #9CA231;        /* verd suau en focus (opcional) */
    box-shadow: 0 3px 10px rgba(156,162,49,0.08);
}

.filter_button {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #9CA231;              /* verd base */
    background: transparent;
    border-color: transparent;
    cursor: pointer;
    transition: color .18s ease; /* transició suau només al text */
}

/* Hover només sobre el text */
.filter_button:hover {
    color: #49341D;              /* marró al passar el cursor */
    background: transparent;     /* assegura que NO hi ha canvi de fons */
}

/* Responsive: en mòbil el cercador i el botó passen a columna */
@media (max-width: 700px) {
    .search_filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 12px;
    }
    .search_box { max-width: none; }
    .filter_button { width: 100%; }
}

/* ----CONTINGUT---- */
/* Imatge gran inicial (igual estil que sundra_marron) */
.projects_take img {
    width: 40vw; 
    height: auto;
    display: block;
    margin-top: 100px;
    margin-bottom: 80px;
}

/* Grid de projectes */
.compo_projects {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 120px;
}

/* Contenidor de cada projecte */
.project_item {
    position: relative;
    overflow: hidden;
    display: block;         /* important perquè l'<a> es comporti com a card */
    aspect-ratio: 1 / 1;    /* fixa la proporció (1:1 = quadrat) */
}

/* Imatges: ocupen tot el contenidor i es recorten si cal */
.project_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .3s ease;
}


/* Imatges */
.project_item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: .3s ease;
}

/* Text ocult inicialment */
.project_item span {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    color:#F3EEE4;
    opacity: 0;
    transition: .3s ease;
    letter-spacing: -1pt;
    font-weight: 600;
}

/* Hover → foscor + text visible */
.project_item:hover img {
    filter: brightness(40%);
}

.project_item:hover span {
    opacity: 1;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
    .compo_projects {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .projects_take img {
        margin-top: 120px;
        margin-bottom: 60px;
    }
}

@media (max-width: 600px) {
    .compo_projects {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .projects_take img {
        margin-top: 100px;
        margin-bottom: 50px;
    }
}



/* ---------------------- */
/* ---------- OF ---------*/
/* ---------------------- */

/* imatge principal NO+NOR+ */
.no\+nor\+ {
    width: 100%;
    margin-top: 100px;
    display: flex;
    justify-content: flex-start;
}

.no\+nor\+ img {
    width: 35%;
    max-width: 450px;
}

/* Text explicatiu: 2 textos, un a cada costat */
.of_text {
    width: 100%;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
}

.of_text p {
    width: 30%;
    font-size: 1.1rem;
    color: #323232;
    letter-spacing: -1pt;
    font-family: "Inter", sans-serif;
    font-weight: 400;
}

.of_text p:first-child {
    text-align: left;
}

.of_text p:last-child {
    text-align: right;
}

/* separador de 3 sols */
.tres_sol {
    width: 100%;
    text-align: center;
    margin: 40px 0 50px 0;
}

.tres_sol img {
    width: 120px;
}

/* composició de mockups i fotos: 2 files i 2 columnes grans */
.of_compo {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;  /* poc espai */
}

.of_compo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Retallar la imatge plafo234 perquè tingui la mateixa alçada visual */
.plafo234 {
    height: 100%;
    max-height: 450px;   /* pots pujar o baixar si vols */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {

    /* Grid passa a una sola columna */
    .of_compo {
        grid-template-columns: 1fr;
    }

    /* Imatges més grans i uniformes */
    .of_compo img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Ajust especial per a la imatge retallada */
    .plafo234 {
        max-height: none;   /* deixa que creixi sense límits */
        height: auto;
    }
}




/* ---------------------- */
/* ---------- VI ---------*/
/* ---------------------- */

/* imatge principal NO+NOR+ */
.wine_collection {
    width: 100%;
    margin-top: 100px;
    display: flex;
    justify-content: flex-start;
}

.wine_collection img {
    width: 40%;
}

/* Text explicatiu: 2 textos, un a cada costat */
.vi_text {
    width: 100%;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
}

.vi_text p {
    width: 30%;
    font-size: 1.1rem;
    color: #323232;
    letter-spacing: -1pt;
    font-family: "Inter", sans-serif;
    font-weight: 400;
}

.vi_text p:first-child {
    text-align: left;
}

.vi_text p:last-child {
    text-align: right;
}

/* separador de 3 sols */
.tres_sol {
    width: 100%;
    text-align: center;
    margin: 40px 0 50px 0;
}

.tres_sol img {
    width: 120px;
}

/* composició de mockups i fotos: 2 files i 2 columnes grans */
/* composició de mockups i fotos: 2 files i 2 columnes grans */
.vi_compo {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ✔ Ajust d’alçades uniformes */
.vi_compo img {
    width: 100%;
    height: 800px; /* ← alçada uniforme (pots ajustar-la) */
    object-fit: cover;
    object-position: center;
    display: block;
}



/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {

    /* Grid passa a una sola columna */
    .vi_compo {
        grid-template-columns: 1fr;
    }

    /* Imatges més grans i uniformes */
    .vi_compo img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}
