/* Ajustes do site (fora do Bootstrap Studio) */

/* Vinha de Banner-Heading-Image-images.css (removido); usado na foto da seção Especialidades */
.fit-cover {
  object-fit: cover;
}

/* ---------- Espaçamento vertical padrão entre seções ---------- */
:root {
  --section-gap: 96px;
}

@media (max-width: 767.98px) {
  :root {
    --section-gap: 64px;
  }
}

.site-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

/* o componente dh-highlight-text traz padding: 30px próprio; dentro de uma seção padronizada só mantém o lateral */
.site-section > .dh-highlight-text {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 85vh;
  padding-top: 92px; /* altura da navbar fixa */
  padding-bottom: 3rem;
  background: url(../img/bgi2.webp) center / cover no-repeat;
  color: #fff;
  font-family: Montserrat, sans-serif;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero p {
  color: #fff; /* sobrescreve o "p { color: #000 }" global de dh-row-text-image-right-responsive.css */
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
}

.hero .btn-agendar {
  color: rgb(98, 38, 27);
  background: rgb(224, 204, 177);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}

.hero .btn-agendar:hover {
  background: rgb(235, 220, 198);
  color: rgb(98, 38, 27);
}

/* Mobile/tablet: texto no topo, centralizado, com overlay escuro leve para leitura */
@media (max-width: 991.98px) {
  .hero {
    align-items: flex-start !important;
    text-align: center;
    padding-top: calc(92px + 2.5rem);
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15)), url(../img/bgi2.webp);
    background-position: 25% center; /* mantém o rosto da foto visível no corte vertical */
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

/* ---------- Seção "Sobre" (card da Dra. Lívia) ---------- */
.sobre {
  background: url(../img/designbg.webp) center / cover no-repeat, #fff;
}

/* No mobile o card deixa de ir de borda a borda, para o padrão aparecer ao redor */
@media (max-width: 699.98px) {
  .sobre .sobre-wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* O CSS original (dh-card-image-left-dark.css) fixa .photo-card em 1040px x 509px a partir de 700px:
   estoura a tela entre 700 e 1040px e não deixa o texto crescer. A altura mínima fica inline no card. */
@media screen and (min-width: 700px) {
  .photo-card {
    width: 100%;
    max-width: 1040px;
    height: auto;
  }
}

/* No mobile o card empilha foto + texto; a foto precisa de altura própria */
@media screen and (max-width: 699.98px) {
  #sobrelivia .photo-background {
    min-height: 360px;
  }
}

/* ---------- Padrão quase transparente cobrindo a seção (Especialidades, Hospitais + Contato) ---------- */
.pattern-soft {
  position: relative;
}

.pattern-soft::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url(../img/designbg.webp) center / cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.pattern-soft > * {
  position: relative;
  z-index: 1;
}

.especialidades::before {
  transform: scaleX(-1);
}

.hospitais-contato::before {
  transform: rotate(180deg);
}
