/* ================================================================
   BASE CSS — Otimizado para Full HD (1920×1080) sem scale
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:root {
  --space-sm: 1rem;
  --space-md: 1.33rem;
  --space-lg: 2rem;
  --space-xl: 2.66rem;

  --color-primary: #2f3061;
  --color-bg: #D3DAE0;
  --color-text: #333;
  --color-text-light: #767575;
  --color-placeholder: #cfcfcf;
  --color-white: #ffffff;
  --color-error: #dc3545;
  --color-hover: #0056b3;
}

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

body {
  font-family: 'Lato', Arial, sans-serif;
  background-color: var(--color-bg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 0 60px 0;
  overflow-x: hidden;
}

h1 {
  color: var(--color-text);
  font-size: 2rem;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(21px, 2vw, 42px);
}

/* ================== HEADER ================== */
.header {
  align-items: center;
  background-color: var(--color-bg);
  display: flex;
  justify-content: flex-start;
  min-height: 140px;
  padding: 3.33rem 2.66rem 2rem 4rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header__logo-container {
  flex: 0 0 auto;
  margin-right: 5.32rem;
}

.header__logo {
  height: auto;
  max-width: 452px;
  width: 100%;
}

.header__nav {
  align-items: center;
  display: flex;
  gap: 3.33rem;
  justify-content: flex-start;
  margin-right: 2.66rem;
  margin-left: 32rem;
}

.header__nav-link {
  color: var(--color-primary);
  font-size: 1.33rem;
  font-weight: bold;
  padding: 0.42rem 0.83rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header__nav-link:hover {
  color: darkblue;
}

/* ================== MAIN CONTENT ================== */
.main-content {
  flex: 1;
  width: 100%;
  padding-top: 8.65rem;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  width: 100%;
  justify-content: center;
}

.left-section {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 1.33rem;
}

.left-section #searchForm {
  width: 100%;
  max-width: 692px;
  transform: translateX(4rem);
}

/* ================== RIGHT SECTION ================== */
.right-section {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* cola no rodapé */
  align-items: center;
  width: auto;
  padding: 0 2rem 0 4rem;
  position: relative;
}

.image-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.highlighted-text {
  margin: 0 0 0.4rem 0;
  text-align: center;
  color: white;
  font-weight: 700;
  font-size: 3rem;
}

#image {
  display: block;
  margin: 0;
  max-width: 100%;
  height: auto;
  position: relative;
  bottom: 0;
  align-self: center;
}

/* Remove interferências anteriores */
#image,
.image-block,
.right-section {
  margin-bottom: 0 !important;
}

/* ================== SEARCH FORM ================== */
.search-container {
  padding: 0;
  width: 100%;
}

.search-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.search-form .form-group {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.4rem;
}

/* ===== Campos gerais ===== */
.search-form .form-control {
  width: 100%;
  max-width: 400px;
  color: var(--color-text-light);
  font-size: 1.1rem;
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 0.6rem 0.9rem;
  text-align: center;
  background-color: var(--color-white);
  outline: none;
  height: 2.6rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===== Arredondamentos específicos ===== */
.search-form #nome_completo.form-control--rounded-top {
  border-radius: 1.66rem 1.66rem 0 0;
}

.search-form #tipo_analise.form-control--rounded-bottom {
  border-radius: 0 0 1.66rem 1.66rem;
}

.search-form select.form-control:not(#tipo_analise) {
  border-radius: 0 !important;
}

/* ===== Placeholder ===== */
.search-form .form-control::placeholder {
  color: #cfcfcf;
  opacity: 1;
  font-size: 1rem;
}

/* ===== SELECTS ===== */
.search-form select.form-control {
  color: #cfcfcf;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23767575' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
  padding: 0.55rem 1.6rem 0.55rem 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #ccc;
  height: 2.6rem;
}

.search-form select.form-control option:first-child {
  color: #cfcfcf;
}

/* ===== Botão ===== */
.search-form .form-group:has(button[type="submit"]) {
  justify-content: center;
  max-width: 400px;
}

.search-form button[type="submit"] {
  border-radius: 0.5rem;
  padding: 0.6rem 1.6rem;
  background-color: #e9ebed;
  color: var(--color-primary);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-form button[type="submit"]:hover {
  background-color: var(--color-hover);
  color: #ffffff;
}

.search-form button[type="submit"]:active {
  transform: scale(0.98);
}

/* ================== FOOTER ================== */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #f8f9fa;
  padding: 0.67rem 1.33rem;
  font-size: 1rem;
  color: var(--color-primary);
  border-top: 1px solid #e9ecef;
  z-index: 999;
  display: flex;
  justify-content: center;
  height: 53px;
}

/* ================== CONTATO ================== */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* alinhado à esquerda */
  align-items: flex-start;
  gap: 5.32rem;
  padding: 5.32rem 2.66rem;
  padding-left: 8rem; /* ajuste lateral */
  max-width: 1600px;
  margin: 6rem auto;
  margin-right: 9rem;
}

/* Coluna de informações */
.contact-info {
  flex: 1;
  min-width: 320px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.33rem;
  background-color: transparent;
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-right: 20rem;
}

.contact-info h1 {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--color-hover);
}

