/* BODY */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

/* LOGO */
.logo img {
  width: 180px;
  height: auto;
}

/* HEADER */
header {
  background: rgba(255, 68, 0, 0.831);
  color: white;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* MENÚ */
header ul {
  list-style: none;
  display: none; /* mobile first: menú ocult */
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  text-align: center;
}

header a {
  color: white;
  text-decoration: none;
}

/* BOTÓ HAMBURGUESA */
.menu-toggle {
  background: none;
  border: none;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  display: block;
}

/* Oculta overlay por defecto */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.menu-cuadro {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  max-width: 300px;
  text-align: center;
  position: relative;
}

.menu-cuadro ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.menu-cuadro li {
  margin: 1rem 0;
}

.menu-cuadro a {
  text-decoration: none;
  color: #ff4400;
  font-weight: bold;
  font-size: 1.3rem;
}

.menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* SECCIÓ DE COL·LABORACIÓ */
#colabora {
  padding: 1.5rem;
  text-align: center;
}

#colabora h2 {
  color: #004d40;
  margin-bottom: 1rem;
}

#colabora p {
  color: #444;
  margin-bottom: 2rem;
}

/* CARDS DE COL·LABORACIÓ */
.colabora-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.colabora-card {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.colabora-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.colabora-card h3 {
  margin: 0.5rem 0 1rem;
  color: rgba(255, 68, 0, 0.831);
}

.colabora-card p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.colabora-card .btn {
  display: inline-block;
  background: #00695c;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.colabora-card .btn:hover {
  background: #004d40;
}

footer {
  background: #004d40;
  color: white;
  text-align: center;
  padding: 1rem;
}

.social a {
  color: white;
}

/* ------------------------------
   MEDIA QUERIES
--------------------------------*/

/* Tablets (≥600px) */
@media (min-width: 600px) {
  .colabora-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Escriptori (≥900px) */
@media (min-width: 900px) {
  .menu-toggle {
    display: none; /* ocultem hamburguesa en escriptori */
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 5rem;
  }

  header nav ul {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    font-size: 1.5rem;
  }

  header ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }

  .logo img {
    width: 220px;
  }

  .colabora-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per fila */
    gap: 2rem;
  }

  .colabora-card {
    padding: 2rem;
  }

  .colabora-card img {
    width: 100%; /* ocupa tota l'amplada del card */
    height: 250px; /* altura fixa per a totes */
    object-fit: cover; /* retalla i omple l'espai sense deformar */
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
  }
}
