/* =======================
   Reset e Base
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg, #fff);
  color: var(--text, #222);
  transition: background 0.3s, color 0.3s;
}

/* Espaçamento padrão para títulos */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem; /* espaçamento padrão */
}

h1 { margin-bottom: 1.5rem; } /* títulos principais maiores */
h2 { margin-bottom: 1.3rem; }
h3 { margin-bottom: 1.1rem; }
h4, h5, h6 { margin-bottom: 1rem; }

/* =======================
   Header
======================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg, #111);
  position: sticky;
  top: 0;
  border-bottom: 1px solid #ddd;
  color: var(--text, #fff);
}

header nav a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--text, #222);
  font-weight: 500;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* =======================
   Hero
======================= */
.hero {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  align-items: center;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem; /* maior espaçamento abaixo do título */
}

.hero-text p {
  margin-bottom: 1rem;
}

.hero-text .btn { 
  padding: 0.7rem 1.5rem;
  background: #ff4b2b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-text .btn:hover {
  background: #ff1e00;
  transform: scale(1.00);
}

.hero-img {
  flex: 1;
  min-width: 280px;
}

.hero-img img {
  width: 100%;
  border-radius: 10px;
  margin-top: 40px;
}

/* =======================
   Sections
======================= */
section {
  padding: 3rem 2rem;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Estilo padrão para vídeos */
.portfolio video {
  width: 80%;
  border-radius: 8px;
  cursor: pointer;
  transition: width 0.3s ease;
}

/* Estilo para dispositivos móveis */
@media screen and (max-width: 768px) {
  .portfolio video {
    width: 80%; /* ou 90% se quiser uma margem pequena */
  }

  .portfolio .card {
    padding: 10px; /* ajusta o espaçamento interno se necessário */
  }
}

.servico {
  padding: 3rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.servico:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* =======================
   Formulário
======================= */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

input,
textarea,
button {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background: #ff4b2b;
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #ff1e00;
  transform: scale(1.00);
}

/* =======================
   Depoimentos
======================= */
#listaDepoimentos {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.depoimento {
  background: #f0f0f0;
  color: #333;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.depoimento.show {
  opacity: 1;
  transform: translateX(0);
}

.depoimento.excluir-anim {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.depoimento strong {
  flex-shrink: 0;
}

.depoimento span {
  font-style: italic;
}

.depoimento button.excluir {
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
}

.depoimento button.excluir:hover {
  background: #e60000;
}


/* =======================
   Rodapé
======================= */
.footer {
  background: #111;
  color: #fff;
  padding: 40px 20px 10px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
}

.footer-section {
  flex: 1 1 250px;
  margin: 10px;
  text-align: center;
}

.footer-section h3 {
  margin-bottom: 1rem; /* aumento do espaçamento abaixo do título */
  color: #ffcc00;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.footer-section a:hover {
  color: #ffcc00;
}

.footer-section i {
  margin-right: 8px;
  color: #ffcc00;
  min-width: 18px;
  text-align: center;
}

.footer-section p {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-section p i {
  margin-right: 8px;
  color: #ffcc00;
  min-width: 18px;
  text-align: center;
}

.payments {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.payments img {
  width: 40px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 4px;
}

.payments svg {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.payments svg:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #333;
  font-size: 14px;
  margin-top: 20px;
}

/* =======================
   Responsividade
======================= */
@media (max-width: 768px) {

  .footer {
    padding: 20px 15px 5px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    flex: 1 1 100%;
    margin: 8px 0;
  }

  .payments img {
    margin: 5px;
  }
}
