/* contato.css

   Observações:
   - Recomenda-se o uso de ferramentas de build para minificação e autoprefixação.
   - Comentários detalhados foram adicionados para facilitar a manutenção.
*/

/* ===================== */
/* Reset e Configurações */
/* ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}
html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
}

/* ===================== */
/* Fundo com efeito de grãos de café */
/* ===================== */
.coffee-beans-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.coffee-bean {
  position: absolute;
  width: 30px;
  height: 30px;
  /* Utiliza imagem de fundo com fallback, se necessário */
  background: url('assets/coffee-bean.png') no-repeat center center;
  background-size: contain;
  opacity: 0;
  animation: fall 5s linear infinite;
}

/* Definições individuais para timing e posição dos grãos */
.coffee-bean:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.coffee-bean:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 11s; }
.coffee-bean:nth-child(3) { left: 35%; animation-delay: 0.5s; animation-duration: 13s; }
.coffee-bean:nth-child(4) { left: 50%; animation-delay: 2s; animation-duration: 10s; }
.coffee-bean:nth-child(5) { left: 65%; animation-delay: 1.5s; animation-duration: 12s; }
.coffee-bean:nth-child(6) { left: 75%; animation-delay: 0s; animation-duration: 11s; }
.coffee-bean:nth-child(7) { left: 80%; animation-delay: 2.5s; animation-duration: 13s; }
.coffee-bean:nth-child(8) { left: 15%; animation-delay: 1s; animation-duration: 10s; }
.coffee-bean:nth-child(9) { left: 45%; animation-delay: 3s; animation-duration: 12s; }
.coffee-bean:nth-child(10){ left: 90%; animation-delay: 0.5s; animation-duration: 11s; }
.coffee-bean:nth-child(11){ left: 90%; animation-delay: 0.5s; animation-duration: 11s; }
.coffee-bean:nth-child(12){ left: 90%; animation-delay: 0.5s; animation-duration: 11s; }
.coffee-bean:nth-child(13){ left: 90%; animation-delay: 0.5s; animation-duration: 11s; }

@keyframes fall {
  0% {
    top: -40px;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateX(10px) rotate(180deg);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 110vh;
    transform: translateX(20px) rotate(360deg);
    opacity: 0;
  }
}

/* ===================== */
/* Header – Glassmorphism Premium */
/* ===================== */
.header.new-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  padding: 15px 40px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
}

.brand {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-right: 30px;
}

.nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav li {
  margin-right: 20px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.nav a:hover {
  color: #b5651d;
}

/* ===================== */
/* Hero Section do Contato */
/* ===================== */
.contact-hero {
  position: relative;
  width: 100%;
  height: 45vh;
  /* Imagem de fundo com cobertura completa */
  background: url('assets/contact-hero.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
}

.contact-overlay {
  background: rgba(0,0,0,0.3);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-overlay h1 {
  font-size: 48px;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

/* ===================== */
/* Seção do Formulário de Contato */
/* ===================== */
.contact-form-section {
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container {
  background: #fff;
  padding: 40px 50px;
  border-radius: 25px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s ease;
  animation: slideUp 1s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-container:hover {
  box-shadow: 0 0 30px 5px rgba(181,101,29,0.3);
}

.form-container h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.form-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-container form input,
.form-container form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-container form input:focus,
.form-container form textarea:focus {
  border-color: #b5651d;
  box-shadow: 0 0 8px rgba(181,101,29,0.4);
}

.form-container form button {
  padding: 12px;
  background: #b5651d;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.form-container form button:hover {
  background: #a54e17;
  transform: translateY(-3px);
}

/* ===================== */
/* Footer – Distribuição em três áreas */
/* ===================== */
.footer {
  background: #333;
  color: #fff;
  padding: 20px 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-content a:hover {
  color: #b5651d;
}

/* ===================== */
/* Responsividade */
/* ===================== */
@media (max-width: 768px) {
  .header.new-header { padding: 15px 20px; }
  .brand { font-size: 28px; }
  .contact-overlay h1 { font-size: 36px; }
  .form-container { padding: 30px 20px; }
  .footer-content { flex-direction: column; gap: 10px; text-align: center; }
}
