/* ---------- Títulos / Links ---------- */
.contact-us h2 {
  font-size: 28px;
  margin-bottom: 40px;
  font-weight: bold;
}
.contact-us h2 span {
  border-left: 4px solid #e11b22;
  padding-left: 10px;
}

.contact-us a,
.contact-us a:visited {
  color: white;
  text-decoration: none;
}

/* Hover vermelho apenas para links de texto da secção de info */
.contact-info p a:hover,
.contact-info p a:active {
  color: red;
}

/* ---------- Secção Contactos ---------- */
.contact-us {
  background: black;
  color: white;
  padding: 80px 60px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 30px auto 0 auto;
  gap: 40px;
  justify-content: space-between;
}

/* ---------- Formulário ---------- */
.form-flex,
.form-full {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-bottom {            /* empurra o botão para o fundo */
  margin-top: auto;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: #111;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.contact-form h2 {
  margin-bottom: 20px;
  color: white;
}

.contact-form label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #222;
  color: white;
  font-size: 14px;
}

.contact-form button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: #e11b22;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover { background: #b2151a; }

/* ---------- Info ---------- */
.contact-info {
  flex: 1;
  min-width: 300px;
  color: white;
}
.contact-info h3 {
  color: #e11b22;
  margin-bottom: 10px;
}
.contact-info p { margin-bottom: 20px; }

/* ---------- Ícones (legacy simples) ---------- */
.social-icons a {
  margin-right: 15px;
  color: white;
  font-size: 20px;
  transition: 0.3s;
}

/* ---------- Mapa ---------- */
.map {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
}

/* ---------- Social CTA + Badges ---------- */
.social-cta { margin: 28px 0 24px 0; }
.social-cta__text {
  margin: 0 0 10px 0;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  opacity: 0.9;
}

.social-icons--badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;       /* centro horizontal */
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  color: #fff;
  will-change: transform, box-shadow, filter;
  box-sizing: border-box;
}
.social-btn i {
  font-size: 18px;
  line-height: 1;
}

/* garantir que hover global não força vermelho nos botões */
.social-btn:hover,
.social-btn:focus-visible { color: inherit; }

/* Cores por marca */
.social-btn.fb { background: linear-gradient(90deg, #1877f2 0%, #3b5ca8 100%); }
.social-btn.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-btn.wa { background: #25D366; color: #fff; }
.social-btn.wa i { color: #fff; }

/* ---------- Animação opcional ---------- */
@keyframes social-pop {
  0% { transform: scale(0.96); box-shadow: 0 0 0 rgba(225, 27, 34, 0); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.social-icons--badges .social-btn { animation: social-pop 360ms ease-out 1; }

/* ---------- Hover apenas em desktop (rato) ---------- */
@media (hover: hover) and (pointer: fine){
  .social-btn:hover,
  .social-btn:focus-visible{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.45);
    filter: saturate(1.08);
    text-decoration: none;
  }
  .social-btn.fb:hover{ filter: brightness(1.05) saturate(1.1); }
  .social-btn.ig:hover{ filter: brightness(1.05) saturate(1.12); }
  .social-btn.wa:hover{ filter: brightness(1.05) saturate(1.1); }
}

/* ---------- Responsivo ---------- */
/* Mobile geral */
@media (max-width: 768px) {
  .contact-us { padding: 32px 16px; }

  .contact-us h2 {
    font-size: 22px;
    margin: 0 0 20px 16px;
    display: inline-block;
  }
  .contact-us h2 span { border-left-width: 3px; padding-left: 8px; }

  .contact-container { flex-direction: column; gap: 20px; max-width: 100%; }

  .contact-form, .contact-info { min-width: 0; width: 100%; }

  .contact-form { padding: 20px; border-radius: 10px; }
  .contact-form h2 { font-size: 18px; margin-bottom: 12px; }
  .contact-form label { margin-top: 12px; font-size: 13px; }
  .contact-form input, .contact-form textarea { padding: 12px; font-size: 14px; }
  .contact-form textarea { min-height: 120px; resize: vertical; }
  .contact-form button { margin-top: 16px; padding: 14px; font-size: 15px; border-radius: 28px; }

  .contact-info p { margin-bottom: 12px; font-size: 14px; line-height: 1.4; }

  .social-icons { margin-top: 8px; display: flex; gap: 14px; }
  .social-icons a { font-size: 22px; }

  /* Mapa responsivo */
  .map {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .map iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
  }
}

/* Mobile muito pequeno (<=380px) */
@media (max-width: 380px) {
  .contact-us { padding: 24px 12px; }
  .contact-us h2 { margin-left: 12px; font-size: 20px; }
  .contact-form { padding: 16px; }
  .contact-info p { font-size: 13px; }
}

/* Só ícone nos botões sociais (<=420px) */
@media (max-width: 574px){
  .social-btn span { display: none; }     /* esconde o texto */
  .social-btn{
    width: 48px;
    height: 48px;
    padding: 0;                           /* sem deslocar o ícone */
    border-radius: 9999px;
  }
  .social-btn i{
    font-size: 20px;
    line-height: 1;
    margin: 0;
    width: auto;
    height: auto;
  }
  /* respiro para não colar à margem do ecrã */
  .social-icons--badges{ gap: 16px; padding-inline: 10px; }
}
