/* ==========================
   SERVIÇOS - CSS OTIMIZADO
   ========================== */

/* Reset */
* {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variáveis */
:root {
  font-size: 16px;
  --coral: #ef6b57;
  --coral-dark: #d65444;
  --darkblue: #0e4f66;
  --text: #111;
  --white: #fff;
  --cinza: #f3f3f3;
  --dark: #4a4a4a;
  --container: 75rem;
}

/* Ajuste de escala para Windows */
@media (min-resolution: 120dpi) { :root { font-size: 15px; } }
@media (min-resolution: 144dpi) { :root { font-size: 14px; } }
@media (min-resolution: 192dpi) { :root { font-size: 12px; } }

/* ================= SESSÃO 1 ================= */
.sessao1 {
  position: relative;
  background: #fff;
  padding: 5rem 0 0;
  text-align: center;
  z-index: 10;
}

.s1-header h2 {
  margin-top: 12.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.3125rem;
  color: #000;
}

.s1-header p {
  color: #000;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  margin-bottom: 3.75rem;
}

/* Cards suspensos entre sessões */
.cards-servicos {
  display: flex;
  justify-content: center;
  gap: 0.9375rem;
  position: relative;
  z-index: 20;
  margin-bottom: -10rem;
  transform: translateY(2rem);
}

.card {
  background: #fff;
  width: 20rem;
  padding: 2.5rem 1.5625rem 1.875rem;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
}

.icon-circle {
  width: 6.875rem;
  height: 6.875rem;
  background: var(--coral);
  border-radius: 50%;
  margin: -5.625rem auto 1.5625rem;
}

.card h3 {
  color: #000;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 0.9375rem;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.875rem 0;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.6;
}

.card p {
  color: #000;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.5;
  margin-bottom: 0.625rem;
}

.card button {
  background: var(--coral);
  color: #fff;
  border: none;
  padding: 0.875rem 0;
  width: 100%;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  cursor: pointer;
  transition: 0.3s;
  margin-top: auto;
  border-radius: 0.25rem;
}

.card button:hover {
  background: var(--coral-dark);
}

/* ================= SESSÃO 2 ================= */
.sessao2 {
  position: relative;
  background: url("../arquivos/3_Serviços/consultoria.png") center/cover no-repeat;
  padding: 16rem 0 8.75rem;
  color: #fff;
  z-index: 5;
}

.sessao2 .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 76, 94, 0.619),
    rgba(14, 87, 102, 0.548),
    rgba(8, 120, 151, 0.715),
    rgba(14, 72, 88, 0.857)
  );
}

.s2-content {
  position: relative;
  margin-left: 7.5rem;
  z-index: 2;
}

.s2-header .sub {
  font-size: clamp(0.875rem, 1.3vw, 1.1rem);
  letter-spacing: 1px;
}

.s2-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.625rem 0 1.25rem;
}

.s2-header .line {
  width: 48.75rem;
  max-width: 90%;
  height: 2px;
  background: #fff;
  margin-bottom: 3.75rem;
}

/* Steps */
.steps {
  display: flex;
  gap: 2.5rem;
}

.step {
  max-width: 20rem;
}

.step h4 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 0.625rem;
}

.step p {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.6;
}

/* ================= SESSÃO 3 ================= */
.sessao3 {
  background: #f5f5f5;
  padding: 5rem 0 7.5rem;
  text-align: center;
}

.titulo-centro {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  margin-bottom: 3.125rem;
}

.cards-top {
  display: flex;
  justify-content: center;
  gap: 1.875rem;
  margin-bottom: 3.125rem;
  flex-wrap: wrap;
}

.card-mini {
  background: #fff;
  width: 18.75rem;
  padding: 2.5rem 2.25rem 0.9375rem;
  box-shadow: 0 0.625rem 1.5625rem rgba(0, 0, 0, 0.08);
  border-radius: 0.625rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-mini .icon-circle {
  width: 5.625rem;
  height: 5.625rem;
  margin: 0 auto 1.25rem;
}

.card-mini p {
  color: #000;
  font-weight: 600;
  font-size: clamp(0.875rem, 1.4vw, 1.1rem);
  margin: 3.125rem 0 1.25rem 0;
}

.card-mini a,
.card-grande a {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 4.375rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  transition: 0.3s;
  margin-top: auto;
  border-radius: 0.25rem;
}

.card-mini a:hover,
.card-grande a:hover {
  background: var(--coral-dark);
}

/* Card grande */
.card-grande {
  background: #fff;
  max-width: 40.625rem;
  margin: 0 auto;
  padding: 3.125rem 2.5rem;
  box-shadow: 0 0.9375rem 2.1875rem rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0.625rem;
}

.card-grande .icon-circle {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.25rem;
}

.card-grande h3 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 0.9375rem;
}

