/* EL Saúde & Estética — página "Sobre a Dra. Ericka" (usa as cores e fontes de site.css) */

/* ---------- foto de fundo ---------- */

/* A página fica transparente para a foto aparecer por trás de todas as partes brancas */
html:has(.pagina-sobre) {
  background: var(--branco);
}

.pagina-sobre {
  background: transparent;
}

/* fica parada enquanto a página rola, como uma vitrine atrás do vidro */
.sobre-fundo {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--branco);
}

/* no computador a foto fica à direita e some aos poucos em direção ao texto */
.sobre-fundo img {
  position: absolute;
  top: 0;
  right: 0;
  width: min(58vw, 62rem);
  height: 100%;
  object-fit: cover;
  object-position: 55% 28%;
  /* o desfoque já vem pronto no arquivo (dra-ericka-fundo-suave.jpg): o navegador não precisa calcular */
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 96%);
  mask-image: linear-gradient(to left, #000 30%, transparent 96%);
  animation: fundo-entra 2.4s var(--suavizar) both;
}

/* véu branco: bem fechado do lado do texto, mais aberto do lado da foto */
.sobre-fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 251, 0.97) 0%, rgba(255, 253, 251, 0.93) 45%,
      rgba(255, 253, 251, 0.82) 75%, rgba(255, 253, 251, 0.76) 100%),
    linear-gradient(180deg, rgba(255, 253, 251, 0) 60%, rgba(255, 253, 251, 0.6) 100%);
}

@keyframes fundo-entra {
  from {
    opacity: 0;
    scale: 1.06;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* ---------- abertura ---------- */

.sobre-abertura {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem);
  /* só um brilho rosado; o resto deixa a foto de fundo aparecer */
  background: radial-gradient(45% 70% at 18% 45%, rgba(249, 227, 222, 0.55) 0%, transparent 70%);
}

/* monograma gigante e quase transparente, atrás do texto */
.sobre-abertura::before {
  content: "";
  position: absolute;
  left: -6rem;
  top: 50%;
  width: 34rem;
  height: 34rem;
  translate: 0 -50%;
  background: url("../assets/monograma-grande.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.sobre-abertura-grade {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.sobre-quem {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ouro-escuro);
  font-weight: 600;
  animation: surgir 0.8s var(--suavizar) both;
}

.sobre-quem::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--ouro);
}

.sobre-abertura h1 {
  margin-top: 1rem;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.sobre-lema {
  margin-top: 1.25rem;
  font-family: var(--titulo);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  color: var(--ouro-escuro);
  animation: surgir 0.9s 0.45s var(--suavizar) both;
}

.sobre-intro {
  max-width: 30rem;
  margin-top: 1.1rem;
  font-size: 1.08rem;
  color: var(--suave);
  animation: surgir 0.9s 0.6s var(--suavizar) both;
}

.sobre-rolar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-weight: 700;
  text-decoration: none;
  animation: surgir 0.9s 0.75s var(--suavizar) both;
}

.sobre-rolar svg {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.55rem;
  border-radius: 50%;
  border: 1px solid var(--ouro);
  animation: flutuar 2.6s ease-in-out infinite;
  transition: background-color 0.25s, color 0.25s;
}

.sobre-rolar:hover svg {
  background: var(--preto);
  color: var(--ouro-claro);
}

/* foto num arco, com um segundo arco dourado deslocado atrás */
.sobre-retrato {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 27rem);
  animation: surgir 1.1s 0.2s var(--suavizar) both;
}

.sobre-retrato::before {
  content: "";
  position: absolute;
  inset: -0.9rem 0.9rem 2.2rem -0.9rem;
  border: 1px solid var(--ouro);
  border-radius: 999px 999px 18px 18px;
  pointer-events: none;
}

.sobre-arco {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 34px 60px -30px rgba(90, 40, 30, 0.6);
}

.sobre-arco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 30%;
  scale: 1.04;
  transition: scale 1.2s var(--suavizar);
}

.sobre-retrato:hover .sobre-arco img {
  scale: 1.08;
}

