/* ================================================================
   MOBILE (ate 767px) - Dolfidoc
   ================================================================ */

/* Reset do scale aplicado no desktop */
body {
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  padding-bottom: 40px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ================== HEADER ================== */
.header {
  align-items: center;
  flex-direction: column;
  gap: 0.8rem;
  height: auto;
  min-height: auto;
  padding: 1.5rem 1rem 1rem 1rem;
}

.header__logo-container {
  margin-right: 0;
}

.header__logo {
  max-width: 200px;
  width: 100%;
}

.header__nav {
  gap: 1rem;
  justify-content: center;
  margin: 0;
  width: 100%;
  flex-wrap: wrap;
}

.header__nav-link {
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
}

/* ================== MAIN CONTENT ================== */
.main-content {
  padding-top: 9rem;
  padding-bottom: 1rem;
}

.content-wrapper {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  text-align: center;
}

/* ================== LEFT SECTION ================== */
.left-section {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.left-section #searchForm {
  width: 100%;
  max-width: 320px;
  transform: none !important;
  margin: 0 auto;
  margin-top: 10rem;
}

/* ================== RIGHT SECTION ================== */
.right-section {
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 1rem !important;
}

.image-block {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.highlighted-text {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-align: center;
}

#image {
  max-height: 280px;
  margin-bottom: -5px;
}

.custom-margin {
  margin-left: 0;
}

/* ================== SEARCH FORM ================== */
.search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-form {
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

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

.search-form .form-control {
  width: 100%;
  max-width: 320px;
  font-size: 1rem;
  padding: 0.8rem;
  text-align: center;
  min-height: 44px;
  margin: 0 auto;
}

.search-form .form-control::placeholder {
  font-size: 0.9rem;
}

.search-form select.form-control {
  font-size: 0.95rem;
  background-position: right 1rem center;
  background-size: 12px;
  padding: 0.8rem 2.5rem 0.8rem 0.8rem;
  min-height: 44px;
  max-width: 320px;
  margin: 0 auto;
}

.search-form select.form-control option {
  font-size: 1rem;
}

.search-form .form-group:has(button[type="submit"]) {
  max-width: 320px;
  justify-content: center;
}

.search-form button[type="submit"] {
  font-size: 1rem;
  padding: 0.8rem 2rem;
  min-width: 5rem;
  margin-top: 0.8rem;
  min-height: 44px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ================== RESULTADOS ================== */
#resultados {
  min-width: auto;
  max-width: 100%;
  width: 100%;
  padding: 1rem;
  margin-top: 1.5rem;
  border-radius: 1rem;
}

.result-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.resultado-item {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem;
}

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

.resultado-imagem img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

.resultado-dados h5 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.resultado-dados p {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.info-row {
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0.5rem;
  gap: 0.5rem;
}

.info-row::before {
  flex: 0 0 35px;
  height: 35px;
}

.info-left {
  flex: 1 1 60%;
}

.info-left p {
  font-size: 0.75rem;
}

.info-right {
  flex: 0 0 auto;
}

.info-right p {
  font-size: 0.85rem;
}

#carouselExample {
  padding: 0 1rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 2rem;
  height: 2rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 0.8rem;
  height: 0.8rem;
}

.carousel-control-prev {
  left: -0.5rem;
}

.carousel-control-next {
  right: -0.5rem;
}

/* ================== FOOTER ================== */
.footer {
  padding: 0.5rem;
  height: 40px;
  font-size: 0.7rem;
}

.footer__text {
  font-size: 0.65rem;
  padding-right: 0;
  line-height: 1.2;
}

.footer__captcha {
  right: 0.5rem;
}

.footer__captcha .g-recaptcha {
  transform: scale(0.6);
  transform-origin: right center;
}

/* ================================================================
   PAGINA DE CONTATO - MOBILE
   ================================================================ */
/* ================================================================
   REMOVER COMPLETAMENTE A PÁGINA DE CONTATO NO MOBILE
   ================================================================ */
@media (max-width: 767px) {
  .contact-wrapper,
  .contact-form,
  .contact-info {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Garante que nada da página cause rolagem */
  body {
    overflow: hidden !important;
  }
}

/* ================================================================
   PAGINA SOBRE - MOBILE
   ================================================================ */
.about-page {
  padding: 2rem 1rem;
  max-width: 100%;
  text-align: center;
}

.about-page h1 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-intro {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: justify;
  color: var(--color-text);
  padding: 0 0.5rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  width: 100%;
}

.value-card {
  width: 100%;
  max-width: 100%;
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}

.value-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

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

.value-card-front,
.value-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.value-card-front {
  background-color: white;
  border: 3px solid var(--color-primary);
}

.value-card-front h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 0;
  font-weight: bold;
}

.value-card-back {
  background-color: var(--color-primary);
  color: white;
  transform: rotateY(180deg);
}

.value-card-back p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.container {
  max-width: 100%;
  padding-inline: 1rem;
}

/* ================================================================
   TELAS MUITO PEQUENAS (<375px)
   ================================================================ */
@media (max-width: 374px) {
  .header__logo {
    max-width: 160px;
  }
  
  .header__nav-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }
  
  .highlighted-text {
    font-size: 1.1rem;
  }
  
  .search-form .form-control {
    font-size: 0.9rem;
    padding: 0.7rem;
    max-width: 280px;
  }
  
  .search-form button[type="submit"] {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    max-width: 280px;
  }
  
  .footer__text {
    font-size: 0.6rem;
  }
  
  .contact-info h1 {
    font-size: 1.5rem;
  }
  
  .about-page h1 {
    font-size: 1.5rem;
  }
  
  .value-card {
    height: 260px;
  }
  
  .value-card-front h3 {
    font-size: 1.3rem;
  }
  
  .value-card-back p {
    font-size: 0.9rem;
  }
}

/* 2️⃣ Remove completamente a seção de imagem e texto (Right Section) */
@media (max-width: 767px) {
  .right-section,
  .image-block,
  #image,
  .highlighted-text {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .content-wrapper {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .left-section {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
}
