/* ========================================
   SESGOL - CSS Global
   Nous Colors i Tipografia 2024
   ======================================== */

/* ========== FONTS ========== */
/* DM Sans - Text, Subtítols i Botons */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* Petala Pro - Títols (Si no està disponible, usar alternativa) */
/* NOTA: Petala Pro és una font de pagament. Alternativa: Playfair Display o Cormorant */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');
/* Si tens Petala Pro instal·lada localment, descomenta i ajusta la ruta:
@font-face {
    font-family: 'Petala Pro';
    src: url('../fonts/PetalaPro-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
*/

/* ========== VARIABLES DE COLOR ========== */
:root {
    /* Colors Principals */
    --color-beix: #F0EEE9;           /* Text principal - Beix Càlid */
    --color-gris-fosc: #3A3A3A;      /* Fons principal - Gris Fosc */
    --color-terracota: #C86F58;      /* Color marca - Terracota */
    
    /* Color Secundari */
    --color-secundari: #d3c2b7;      /* Beix Càlid Secundari - RGB(211, 194, 183) */
    
    /* Colors de suport (derivats mínims) */
    --color-blanc: #FFFFFF;           /* Blanc pur */
    --color-negre: #000000;           /* Negre pur */
    
    /* Tipografia */
    --font-titols: 'Playfair Display', serif;  /* Substitueix per 'Petala Pro' si disponible */
    --font-subtitols: 'DM Sans', sans-serif;
    --font-text: 'DM Sans', sans-serif;
    --font-botons: 'DM Sans', sans-serif;
    
    /* Pesos de Font */
    --weight-titols: 600;      /* Semibold */
    --weight-subtitols: 500;   /* Medium */
    --weight-text: 400;        /* Regular */
    --weight-botons: 700;      /* Bold */
}

/* ========== RESET I BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    font-weight: var(--weight-text);
    background-color: var(--color-gris-fosc);
    color: var(--color-beix);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== TIPOGRAFIA ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titols);
    font-weight: var(--weight-titols);
    color: var(--color-beix);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Subtítols */
.subtitle, .hero-subtitle, .section-subtitle {
    font-family: var(--font-subtitols);
    font-weight: var(--weight-subtitols);
    font-size: 1.2rem;
    color: var(--color-beix);
    opacity: 0.9;
}

/* Text */
p, li, td, th {
    font-family: var(--font-text);
    font-weight: var(--weight-text);
    font-size: 1rem;
    line-height: 1.6;
}

/* Links */
a {
    color: var(--color-terracota);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secundari);
}

/* ========== HEADER ========== */
header {
    background: var(--color-gris-fosc);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-beix);
    font-family: var(--font-subtitols);
    font-weight: var(--weight-subtitols);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-terracota);
}

/* ========== BOTONS ========== */
.btn, button, .area-clients-btn, .about-button, .cta-button {
    font-family: var(--font-botons);
    font-weight: var(--weight-botons);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary, .area-clients-btn, .cta-button {
    background: var(--color-terracota);
    color: var(--color-blanc);
}

.btn-primary:hover, .area-clients-btn:hover, .cta-button:hover {
    background: var(--color-terracota);
    filter: brightness(0.85);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 111, 88, 0.4);
}

.btn-secondary, .about-button {
    background: transparent;
    color: var(--color-terracota);
    border: 2px solid var(--color-terracota);
}

.btn-secondary:hover, .about-button:hover {
    background: var(--color-terracota);
    color: var(--color-blanc);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58,58,58,0.85), rgba(200,111,88,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    color: var(--color-beix);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--color-beix);
    opacity: 0.95;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* ========== SECTIONS ========== */
section {
    padding: 80px 40px;
}

.section-dark {
    background: var(--color-gris-fosc);
}

.section-light {
    background: rgba(240, 238, 233, 0.05);
}

.section-terracota {
    background: linear-gradient(135deg, var(--color-terracota), var(--color-terracota-fosc));
}

/* ========== ABOUT / QUI SOM ========== */
#qui-som {
    background: var(--color-gris-fosc);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.about-image img, .about-image video {
    width: 35%;
    display: block;
    margin: 0;
    margin-left: 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-title {
    color: var(--color-terracota);
    margin-bottom: 1.5rem;
}

.about-divider {
    width: 80px;
    height: 4px;
    background: var(--color-terracota);
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--color-beix);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ========== WHY CHOOSE US ========== */
#why-choose {
    background: rgba(240, 238, 233, 0.05);
}

#why-choose h2 {
    color: var(--color-beix);
}

.why-item {
    background: rgba(58, 58, 58, 0.6);
    border: 1px solid rgba(200, 111, 88, 0.2);
}

.why-item h3 {
    color: var(--color-terracota);
}

.why-item p {
    color: var(--color-beix);
    opacity: 0.85;
}

/* ========== FOOTER ========== */
footer {
    background: #2A2A2A;
    color: var(--color-beix);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--color-terracota);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: var(--color-beix);
    opacity: 0.8;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--color-terracota);
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(240, 238, 233, 0.1);
    color: var(--color-beix);
    opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    section {
        padding: 60px 20px;
    }
    
    .hero {
        min-height: 400px;
        padding: 3rem 1.5rem;
    }
}