.sobre-retrato figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--suave);
}

/* ---------- história ---------- */

.sobre-capitulo {
  max-width: 50rem;
}

.sobre-grande {
  margin-top: 1.4rem;
  font-family: var(--titulo);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.3;
  text-wrap: pretty;
}

.sobre-grande em {
  font-style: normal;
  color: var(--ouro-escuro);
}

/* a logo explicada: E de Ericka, L de Laysa */
.logo-historia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.logo-desenho {
  position: relative;
  width: min(100%, 26rem);
  justify-self: center;
  padding: 3rem 0;
}

.logo-desenho img {
  display: block;
  width: 72%;
  height: auto;
  margin-inline: auto;
}

.logo-rotulo {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  white-space: nowrap;
}

.logo-rotulo strong {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ouro-escuro);
}

/* linha fina que liga o rótulo à letra */
.logo-rotulo::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background: var(--ouro);
  transform: scaleX(0);
  transition: transform 0.9s 0.5s var(--suavizar);
}

.logo-rotulo-e {
  left: 0;
  top: 14%;
}

.logo-rotulo-e::after {
  left: calc(100% + 0.5rem);
  width: 3.4rem;
  transform-origin: left;
  rotate: 32deg;
}

.logo-rotulo-l {
  right: 0;
  bottom: 12%;
}

.logo-rotulo-l::after {
  right: calc(100% + 0.5rem);
  width: 3.4rem;
  transform-origin: right;
  rotate: 32deg;
}

.logo-desenho.visivel .logo-rotulo::after,
.sem-animacao .logo-rotulo::after,
html:not(.js) .logo-rotulo::after {
  transform: scaleX(1);
}

.logo-parte {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--linha-ouro);
}

.logo-parte h3 {
  font-size: 1.6rem;
  color: var(--ouro-escuro);
}

.logo-parte p {
  margin-top: 0.55rem;
  color: var(--suave);
  max-width: 34rem;
}

/* ---------- blocos com vídeo ---------- */

.sobre-faixa {
  background: linear-gradient(180deg, #f6f1e8 0%, #eee5d6 100%);
}

.sobre-video-grade {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.sobre-video-grade-invertida {
  grid-template-columns: auto minmax(0, 1fr);
}

.sobre-video-texto {
  max-width: 34rem;
}

.sobre-video-texto > p {
  margin-top: 1.1rem;
  color: var(--suave);
}

.sobre-video-texto > .sobre-grande {
  color: var(--preto);
}

/* o vídeo aparece inteiro, em pé, sem ocupar a tela toda:
   rosto e legendas sempre visíveis */
.video {
  margin: 0;
  justify-self: center;
}

.video-quadro {
  position: relative;
  height: min(72vh, 36rem);
  aspect-ratio: 464 / 832;
  border-radius: 26px;
  overflow: hidden;
  background: #1c1510;
  box-shadow: 0 0 0 1px rgba(184, 135, 50, 0.45), 0 0 0 0.55rem rgba(255, 253, 251, 0.85),
    0 0 0 calc(0.55rem + 1px) rgba(184, 135, 50, 0.35), 0 40px 60px -30px rgba(60, 35, 20, 0.7);
}

.video-quadro video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

/* botão de tocar no meio, só aparece com o vídeo parado */
.video-tocar {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  translate: -50% -50%;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.92);
  color: var(--preto);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: opacity 0.3s, scale 0.3s var(--suavizar);
}

.video-tocar svg {
  width: 1.7rem;
  height: 1.7rem;
  margin-left: 0.2rem;
}

.video-tocar:hover {
  scale: 1.08;
}

.video.tocando .video-tocar {
  opacity: 0;
  scale: 0.8;
  pointer-events: none;
}

/* som: no canto de cima, longe do rosto e das legendas */
.video-som {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.72);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s;
}

.video-som svg {
  width: 1.25rem;
  height: 1.25rem;
}

.video-som:hover {
  background: rgba(23, 19, 15, 0.85);
}

.video-som .icone-som,
.video-som[aria-pressed="true"] .icone-mudo {
  display: none;
}

