/* 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Ó CONTACTE */
#contacte {
  background: #e0f2f1;
  padding: 2rem 1rem;
}

.container-contacte {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.hero h1 {
  text-align: center;
  color: #004d40;
  margin-top: 3rem;
}

.hero p {
  text-align: center;
  color: #666;
  margin: 1rem 0 2rem;
}

.contact-info {
  text-align: center;
  margin: 0 auto;
  width: 90%;
}

.contact-info h2 {
  margin-bottom: 1rem;
  color: rgba(255, 68, 0, 0.831);
}

.contact-info p {
  margin: 0.3rem 0;
  color: #444;
  font-size: 1rem;
}

form {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
}

form h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: rgba(255, 68, 0, 0.831);
}

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

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

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

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

.social a {
  color: white;
}

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

  .container-contacte {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
  }

  .contact-info,
  form {
    width: 48%;
    margin: 0;
  }

  form {
    max-width: none;
  }
}
