/* --- Variables i Colors (Estil Gestalt/Natura) --- */
:root {
    --primary-color: #C17F5F;   /* Color terra/argila (Terracota) */
    --secondary-color: #E8E4D9; /* Color Sorra suau */
    --text-dark: #333333;       /* Gris fosc per text */
    --text-light: #666666;      /* Gris suau */
    --white: #ffffff;
    --bg-dark: #2C3E34;         /* Verd fosc per seccions fosques */
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Lato', sans-serif; 
}

/* --- Reset General --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f9f9f9;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilitats --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

.section { padding: 80px 0; }

.bg-light { background-color: var(--secondary-color); }
.bg-dark { background-color: var(--bg-dark); color: var(--white); }

/* --- Botons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a3664a;
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* --- Navegació --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 400;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--primary-color); }

.btn-reserva {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
}

.menu-toggle { display: none; cursor: pointer; }
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/Tree.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-style: italic;
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 12px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- Secció Sobre Mi --- */
.about-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.about-img {
    flex: 0 0 40%;
    max-width: 400px;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 20px 20px 0px var(--secondary-color);
}

.about-text { flex: 1; }

/* --- SECCIÓ SERVEIS (4 COLUMNES I ALINEACIÓ PERFECTA) --- */
#serveis {
    width: 100%;
    clear: both;
}

#serveis .container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.service-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* 1. Contenidor de la icona (Alçada fixa per a totes) */
.icon-wrapper {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

.emoji-icon {
    font-size: 2.8rem;
    line-height: 1;
}

.group-emoji-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.emoji-icon.small { 
    font-size: 1.8rem; 
    opacity: 0.7; 
}

.emoji-icon.reverse { 
    transform: rotate(180deg); 
}

.service-icon-tallers {
    font-size: 2.5rem;
    color: #333333;
}

/* 2. Títols (Mida unificada i alçada fixa per alinear el text de sota) */
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin: 0 0 15px 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

/* 3. Descripció (Mida i interlineat 100% iguals) */
.service-card p {
    font-family: var(--font-body);
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

/* --- Contacte --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 { color: var(--white); }
.contact-info p { margin-bottom: 30px; color: #ccc; }

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    color: var(--text-dark);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* --- Footer --- */
footer {
    padding: 30px 0;
    background: #1a2620;
    color: #888;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: #888;
    margin-left: 15px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover { color: var(--white); }

/* --- Responsive (Mòbils i Tablets) --- */
@media screen and (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle { display: block; z-index: 1001; }
    
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        padding: 50px 0;
        transition: 0.4s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active { top: 70px; }
    .nav-menu li { margin: 15px 0; }

    .hero-content h1 { font-size: 2.5rem; }
    
    .about-container, .contact-container {
        flex-direction: column;
    }
    
    .about-img { 
        order: -1; 
        flex: 0 0 100%;
        max-width: 300px;
        margin: 0 auto 30px auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 40px auto 0 auto;
    }

    .contact-container { grid-template-columns: 1fr; }
    
    .footer-content { flex-direction: column; gap: 15px; }
}