.video-som[aria-pressed="true"] .icone-som {
  display: block;
}

/* som ligado: o botão encolhe para só o ícone */
.video-som[aria-pressed="true"] .video-som-texto {
  display: none;
}

.video-som[aria-pressed="true"] {
  padding-inline: 0.55rem;
  background: var(--ouro);
}

.video-tocar:focus-visible,
.video-som:focus-visible {
  outline: 2px solid var(--ouro-claro);
  outline-offset: 2px;
}

/* barrinha de progresso embaixo */
.video-progresso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
}

.video-progresso span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ouro-claro);
  transform: scaleX(0);
  transform-origin: left;
}

.video figcaption {
  margin-top: 1.1rem;
  text-align: center;
  font-family: var(--titulo);
  font-size: 1.1rem;
  color: var(--ouro-escuro);
}

/* ---------- você é prioridade ---------- */

.sobre-prioridade {
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--preto);
  color: var(--creme);
  text-align: center;
}

.sobre-citacao {
  max-width: 48rem;
  margin-inline: auto;
  font-family: var(--titulo);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.2;
  text-wrap: balance;
}

.sobre-citacao span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ouro-claro);
}

.sobre-citacao-apoio {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  color: rgba(247, 241, 231, 0.72);
}

/* ---------- convite ---------- */

.sobre-convite {
  text-align: center;
  background: radial-gradient(60% 90% at 50% 100%, rgba(249, 227, 222, 0.75) 0%, rgba(253, 243, 240, 0.4) 50%, transparent 100%);
}

.sobre-convite-marca {
  width: 4.5rem;
  height: auto;
  margin: 0 auto 1.25rem;
}

.sobre-convite h2::after {
  margin-inline: auto;
}

.sobre-convite p {
  max-width: 30rem;
  margin: 1rem auto 0;
  color: var(--suave);
}

.sobre-convite-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- telas menores ---------- */

@media (max-width: 960px) {
  .sobre-abertura-grade {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .sobre-abertura-texto {
    order: 2;
  }

  .sobre-retrato {
    width: min(78%, 22rem);
  }

  .sobre-intro {
    margin-inline: auto;
  }

  .sobre-abertura::before {
    left: 50%;
    top: auto;
    bottom: -6rem;
    width: 26rem;
    height: 26rem;
    translate: -50% 0;
  }

  .logo-historia,
  .sobre-video-grade,
  .sobre-video-grade-invertida {
    grid-template-columns: minmax(0, 1fr);
  }

  /* no celular o texto vem antes do vídeo nos dois blocos */
  .sobre-video-grade-invertida .video {
    order: 2;
  }

  .sobre-video-texto {
    max-width: 40rem;
  }
}

@media (max-width: 700px) {
  /* no celular a foto ocupa a tela toda, bem clara, com o rosto no alto */
  .sobre-fundo img {
    width: 100%;
    object-position: 50% 22%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .sobre-fundo::after {
    background: linear-gradient(180deg, rgba(255, 253, 251, 0.84) 0%, rgba(255, 253, 251, 0.88) 45%,
      rgba(255, 253, 251, 0.93) 100%);
  }

  .sobre-abertura {
    padding-block: 1.75rem 3.5rem;
  }

  .sobre-retrato::before {
    inset: -0.6rem 0.6rem 2rem -0.6rem;
  }

  .logo-desenho {
    width: min(100%, 21rem);
    padding: 2.5rem 0;
  }

  .logo-rotulo {
    font-size: 0.9rem;
  }

  .logo-rotulo strong {
    font-size: 1.3rem;
  }

  .logo-rotulo-e::after,
  .logo-rotulo-l::after {
    width: 2.2rem;
  }

  /* vídeo em pé, ocupando no máximo 70% da altura da tela */
  .video-quadro {
    height: min(70svh, 32rem);
    border-radius: 22px;
  }

  .sobre-convite-acoes .botao {
    width: min(100%, 22rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-rotulo::after {
    transform: scaleX(1);
  }
}
