/* Correções responsivas complementares — Pedroso Tech */

/* HERO: preserva a foto completa em desktop e mobile. */
.hero-photo {
  aspect-ratio: auto !important;
}
.hero-photo picture {
  display: block;
  width: 100%;
}
.hero-photo img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* QUEM ESTÁ POR TRÁS: quadro de retrato com altura controlada.
   A imagem inteira cabe dentro do quadro sem virar uma coluna de 1200px. */
.person-image {
  width: min(100%, 410px) !important;
  aspect-ratio: 4 / 5 !important;
  max-width: 410px !important;
  height: auto !important;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d141e;
}
.person-image picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.person-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* CONTATO: canais identificados pela ação, sem expor endereço ou número na interface. */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 13px;
  margin-top: 31px;
}
.contact-button {
  gap: 10px;
  min-width: 156px;
  white-space: nowrap;
}
.contact-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-button .contact-label {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

@media (max-width: 850px) {
  .person-image {
    width: min(100%, 410px) !important;
    aspect-ratio: 4 / 5 !important;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero-photo {
    width: 100% !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
  }
  .hero-photo img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0;
  }

  .person-image {
    width: 100% !important;
    max-width: 410px !important;
    aspect-ratio: 4 / 5 !important;
  }
  .person-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .contact-actions {
    display: flex;
    flex-wrap: wrap;
  }
  .contact-button {
    width: auto !important;
    min-width: 156px !important;
    flex: 0 0 auto;
    padding-inline: 18px;
  }
}

@media (max-width: 360px) {
  .contact-button {
    width: 100% !important;
    min-width: 0 !important;
  }
}