.card-grande ul {
  margin-bottom: 1.5625rem;
  list-style: none;
  padding-left: 0;
  line-height: 1.5;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  text-align: left;
}

.card-grande a {
  width: 70%;
  padding: 0.625rem 4.375rem;
}

/* ================= SESSÃO 4 ================= */
.sessao4 {
  display: flex;
  min-height: 37.5rem;
  margin-bottom: 4.375rem;
}

.left-agenda {
  flex: 1;
  background: #555;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.75rem;
  z-index: 1;
}

.agenda-content {
  max-width: 21.875rem;
}

.agenda-content h2 {
  font-size: clamp(2rem, 4vw, 2.625rem);
  line-height: 1.2;
}

.left-agenda .line {
  width: 7.5rem;
  height: 3px;
  background: #fff;
  margin: 1.25rem 0;
}

.right-form {
  flex: 1.2;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  right: 10%;
}

.form-agenda {
  background: var(--coral);
  padding: 2.5rem;
  width: 43.75rem;
  max-width: 100%;
  border-radius: 0.625rem;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.form-agenda label {
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  display: block;
  margin: 0.625rem 0 0.3125rem;
}

.form-agenda input,
.form-agenda select,
.form-agenda textarea {
  width: 100%;
  padding: 0.625rem;
  border: none;
  margin-bottom: 0.625rem;
  border-radius: 0.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9375rem;
}

.btn-enviar {
  background: #333;
  color: #fff;
  border: none;
  padding: 0.4375rem 1.25rem;
  cursor: pointer;
  font-size: clamp(0.875rem, 1.3vw, 1.1rem);
  border-radius: 0.25rem;
  transition: background 0.2s ease;
}

.btn-enviar:hover {
  background: #555;
}

button img {
  width: 1rem;
  margin: 0 0.5rem;
  vertical-align: middle;
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 1100px) {
  .cards-servicos {
    flex-wrap: wrap;
    gap: 5rem 0.9375rem;
  }
  
  .card {
    width: 18rem;
  }
}

@media (max-width: 900px) {
  .sessao2 {
    padding: 14rem 0 6.25rem;
  }
  
  .s2-content {
    margin-left: 2rem;
    margin-right: 2rem;
  }
  
  .s2-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.125rem);
  }
  
  .steps {
    flex-direction: column;
    gap: 1.875rem;
  }
  
  .step {
    max-width: 100%;
  }
  
  .sessao4 {
    flex-direction: column;
    min-height: auto;
  }
  
  .left-agenda {
    width: 100%;
    min-height: 50vw;
    padding: 3.75rem 1.5625rem 7.5rem;
    text-align: left;
  }
  
  .agenda-content {
    max-width: 100%;
  }
  
  .agenda-content h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }
  
  .right-form {
    width: 100%;
    right: 0;
    margin-top: -5rem;
    padding: 0 1.25rem;
  }
  
  .form-agenda {
    width: 100%;
    padding: 1.875rem 1.25rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cards-servicos {
    margin-bottom: -6rem;
    transform: translateY(1rem);
  }
  
  .card {
    width: 90%;
    max-width: 20rem;
  }
  
  .sessao2 {
    padding: 12rem 0 5rem;
  }
  
  .cards-top {
    flex-direction: column;
    align-items: center;
  }
  
  .card-mini {
    width: 90%;
    max-width: 20rem;
  }
  
  .card-grande {
    width: 90%;
    padding: 2rem 1.5rem;
  }
  
  .card-grande a {
    width: 90%;
    padding: 0.625rem 2rem;
  }
}

@media (max-width: 480px) {
  .s1-header h2 {
    font-size: clamp(1.5rem, 6vw, 1.75rem);
  }
  
  .s1-header p {
    font-size: clamp(1rem, 4vw, 1.125rem);
  }
  
  .s2-header h2 {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }
  
  .step h4 {
    font-size: 1.125rem;
  }
  
  .step p {
    font-size: 0.9375rem;
  }
  
  .icon-circle {
    width: 5rem;
    height: 5rem;
    margin: -4rem auto 1rem;
  }
  
  .card-mini .icon-circle,
  .card-grande .icon-circle {
    width: 4.5rem;
    height: 4.5rem;
  }
}

/* Telas muito grandes */
@media (min-width: 1920px) { :root { font-size: 14px; } }
@media (min-width: 2560px) { :root { font-size: 12px; } }