.emaildolfidoc p {
  margin: 0.25rem 0;
}

/* Redes sociais */
.social-section {
  margin-top: 1.5rem;
}

.social-section p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
  background-color: var(--color-hover);
  transform: scale(1.1);
}

.social-icons i.material-icons {
  font-size: 1.5rem;
}

/* Formulário */
.contact-form {
  flex: 1;
  min-width: 640px;
  max-width: 960px;
  background-color: var(--color-primary);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 5px 11px rgba(0,0,0,0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.33rem;
  margin-left: auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 24px;
  font-size: 1.33rem;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--color-text-light);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: rgba(255,255,255,0.9);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-placeholder);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 5px rgba(47,48,97,0.3);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.67rem;
  color: var(--color-primary);
  background-color: var(--color-bg);
  border: none;
  border-radius: 11px;
  padding: 0.8rem 1.6rem;
  font-size: 1.33rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
  width: fit-content;
  align-self: flex-end;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  color: #fff;
  transform: scale(1.05);
}

.btn-whatsapp .material-icons {
  font-size: 1.6rem;
}

/* ================== PÁGINA SOBRE ================== */
.about-page {
  padding: 4rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
}

.about-page h1 {
  color: var(--color-primary);
  font-size: 2.4rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.about-intro {
  color: var(--color-text);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ================== FLIP CARDS — MISSÃO / VISÃO / VALORES ================== */
.about-values {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.value-card {
  background: transparent;
  width: 320px;
  min-height: 280px;
  max-height: 420px; /* garante limite visual */
  perspective: 1000px; /* profundidade 3D */
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.value-card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Faces do card */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  backface-visibility: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

/* Frente */
.card-front {
  background-color: var(--color-primary);
  color: #fff;
}

.card-front h3 {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0;
}

/* Verso */
.card-back {
  background-color: var(--color-white);
  color: var(--color-text);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) #f2f2f2;
}

/* Scrollbar custom (WebKit) */
.card-back::-webkit-scrollbar {
  width: 6px;
}
.card-back::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 10px;
}
.card-back::-webkit-scrollbar-track {
  background-color: #f2f2f2;
}

.card-back p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  margin: 0;
  padding-right: 0.5rem;
}

/* Hover visual */
.value-card:hover {
  transform: scale(1.03);
}

/* Responsividade */
@media (max-width: 1024px) {
  .about-values {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .value-card {
    width: 90%;
    max-width: 360px;
    max-height: unset; /* altura livre em telas pequenas */
  }

  .card-front h3 {
    font-size: 1.5rem;
  }

  .card-back p {
    font-size: 0.95rem;
  }
}


/* ================== ALTURA ÚTIL (Header + Footer) ================== */
body {
  padding-bottom: 53px;
}

.main-content {
  min-height: calc(100vh - 140px);
}

.content-wrapper {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 140px - 53px);
}

/* ================== RESPONSIVIDADE ================== */
@media (max-width: 1600px) {
  .content-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

/* ================== RESULTADOS / CAROUSEL ================== */
#resultados {
  display: none;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.result-header h2 {
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.result-header button {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.result-header button:hover {
  background-color: var(--color-hover);
  transform: scale(1.05);
}

/* === Estrutura do carrossel === */
.carousel {
  position: relative;
}

.carousel-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 260px;
}

.carousel-item {
  width: 100%;
  transition: transform 0.6s ease-in-out;
}

.resultado-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.2rem;
  text-align: left;
}

.resultado-imagem {
  flex: 0 0 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.resultado-imagem img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.resultado-dados {
  flex: 1;
}

.resultado-dados h5 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  font-weight: bold;
}

.resultado-dados p {
  font-size: 0.95rem;
  margin: 0.3rem 0;
  color: var(--color-text);
}

/* === Endereços e valores === */
.address-container {
  margin-top: 1rem;
  max-height: 220px;
  overflow-y: auto;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) #f2f2f2;
}

.address-container::-webkit-scrollbar {
  width: 6px;
}
.address-container::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 10px;
}
.address-container::-webkit-scrollbar-track {
  background-color: #f2f2f2;
}

.info-container {
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.info-left {
  flex: 1;
}

.info-left p {
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0.2rem 0;
}

/* === Destaque de preço (R$) com contorno azul escuro === */
.info-right p {
  font-size: 1rem;
  font-weight: 700;
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary); /* 🔵 contorno azul escuro restaurado */
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  color: #f9f9f9;
  text-align: center;
  min-width: 80px;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-right p:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(47, 48, 97, 0.2);
}
/* === Controles do carrossel === */
.carousel-control-prev,
.carousel-control-next {
  width: 3rem;
  height: 3rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(47, 48, 97, 0.2);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(47, 48, 97, 0.4);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  width: 1rem;
  height: 1rem;
}

/* === Responsividade === */
@media (max-width: 768px) {
  #resultados {
    padding: 1rem;
  }

  .resultado-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .resultado-imagem {
    flex: 0 0 auto;
  }

  .resultado-imagem img {
    width: 80px;
    height: 80px;
  }

  .resultado-dados h5 {
    font-size: 1rem;
  }

  .address-container {
    max-height: 180px;
  }
}

