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

.hero h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.hero p {
  font-size: 1.2rem;
  text-align: center;
}

/* SECCIÓ DE COL·LABORACIÓ */
#colabora {
  padding: 2rem;
  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: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.colabora-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
}

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

/* FORMULARIS i CAIXES */

.container-form,
.bizum-box {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 500px; /* ancho más amplio */
  width: 90%; /* ocupa casi todo el ancho disponible en móviles */
  margin: 0 auto 2rem; /* centra horizontalmente */
  box-sizing: border-box; /* evita que padding rompa el ancho */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.container-form h2,
.bizum-box h2 {
  color: #ff4400;
  margin-bottom: 1rem;
  text-align: center;
}

form label {
  display: block;
  margin: 1rem 0 0.5rem;
  color: #333;
  font-weight: bold;
}

form input,
form textarea,
form select {
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form textarea {
  resize: vertical;
}

form button {
  font-size: 0.8rem;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: #00695c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #004d40;
}

#fam-acollidora h1 {
  text-align: center;
}

#fam-acollidora p {
  text-align: justify;
}

#fes-te-soci,
#fam-acollidora {
  padding: 1rem;
}

#fes-te-soci h2 {
  text-align: center;
}

#fes-te-soci p {
  text-align: justify;
}

/* BIZUM INFO */

.hero-bizum {
  padding: 1rem;
}

.hero-bizum h1 {
  font-size: 1.5rem;
  color: #004d40;
  text-align: center;
}

.hero-bizum p {
  font-size: 1rem;
  text-align: justify;
}

#bizum-info {
  padding: 2rem 1rem;
  text-align: center;
}

.bizum-box p {
  margin: 0.8rem 0;
  color: #333;
  font-size: 1.1rem;
}

.bizum-qr {
  width: 200px;
  margin-top: 1rem;
}

#bizum-info .btn {
  display: inline-block;
  background: #00695c;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
}

#bizum-info .btn:hover {
  background: #004d40;
}

/* Modal de voluntariat */

#voluntariat {
  padding: 1rem;
}

#voluntariat-modal {
  display: flex; /* Mostra sempre el modal */
  justify-content: center; /* Centrat horitzontal */
  align-items: center; /* Centrat vertical */
  min-height: 40vh; /* Alçada mínima */
  padding: 2rem;
  box-sizing: border-box;
}

#voluntariat h2 {
  color: #004d40;
  text-align: center;
}

#voluntariat p {
  text-align: justify;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.modal-content h3 {
  color: #ff4400;
  margin-top: 0;
}

.modal-content p {
  margin: 1rem 0;
  color: #333;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-content li {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.modal-content a {
  color: #00695c;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

/* FOOTER */
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(4, 1fr);
    gap: 2rem;
  }

  .colabora-card {
    padding: 2rem;
  }

  .colabora-card img {
    width: 250px;
    height: 250px;
  }

  .container-form,
  .bizum-box {
    max-width: 700px; /* más ancho en escritorio */
    width: 80%; /* ocupa buena parte del contenedor */
    padding: 3rem; /* más espacio interior */
    margin: 2rem auto; /* centrado horizontal con separación arriba y abajo */
    flex-direction: column; /* puedes usar row si quieres contenido lado a lado */
    align-items: flex-start; /* contenido alineado a la izquierda */
    text-align: left; /* asegura que el texto esté alineado */
  }

  .container-form h2,
  .bizum-box h2 {
    text-align: center; /* el título sigue centrado */
    font-size: 2rem; /* título más grande en escritorio */
  }

  form label {
    display: flex;
    flex-direction: row;
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
    align-items: center;
    gap: 0.5rem;
  }

  label.checkbox-label {
    display: flex;
    align-items: center; /* centra verticalmente */
    gap: 0.5rem; /* espacio entre checkbox y texto */
  }

  label.checkbox-label input[type="checkbox"] {
    width: auto; /* no ocupe todo el ancho */
    margin: 0; /* elimina márgenes extra */
    padding: 0; /* elimina padding */
    vertical-align: middle; /* asegura que se alinee con el texto */
  }

  form input,
  form textarea,
  form select {
    max-width: 100%; /* ocupa todo el ancho disponible de la caja */
    font-size: 1rem; /* texto más legible en escritorio */
    padding: 1rem;
  }

  form button {
    background-color: #ff4400;
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  #fes-te-soci h2,
  #fam-acollidora h2 {
    text-align: center;
  }

  #fes-te-soci p,
  #fam-acollidora p,
  .hero-bizum,
  #voluntariat p {
    text-align: center;
  }
}
