/* service.css - estilos específicos para a página de Gerenciamento de Projetos */

/* 0. Compensa header fixo ao rolar via âncora */
#servicos {
  scroll-margin-top: 100px;
}

/* 1. Layout principal: grid texto + imagens */
.project-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Mobile: uma coluna só */
@media (max-width: 768px) {
  .project-layout {
    grid-template-columns: 1fr;
  }
}

/* 2. Texto */
.project-text h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--secondary-color);
  padding-left: 1rem;
}
.text-block {
  max-width: 800px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.text-block p {
  margin-bottom: 1rem;
}
.text-block strong {
  color: var(--secondary-color);
  font-weight: 500;
}
.text-block ul {
  list-style: disc inside;
  margin: 1rem 0 0 1rem;
}
.text-block ul li {
  margin-bottom: 0.75rem;
}

/* 3. Imagens: empilhadas e com offset na segunda */
.project-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-images img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-height: 200px;
}
/* Segunda imagem deslocada para direita em 50% */
.project-images img:nth-child(2) {
  margin-left: 50%;
}

/* 4. Seção geral */
.content-section {
  padding: 6rem 0 4rem;
  background-color: var(--bg-dark);
}
.content-section .container {
  max-width: 900px;
  margin: 0 auto;
}

/* 5. Responsividade texto e espaçamento */
@media (max-width: 767px) {
  .content-section {
    padding: 2rem 0;
  }
  .project-text h2 {
    font-size: 2rem;
  }
  .text-block {
    font-size: 0.95rem;
  }
}
/* 1. Layout e alternância */
.service-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.service-layout .service-text,
.service-layout .service-images {
  flex: 1 1 300px;
}
.service-text {
  display: flex;
  flex-direction: column;
}

/* 2. Centraliza o botão “Fazer cotação” */
.cnt-cota {
  margin-top: 1.5rem;
  align-self: center;
}
/* Inverte a ordem nos serviços pares */
.service-section:nth-child(even) .service-layout {
  flex-direction: row-reverse;
}
.service-images img:nth-child(2) {
  margin-left: 25%;
}

/* 2. Fade‑in + slide das imagens */
.service-images img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-images.visible img {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Responsividade */
@media (max-width: 768px) {
  .service-layout {
    flex-direction: column !important;
  }
}
/* 1. Botão “Fazer cotação” */
.cnt-cota {
  display: inline-block;
  margin: 1.5rem auto; /* auto nas laterais para centralizar */
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;


  margin: 1.5rem auto; /* auto nas laterais para centralizar */
}
.cnt-cota:hover {
  background: transparent;
  color: var(--secondary-color);
}

/* 2. Esconde quando tiver hidden */
#quote-modal[hidden] {
  display: none !important;
}

/* 3. Exibe o modal e centraliza */
#quote-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2500;
}

/* 4. Overlay escuro */
#quote-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

/* 5. Caixa do modal */
#quote-modal .modal-content {
  position: relative;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* 6. Botão de fechar */
#quote-modal .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
#quote-modal .modal-close:hover {
  color: var(--primary-color);
}

/* 7. Linha separadora */
#quote-modal .modal-content hr {
  border: none;
  height: 2px;
  background-color: var(--primary-color);
  margin: 1.5rem 0;
}

/* 8. Formulário */
#quote-modal .form-group {
  margin-bottom: 1rem;
}
#quote-modal .form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
#quote-modal .form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-dark);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#quote-modal .form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(254,160,0,0.3);
}

/* 9. Botão “Enviar via WhatsApp” */
#quote-whatsapp {
  display: block;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0.75rem 0;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-align: center;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
#quote-whatsapp:hover {
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

/* 10. Seleção de texto */
::selection {
  background-color: var(--primary-color);
  color: var(--bg-dark);
}
::-moz-selection {
  background-color: var(--primary-color);
  color: var(--bg-dark);
}
