/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* Typography Helpers */
h1, h2, h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #666;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #e67e22; /* Innovation Orange */
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #d35400;
}

.btn-nav {
    background-color: #3498db;
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
}

/* Navbar */
.navbar {
    background: #fff;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e67e22;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
    /* background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); 
    Using a generic tech background URL 
url('https://www.playlab.cat/images/FutureLegoCity.png&auto=format&fit=crop&w=1350&q=80')
    */

.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('http://www.playlab.cat/images/FutureLegoCity.png&auto=format&fit=crop&w=1350&q=80'); /* Usi*/
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section-light {
    padding: 60px 0;
    background: #fff;
}

.section-dark {
    padding: 60px 0;
    background: #ecf0f1;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}


/* Control de la Imatge */
.about-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Manté la proporció sense deformar */
    transition: transform 0.5s ease;
}

.about-image-container:hover .responsive-img {
    transform: scale(1.03); /* Efecte subtil d'interacció */
}

/* Línia decorativa de marca */
.accent-line {
    width: 50px;
    height: 4px;
    background: #e67e22;
    margin-bottom: 20px;
}

/* --- Media Queries per a dispositius --- */

/* Tauletes (Tablets) */
@media (max-width: 992px) {
    .about-grid {
        gap: 30px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Mòbils (Phones) */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Una sola columna en mòbils */
        text-align: center;
    }
    
    .about-image-container {
        order: -1; /* La imatge apareix a sobre del text en mòbils */
        margin-bottom: 20px;
    }

    .accent-line {
        margin: 0 auto 20px auto;
    }

    blockquote {
        border-left: none;
        border-top: 3px solid #e67e22;
        padding-top: 15px;
        padding-left: 0;
    }
}

.about-text blockquote {
    font-style: italic;
    border-left: 4px solid #e67e22;
    padding-left: 15px;
    margin: 20px 0;
    color: #555;
}

.highlight-text {
    margin-top: 20px;
    font-weight: bold;
    color: #e67e22;
}

.img-placeholder {
    width: 100%;
    height: 300px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #aaa;
    border-radius: 8px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 26px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.socials {
    margin-top: 10px;
}

.socials a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .about-grid { grid-template-columns: 1fr; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* --- Catalog Page Styles --- */

.page-header {
    background: #2c3e50;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
}

/* Filters */
.filter-section {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.filter-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #ddd;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #e67e22;
    border-color: #e67e22;
    color: white;
}

/* Workshop Grid */
.catalog-section {
    padding: 50px 0;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.workshop-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.workshop-card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.workshop-card h3 {
    font-size: 1.3rem;
    margin: 10px 0;
}

.workshop-details {
    margin: 15px 0;
    color: #666;
    font-size: 0.9rem;
}

.workshop-details li {
    margin-bottom: 5px;
}

.workshop-details i {
    color: #e67e22;
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Tags */
.tag {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.tag-school { background: #e8f6fd; color: #3498db; }
.tag-biz { background: #fdf2e9; color: #e67e22; }
.tag-community { background: #eafaf1; color: #2ecc71; }

/* Outline Button */
.btn-outline {
    margin-top: auto; /* Pushes button to bottom */
    display: block;
    text-align: center;
    border: 2px solid #2c3e50;
    color: #2c3e50;
    padding: 8px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #2c3e50;
    color: white;
}

/* Active Link styling for Nav */
.active-link {
    color: #e67e22 !important;
    font-weight: bold;
}