/* ============================================================
   styles1.css - Versão otimizada e moderna
   Projeto: Cartório Herrera
   ============================================================ */

:root {
  --green: #0f4d3f;
  --accent: #b98b1f;
  --muted: #6b7280;
  --bg: #ffffff;
  --gray: #f2f2f2;
  --max-width: 1100px;
  --container-padding: 16px;
  --radius: 8px;
}

/* ============================================================
   RESET E BASE
   ============================================================ */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #102a2a;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button,
a {
  transition: all 0.2s ease-in-out;
}

/* ============================================================
   CABEÇALHO
   ============================================================ */
.site-header {
  background: var(--green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--container-padding);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 60px;
  width: 60px;
}

.brand-text .title {
  font-weight: 700;
  font-size: 18px;
}

.brand-text .subtitle {
  font-size: 12px;
  opacity: 0.95;
}

/* ============================================================
   MENU DE NAVEGAÇÃO
   ============================================================ */
.main-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}

.nav-list li {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-list a,
.nav-list button {
  background: none;
  border: none;
  color: #fff;
  padding: 8px 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a:hover,
.nav-list button:hover {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Mega menu */
.has-mega .mega {
  position: absolute;
  right: 0;
  top: 54px;
  background: #fff;
  color: #111;
  padding: 18px;
  display: flex;
  gap: 20px;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  min-width: 360px;
  z-index: 70;
}

.mega-column h4 {
  margin: 0 0 8px 0;
}

.mega-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================================
   SEÇÃO FACHADA
   ============================================================ */
.secao-fachada {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f8f8;
  padding: 40px 20px;
  min-height: 400px;
  box-sizing: border-box;
}

.fachada-conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.fachada-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.fachada-texto {
  max-width: 900px;
  color: #1a1a1a;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
  padding: 0 20px;
}

/* Responsivo fachada */
@media (max-width: 900px) {
  .secao-fachada {
    min-height: auto;
    padding: 30px 10px;
  }

  .fachada-img {
    max-width: 100%;
    border-radius: 10px;
  }

  .fachada-texto {
    font-size: 1rem;
    text-align: center;
    padding: 0 10px;
  }
}

/* ============================================================
   HERO / SOBRE / SERVIÇOS
   ============================================================ */
.hero {
  max-width: var(--max-width);
  margin: 20px auto;
  padding: 12px var(--container-padding);
}

.hero-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-image img {
  max-width: 420px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.hero-copy {
  flex: 1;
  min-width: 260px;
}

.lead {
  color: var(--muted);
}

.cta {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

/* ============================================================
   GRID DE SERVIÇOS
   ============================================================ */
.services {
  max-width: var(--max-width);
  margin: 12px auto 24px;
  padding: 12px var(--container-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 14px;
  border-radius: 10px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.service-card.green {
  background: var(--green);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card.green:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Botão de infos em cards (se houver) */
.info-toggle {
  margin-top: auto;
  align-self: flex-start;
  background: #ffffff;
  color: var(--green);
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.info-toggle:hover {
  background: #f5f5f5;
}

/* Área extra de informações */
.service-info {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ============================================================
   CARROSSEIS
   ============================================================ */
.carrossel-duplo {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
}

.carrossel.metade {
  width: 50%;
  position: relative;
  overflow: hidden;
  height: 400px;
  max-width: 100%;
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}

.carrossel.metade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botões */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.15s ease;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.05);
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

@media (max-width: 900px) {
  .carrossel.metade {
    width: 100%;
    height: 300px;
  }
}

/* ============================================================
   LGPD
   ============================================================ */
.lgpd {
  max-width: var(--max-width);
  margin: 22px auto;
  padding: 12px var(--container-padding);
  border-top: 1px solid #eee;
}

.lgpd.fullwidth {
  max-width: none;
  background: #f7f7f7;
  padding: 32px var(--container-padding);
}

.lock {
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* ============================================================
   MODAL GENÉRICO (modal)
   ============================================================ */
/* overlay */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 120;
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  transition: opacity 0.18s ease-out, visibility 0.18s ease-out;
}

/* quando aberto (aria-hidden="false") */
.modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

/* caixa interna do modal */
.modal-content {
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

/* animação ao abrir */
.modal[aria-hidden="false"] .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* botão fechar genérico (se usado) */
.modal-close,
.close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}

.modal-close:hover,
.close:hover {
  color: #111;
}

/* logo em modal genérico (se usado) */
.modal-logo {
  height: 48px;
  display: block;
  margin: 0 auto 12px;
}

/* ============================================================
   FORMULÁRIOS GENÉRICOS
   ============================================================ */
label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(15, 77, 63, 0.15);
  background: #fdfefc;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ações de formulário genéricas */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* botão primário – versão moderna (resposta BOTÕES: B) */
.btn-primary,
.btn-enviar-cotacao,
.jobs-submit,
.jobs-btn {
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(15, 77, 63, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover,
.btn-enviar-cotacao:hover,
.jobs-submit:hover,
.jobs-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 77, 63, 0.45);
  opacity: 0.98;
}

/* ============================================================
   CHAT (se estiver em uso)
   ============================================================ */
.chat-messages {
  min-height: 180px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  background: #fafafa;
}

.msg {
  padding: 8px 10px;
  border-radius: 6px;
  margin: 6px 0;
  max-width: 90%;
}

.msg.user {
  background: #e6f3ef;
  align-self: flex-end;
}

.msg.assistant {
  background: #f0f0f0;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer {
  background: #999191;
  color: #dbd5d5;
  padding: 32px var(--container-padding);
  border-top: 1px solid #110303;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo-col {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  height: 200px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.footer-info-col {
  flex: 3 1 600px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: flex-end;
}

.footer-section {
  min-width: 200px;
}

.footer-section h4 {
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--green);
}

.footer-section p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

.footer-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  width: 100%;
  margin-top: 12px;
  border-top: 1px solid #ccc;
  padding-top: 8px;
  font-size: 13px;
  color: #333;
}

/* ============================================================
   RODAPÉ – RESPONSIVO
   ============================================================ */
@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-info-col {
    justify-content: center;
  }
  .footer-section {
    min-width: auto;
  }
  .footer-logo {
    height: 70px;
    margin-bottom: 12px;
  }
}

/* ============================================================
   FORMULÁRIO DE COTAÇÃO (ESPECÍFICO)
   ============================================================ */

.form-cotacao {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-cotacao input,
.form-cotacao textarea,
.form-cotacao select {
  font-size: 0.95rem;
}

/* honeypot anti-spam */
.honeypot {
  display: none !important;
}

/* SELECT PERSONALIZADO (COTAÇÃO) */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  appearance: none;
  background-color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Seta personalizada */
.select-wrapper .seta {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #333;
}

/* Modal de cotação mais compacto */
#cotacaoModal .modal-content {
  max-width: 430px;
  width: 100%;
  padding: 18px 18px 16px;
}

#cotacaoModal h2 {
  font-size: 20px;
  margin: 4px 0 12px;
}

#cotacaoModal .close {
  top: 6px;
  right: 10px;
}

/* ============================================================
   TRABALHE CONOSCO – CARD
   ============================================================ */
.jobs-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.jobs-card {
  background: #ffffff;
  padding: 40px 30px;
  max-width: 600px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
  text-align: center;
  border-top: 5px solid var(--green);
}

.jobs-icon {
  font-size: 56px;
  color: var(--green);
  margin-bottom: 10px;
}

.jobs-card h2 {
  margin-bottom: 15px;
  font-size: 26px;
}

.jobs-card p {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 25px;
}

/* ============================================================
   MODAL TRABALHE CONOSCO (modal-jobs) – estilo C (slide+fade)
   ============================================================ */

.modal-jobs {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  z-index: 999999;
  overflow-y: auto;
}

.modal-jobs.ativa {
  display: flex !important;
}

.modal-jobs-content {
  background: #fff;
  padding: 26px 22px 20px;
  border-radius: 14px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

/* quando modal-jobs está ativo, animar conteúdo */
.modal-jobs.ativa .modal-jobs-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.close-jobs {
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close-jobs:hover {
  color: #111;
}

.modal-jobs-content h3 {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 20px;
}

/* inputs do trabalhe conosco já herdam estilos gerais */

/* ============================================================
   RESPONSIVIDADE GERAL
   ============================================================ */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    position: absolute;
    right: 0px;
    top: 60px;
    background: var(--green);
    padding: 15px;
    border-radius: 8px;
    flex-direction: column;
    z-index: 80;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .nav-list a,
  .nav-list button {
    display: block;
    padding: 8px 10px;
  }

  .has-mega .mega {
    position: static;
    box-shadow: none;
    background: transparent;
    color: #fff;
    display: none;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-image img {
    max-width: 100%;
  }

  .service-card {
    padding: 10px;
  }

  .cta {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-logo {
    height: 70px;
  }

  .jobs-card {
    padding: 28px 18px;
  }

  .modal-content,
  .modal-jobs-content {
    padding: 20px 16px 18px;
  }
}

/* Área de informações expandida e mais confortável */
.service-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 16px 18px;
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Para o card verde, deixa o info com contraste bonito */
.service-card.green .service-info {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* QUADRO DE INFORMAÇÕES – MAIOR E MAIS ELEGANTE */
.service-info {
    background: #ffffff;
    padding: 18px 20px;
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.6;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    min-height: 140px; /* AUMENTA O TAMANHO DO QUADRO */
}

/* QUANDO O CARD É VERDE */
.service-card.green .service-info {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.service-card .info-toggle {
    display: block;
    width: 95%;              /* deixa o botão bem largo */
    margin: 10px auto;       /* pouca margem esquerda/direita */
    padding: 10px 0;         /* aumenta a altura */
    text-align: center;      /* centraliza o texto */
    border: 2px solid #0a8a2a;   /* aumenta a espessura da borda */
    border-radius: 8px;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
}
