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

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

ul {
    list-style: none;
}

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

    /*  background-image: url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1920&q=100');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;  *//*  in the case of an image background  */
}

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


/* 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;
}

.header {
  position: fixed;
  width: 100%;
  background-color: rgba(232, 240, 248, 0.88); /* rgba(19, 22, 26, 0.7); */
}

.header__content {
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  padding: 0 30px;
  margin: 0 auto;
}
/* ---------------------
.logo {
  
}

.logo__img {
  display:  block;
  height:   42px;
  width:    auto;
}
----------------------- */

/* 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;
}

.cta-button {
    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;
}

.cta-button:hover {
    background-color: #d35400;
}


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

/* Navbar */
.navbar {
    /* background: #888; */
    background: rgba(192, 216, 232, .25) ;
    height: 58px;
    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;
}

.logo__img {
  display: block;
  height: 42px;
  width:    auto;
}

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

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


/* From YouTube Tutorial V */
.nav {

}

.nav__list {
  display: flex;
  align-items: baseline;
  column-gap: 20px;
}

.nav__item {
  color: rgba(16, 16, 20, 0.25);

}

.nav__link {
  color: rgba(16, 16, 20, 0.75);
  font-size: 15px;  
  position: relative;
  padding: 7px 14px;
  background-color: rgba(64, 64, 64, 0);
}

.nav__link:hover,
.nav__link:focus,
.dropdown:hover .nav__link {
  color: rgba(8, 8, 12, 1);
  background-color: rgba(112, 112, 128, 0.1);
}

.dropdown {
  position: relative;
  font-size: 14px;
}

.dropdown:hover .dropdown__list {
  display: block;
}

.dropdown__list,
.submenu__list {
  display: none;
  position: absolute;
  top: 125%;
  left: 0;
  background-color: #fff;
  min-width: max-content;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.dropdown__item,
.submenu__item {
  padding: 10px 15px;
  cursor: pointer;
}

.dropdown__item:hover,
.submenu__item:hover {
  background-color: rgb(234, 234, 234);
}

.dropdown__link {

}

.submenu {
  position: relative;
}

.submenu:hover .submenu__list {
  display: block;
}

.submenu__list {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #fff;
  min-width: max-content;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}


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

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

/* Hero Section */
.hero {
    background-color: #e8f0f7;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(rgba(44, 62, 80, 0.67), rgba(44, 62, 80, 0.84)), url('../images/FutureLegoCity.jpg'); /* local CSS URL */
/*      background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); */
    background-repeat: no-repeat;
/*      background-attachment: fixed;
        background-position: center center;
        */    
    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 --- for dispositive responsivness --- */

@media (max-width: 1470px) {
  .dropdown__list {
    left: initial;
    right: 0;
  }

  .submenu__list {
    left: initial;
    right: 100%;
  }
}

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

    .logo__img {
      height: 36px;
    }
}

/* Mobile Responsiveness 
@media (max-width: 768px) {
}
*/

/* 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: 5px;
    }

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

    .logo__img {
        height: 27px;
    }

    .nav__list {
        column-gap: 8px;
    }

    .nav__item {
        font-weight: 500;
        position: initial;
        text-align: center;
    }
/* -------------------- */
    .nav__link {
        font-size: 14px;  
        font-weight: 500;
        padding: 6px 6px;
    }

    .dropdown {
      font-size: 12.5px;
    }
/* -------------------- */

    .dropdown__list {
    top: 100%;
    width: 100%;
    text-align: center;
    }

    .submenu__list {
    right: initial;
    left: 0;
    top: 100%;
    width: 100%;
    }


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

    .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;
    }

    .header__content {
    padding: 25px 0;
    flex-direction: column;
    row-gap: 18px;
    align-items: center;
    position: relative;
    }

    .nav__list {
    column-gap: 10px;
    }

    .nav__item {
    position: initial;
    }

    .dropdown__list {
    top: 100%;
    width: 100%;
    text-align: center;
    }

    .submenu__list {
    right: initial;
    left: 0;
    top: 100%;
    width: 100%;
  }
}



.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 {
    /*overflow: hidden;   Added for TEST */
    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 {
    /* float: left;
    clear: none;*/
    margin-bottom: 14px;
}

.form-group label {
    /* ---------- */
    display: inline;
    color: #000044;
    font-weight: bold;
}

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

/* Radio Buttons */
.form-group input[type=radio],
.form-group input.radio { }

.radio { }
.radio-btn { }

.form-group label[type=radio],
.form-group label.radio { }


.form-group-radio label[type="radio"],
.form-group-radio label.radio-btn {
    /*float: left;
    clear: none;
    display: inline;*/
    margin-bottom: 14px;
    padding: 0px 2em 0px 1px;
    font-weight: 400;
    /*color: red;*/
    font-size: 0.9rem;
}

.form-group-radio { /* Or whatever wrapper class you use */
    display: inline-grid-lanes; /* or block if you prefer */
    /*align-items: center;  Vertically align label and radio */
    margin-bottom: 9px;
}

.form-group-radio input[type="radio"] {
    margin-right: 6px; /* Space between radio and label */
    /* Remove any float or display: block; if present */
}

.form-group-radio label {
    display: inline-block; /* Allows text to wrap but respects width/height */
    /* Remove any float or display: block; if present */
    /* Adjust padding/margin as needed, keep it minimal for inline elements */
}








/* 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;
}

/* --- 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; }

/* TEAM Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background: #f8f0d8;
    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;
}

.teamcard-img-top {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: -20px 20px -10px 20px;
    font-size: 3rem;
}

.feature-content {
    margin-top: 12px;
    padding: 8px;
    background: #d8f0f8;
    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; */
}


/* 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;
}